Fixed a bug with line-directives, added copyright notice
authorceriel <none@none>
Tue, 10 Mar 1987 17:51:10 +0000 (17:51 +0000)
committerceriel <none@none>
Tue, 10 Mar 1987 17:51:10 +0000 (17:51 +0000)
60 files changed:
lang/cem/cemcom/LLlex.c
lang/cem/cemcom/LLlex.h
lang/cem/cemcom/LLmessage.c
lang/cem/cemcom/Version.c
lang/cem/cemcom/align.h
lang/cem/cemcom/arith.c
lang/cem/cemcom/arith.h
lang/cem/cemcom/asm.c
lang/cem/cemcom/assert.h
lang/cem/cemcom/atw.h
lang/cem/cemcom/blocks.c
lang/cem/cemcom/cem.c
lang/cem/cemcom/ch7.c
lang/cem/cemcom/ch7bin.c
lang/cem/cemcom/ch7mon.c
lang/cem/cemcom/class.h
lang/cem/cemcom/code.c
lang/cem/cemcom/conversion.c
lang/cem/cemcom/cstoper.c
lang/cem/cemcom/dataflow.c
lang/cem/cemcom/declar.g
lang/cem/cemcom/declarator.c
lang/cem/cemcom/decspecs.c
lang/cem/cemcom/domacro.c
lang/cem/cemcom/dumpidf.c
lang/cem/cemcom/error.c
lang/cem/cemcom/eval.c
lang/cem/cemcom/expr.c
lang/cem/cemcom/expression.g
lang/cem/cemcom/faulty.h
lang/cem/cemcom/field.c
lang/cem/cemcom/file_info.h
lang/cem/cemcom/idf.c
lang/cem/cemcom/init.c
lang/cem/cemcom/input.c
lang/cem/cemcom/input.h
lang/cem/cemcom/interface.h
lang/cem/cemcom/ival.c
lang/cem/cemcom/label.c
lang/cem/cemcom/label.h
lang/cem/cemcom/level.h
lang/cem/cemcom/main.c
lang/cem/cemcom/mcomm.c
lang/cem/cemcom/mes.h
lang/cem/cemcom/options.c
lang/cem/cemcom/program.g
lang/cem/cemcom/replace.c
lang/cem/cemcom/scan.c
lang/cem/cemcom/sizes.h
lang/cem/cemcom/skip.c
lang/cem/cemcom/specials.h
lang/cem/cemcom/stack.c
lang/cem/cemcom/statement.g
lang/cem/cemcom/stb.c
lang/cem/cemcom/struct.c
lang/cem/cemcom/switch.c
lang/cem/cemcom/tab.c
lang/cem/cemcom/tokenname.c
lang/cem/cemcom/tokenname.h
lang/cem/cemcom/type.c

