Browse Source

protect against multiple inclusions, commented text after #endif

ceriel 34 years ago
parent
commit
8cd836b421
7 changed files with 30 additions and 4 deletions
  1. 6 0
      h/arch.h
  2. 1 1
      h/cg_pattern.h
  3. 1 1
      h/cgg_cg.h
  4. 6 0
      h/m2_traps.h
  5. 6 1
      h/out.h
  6. 6 1
      h/ranlib.h
  7. 4 0
      h/stb.h

+ 6 - 0
h/arch.h

@@ -3,6 +3,10 @@
  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  * See the copyright notice in the ACK home directory, in the file "Copyright".
  */
+
+#ifndef __ARCH_H_INCLUDED
+#define __ARCH_H_INCLUDED
+
 #define	ARMAG	0177545
 #define AALMAG	0177454
 
@@ -17,3 +21,5 @@ struct	ar_hdr {
 
 #define AR_TOTAL	26
 #define AR_SIZE		22
+
+#endif /* __ARCH_H_INCLUDED */

+ 1 - 1
h/cg_pattern.h

@@ -98,7 +98,7 @@ typedef struct {        /* splitting coercions */
 	int c2_repl[MAXSPLIT];  /* replacement instances */
 	int c2_codep;           /* code index */
 } c2_t,*c2_p;
-#endif MAXSPLIT
+#endif /* MAXSPLIT */
 
 typedef struct {        /* one to one coercions */
 	int c3_texpno;          /* token expression number */

+ 1 - 1
h/cgg_cg.h

@@ -150,7 +150,7 @@ typedef struct {        /* splitting coercions */
 	short c2_repl[MAXSPLIT];/* replacement instances */
 	short c2_codep;         /* code index */
 } c2_t,*c2_p;
-#endif MAXSPLIT
+#endif /* MAXSPLIT */
 
 typedef struct {        /* one to one coercions */
 	short c3_texpno;        /* token expression number */

+ 6 - 0
h/m2_traps.h

@@ -1,3 +1,9 @@
+/* $Header$ */
+/*
+ * (c) copyright 1990 by the Vrije Universiteit, Amsterdam, The Netherlands.
+ * See the copyright notice in the ACK home directory, in the file "Copyright".
+ */
+
 /* Modula-2 runtime errors */
 
 #define M2_TOOLARGE	64	/* stack of process too large */

+ 6 - 1
h/out.h

@@ -3,12 +3,15 @@
  * See the copyright notice in the ACK home directory, in the file "Copyright".
  */
 /* $Header$ */
+
+#ifndef __OUT_H_INCLUDED
+#define __OUT_H_INCLUDED
 /*
  * output format for ACK assemblers
  */
 #ifndef ushort
 #define ushort	unsigned short
-#endif ushort
+#endif /* ushort */
 
 struct outhead {
 	ushort 	oh_magic;	/* magic number */
@@ -119,3 +122,5 @@ struct outname {
 #define OFF_RELO(x)	(OFF_EMIT(x) + (x).oh_nemit)
 #define OFF_NAME(x)	(OFF_RELO(x) + ((long)(x).oh_nrelo * SZ_RELO))
 #define OFF_CHAR(x)	(OFF_NAME(x) + ((long)(x).oh_nname * SZ_NAME))
+
+#endif /* __OUT_H_INCLUDED */

+ 6 - 1
h/ranlib.h

@@ -4,9 +4,12 @@
  */
 /* $Header$ */
 
+#ifndef __RANLIB_H_INCLUDED
+#define __RANLIB_H_INCLUDED
+
 #ifndef SYMDEF
 #	define SYMDEF	"__.SYMDEF"
-#endif SYMDEF
+#endif /* SYMDEF */
 
 /*
  * Structure of the SYMDEF table of contents for an archive.
@@ -27,3 +30,5 @@ struct ranlib {
 
 #define SZ_RAN	8
 #define SF_RAN	"44"
+
+#endif /* __RANLIB_H_INCLUDED */

+ 4 - 0
h/stb.h

@@ -1,4 +1,8 @@
 /* $Header$ */
+/*
+ * (c) copyright 1990 by the Vrije Universiteit, Amsterdam, The Netherlands.
+ * See the copyright notice in the ACK home directory, in the file "Copyright".
+ */
 
 /* debugger symbol table types, as in DBX */