/[gxemul]/trunk/src/cpus/generate_head.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/cpus/generate_head.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 18 by dpavlin, Mon Oct 8 16:19:11 2007 UTC revision 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# Line 25  Line 25 
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>
# Line 138  int main(int argc, char *argv[]) Line 138  int main(int argc, char *argv[])
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    

Legend:
Removed from v.18  
changed lines
  Added in v.20

  ViewVC Help
Powered by ViewVC 1.1.26