opcode_entry_type *fake_opcode;
fake_opcode = XNEW (opcode_entry_type);
fake_opcode->name = md_pseudo_table[idx].poc_name;
- fake_opcode->func = (void *) (md_pseudo_table + idx);
+ fake_opcode->p = md_pseudo_table + idx;
fake_opcode->opcode = 250;
str_hash_insert (opcode_hash_control, fake_opcode->name, fake_opcode, 0);
}
if (opcode->opcode == 250)
{
- pseudo_typeS *p;
+ const pseudo_typeS *p;
char oc;
char *old = input_line_pointer;
*old = '\n';
while (is_whitespace (*input_line_pointer))
input_line_pointer++;
- p = (pseudo_typeS *) (opcode->func);
+ p = opcode->p;
(p->poc_handler) (p->poc_val);
input_line_pointer = old;
printf ("#endif\n");
printf (" const char *name;\n");
printf (" unsigned char opcode;\n");
- printf (" void (*func) (void);\n");
+ printf (" const void *p;\n");
printf (" unsigned int arg_info[4];\n");
printf (" unsigned int byte_info[%d];\n", BYTE_INFO_LEN);
printf (" unsigned int noperands;\n");