Branch: Tag:

1997-03-14

1997-03-14 04:39:20 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

modified check_all_args(), should be much more flexible now

Rev: src/ChangeLog:1.88
Rev: src/interpret.c:1.36
Rev: src/language.yacc:1.32
Rev: src/lex.c:1.19
Rev: src/mapping.c:1.15
Rev: src/module_support.c:1.4
Rev: src/module_support.h:1.4
Rev: src/modules/Yp/yp.c:1.4
Rev: src/modules/files/file.c:1.30
Rev: src/modules/system/system.c:1.14
Rev: src/operators.c:1.12
Rev: src/peep.in:1.7
Rev: src/pike_types.c:1.19
Rev: src/svalue.h:1.7

85:   #define T_FLOAT 7   #define T_INT 8    + #define T_VOID 16 + #define T_MANY 17 +    #define T_DELETED 246   #define T_NOT 247   #define T_AND 248   #define T_UNKNOWN 249 - #define T_MANY 250 +    #define T_OR 251   #define T_SHORT_LVALUE 252   #define T_LVALUE 253 - #define T_VOID 254 +    #define T_MIXED 255      #define BIT_ARRAY (1<<T_ARRAY)
106:   #define BIT_INT (1<<T_INT)   #define BIT_FLOAT (1<<T_FLOAT)    - /* Used to signifiy that this array might not be finished yet */ + /* Used to signify that this array might not be finished yet */   /* garbage collect uses this */   #define BIT_UNFINISHED (1<<15)    -  + /* This is only used in typechecking to signify that this +  * argument may be omitted. +  */ + #define BIT_VOID (1<< T_VOID) +  + /* This is used in typechecking to signify that the rest of the +  * arguments has to be of this type. +  */ + #define BIT_MANY (1 << T_MANY) +    #define BIT_NOTHING 0   #define BIT_MIXED 0x7fff   #define BIT_BASIC (BIT_INT|BIT_FLOAT|BIT_STRING)