Branch: Tag:

1998-04-24

1998-04-24 00:32:10 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

encoding/decoding of programs implemented

Rev: src/builtin_functions.c:1.101
Rev: src/compilation.h:1.9
Rev: src/encode.c:1.20
Rev: src/gc.c:1.36
Rev: src/object.c:1.48
Rev: src/object.h:1.19
Rev: src/program.c:1.87
Rev: src/program.h:1.41
Rev: src/program_areas.h:1.5

4:   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.100 1998/04/17 05:08:01 hubbe Exp $"); + RCSID("$Id: builtin_functions.c,v 1.101 1998/04/24 00:32:08 hubbe Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
1406: Inside #if defined(DEBUG)
  #ifdef DEBUG   void f__verify_internals(INT32 args)   { -  INT32 tmp; -  tmp=d_flag; +  INT32 tmp=d_flag;    d_flag=0x7fffffff;    do_debug();    d_flag=tmp;
2775:    add_efun("gc",f_gc,"function(:int)",OPT_SIDE_EFFECT);    add_efun("version", f_version, "function(:string)", OPT_TRY_OPTIMIZE);    -  add_efun("encode_value", f_encode_value, "function(mixed:string)", OPT_TRY_OPTIMIZE); -  add_efun("decode_value", f_decode_value, "function(string:mixed)", OPT_TRY_OPTIMIZE); +  add_efun("encode_value", f_encode_value, "function(mixed,void|object:string)", OPT_TRY_OPTIMIZE); +  add_efun("decode_value", f_decode_value, "function(string,void|object:mixed)", OPT_TRY_OPTIMIZE);    add_efun("object_variablep", f_object_variablep, "function(object,string:int)", OPT_EXTERNAL_DEPEND);       add_function("diff",f_diff,"function(array,array:array(array))",OPT_TRY_OPTIMIZE);