pike.git / src / operators.c

version» Context lines:

pike.git/src/operators.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h"   #include <math.h> - RCSID("$Id: operators.c,v 1.44 1998/11/22 11:03:06 hubbe Exp $"); + RCSID("$Id: operators.c,v 1.45 1999/02/01 02:41:41 hubbe Exp $");   #include "interpret.h"   #include "svalue.h"   #include "multiset.h"   #include "mapping.h"   #include "array.h"   #include "stralloc.h"   #include "opcodes.h"   #include "operators.h"   #include "language.h"   #include "pike_memory.h"
pike.git/src/operators.c:1985:    add_efun2("`~",f_compl,"function(object:mixed)|function(int:int)|function(float:float)|function(string:string)",OPT_TRY_OPTIMIZE,0,generate_compl);    add_efun2("sizeof", f_sizeof, "function(string|multiset|array|mapping|object:int)",0,0,generate_sizeof);       add_efun2("`()",f_call_function,"function(mixed,mixed ...:mixed)",OPT_SIDE_EFFECT | OPT_EXTERNAL_DEPEND,0,generate_call_function);       /* This one should be removed */    add_efun2("call_function",f_call_function,"function(mixed,mixed ...:mixed)",OPT_SIDE_EFFECT | OPT_EXTERNAL_DEPEND,0,generate_call_function);          start_new_program(); -  add_storage(sizeof(struct string_assignment_storage)); +  ADD_STORAGE(struct string_assignment_storage);    add_function("`[]",f_string_assignment_index,"function(int:int)",0);    add_function("`[]=",f_string_assignment_assign_index,"function(int,int:int)",0);    set_init_callback(init_string_assignment_storage);    set_exit_callback(exit_string_assignment_storage);    string_assignment_program=end_program();   }         void exit_operators(void)   {    if(string_assignment_program)    {    free_program(string_assignment_program);    string_assignment_program=0;    }   }