diff options
author | Simon J. Gerraty <sjg@FreeBSD.org> | 2021-12-18 18:09:14 +0000 |
---|---|---|
committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2021-12-18 18:09:14 +0000 |
commit | 129043849f62f9cfa72f6fae68417d9995860f3f (patch) | |
tree | 176e86d2eced9a37d41d4661fd8f128a56d7befc /contrib/bmake/metachar.h | |
parent | 7ed5694dd9b9d91e6afd7442b04b602041650354 (diff) | |
parent | 2935fe8237c83c1dcb113dd5335733263e68e6fd (diff) | |
download | src-129043849f62f9cfa72f6fae68417d9995860f3f.tar.gz src-129043849f62f9cfa72f6fae68417d9995860f3f.zip |
Merge bmake-20211212
commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'
Diffstat (limited to 'contrib/bmake/metachar.h')
-rw-r--r-- | contrib/bmake/metachar.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/bmake/metachar.h b/contrib/bmake/metachar.h index 1fd1397cfe63..d6fd2299d43e 100644 --- a/contrib/bmake/metachar.h +++ b/contrib/bmake/metachar.h @@ -1,4 +1,4 @@ -/* $NetBSD: metachar.h,v 1.16 2021/04/03 11:08:40 rillig Exp $ */ +/* $NetBSD: metachar.h,v 1.17 2021/06/21 18:54:41 rillig Exp $ */ /* * Copyright (c) 2015 The NetBSD Foundation, Inc. @@ -33,9 +33,13 @@ #include "make.h" -extern unsigned char _metachar[]; +extern const unsigned char _metachar[]; -#define is_shell_metachar(c) (_metachar[(c) & 0x7f] != 0) +MAKE_INLINE bool +is_shell_metachar(char c) +{ + return _metachar[c & 0x7f] != 0; +} MAKE_INLINE bool needshell(const char *cmd) |