Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys instead of just going on as normal if __RENAME() is ...



details:   https://anonhg.NetBSD.org/src/rev/503936a180ab
branches:  trunk
changeset: 481633:503936a180ab
user:      cgd <cgd%NetBSD.org@localhost>
date:      Thu Feb 03 02:20:13 2000 +0000

description:
instead of just going on as normal if __RENAME() is used in kernel
(_KERNEL) or standalone (_STANDALONE) files, replace it with some
text that'll cause an error.  __RENAME() should never be used in
the kernel (there's no need, at least, with the current way of doing
things), and is downright annoying in standalone code.  (In a standalone
build environment, there may be no sane way to do symbol renaming,
which means that even just faking it and defining it to emptyness
would cause problems if it were actually needed.)

diffstat:

 sys/sys/cdefs.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r a11261a9f5ea -r 503936a180ab sys/sys/cdefs.h
--- a/sys/sys/cdefs.h   Thu Feb 03 02:03:12 2000 +0000
+++ b/sys/sys/cdefs.h   Thu Feb 03 02:20:13 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cdefs.h,v 1.30 1999/12/13 08:25:16 itohy Exp $ */
+/*     $NetBSD: cdefs.h,v 1.31 2000/02/03 02:20:13 cgd Exp $   */
 
 /*
  * Copyright (c) 1991, 1993
@@ -162,6 +162,7 @@
 #endif /* NO_KERNEL_RCSIDS */
 #endif /* _KERNEL */
 
+#if !defined(_STANDALONE) && !defined(_KERNEL)
 #ifdef __GNUC__
 #define        __RENAME(x)     ___RENAME(x)
 #else
@@ -171,5 +172,8 @@
  #error "No function renaming possible"
 #endif /* __lint__ */
 #endif /* __GNUC__ */
+#else /* _STANDALONE || _KERNEL */
+#define        __RENAME(x)     no renaming in kernel or standalone environment
+#endif
 
 #endif /* !_SYS_CDEFS_H_ */



Home | Main Index | Thread Index | Old Index