2002-05-14
2002-05-14 12:13:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
5733ee1f5f608d73f398000ef2b373699f9b50b6
(16 lines)
(+9/-7)
[
Show
| Annotate
]
Branch: 7.9
Fixed remaining old-style linenumber code.
Rev: src/encode.c:1.146
26:
#include "bignum.h"
#include "pikecode.h"
- RCSID("$Id: encode.c,v 1.145 2002/05/13 20:43:17 grubba Exp $");
+ RCSID("$Id: encode.c,v 1.146 2002/05/14 12:13:12 grubba Exp $");
/* #define ENCODE_DEBUG */
2742: Inside #if defined(DEBUG_MALLOC)
if(p->num_linenumbers && p->linenumbers &&
EXTRACT_UCHAR(p->linenumbers)==127)
{
- char *foo;
- extern int get_small_number(char **);
- foo=p->linenumbers+1;
- foo+=strlen(foo)+1;
+ char *foo = p->linenumbers + 1;
+ int len = get_small_number(&foo);
+ int shift = *foo;
+ char *fname = ++foo;
+ foo += len << shift;
get_small_number(&foo); /* pc offset */
- debug_malloc_name(p, p->linenumbers+1,
- get_small_number(&foo));
+ /* FIXME: Dmalloc doesn't support wide filenames. */
+ debug_malloc_name(p, fname, get_small_number(&foo));
}
#endif