Branch: Tag:

2000-08-31

2000-08-31 14:43:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Changed a few ADD_FUNCTION() to ADD_FUNCTION2().

Rev: src/operators.c:1.101

6:   /**/   #include "global.h"   #include <math.h> - RCSID("$Id: operators.c,v 1.100 2000/08/17 19:07:13 grubba Exp $"); + RCSID("$Id: operators.c,v 1.101 2000/08/31 14:43:00 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "multiset.h"
2749:    start_new_program();    ADD_STORAGE(struct string_assignment_storage);    /* function(int:int) */ -  ADD_FUNCTION("`[]",f_string_assignment_index,tFunc(tInt,tInt),0); +  ADD_FUNCTION2("`[]", f_string_assignment_index, tFunc(tInt,tInt), 0, +  OPT_EXTERNAL_DEPEND);    /* function(int,int:int) */ -  ADD_FUNCTION("`[]=",f_string_assignment_assign_index,tFunc(tInt tInt,tInt),0); +  ADD_FUNCTION2("`[]=", f_string_assignment_assign_index, +  tFunc(tInt tInt,tInt), 0, OPT_SIDE_EFFECT);    set_init_callback(init_string_assignment_storage);    set_exit_callback(exit_string_assignment_storage);    string_assignment_program=end_program();