strcmp, strncmp are in <string.h>

*Important:*  Do `make clean` to work around a problem and prevent
infinite rebuilds, https://github.com/davidgiven/ack/issues/68

I edit tokens.g in util/LLgen/src, so I regenerate tokens.c.  The
regeneration script bootstrap.sh can't find LLgen, but I can run the
same command by typing the path to llgen.
This commit is contained in:
George Koehler 2017-11-14 17:04:01 -05:00
parent 229b80a004
commit 87a2315037
25 changed files with 33 additions and 7 deletions

View file

@ -6,7 +6,8 @@
/* PREPROCESSOR: CONTROLLINE INTERPRETER */ /* PREPROCESSOR: CONTROLLINE INTERPRETER */
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "parameters.h" #include "parameters.h"
#include "idf.h" #include "idf.h"
#include "arith.h" #include "arith.h"

View file

@ -5,6 +5,7 @@
/* $Id$ */ /* $Id$ */
/* MAIN PROGRAM */ /* MAIN PROGRAM */
#include <string.h>
#include "parameters.h" #include "parameters.h"
#include <ack_string.h> #include <ack_string.h>
#include <system.h> #include <system.h>

View file

@ -5,7 +5,9 @@
/* $Id$ */ /* $Id$ */
/* PREPROCESSOR: CONTROLLINE INTERPRETER */ /* PREPROCESSOR: CONTROLLINE INTERPRETER */
#include <stdlib.h> #include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "arith.h" #include "arith.h"
#include "LLlex.h" #include "LLlex.h"
#include "Lpars.h" #include "Lpars.h"
@ -13,7 +15,6 @@
#include "input.h" #include "input.h"
#include "parameters.h" #include "parameters.h"
#include <assert.h>
#include <alloc.h> #include <alloc.h>
#include "class.h" #include "class.h"
#include "macro.h" #include "macro.h"

View file

@ -5,11 +5,12 @@
/* $Id$ */ /* $Id$ */
/* MAIN PROGRAM */ /* MAIN PROGRAM */
#include <stdlib.h> #include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "parameters.h" #include "parameters.h"
#include <alloc.h> #include <alloc.h>
#include <assert.h>
#include <system.h> #include <system.h>
#include "arith.h" #include "arith.h"
#include "file_info.h" #include "file_info.h"

View file

@ -1,5 +1,6 @@
/* H I G H L E V E L S Y M B O L E N T R Y */ /* H I G H L E V E L S Y M B O L E N T R Y */
#include <string.h>
#include <alloc.h> #include <alloc.h>
#include <assert.h> #include <assert.h>
#include <em_arith.h> #include <em_arith.h>

View file

@ -1,5 +1,6 @@
/* S T A T E M E N T S */ /* S T A T E M E N T S */
{ {
#include <string.h>
#include "parameters.h" #include "parameters.h"
#include <alloc.h> #include <alloc.h>
#include <em.h> #include <em.h>

View file

@ -17,6 +17,7 @@
* initialising routine. * initialising routine.
*/ */
#include <string.h>
# include "types.h" # include "types.h"
# include "extern.h" # include "extern.h"
# include "assert.h" # include "assert.h"

View file

@ -77,6 +77,7 @@ extern LLnc_recover();
# line 20 "tokens.g" # line 20 "tokens.g"
#include <string.h>
# include "types.h" # include "types.h"
# include "io.h" # include "io.h"
# include "extern.h" # include "extern.h"
@ -101,7 +102,7 @@ STATIC string vallookup();
STATIC void copyact(); STATIC void copyact();
static int nparams; static int nparams;
# line 75 "tokens.g" # line 76 "tokens.g"
/* /*
@ -419,7 +420,8 @@ unput(c) {
backupc = c; backupc = c;
} }
void skipcomment(flag) { void
skipcomment(flag) {
/* /*
* Skip comment. If flag != 0, the comment is inside a fragment * Skip comment. If flag != 0, the comment is inside a fragment
* of C-code, so keep it. * of C-code, so keep it.

View file

@ -18,6 +18,7 @@
*/ */
{ {
#include <string.h>
# include "types.h" # include "types.h"
# include "io.h" # include "io.h"
# include "extern.h" # include "extern.h"

View file

@ -5,6 +5,7 @@
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "ack.h" #include "ack.h"
#include "list.h" #include "list.h"
#include "trans.h" #include "trans.h"

View file

@ -6,6 +6,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include "ack.h" #include "ack.h"
#include <em_path.h> #include <em_path.h>
#include "list.h" #include "list.h"

View file

@ -4,6 +4,7 @@
* See the copyright notice in the ACK home directory, in the file "Copyright". * See the copyright notice in the ACK home directory, in the file "Copyright".
*/ */
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <em_mnem.h> #include <em_mnem.h>
#include <em_spec.h> #include <em_spec.h>
#include "../share/types.h" #include "../share/types.h"

View file

@ -6,6 +6,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
/* MAKE ITEMS TABLE /* MAKE ITEMS TABLE
* *

View file

@ -10,6 +10,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <em_reg.h> #include <em_reg.h>
#include "../share/types.h" #include "../share/types.h"
#include "../share/debug.h" #include "../share/debug.h"

View file

@ -6,6 +6,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
/* MAKECLASSDEF /* MAKECLASSDEF
* *

View file

@ -11,6 +11,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <em_mnem.h> #include <em_mnem.h>
#include <em_spec.h> #include <em_spec.h>
#include "../share/types.h" #include "../share/types.h"

View file

@ -8,6 +8,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include "../share/types.h" #include "../share/types.h"
#include "sr.h" #include "sr.h"
#include "../share/debug.h" #include "../share/debug.h"

View file

@ -7,6 +7,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <em_spec.h> #include <em_spec.h>
#include "../share/types.h" #include "../share/types.h"
#include "ud.h" #include "ud.h"

View file

@ -9,6 +9,7 @@ static char rcsid[]= "$Id$";
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include "param.h" #include "param.h"
#include "set.h" #include "set.h"
#include "reg.h" #include "reg.h"

View file

@ -6,6 +6,7 @@
static char rcsid[]= "$Id$"; static char rcsid[]= "$Id$";
#endif #endif
#include <string.h>
#include "param.h" #include "param.h"
#include "instruct.h" #include "instruct.h"
#include "pseudo.h" #include "pseudo.h"

View file

@ -9,6 +9,7 @@ static char rcsid[]= "$Id$";
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include "param.h" #include "param.h"
#include "set.h" #include "set.h"
#include "expr.h" #include "expr.h"

View file

@ -7,6 +7,7 @@ static char rcsid[]= "$Id$";
#endif #endif
#include <assert.h> #include <assert.h>
#include <string.h>
#include "param.h" #include "param.h"
#include "lookup.h" #include "lookup.h"
#include "extern.h" #include "extern.h"

View file

@ -6,6 +6,7 @@
static char rcsid[]= "$Id$"; static char rcsid[]= "$Id$";
#endif #endif
#include <string.h>
#include "param.h" #include "param.h"
#include "extern.h" #include "extern.h"

View file

@ -11,6 +11,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include "misc.h" #include "misc.h"
struct hlist { /* linear list of pattern numbers */ struct hlist { /* linear list of pattern numbers */

View file

@ -12,6 +12,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <ctype.h> #include <ctype.h>
#include "misc.h" #include "misc.h"
#include "symtab.h" #include "symtab.h"