Fixed a bug with line-directives, added copyright notice

This commit is contained in:
ceriel 1987-03-10 17:51:10 +00:00
parent 94ff96cf1f
commit 07f5d3cce4
60 changed files with 269 additions and 23 deletions

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* L E X I C A L A N A L Y Z E R */ /* L E X I C A L A N A L Y Z E R */
@ -29,6 +33,7 @@ int AccDefined = 0; /* accept "defined(...)" */
int UnknownIdIsZero = 0; /* interpret unknown id as integer 0 */ int UnknownIdIsZero = 0; /* interpret unknown id as integer 0 */
int SkipEscNewline = 0; /* how to interpret backslash-newline */ int SkipEscNewline = 0; /* how to interpret backslash-newline */
int Unstacked = 0; /* an unstack is done */ int Unstacked = 0; /* an unstack is done */
int File_Inserted = 0; /* a file has just been inserted */
#define MAX_LL_DEPTH 2 #define MAX_LL_DEPTH 2
@ -100,7 +105,10 @@ GetToken(ptok)
char buf[(IDFSIZE > NUMSIZE ? IDFSIZE : NUMSIZE) + 1]; char buf[(IDFSIZE > NUMSIZE ? IDFSIZE : NUMSIZE) + 1];
register int ch, nch; register int ch, nch;
if (! LineNumber) goto firstline; if (File_Inserted) {
File_Inserted = 0;
goto firstline;
}
again: /* rescan the input after an error or replacement */ again: /* rescan the input after an error or replacement */
#ifndef NOPP #ifndef NOPP
if (Unstacked) EnableMacros(); if (Unstacked) EnableMacros();
@ -120,7 +128,10 @@ firstline:
return ptok->tk_symb = EOI; return ptok->tk_symb = EOI;
while (LoadChar(ch), ch == '#') { /* a control line follows */ while (LoadChar(ch), ch == '#') { /* a control line follows */
domacro(); domacro();
if (!LineNumber) goto firstline; if (File_Inserted) {
File_Inserted = 0;
goto firstline;
}
} }
/* We have to loop here, because in /* We have to loop here, because in
`domacro' the nl, vt or ff is read. The `domacro' the nl, vt or ff is read. The

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* D E F I N I T I O N S F O R T H E L E X I C A L A N A L Y Z E R */ /* D E F I N I T I O N S F O R T H E L E X I C A L A N A L Y Z E R */
@ -52,6 +56,7 @@ extern int AccDefined; /* "LLlex.c" */
extern int UnknownIdIsZero; /* "LLlex.c" */ extern int UnknownIdIsZero; /* "LLlex.c" */
extern int SkipEscNewline; /* "LLlex.c" */ extern int SkipEscNewline; /* "LLlex.c" */
extern int Unstacked; /* "LLlex.c" */ extern int Unstacked; /* "LLlex.c" */
extern int File_Inserted; /* "LLlex.c" */
extern int NoUnstack; /* buffer.c */ extern int NoUnstack; /* buffer.c */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* PARSER ERROR ADMINISTRATION */ /* PARSER ERROR ADMINISTRATION */

View file

