pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.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: opcodes.c,v 1.167 2005/09/03 02:41:41 grendel Exp $ + || $Id: opcodes.c,v 1.168 2007/01/10 17:15:30 grubba Exp $   */      #include "global.h"   #include "constants.h"   #include "interpret.h"   #include "opcodes.h"   #include "pike_embed.h"      #ifdef INSTR_PROFILING   
pike.git/src/opcodes.c:392:       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((const unsigned char*)instrs, sizeof(instrs), -  sizeof(instrs)); +  sizeof(struct instr));    /* fprintf(stderr, "Instruction checksum: %d\n", instrs_checksum); */   #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++;