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.229 2005/05/27 18:34:23 mast Exp $ + || $Id: encode.c,v 1.230 2005/05/31 12:00:07 grubba 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:2897:       debug_malloc_touch(p);      #define FOO(NUMTYPE,TYPE,ARGTYPE,NAME) \    decode_number( p->PIKE_CONCAT(num_,NAME), data);   #include "program_areas.h"          if(data->pass == 1)    { + #ifdef PIKE_USE_MACHINE_CODE +  /* We want our program to be in mexec-allocated memory... */ + #define BAR(NUMTYPE,TYPE,ARGTYPE,NAME) + #endif /* PIKE_USE_MACHINE_CODE */   #define FOO(NUMTYPE,TYPE,ARGTYPE,NAME) \    size=DO_ALIGN(size, ALIGNOF(TYPE)); \    size+=p->PIKE_CONCAT(num_,NAME)*sizeof(p->NAME[0]);   #include "program_areas.h"       dat=xalloc(size);    debug_malloc_touch(dat);    MEMSET(dat,0,size);    size=0; -  + #ifdef PIKE_USE_MACHINE_CODE +  /* We want our program to be in mexec-allocated memory... */ + #define BAR(NUMTYPE,TYPE,ARGTYPE,NAME) \ +  p->NAME = (TYPE *)mexec_alloc(p->PIKE_CONCAT(num_, NAME) * \ +  sizeof(p->NAME[0])); + #endif /* PIKE_USE_MACHINE_CODE */   #define FOO(NUMTYPE,TYPE,ARGTYPE,NAME) \    size=DO_ALIGN(size, ALIGNOF(TYPE)); \    p->NAME=(TYPE *)(dat+size); \    size+=p->PIKE_CONCAT(num_,NAME)*sizeof(p->NAME[0]);   #include "program_areas.h"       for(e=0;e<p->num_constants;e++)    p->constants[e].sval.type=T_INT;       debug_malloc_touch(dat);