pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:18:   #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"   #include "bignum.h"    - RCSID("$Id: encode.c,v 1.58 2000/04/08 02:01:08 hubbe Exp $"); + RCSID("$Id: encode.c,v 1.59 2000/06/10 11:52:43 mast Exp $");      /* #define ENCODE_DEBUG */      #ifdef ENCODE_DEBUG   #define EDB(X) X   #else   #define EDB(X)   #endif      #ifdef _AIX
pike.git/src/encode.c:566:    error("Canonical encoding of programs not supported.\n");    check_stack(1);    push_svalue(val);    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_func || +  if(p->init || p->exit || p->gc_recurse_func || p->gc_check_func ||    (p->flags & PROGRAM_HAS_C_METHODS))    error("Cannot encode C programs.\n");    code_entry(type_to_tag(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);