@ -1 +1,6 @@
/* $Header$ */
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
static char Version[] = "ACK CEM compiler Version 3.1"; static char Version[] = "ACK CEM compiler Version 3.1";

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* A L I G N M E N T D E F I N I T I O N S */ /* A L I G N M E N T D E F I N I T I O N S */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* A R I T H M E T I C C O N V E R S I O N S */ /* A R I T H M E T I C C O N V E R S I O N S */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* COMPILER ARITHMETIC */ /* COMPILER ARITHMETIC */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* A S M */ /* A S M */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* A S S E R T I O N M A C R O D E F I N I T I O N */ /* A S S E R T I O N M A C R O D E F I N I T I O N */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* Align To Word boundary Definition */ /* Align To Word boundary Definition */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* B L O C K S T O R I N G A N D L O A D I N G */ /* B L O C K S T O R I N G A N D L O A D I N G */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* /*
Driver for the CEMCOM compiler: works like /bin/cc and accepts Driver for the CEMCOM compiler: works like /bin/cc and accepts

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* S E M A N T I C A N A L Y S I S -- C H A P T E R 7 RM */ /* S E M A N T I C A N A L Y S I S -- C H A P T E R 7 RM */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* SEMANTIC ANALYSIS (CHAPTER 7RM) -- BINARY OPERATORS */ /* SEMANTIC ANALYSIS (CHAPTER 7RM) -- BINARY OPERATORS */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* SEMANTIC ANALYSIS (CHAPTER 7RM) -- MONADIC OPERATORS */ /* SEMANTIC ANALYSIS (CHAPTER 7RM) -- MONADIC OPERATORS */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* U S E O F C H A R A C T E R C L A S S E S */ /* U S E O F C H A R A C T E R C L A S S E S */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* C O D E - G E N E R A T I N G R O U T I N E S */ /* C O D E - G E N E R A T I N G R O U T I N E S */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* C O N V E R S I O N - C O D E G E N E R A T O R */ /* C O N V E R S I O N - C O D E G E N E R A T O R */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* C O N S T A N T E X P R E S S I O N H A N D L I N G */ /* C O N S T A N T E X P R E S S I O N H A N D L I N G */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* DATAFLOW ANALYSIS ON C PROGRAMS */ /* DATAFLOW ANALYSIS ON C PROGRAMS */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* DECLARATION SYNTAX PARSER */ /* DECLARATION SYNTAX PARSER */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* D E C L A R A T O R M A N I P U L A T I O N */ /* D E C L A R A T O R M A N I P U L A T I O N */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* D E C L A R A T I O N S P E C I F I E R C H E C K I N G */ /* D E C L A R A T I O N S P E C I F I E R C H E C K I N G */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* PREPROCESSOR: CONTROLLINE INTERPRETER */ /* PREPROCESSOR: CONTROLLINE INTERPRETER */
@ -243,6 +247,7 @@ do_include()
} }
else { else {
WorkingDir = getwdir(result); WorkingDir = getwdir(result);
File_Inserted = 1;
FileName = result; FileName = result;
LineNumber = 0; LineNumber = 0;
} }
@ -387,18 +392,6 @@ do_undef()
SkipRestOfLine(); SkipRestOfLine();
} }
PRIVATE
do_line(l)
unsigned int l;
{
struct token tk;
LineNumber = l - 1; /* the number of the next input line */
if (GetToken(&tk) == STRING) /* is there a filespecifier? */
FileName = tk.tk_bts;
SkipRestOfLine();
}
PRIVATE int PRIVATE int
getparams(buf, parbuf) getparams(buf, parbuf)
char *buf[]; char *buf[];
@ -663,14 +656,7 @@ domacro()
SkipRestOfLine(); SkipRestOfLine();
return; return;
} }
LineNumber = tk.tk_ival - 1; /* number of the next line */ do_line(tk.tk_ival);
if ((tok = GetToken(&tk)) == STRING)
FileName = tk.tk_bts;
else
if (tok != EOI) {
error("illegal # line");
SkipRestOfLine();
}
EoiForNewline = 0; EoiForNewline = 0;
SkipEscNewline = 0; SkipEscNewline = 0;
} }
@ -685,3 +671,15 @@ SkipRestOfLine()
PushBack(); PushBack();
skipline(); skipline();
} }
PRIVATE
do_line(l)
unsigned int l;
{
struct token tk;
LineNumber = l - 1; /* the number of the next input line */
if (GetToken(&tk) == STRING) /* is there a filespecifier? */
FileName = tk.tk_bts;
SkipRestOfLine();
}

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* DUMP ROUTINES */ /* DUMP ROUTINES */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* E R R O R A N D D I A G N O S T I C R O U T I N E S */ /* E R R O R A N D D I A G N O S T I C R O U T I N E S */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* EXPRESSION-CODE GENERATOR */ /* EXPRESSION-CODE GENERATOR */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* EXPRESSION TREE HANDLING */ /* EXPRESSION TREE HANDLING */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* EXPRESSION SYNTAX PARSER */ /* EXPRESSION SYNTAX PARSER */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* FAULTY DEFINITIONS */ /* FAULTY DEFINITIONS */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* BITFIELD EXPRESSION EVALUATOR */ /* BITFIELD EXPRESSION EVALUATOR */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* F I L E I N F O R M A T I O N S T R U C T U R E */ /* F I L E I N F O R M A T I O N S T R U C T U R E */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* IDENTIFIER FIDDLING & SYMBOL TABLE HANDLING */ /* IDENTIFIER FIDDLING & SYMBOL TABLE HANDLING */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* PREPROCESSOR: INITIALIZATION ROUTINES */ /* PREPROCESSOR: INITIALIZATION ROUTINES */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
#include "inputtype.h" #include "inputtype.h"

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
#include <inp_pkg.spec> #include <inp_pkg.spec>

