protect against multiple inclusions, commented text after #endif

This commit is contained in:
ceriel 1990-10-25 11:18:44 +00:00
parent da36c2b13f
commit 16e89fea1f
7 changed files with 30 additions and 4 deletions

View file

@ -3,6 +3,10 @@
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* 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".
*/ */
#ifndef __ARCH_H_INCLUDED
#define __ARCH_H_INCLUDED
#define ARMAG 0177545 #define ARMAG 0177545
#define AALMAG 0177454 #define AALMAG 0177454
@ -17,3 +21,5 @@ struct ar_hdr {
#define AR_TOTAL 26 #define AR_TOTAL 26
#define AR_SIZE 22 #define AR_SIZE 22
#endif /* __ARCH_H_INCLUDED */

View file

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

View file

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

View file

@ -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 */ /* Modula-2 runtime errors */
#define M2_TOOLARGE 64 /* stack of process too large */ #define M2_TOOLARGE 64 /* stack of process too large */

View file

@ -3,12 +3,15 @@
* 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".
*/ */
/* $Header$ */ /* $Header$ */
#ifndef __OUT_H_INCLUDED
#define __OUT_H_INCLUDED
/* /*
* output format for ACK assemblers * output format for ACK assemblers
*/ */
#ifndef ushort #ifndef ushort
#define ushort unsigned short #define ushort unsigned short
#endif ushort #endif /* ushort */
struct outhead { struct outhead {
ushort oh_magic; /* magic number */ ushort oh_magic; /* magic number */
@ -119,3 +122,5 @@ struct outname {
#define OFF_RELO(x) (OFF_EMIT(x) + (x).oh_nemit) #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_NAME(x) (OFF_RELO(x) + ((long)(x).oh_nrelo * SZ_RELO))
#define OFF_CHAR(x) (OFF_NAME(x) + ((long)(x).oh_nname * SZ_NAME)) #define OFF_CHAR(x) (OFF_NAME(x) + ((long)(x).oh_nname * SZ_NAME))
#endif /* __OUT_H_INCLUDED */

View file

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

View file

@ -1,4 +1,8 @@
/* $Header$ */ /* $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 */ /* debugger symbol table types, as in DBX */