25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: generate_head.c,v 1.7 2005/10/27 14:01:13 debug Exp $ |
* $Id: generate_head.c,v 1.8 2005/11/06 22:41:12 debug Exp $ |
29 |
*/ |
*/ |
30 |
|
|
31 |
#include <stdio.h> |
#include <stdio.h> |
138 |
/* TODO: solve this in a nicer way! */ |
/* TODO: solve this in a nicer way! */ |
139 |
if (strcmp(a, "avr") == 0) |
if (strcmp(a, "avr") == 0) |
140 |
printf("static struct %s_instr_call nothing_call = { " |
printf("static struct %s_instr_call nothing_call = { " |
141 |
"instr(nothing), {0,0} };\n", a); |
"instr(nothing), 0, {0,0} };\n", a); |
142 |
else |
else { |
143 |
|
printf("#ifdef DYNTRANS_VARIABLE_INSTRUCTION_LENGTH\n"); |
144 |
|
printf("static struct %s_instr_call nothing_call = { " |
145 |
|
"instr(nothing), 0, {0,0,0} };\n", a); |
146 |
|
printf("#else\n"); |
147 |
printf("static struct %s_instr_call nothing_call = { " |
printf("static struct %s_instr_call nothing_call = { " |
148 |
"instr(nothing), {0,0,0} };\n", a); |
"instr(nothing), {0,0,0} };\n", a); |
149 |
|
printf("#endif\n"); |
150 |
|
} |
151 |
|
|
152 |
printf("\n"); |
printf("\n"); |
153 |
|
|