pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: encode.c,v 1.167 2003/02/24 18:57:16 mast Exp $ + || $Id: encode.c,v 1.168 2003/02/24 19:03:03 mast Exp $   */      #include "global.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "mapping.h"
pike.git/src/encode.c:20:   #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.167 2003/02/24 18:57:16 mast Exp $"); + RCSID("$Id: encode.c,v 1.168 2003/02/24 19:03:03 mast 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:2908:    */    for(ptr= &data->unfinished_programs ; (l=*ptr);)    {    struct program *pp=l->prog;    for(d=1;d<pp->num_inherits;d++)    if(! (pp->inherits[d].prog->flags & PROGRAM_FINISHED))    break;       if(d == pp->num_inherits)    { +  fsort_program_identifier_index(pp->identifier_index, +  pp->identifier_index + +  pp->num_identifier_index - 1, +  pp); +     pp->flags &=~ PROGRAM_AVOID_CHECK;    pp->flags |= PROGRAM_FINISHED;      #ifdef PIKE_DEBUG    check_program(pp);   #endif /* PIKE_DEBUG */       *ptr = l->next;    free((char *)l);    }else{