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.112 2002/11/10 20:19:18 grubba Exp $ + || $Id: lex.c,v 1.113 2003/11/18 14:22:52 grubba Exp $   */      #include "global.h" - RCSID("$Id: lex.c,v 1.112 2002/11/10 20:19:18 grubba Exp $"); + RCSID("$Id: lex.c,v 1.113 2003/11/18 14:22:52 grubba 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"
pike.git/src/lex.c:319:   { "lvalue_list", F_LVALUE_LIST,0 NULLADDR },   { "label", F_LABEL,I_HASARG NULLADDR },   { "align", F_ALIGN, I_HASARG NULLADDR },   { "nop", F_NOP,0 NULLADDR },   { "entry", F_ENTRY,0 NULLADDR },   { "function start", F_START_FUNCTION,0 NULLADDR },   { "notreached!", F_NOTREACHED, 0 NULLADDR },   };      struct instr instrs[F_MAX_INSTR - F_OFFSET]; + unsigned INT32 instrs_checksum;      struct reserved   {    struct hash_entry link;    int token;   };      void init_lex()   {    unsigned int i;
pike.git/src/lex.c:359:    }   #endif       instrs[instr_names[i].token - F_OFFSET].name = instr_names[i].word;    instrs[instr_names[i].token - F_OFFSET].flags=instr_names[i].flags;   #ifdef PIKE_USE_MACHINE_CODE    instrs[instr_names[i].token - F_OFFSET].address=instr_names[i].address;   #endif    }    + #ifdef PIKE_USE_MACHINE_CODE +  instrs_checksum = hashmem(instrs, sizeof(instrs), sizeof(instrs)); + #endif /* PIKE_USE_MACHINE_CODE */ +    #ifdef PIKE_DEBUG    for(i=1; i<F_MAX_OPCODE-F_OFFSET;i++)    {    if(!instrs[i].name)    {    fprintf(stderr,"Opcode %d does not have a name.\n",i);    fatal_later++;    }    }    if(fatal_later)