aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-12-11 19:50:36 -0600
committerRob Landley <rob@landley.net>2020-12-11 19:50:36 -0600
commit4e47b8e583903752c08a29873ffcb868173c70d8 (patch)
tree08311d13e1942b49cd64671ad83e63b9336b6033 /lib
parent2fa16e73fba0e908309aadad4d4668b86a1134e5 (diff)
downloadtoybox-4e47b8e583903752c08a29873ffcb868173c70d8.tar.gz
The "fall back to C.UTF-8" check was backwards, and make TOYFLAG_LINEBUF
configurable.
Diffstat (limited to 'lib')
-rw-r--r--lib/toyflags.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/toyflags.h b/lib/toyflags.h
index b158ba88..c8830874 100644
--- a/lib/toyflags.h
+++ b/lib/toyflags.h
@@ -32,6 +32,9 @@
// Suppress default --help processing
#define TOYFLAG_NOHELP (1<<10)
+// Line buffered stdout
+#define TOYFLAG_LINEBUF (1<<11)
+
// Error code to return if argument parsing fails (default 1)
#define TOYFLAG_ARGFAIL(x) (x<<24)