Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make(1): allow multiple RCS IDs in all-in-one mode



details:   https://anonhg.NetBSD.org/src/rev/37a3d2f6b6ec
branches:  trunk
changeset: 978638:37a3d2f6b6ec
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Nov 28 09:45:01 2020 +0000

description:
make(1): allow multiple RCS IDs in all-in-one mode

diffstat:

 usr.bin/make/make.h |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r abb222a917fa -r 37a3d2f6b6ec usr.bin/make/make.h
--- a/usr.bin/make/make.h       Sat Nov 28 08:41:53 2020 +0000
+++ b/usr.bin/make/make.h       Sat Nov 28 09:45:01 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: make.h,v 1.219 2020/11/24 20:17:17 rillig Exp $        */
+/*     $NetBSD: make.h,v 1.220 2020/11/28 09:45:01 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -836,6 +836,14 @@
 #  ifndef lint
 #    define MAKE_RCSID(id) __RCSID(id)
 #  endif
+#elif defined(MAKE_ALL_IN_ONE)
+#  if defined(__COUNTER__)
+#    define MAKE_RCSID_CONCAT(x, y) CONCAT(x, y)
+#    define MAKE_RCSID(id) static volatile char \
+       MAKE_RCSID_CONCAT(rcsid_, __COUNTER__)[] = id
+#  else
+#    define MAKE_RCSID(id) extern void do_not_define_rcsid(void)
+#  endif
 #else
 #  define MAKE_RCSID(id) static volatile char rcsid[] = id
 #endif



Home | Main Index | Thread Index | Old Index