X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=kwgen.c;h=b7682a520d3692677c509fbb257c6de722f4ac3d;hp=9a077b925ad7ecb98b94f33f54a44669244d355f;hb=75cce0d9eb190f6094f66ae283b5981af25e5a57;hpb=d28f432296e812643e236d1bfc9b556a7b11c461 diff --git a/kwgen.c b/kwgen.c index 9a077b9..b7682a5 100644 --- a/kwgen.c +++ b/kwgen.c @@ -1,9 +1,10 @@ -//////////////////////////////////////////////////////////////////////////////////////////////////// +// // RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System // KWGEN.C - Keyword & Mnemonic Definition and State Machine Creation Tool // Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986 // Source Utilised with the Kind Permission of Landon Dyer +// /* * keyword transition-table generation utility @@ -121,7 +122,9 @@ int main(int argc, char **argv) { * */ s = strpool; - while (gets(s) != NULL) + +// while (gets(s) != NULL) + while (fgets(s, STRPOOLSIZ, stdin) != NULL) { if (*s == '#' || !*s) /* ignore comment and empty lines */ continue;