aboutsummaryrefslogtreecommitdiff
path: root/metachar.h
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2022-02-05 20:03:50 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2022-02-05 20:03:50 +0000
commitcdde9e894dee2074ef0dd12ddc171e5d3f1513e3 (patch)
treeffa1b3cea06486f9780c271c39db0bc2e7b006e9 /metachar.h
parent2935fe8237c83c1dcb113dd5335733263e68e6fd (diff)
downloadsrc-cdde9e894dee2074ef0dd12ddc171e5d3f1513e3.tar.gz
src-cdde9e894dee2074ef0dd12ddc171e5d3f1513e3.zip
Diffstat (limited to 'metachar.h')
-rw-r--r--metachar.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/metachar.h b/metachar.h
index d6fd2299d43e..11711e876017 100644
--- a/metachar.h
+++ b/metachar.h
@@ -1,4 +1,4 @@
-/* $NetBSD: metachar.h,v 1.17 2021/06/21 18:54:41 rillig Exp $ */
+/* $NetBSD: metachar.h,v 1.20 2022/01/08 11:04:13 rillig Exp $ */
/*
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -35,18 +35,18 @@
extern const unsigned char _metachar[];
-MAKE_INLINE bool
-is_shell_metachar(char c)
+MAKE_INLINE bool MAKE_ATTR_USE
+ch_is_shell_meta(char c)
{
return _metachar[c & 0x7f] != 0;
}
-MAKE_INLINE bool
+MAKE_INLINE bool MAKE_ATTR_USE
needshell(const char *cmd)
{
- while (!is_shell_metachar(*cmd) && *cmd != ':' && *cmd != '=')
+ while (!ch_is_shell_meta(*cmd) && *cmd != ':' && *cmd != '=')
cmd++;
return *cmd != '\0';
}
-#endif /* MAKE_METACHAR_H */
+#endif