pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:14:   #include "array.h"   #include "multiset.h"   #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.22 1998/05/01 16:20:27 grubba Exp $"); + RCSID("$Id: encode.c,v 1.23 1998/05/16 08:23:44 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:397:    apply(data->codec,"nameof", 1);    if(sp[-1].type == val->type)    error("Error in master()->nameof(), same type returned.\n");    if(sp[-1].type == T_INT && sp[-1].subtype == NUMBER_UNDEFINED)    {    INT32 e;    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"); +  f_version(0); +  encode_value2(sp-1,data); +  pop_stack();    code_entry(val->type, 1,data);    code_number(p->flags,data);    code_number(p->storage_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"   
pike.git/src/encode.c:904:   #endif       p=low_allocate_program();    debug_malloc_touch(p);    tmp.type=T_PROGRAM;    tmp.u.program=p;    mapping_insert(data->decoded, & data->counter, &tmp);    data->counter.u.integer++;    p->refs--;    +  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->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"