pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:17:   #include "dynamic_buffer.h"   #include "error.h"   #include "operators.h"   #include "builtin_functions.h"   #include "module_support.h"   #include "fsort.h"   #include "threads.h"   #include "stuff.h"   #include "version.h"    - RCSID("$Id: encode.c,v 1.32 1999/07/19 00:34:58 hubbe Exp $"); + RCSID("$Id: encode.c,v 1.33 1999/09/15 07:15:17 hubbe Exp $");      #ifdef _AIX   #include <net/nh.h>   #endif      #ifdef HAVE_NETINET_IN_H   #include <netinet/in.h>   #endif      #include <math.h>
pike.git/src/encode.c:415:    struct program *p=val->u.program;    if(p->init || p->exit || p->gc_marked || p->gc_check ||    (p->flags & PROGRAM_HAS_C_METHODS))    error("Cannot encode C programs.\n");    code_entry(val->type, 1,data);    f_version(0);    encode_value2(sp-1,data);    pop_stack();    code_number(p->flags,data);    code_number(p->storage_needed,data); +  code_number(p->alignment_needed,data);    code_number(p->timestamp.tv_sec,data);    code_number(p->timestamp.tv_usec,data);      #define FOO(X,Y,Z) \    code_number( p->num_##Z, data);   #include "program_areas.h"       adddata2(p->program, p->num_program);    adddata2(p->linenumbers, p->num_linenumbers);   
pike.git/src/encode.c:944:       decode_value2(data);    f_version(0);    if(!is_eq(sp-1,sp-2))    error("Cannot decode programs encoded with other driver version.\n");    pop_n_elems(2);       decode_number(p->flags,data);    p->flags &= ~(PROGRAM_FINISHED | PROGRAM_OPTIMIZED);    decode_number(p->storage_needed,data); +  decode_number(p->alignment_needed,data);    decode_number(p->timestamp.tv_sec,data);    decode_number(p->timestamp.tv_usec,data);      #define FOO(X,Y,Z) \    decode_number( p->num_##Z, data);   #include "program_areas.h"      #define FOO(NUMTYPE,TYPE,NAME) \    size=DO_ALIGN(size, ALIGNOF(TYPE)); \    size+=p->PIKE_CONCAT(num_,NAME)*sizeof(p->NAME[0]);