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.161 2003/11/19 17:19:29 grubba Exp $ + || $Id: opcodes.c,v 1.162 2004/02/03 20:40:13 nilsson Exp $   */      #include "global.h" - RCSID("$Id: opcodes.c,v 1.161 2003/11/19 17:19:29 grubba Exp $"); + RCSID("$Id: opcodes.c,v 1.162 2004/02/03 20:40:13 nilsson Exp $");   #include "constants.h"   #include "interpret.h"   #include "opcodes.h"   #include "main.h"      #ifdef INSTR_PROFILING      /*    * If you have a 64 bit machine and 15+ Gb memory, this    * routine should handle -p4 nicely. -Hubbe
pike.git/src/opcodes.c:394:   #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)); +  instrs_checksum = hashmem((const unsigned char*)instrs, sizeof(instrs), +  sizeof(instrs));    /* 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++;