Branch: Tag:

2001-07-09

2001-07-09 12:50:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>

The fcode_to_opcode array is now indexed by (fcode-F_OFFSET).

Rev: src/interpreter.h:1.63
Rev: src/peep.c:1.52

354:    strap = &&normal_strap;    {    static void *table[] = { +  NULL_LABEL(F_OFFSET), +     NULL_LABEL(F_PREFIX_256),    NULL_LABEL(F_PREFIX_512),    NULL_LABEL(F_PREFIX_768),
385:    };      #ifdef PIKE_DEBUG -  if (sizeof(table) != (F_MAX_OPCODE-(F_OFFSET+1))*sizeof(void *)) +  if (sizeof(table) != (F_MAX_OPCODE-F_OFFSET)*sizeof(void *))    fatal("opcode_to_label out of sync: 0x%08lx != 0x%08lx\n",    DO_NOT_WARN((long)sizeof(table)), -  DO_NOT_WARN((long)((F_MAX_OPCODE-(F_OFFSET+1))*sizeof(void *)))); +  DO_NOT_WARN((long)((F_MAX_OPCODE-F_OFFSET)*sizeof(void *))));   #endif /* PIKE_DEBUG */    fcode_to_opcode = table;    return 0;    }   #endif /* HAVE_COMPUTED_GOTO */   }