pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:19:   #include "operators.h"   #include "builtin_functions.h"   #include "module_support.h"   #include "fsort.h"   #include "threads.h"   #include "stuff.h"   #include "version.h"   #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 */      /* Use the old encoding method for programs. */   #define OLD_PIKE_ENCODE_PROGRAM      #ifdef ENCODE_DEBUG   /* Pass a nonzero integer as the third arg to encode_value,    * encode_value_canonic and decode_value to activate this debug. */   #define EDB(N,X) do { debug_malloc_touch(data); if (data->debug>=N) {X;} } while (0)
pike.git/src/encode.c:2735:    }   #endif /* DECODE_PROGRAM */    make_program_executable(p);       getdata2(p->linenumbers, p->num_linenumbers);      #ifdef 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          debug_malloc_touch(p);    for(d=0;d<p->num_identifier_index;d++)    {    decode_number(p->identifier_index[d],data);    if(p->identifier_index[d] > p->num_identifier_references)    {