pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:288:   { "get/set", F_GET_SET, 0 NULLADDR },   { "function start", F_START_FUNCTION,0 NULLADDR },   { "notreached!", F_NOTREACHED, 0 NULLADDR },   };      struct instr instrs[F_MAX_INSTR - F_OFFSET];   #ifdef PIKE_USE_MACHINE_CODE   size_t instrs_checksum;   #endif /* PIKE_USE_MACHINE_CODE */    + #ifdef PIKE_DEBUG   const char *low_get_f_name(int n, struct program *p)   {    static char buf[30];       if (n<F_MAX_OPCODE)    {    if ((n >= F_OFFSET) && instrs[n-F_OFFSET].name)    return instrs[n-F_OFFSET].name;    sprintf(buf, "<OTHER %d>", n);    return buf;
pike.git/src/opcodes.c:358:   {    static char buf[30];    if (n<F_MAX_INSTR && instrs[n-F_OFFSET].name)    {    return instrs[n-F_OFFSET].name;    }else{    sprintf(buf, "<OTHER %d>", n);    return buf;    }   } + #endif /* PIKE_DEBUG */      void init_opcodes(void)   {    unsigned int i;   #ifdef PIKE_DEBUG    int fatal_later=0;   #ifdef INSTR_PROFILING    instr_counter_storage=init_instr_storage_pointers(p_flag);   #endif   #endif
pike.git/src/opcodes.c:385: Inside #if defined(PIKE_DEBUG)
   fatal_later++;    }       if(instrs[instr_names[i].token - F_OFFSET].name)    {    fprintf(stderr,"Duplicate name for %s\n",instr_names[i].word);    fatal_later++;    }   #endif    + #ifdef PIKE_DEBUG    instrs[instr_names[i].token - F_OFFSET].name = instr_names[i].word; -  + #endif    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(struct instr));    /* fprintf(stderr, "Instruction checksum: %d\n", instrs_checksum); */