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:
parent
229b80a004
commit
87a2315037
|
@ -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"
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/* MAKECLASSDEF
|
/* MAKECLASSDEF
|
||||||
*
|
*
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue