Branch: Tag:

2003-11-18

2003-11-18 14:22:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Backported instrs checksum stuff from Pike 7.5.

Rev: src/encode.c:1.164
Rev: src/lex.c:1.113
Rev: src/lex.h:1.27
Rev: src/version.h:1.366

2:   || 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"
326:   };      struct instr instrs[F_MAX_INSTR - F_OFFSET]; + unsigned INT32 instrs_checksum;      struct reserved   {
366:   #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++)    {