Module Name:    src
Committed By:   sjg
Date:           Tue Feb 28 06:04:28 UTC 2023

Modified Files:
        src/usr.bin/make: meta.c

Log Message:
Use inline function rather that macro BM


To generate a diff of this commit:
cvs rdiff -u -r1.203 -r1.204 src/usr.bin/make/meta.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/meta.c
diff -u src/usr.bin/make/meta.c:1.203 src/usr.bin/make/meta.c:1.204
--- src/usr.bin/make/meta.c:1.203	Sat Feb 25 22:52:21 2023
+++ src/usr.bin/make/meta.c	Tue Feb 28 06:04:28 2023
@@ -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 @@ extern char    **environ;
 # 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 @@ meta_mode_init(const char *make_mode)
     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
  */

Reply via email to