summaryrefslogtreecommitdiff
path: root/src/basic/string-util.h
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-11-03 17:53:15 +0100
committerDaniel Mack <github@zonque.org>2015-11-03 17:53:15 +0100
commit5604b971cf16bd936570d7496c01ce0bd8348632 (patch)
treecf4124bf2346ec37f07c07965ff2a5989f5f031e /src/basic/string-util.h
parent5703176d6e9680c32caac1de2d6bdb84cdc72c96 (diff)
parent119e9655dc36f18ed74f9a256d5c693b5aeb43ab (diff)
Merge pull request #1767 from poettering/journald-watchdog
restore journald watchdog
Diffstat (limited to 'src/basic/string-util.h')
-rw-r--r--src/basic/string-util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/basic/string-util.h b/src/basic/string-util.h
index 15244b8184..54f9d3058c 100644
--- a/src/basic/string-util.h
+++ b/src/basic/string-util.h
@@ -26,6 +26,18 @@
#include "macro.h"
+/* What is interpreted as whitespace? */
+#define WHITESPACE " \t\n\r"
+#define NEWLINE "\n\r"
+#define QUOTES "\"\'"
+#define COMMENTS "#;"
+#define GLOB_CHARS "*?["
+#define DIGITS "0123456789"
+#define LOWERCASE_LETTERS "abcdefghijklmnopqrstuvwxyz"
+#define UPPERCASE_LETTERS "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+#define LETTERS LOWERCASE_LETTERS UPPERCASE_LETTERS
+#define ALPHANUMERICAL LETTERS DIGITS
+
#define streq(a,b) (strcmp((a),(b)) == 0)
#define strneq(a, b, n) (strncmp((a), (b), (n)) == 0)
#define strcaseeq(a,b) (strcasecmp((a),(b)) == 0)