index 08032df..86e7e58 100644 (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$ */
 /*                 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 SkipEscNewline = 0;                /* how to interpret backslash-newline   */
 int Unstacked = 0;             /* an unstack is done                   */
+int File_Inserted = 0;         /* a file has just been inserted        */
 
 #define MAX_LL_DEPTH   2
 
@@ -100,7 +105,10 @@ GetToken(ptok)
        char buf[(IDFSIZE > NUMSIZE ? IDFSIZE : NUMSIZE) + 1];
        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       */
 #ifndef NOPP
        if (Unstacked) EnableMacros();
@@ -120,7 +128,10 @@ firstline:
                        return ptok->tk_symb = EOI;
                while (LoadChar(ch), ch == '#') { /* a control line follows */
                        domacro();
-                       if (!LineNumber) goto firstline;
+                       if (File_Inserted) {
+                               File_Inserted = 0;
+                               goto firstline;
+                       }
                }
                        /*      We have to loop here, because in
                                `domacro' the nl, vt or ff is read. The
index c01aaf4..c4e085e 100644 (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$ */
 /* 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 SkipEscNewline;     /* "LLlex.c"    */
 extern int Unstacked;          /* "LLlex.c"    */
+extern int File_Inserted;      /* "LLlex.c"    */
 
 extern int NoUnstack;          /* buffer.c     */
 
index cefa9d5..23005c9 100644 (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$ */
 /*             PARSER ERROR ADMINISTRATION             */
 
index 45b43e4..da755b0 100644 (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";
index a49ad94..77c1899 100644 (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$ */
 /*      A L I G N M E N T   D E F I N I T I O N S      */
 
index a7304e3..b3bf976 100644 (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$ */
 /*     A R I T H M E T I C   C O N V E R S I O N S      */
 
index 2e94f70..483da5b 100644 (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$ */
 /* COMPILER ARITHMETIC */
 
index 8f872f8..4900ea9 100644 (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$ */
 /*             A S M                   */
 
index 6afd202..1161523 100644 (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$ */
 /*      A S S E R T I O N    M A C R O   D E F I N I T I O N           */
 
index 6dc02ee..1ebb242 100644 (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$ */
 /* Align To Word boundary Definition   */
 
index 1d76993..531b597 100644 (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$ */
 /*     B L O C K   S T O R I N G   A N D   L O A D I N G       */
 
index 172c52e..2209530 100644 (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$        */
 /*
        Driver for the CEMCOM compiler: works like /bin/cc and accepts
index d88852b..7d95b34 100644 (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$ */
 /*     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        */
 
index aaddacc..f65f910 100644 (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$ */
 /* SEMANTIC ANALYSIS (CHAPTER 7RM)  --  BINARY OPERATORS */
 
index 1bc3090..8ca6fcb 100644 (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$ */
 /* SEMANTIC ANALYSIS (CHAPTER 7RM) -- MONADIC OPERATORS */
 
index faaff23..56ba25d 100644 (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$ */
 /*             U S E   O F   C H A R A C T E R   C L A S S E S         */
 
index dc5dc0e..85591a7 100644 (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$ */
 /*     C O D E - G E N E R A T I N G   R O U T I N E S         */
 
index decd7ab..d0c7a91 100644 (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$ */
 /*     C O N V E R S I O N - C O D E  G E N E R A T O R        */
 
index dabd2d9..b33863b 100644 (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$ */
 /*     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         */
 
index 92fe142..0056121 100644 (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$ */
 /*     DATAFLOW ANALYSIS ON C PROGRAMS */
 
index a2524cc..f5db91b 100644 (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$ */
 /*     DECLARATION SYNTAX PARSER       */
 
index 934f1b3..2ee03aa 100644 (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$ */
 /*     D E C L A R A T O R   M A N I P U L A T I O N           */
 
index 235fb1a..d7651e0 100644 (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$ */
 /*     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     */
 
index abf2481..208e5b4 100644 (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$ */
 /* PREPROCESSOR: CONTROLLINE INTERPRETER */
 
@@ -243,6 +247,7 @@ do_include()
                }
                else {
                        WorkingDir = getwdir(result);
+                       File_Inserted = 1;
                        FileName = result;
                        LineNumber = 0;
                }
@@ -387,18 +392,6 @@ do_undef()
        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
 getparams(buf, parbuf)
        char *buf[];
@@ -663,14 +656,7 @@ domacro()
                SkipRestOfLine();
                return;
        }
-       LineNumber = tk.tk_ival - 1; /* number of the next line */
-       if ((tok = GetToken(&tk)) == STRING)
-               FileName = tk.tk_bts;
-       else
-       if (tok != EOI) {
-               error("illegal # line");
-               SkipRestOfLine();
-       }
+       do_line(tk.tk_ival);
        EoiForNewline = 0;
        SkipEscNewline = 0;
 }
@@ -685,3 +671,15 @@ SkipRestOfLine()
        PushBack();
        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();
+}
index 4e5e41e..ad99909 100644 (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$ */
 /*     DUMP ROUTINES   */
 
index 6ada030..94227a7 100644 (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$ */
 /*     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        */
 
index 32b3f5b..cd8668e 100644 (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$ */
 /* EXPRESSION-CODE GENERATOR */
 
index 2991fea..b746f94 100644 (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$ */
 /* EXPRESSION TREE HANDLING */
 
index 2536b15..55a0976 100644 (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$ */
 /*     EXPRESSION SYNTAX PARSER        */
 
index 8b1a754..9b3b13d 100644 (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$ */
 /* FAULTY DEFINITIONS */
 
index 0a34db0..021196d 100644 (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$ */
 /*     BITFIELD EXPRESSION EVALUATOR   */
 
index 1cb1db0..740e27b 100644 (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$ */
 /* F I L E   I N F O R M A T I O N   S T R U C T U R E */
 
index 252587d..78dd898 100644 (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$ */
 /*     IDENTIFIER  FIDDLING & SYMBOL TABLE HANDLING    */
 
index 21a3d7c..df86c5d 100644 (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$ */
 /* PREPROCESSOR: INITIALIZATION ROUTINES */
 
index 30ea84f..f208d00 100644 (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$ */
 
 #include "inputtype.h"
index aa22fff..0b2bdf8 100644 (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$ */
 
 #include <inp_pkg.spec>
index d4a8c65..6c90379 100644 (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 IMPORT extern
 #define EXPORT
index 87a4a71..655ade2 100644 (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$ */
 /* CODE FOR THE INITIALISATION OF GLOBAL VARIABLES */
 
index 391fa87..fff4442 100644 (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$ */
 /*             L A B E L   H A N D L I N G             */
 
index 27a1e76..ec4a973 100644 (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$ */
 /*             L A B E L   D E F I N I T I O N                         */
 
index f4ee616..ac3907d 100644 (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$ */
 /*  LEVEL DEFINITIONS */
 
index 02d4098..b9dc936 100644 (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$ */
 /* MAIN PROGRAM */
 
@@ -169,6 +173,7 @@ compile(argc, argv)
        if (!InsertFile(source, (char **) 0, &result)) /* read the source file  */
                fatal("%s: no source file %s\n", prog_name, 
                        source ? source : "stdin");
+       File_Inserted = 1;
        init();
        FileName = source;
        LineNumber = 0;
index ea133d5..c811685 100644 (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"
        is specified in a list.
 */
index f5e3c40..49b856b 100644 (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$ */
 /* MESSAGE ADMINISTRATION */
 
index 66cf9eb..5c6515b 100644 (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$ */
 /*     U S E R   O P T I O N - H A N D L I N G         */
 
index f0e5757..3f47675 100644 (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$ */
 /* PROGRAM PARSER */
 
index d4f0dc1..f7cdd47 100644 (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$ */
 /* PREPROCESSOR: MACRO-TEXT REPLACEMENT ROUTINES */
 
index f8ec10a..98f96e4 100644 (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$ */
 /* PREPROCESSOR: SCANNER FOR THE ACTUAL PARAMETERS OF MACROS   */
 
index f3685d1..f9d8bb7 100644 (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$ */
 /* VARIOUS TARGET MACHINE SIZE DESCRIPTORS */
 
index 64b8e13..cac3553 100644 (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$ */
 /* PREPROCESSOR: INPUT SKIP FUNCTIONS */
 
index 33896b9..f086845 100644 (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$ */
 /* OCCURANCES OF SPECIAL IDENTIFIERS */
 
index bdb8020..9c1e927 100644 (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$ */
 /*     S T A C K / U N S T A C K  R O U T I N E S      */
 
index 8a210b0..ef244dd 100644 (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$ */
 /*     STATEMENT SYNTAX PARSER */
 
index 23ba9d9..ca20cfd 100644 (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$ */
 /* library routine for copying structs */
 
index 37471cb..fc88181 100644 (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$ */
 /*     ADMINISTRATION OF STRUCT AND UNION DECLARATIONS */
 
index b3f8530..9b58fbf 100644 (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$ */
 /*     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    */
 
index b1e23ca..1881d08 100644 (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$ */
 /*     @cc tab.c -o $INSTALLDIR/tab@
        tab - table generator 
index d66ff72..f2699ae 100644 (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$ */
 /* TOKEN NAME DEFINITIONS */
 
index 7e5ea38..bd883f1 100644 (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$ */
 /* TOKENNAME DEFINITION */
 
index 5461d19..5d12d3f 100644 (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$ */
 /*     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);
                break;
        case ARRAY:
-               if (tp->tp_size < 0)    {
+               if (count >= 0 && tp->tp_size < 0)      {
                        error("cannot construct array of unknown type");
                        count = (arith)-1;
                }