pike.git / src / lex.c

version» Context lines:

pike.git/src/lex.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: lex.c,v 1.110 2002/11/02 15:26:19 grubba Exp $ + || $Id: lex.c,v 1.111 2002/11/04 17:04:01 marcus Exp $   */      #include "global.h" - RCSID("$Id: lex.c,v 1.110 2002/11/02 15:26:19 grubba Exp $"); + RCSID("$Id: lex.c,v 1.111 2002/11/04 17:04:01 marcus Exp $");   #include "language.h"   #include "array.h"   #include "lex.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "constants.h"   #include "hashtable.h"   #include "stuff.h"   #include "pike_memory.h"   #include "interpret.h"   #include "pike_error.h"   #include "object.h"   #include "las.h"   #include "operators.h"   #include "opcodes.h"   #include "builtin_functions.h"   #include "main.h"   #include "mapping.h" -  + #include "pikecode.h"      #include "pike_macros.h"      #ifdef HAVE_SYS_PARAM_H   #include <sys/param.h>   #endif      #include <ctype.h>   #include <math.h>   #include <fcntl.h>
pike.git/src/lex.c:173:   #define OPCODE1_TAILRETURN(OP, DESC, FLAGS) OPCODE1_TAIL(OP, DESC, FLAGS)   #define OPCODE2_TAILRETURN(OP, DESC, FLAGS) OPCODE2_TAIL(OP, DESC, FLAGS)      #ifdef OPCODE_INLINE_BRANCH   #define OPCODE0_BRANCH(OP,DESC,FLAGS) int PIKE_CONCAT(test_opcode_,OP)(void);   #define OPCODE1_BRANCH(OP,DESC,FLAGS) int PIKE_CONCAT(test_opcode_,OP)(INT32);   #define OPCODE2_BRANCH(OP,DESC,FLAGS) int PIKE_CONCAT(test_opcode_,OP)(INT32,INT32);   #define OPCODE0_TAILBRANCH(OP,DESC,FLAGS) int PIKE_CONCAT(test_opcode_,OP)(void);   #define OPCODE1_TAILBRANCH(OP,DESC,FLAGS) int PIKE_CONCAT(test_opcode_,OP)(INT32);   #define OPCODE2_TAILBRANCH(OP,DESC,FLAGS) int PIKE_CONCAT(test_opcode_,OP)(INT32,INT32); + #define BRANCHADDR(X) , (void *)PIKE_CONCAT(test_opcode_,X)   #else /* !OPCODE_INLINE_BRANCH */   #define OPCODE0_BRANCH OPCODE0_JUMP   #define OPCODE1_BRANCH OPCODE1_JUMP   #define OPCODE2_BRANCH OPCODE2_JUMP   #define OPCODE0_TAILBRANCH OPCODE0_TAILJUMP   #define OPCODE1_TAILBRANCH OPCODE1_TAILJUMP   #define OPCODE2_TAILBRANCH OPCODE2_TAILJUMP -  + #define BRANCHADDR(X) , (void *)PIKE_CONCAT(opcode_,X)   #endif /* OPCODE_INLINE_BRANCH */      #include "interpret_protos.h"      #undef OPCODE0   #undef OPCODE1   #undef OPCODE2      #undef OPCODE0_TAIL   #undef OPCODE1_TAIL
pike.git/src/lex.c:216:      #undef OPCODE0_BRANCH   #undef OPCODE1_BRANCH   #undef OPCODE2_BRANCH   #undef OPCODE0_TAILBRANCH   #undef OPCODE1_TAILBRANCH   #undef OPCODE2_TAILBRANCH      #else   #define ADDR(X) + #define BRANCHADDR(X)   #define NULLADDR   #endif      #define OPCODE0(OP,DESC,FLAGS) { DESC, OP, FLAGS ADDR(OP) },   #define OPCODE1(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_HASARG ADDR(OP) },   #define OPCODE2(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_TWO_ARGS ADDR(OP) },      #define OPCODE0_TAIL(OP,DESC,FLAGS) { DESC, OP, FLAGS ADDR(OP) },   #define OPCODE1_TAIL(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_HASARG ADDR(OP) },   #define OPCODE2_TAIL(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_TWO_ARGS ADDR(OP) },
pike.git/src/lex.c:241:   #define OPCODE1_TAILJUMP(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISJUMPARG ADDR(OP) },   #define OPCODE2_TAILJUMP(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISJUMPARGS ADDR(OP) },      #define OPCODE0_RETURN(OP, DESC, FLAGS) OPCODE0(OP, DESC, FLAGS)   #define OPCODE1_RETURN(OP, DESC, FLAGS) OPCODE1(OP, DESC, FLAGS)   #define OPCODE2_RETURN(OP, DESC, FLAGS) OPCODE2(OP, DESC, FLAGS)   #define OPCODE0_TAILRETURN(OP, DESC, FLAGS) OPCODE0_TAIL(OP, DESC, FLAGS)   #define OPCODE1_TAILRETURN(OP, DESC, FLAGS) OPCODE1_TAIL(OP, DESC, FLAGS)   #define OPCODE2_TAILRETURN(OP, DESC, FLAGS) OPCODE2_TAIL(OP, DESC, FLAGS)    - #define OPCODE0_BRANCH(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISBRANCH ADDR(OP) }, - #define OPCODE1_BRANCH(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISBRANCHARG ADDR(OP) }, - #define OPCODE2_BRANCH(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISBRANCHARGS ADDR(OP) }, - #define OPCODE0_TAILBRANCH(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISBRANCH ADDR(OP) }, - #define OPCODE1_TAILBRANCH(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISBRANCHARG ADDR(OP) }, - #define OPCODE2_TAILBRANCH(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISBRANCHARGS ADDR(OP) }, + #define OPCODE0_BRANCH(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISBRANCH BRANCHADDR(OP) }, + #define OPCODE1_BRANCH(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISBRANCHARG BRANCHADDR(OP) }, + #define OPCODE2_BRANCH(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISBRANCHARGS BRANCHADDR(OP) }, + #define OPCODE0_TAILBRANCH(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISBRANCH BRANCHADDR(OP) }, + #define OPCODE1_TAILBRANCH(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISBRANCHARG BRANCHADDR(OP) }, + #define OPCODE2_TAILBRANCH(OP,DESC,FLAGS) { DESC, OP, FLAGS | I_ISBRANCHARGS BRANCHADDR(OP) },      #define LEXER      struct keyword instr_names[]=   {   #ifndef PIKE_PRECOMPILER   #include "interpret_protos.h"   #endif /* !PIKE_PRECOMPILER */   { "%=", F_MOD_EQ,0 NULLADDR },   { "&=", F_AND_EQ,0 NULLADDR },