pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:368: Inside #if defined(PIKE_DEBUG) and #if defined(HAVE_COMPUTED_GOTO)
   high = mid;    } else {    return get_f_name(opcode_to_fcode[mid].fcode);    }    }       sprintf(buf, "<Unknown opcode 0x%p>", n);    return buf;   }   #endif /* HAVE_COMPUTED_GOTO */ + #endif /* PIKE_DEBUG */      const char *get_token_name(int n)   {    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:408: 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); */