Argh, fix the ANSI CPP version of the a.out WARN_REFERENCES().

This commit is contained in:
thorpej 1998-12-02 21:16:46 +00:00
parent d90b3d3438
commit da572a137f
7 changed files with 42 additions and 35 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.10 1998/12/02 00:58:42 thorpej Exp $ */ /* $NetBSD: asm.h,v 1.11 1998/12/02 21:16:46 thorpej Exp $ */
/* /*
* Copyright (c) 1990 The Regents of the University of California. * Copyright (c) 1990 The Regents of the University of California.
@ -85,14 +85,15 @@
#define RCSID(x) .text; .asciz x #define RCSID(x) .text; .asciz x
#ifdef __STDC__ #ifdef __STDC__
#define __STRING(x) #x
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs \" ## msg ## \",30,0,0,0 ; \ .stabs msg ## ,30,0,0,0 ; \
.stabs \"_ ## sym ## \",1,0,0,0 .stabs __STRING(_ ## sym) ## ,1,0,0,0
#else #else
#define WARN_REFERENCES_STRING(x) "x" #define __STRING(x) "x"
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs msg,30,0,0,0 ; \ .stabs msg,30,0,0,0 ; \
.stabs WARN_REFERENCES_STRING(_/**/sym),1,0,0,0 .stabs __STRING(_/**/sym),1,0,0,0
#endif /* __STDC__ */ #endif /* __STDC__ */
#endif /* !_ARM_ASM_H_ */ #endif /* !_ARM_ASM_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.11 1998/12/02 00:58:43 thorpej Exp $ */ /* $NetBSD: asm.h,v 1.12 1998/12/02 21:16:46 thorpej Exp $ */
/*- /*-
* Copyright (c) 1990 The Regents of the University of California. * Copyright (c) 1990 The Regents of the University of California.
@ -94,14 +94,15 @@
#define RCSID(x) .text; .asciz x #define RCSID(x) .text; .asciz x
#ifdef __STDC__ #ifdef __STDC__
#define __STRING(x) #x
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs \" ## msg ## \",30,0,0,0 ; \ .stabs msg ## ,30,0,0,0 ; \
.stabs \"_ ## sym ## \",1,0,0,0 .stabs __STRING(_ ## sym) ## ,1,0,0,0
#else #else
#define WARN_REFERENCES_STRING(x) "x" #define __STRING(x) "x"
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs msg,30,0,0,0 ; \ .stabs msg,30,0,0,0 ; \
.stabs WARN_REFERENCES_STRING(_/**/sym),1,0,0,0 .stabs __STRING(_/**/sym),1,0,0,0
#endif /* __STDC__ */ #endif /* __STDC__ */
#endif /* !_I386_ASM_H_ */ #endif /* !_I386_ASM_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.16 1998/12/02 00:58:43 thorpej Exp $ */ /* $NetBSD: asm.h,v 1.17 1998/12/02 21:16:46 thorpej Exp $ */
/*- /*-
* Copyright (c) 1997 The NetBSD Foundation, Inc. * Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -181,14 +181,15 @@
#endif /* _KERNEL */ #endif /* _KERNEL */
#ifdef __STDC__ #ifdef __STDC__
#define __STRING(x) #x
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs \" ## msg ## \",30,0,0,0 ; \ .stabs msg ## ,30,0,0,0 ; \
.stabs \"_ ## sym ## \",1,0,0,0 .stabs __STRING(_ ## sym) ## ,1,0,0,0
#else #else
#define WARN_REFERENCES_STRING(x) "x" #define __STRING(x) "x"
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs msg,30,0,0,0 ; \ .stabs msg,30,0,0,0 ; \
.stabs WARN_REFERENCES_STRING(_/**/sym),1,0,0,0 .stabs __STRING(_/**/sym),1,0,0,0
#endif /* __STDC__ */ #endif /* __STDC__ */
#endif /* _ASM_H_ */ #endif /* _ASM_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.13 1998/12/02 00:58:43 thorpej Exp $ */ /* $NetBSD: asm.h,v 1.14 1998/12/02 21:16:46 thorpej Exp $ */
/* /*
* Mach Operating System * Mach Operating System
@ -216,14 +216,15 @@
#endif #endif
#ifdef __STDC__ #ifdef __STDC__
#define __STRING(x) #x
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs \" ## msg ## \",30,0,0,0 ; \ .stabs msg ## ,30,0,0,0 ; \
.stabs \"_ ## sym ## \",1,0,0,0 .stabs __STRING(_ ## sym) ## ,1,0,0,0
#else #else
#define WARN_REFERENCES_STRING(x) "x" #define __STRING(x) "x"
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs msg,30,0,0,0 ; \ .stabs msg,30,0,0,0 ; \
.stabs WARN_REFERENCES_STRING(_/**/sym),1,0,0,0 .stabs __STRING(_/**/sym),1,0,0,0
#endif /* __STDC__ */ #endif /* __STDC__ */
#endif #endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.8 1998/12/02 00:58:43 thorpej Exp $ */ /* $NetBSD: asm.h,v 1.9 1998/12/02 21:16:46 thorpej Exp $ */
/* /*
* Copyright (c) 1994 Allen Briggs * Copyright (c) 1994 Allen Briggs
@ -106,14 +106,15 @@
#define RCSID(name) .asciz name #define RCSID(name) .asciz name
#ifdef __STDC__ #ifdef __STDC__
#define __STRING(x) #x
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs \" ## msg ## \",30,0,0,0 ; \ .stabs msg ## ,30,0,0,0 ; \
.stabs \"_ ## sym ## \",1,0,0,0 .stabs __STRING(_ ## sym) ## ,1,0,0,0
#else #else
#define WARN_REFERENCES_STRING(x) "x" #define __STRING(x) "x"
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs msg,30,0,0,0 ; \ .stabs msg,30,0,0,0 ; \
.stabs WARN_REFERENCES_STRING(_/**/sym),1,0,0,0 .stabs __STRING(_/**/sym),1,0,0,0
#endif /* __STDC__ */ #endif /* __STDC__ */
#endif /* _ASM_H_ */ #endif /* _ASM_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.6 1998/12/02 00:58:43 thorpej Exp $ */ /* $NetBSD: asm.h,v 1.7 1998/12/02 21:16:46 thorpej Exp $ */
/* /*
* Copyright (c) 1994 Allen Briggs * Copyright (c) 1994 Allen Briggs
@ -123,14 +123,15 @@
#endif /* __STDC__ */ #endif /* __STDC__ */
#else #else
#ifdef __STDC__ #ifdef __STDC__
#define __STRING(x) #x
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs \" ## msg ## \",30,0,0,0 ; \ .stabs msg ## ,30,0,0,0 ; \
.stabs \"_ ## sym ## \",1,0,0,0 .stabs __STRING(_ ## sym) ## ,1,0,0,0
#else #else
#define WARN_REFERENCES_STRING(x) "x" #define __STRING(x) "x"
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs msg,30,0,0,0 ; \ .stabs msg,30,0,0,0 ; \
.stabs WARN_REFERENCES_STRING(_/**/sym),1,0,0,0 .stabs __STRING(_/**/sym),1,0,0,0
#endif /* __STDC__ */ #endif /* __STDC__ */
#endif /* __ELF__ */ #endif /* __ELF__ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: asm.h,v 1.7 1998/12/02 00:58:43 thorpej Exp $ */ /* $NetBSD: asm.h,v 1.8 1998/12/02 21:16:46 thorpej Exp $ */
/* /*
* Copyright (c) 1982, 1993 * Copyright (c) 1982, 1993
* The Regents of the University of California. All rights reserved. * The Regents of the University of California. All rights reserved.
@ -82,14 +82,15 @@
#endif #endif
#ifdef __STDC__ #ifdef __STDC__
#define __STRING(x) #x
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs \" ## msg ## \",30,0,0,0 ; \ .stabs msg ## ,30,0,0,0 ; \
.stabs \"_ ## sym ## \",1,0,0,0 .stabs __STRING(_ ## sym) ## ,1,0,0,0
#else #else
#define WARN_REFERENCES_STRING(x) "x" #define __STRING(x) "x"
#define WARN_REFERENCES(sym,msg) \ #define WARN_REFERENCES(sym,msg) \
.stabs msg,30,0,0,0 ; \ .stabs msg,30,0,0,0 ; \
.stabs WARN_REFERENCES_STRING(_/**/sym),1,0,0,0 .stabs __STRING(_/**/sym),1,0,0,0
#endif /* __STDC__ */ #endif /* __STDC__ */
#endif #endif