Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Use inline function rather that macro BM
details: https://anonhg.NetBSD.org/src/rev/8de69f2b06fb
branches: trunk
changeset: 373776:8de69f2b06fb
user: sjg <sjg%NetBSD.org@localhost>
date: Tue Feb 28 06:04:28 2023 +0000
description:
Use inline function rather that macro BM
diffstat:
usr.bin/make/meta.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 311b2239fd29 -r 8de69f2b06fb usr.bin/make/meta.c
--- a/usr.bin/make/meta.c Mon Feb 27 23:07:53 2023 +0000
+++ b/usr.bin/make/meta.c Tue Feb 28 06:04:28 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meta.c,v 1.203 2023/02/25 22:52:21 sjg Exp $ */
+/* $NetBSD: meta.c,v 1.204 2023/02/28 06:04:28 sjg Exp $ */
/*
* Implement 'meta' mode.
@@ -99,8 +99,6 @@
# define strsep(s, d) stresep((s), (d), '\0')
#endif
-#define BM(job) (job != NULL) ? &job->bm : &Mybm
-
/*
* Filemon is a kernel module which snoops certain syscalls.
*
@@ -636,6 +634,13 @@
metaCmpFilter = Var_Exists(SCOPE_GLOBAL, MAKE_META_CMP_FILTER);
}
+MAKE_INLINE BuildMon *
+BM(Job *job)
+{
+
+ return ((job != NULL) ? &job->bm : &Mybm);
+}
+
/*
* In each case below we allow for job==NULL
*/
Home |
Main Index |
Thread Index |
Old Index