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

12:   ASSIGN_LOCAL POP_VALUE : ASSIGN_LOCAL_AND_POP($1a)   CALL_LFUN POP_VALUE : CALL_LFUN_AND_POP($1a)   APPLY POP_VALUE : APPLY_AND_POP($1a) + MARK APPLY : MARK_APPLY($2a) + MARK_APPLY POP_VALUE : MARK_APPLY_POP($1a)   NUMBER(0) : CONST0   NUMBER(1) : CONST1   NUMBER(-1) : CONST_1
22:   NUMBER NEGATE : NEG_NUMBER($1a)   NUMBER [$1a < 0] : NEG_NUMBER (-$1a)   NEG_NUMBER NEGATE : NUMBER ($1a) + NEGATE NEGATE : + COMPL COMPL :   NEGATE CONST_1 ADD : COMPL   NEGATE CONST1 SUBTRACT : COMPL   CONST0 ASSIGN_LOCAL_AND_POP : CLEAR_LOCAL($2a)
42:   CONST_1 XOR: COMPL   EQ CONST0: NOT   CONST0 RETURN: RETURN_0 + CONST1 RETURN: RETURN_1   INC POP_VALUE: INC_AND_POP   POST_INC POP_VALUE: INC_AND_POP   DEC POP_VALUE: DEC_AND_POP
117:   NUMBER [$1a >= 0] INDEX: POS_INT_INDEX ($1a)   NEG_NUMBER [$1a >= 0] INDEX: NEG_INT_INDEX ($1a)   NEG_NUMBER [$1a < 0] INDEX: POS_INT_INDEX (-$1a) +  + BRANCH_WHEN_ZERO BRANCH LABEL ($1a): BRANCH_WHEN_NON_ZERO($2a) LABEL($1a) + BRANCH_WHEN_NON_ZERO BRANCH LABEL ($1a): BRANCH_WHEN_ZERO($2a) LABEL($1a) +  + BRANCH_WHEN_EQ BRANCH LABEL ($1a) : BRANCH_WHEN_NE($2a) LABEL($1a) + BRANCH_WHEN_NE BRANCH LABEL ($1a) : BRANCH_WHEN_EQ($2a) LABEL($1a) +  + BRANCH_WHEN_LT BRANCH LABEL ($1a) : BRANCH_WHEN_GE($2a) LABEL($1a) + BRANCH_WHEN_GE BRANCH LABEL ($1a) : BRANCH_WHEN_LT($2a) LABEL($1a) +  + BRANCH_WHEN_LE BRANCH LABEL ($1a) : BRANCH_WHEN_GT($2a) LABEL($1a) + BRANCH_WHEN_GT BRANCH LABEL ($1a) : BRANCH_WHEN_LE($2a) LABEL($1a) +  +  + CONST0 ADD: ADD_INT (0) + CONST1 ADD: ADD_INT (1) + CONST_1 ADD: ADD_NEG_INT (1) + NUMBER [$1a >= 0] ADD : ADD_INT ($1a) + NUMBER [$1a < 0] ADD : ADD_NEG_INT (-$1a) +  + CONST0 SUBTRACT: ADD_INT (0) + CONST1 SUBTRACT: ADD_NEG_INT (-1) + CONST_1 SUBTRACT: ADD_INT (1) + NUMBER [$1a >= 0] SUBTRACT : ADD_NEG_INT ($1a) + NUMBER [$1a < 0] SUBTRACT : ADD_INT (-$1a)