View file

@ -1,3 +1,8 @@
/* $Header$ */
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
#define PRIVATE #define PRIVATE
#define IMPORT extern #define IMPORT extern
#define EXPORT #define EXPORT

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* CODE FOR THE INITIALISATION OF GLOBAL VARIABLES */ /* CODE FOR THE INITIALISATION OF GLOBAL VARIABLES */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* L A B E L H A N D L I N G */ /* L A B E L H A N D L I N G */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* L A B E L D E F I N I T I O N */ /* L A B E L D E F I N I T I O N */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* LEVEL DEFINITIONS */ /* LEVEL DEFINITIONS */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* MAIN PROGRAM */ /* MAIN PROGRAM */
@ -169,6 +173,7 @@ compile(argc, argv)
if (!InsertFile(source, (char **) 0, &result)) /* read the source file */ if (!InsertFile(source, (char **) 0, &result)) /* read the source file */
fatal("%s: no source file %s\n", prog_name, fatal("%s: no source file %s\n", prog_name,
source ? source : "stdin"); source ? source : "stdin");
File_Inserted = 1;
init(); init();
FileName = source; FileName = source;
LineNumber = 0; LineNumber = 0;

View file

@ -1,3 +1,8 @@
/* $Header$ */
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* mcomm.c -- change ".lcomm name" into ".comm name" where "name" /* mcomm.c -- change ".lcomm name" into ".comm name" where "name"
is specified in a list. is specified in a list.
*/ */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* MESSAGE ADMINISTRATION */ /* MESSAGE ADMINISTRATION */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* U S E R O P T I O N - H A N D L I N G */ /* U S E R O P T I O N - H A N D L I N G */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* PROGRAM PARSER */ /* PROGRAM PARSER */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* PREPROCESSOR: MACRO-TEXT REPLACEMENT ROUTINES */ /* PREPROCESSOR: MACRO-TEXT REPLACEMENT ROUTINES */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* PREPROCESSOR: SCANNER FOR THE ACTUAL PARAMETERS OF MACROS */ /* PREPROCESSOR: SCANNER FOR THE ACTUAL PARAMETERS OF MACROS */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* VARIOUS TARGET MACHINE SIZE DESCRIPTORS */ /* VARIOUS TARGET MACHINE SIZE DESCRIPTORS */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* PREPROCESSOR: INPUT SKIP FUNCTIONS */ /* PREPROCESSOR: INPUT SKIP FUNCTIONS */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* OCCURANCES OF SPECIAL IDENTIFIERS */ /* OCCURANCES OF SPECIAL IDENTIFIERS */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* S T A C K / U N S T A C K R O U T I N E S */ /* S T A C K / U N S T A C K R O U T I N E S */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* STATEMENT SYNTAX PARSER */ /* STATEMENT SYNTAX PARSER */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* library routine for copying structs */ /* library routine for copying structs */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* ADMINISTRATION OF STRUCT AND UNION DECLARATIONS */ /* ADMINISTRATION OF STRUCT AND UNION DECLARATIONS */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* S W I T C H - S T A T E M E N T A D M I N I S T R A T I O N */ /* S W I T C H - S T A T E M E N T A D M I N I S T R A T I O N */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* @cc tab.c -o $INSTALLDIR/tab@ /* @cc tab.c -o $INSTALLDIR/tab@
tab - table generator tab - table generator

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* TOKEN NAME DEFINITIONS */ /* TOKEN NAME DEFINITIONS */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* TOKENNAME DEFINITION */ /* TOKENNAME DEFINITION */

View file

@ -1,3 +1,7 @@
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */ /* $Header$ */
/* T Y P E D E F I N I T I O N M E C H A N I S M */ /* T Y P E D E F I N I T I O N M E C H A N I S M */
@ -83,7 +87,7 @@ construct_type(fund, tp, count)
dtp = pointer_to(tp); dtp = pointer_to(tp);
break; break;
case ARRAY: case ARRAY:
if (tp->tp_size < 0) { if (count >= 0 && tp->tp_size < 0) {
error("cannot construct array of unknown type"); error("cannot construct array of unknown type");
count = (arith)-1; count = (arith)-1;
} }