16 printf("/* this file is auto generated, edit textevents.in instead! */\n\nconst struct text_event te[] = {\n");
17 while(fgets(name
, sizeof(name
), stdin
))
19 name
[strlen(name
)-1] = 0;
20 fgets(num
, sizeof(num
), stdin
);
21 num
[strlen(num
)-1] = 0;
22 fgets(help
, sizeof(help
), stdin
);
23 help
[strlen(help
)-1] = 0;
24 fgets(def
, sizeof(def
), stdin
);
25 def
[strlen(def
)-1] = 0;
26 fgets(args
, sizeof(args
), stdin
);
27 args
[strlen(args
)-1] = 0;
28 fgets(buf
, sizeof(buf
), stdin
);
31 printf("\n{\"%s\", %s, %d, \n\"%s\"},\n",
32 name
, help
, atoi(args
+1) | 128, def
);
34 printf("\n{\"%s\", %s, %d, \nN_(\"%s\")},\n",
35 name
, help
, atoi(args
), def
);
36 defines
[i
] = strdup (num
);
42 fprintf(stderr
, "/* this file is auto generated, edit textevents.in instead! */\n\nenum\n{\n");
49 fprintf(stderr
, "\t%s,\t\t%s,\n", defines
[i
], defines
[i
+1]);
52 fprintf(stderr
, "\t%s,\n", defines
[i
]);
55 fprintf(stderr
, "\tNUM_XP\n};\n");