aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-12-12 21:18:40 -0600
committerRob Landley <rob@landley.net>2015-12-12 21:18:40 -0600
commitfc7543b7f63c159d966ca6b71caf17f877eae985 (patch)
tree4077095795767b79c17c7d0b2c8b5552a241d5bc /toys.h
parent047bcb8e7d37847b96dbf621ea22ff00e9541d32 (diff)
downloadtoybox-fc7543b7f63c159d966ca6b71caf17f877eae985.tar.gz
Make "ps -o TIME+ -k TIME+" work. Factor out -o field names, field lengths,
and slot numers into a structure. (Keeping multiple arrays in sync may have been efficient but it was ugly.) Fix duplicate command name copying that corrupted the name of kernel threads. Tighten up slot[] docs.
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys.h b/toys.h
index 688d5585..6aa7d479 100644
--- a/toys.h
+++ b/toys.h
@@ -142,5 +142,5 @@ extern char toybuf[4096], libbuf[4096];
extern char **environ;
#define GLOBALS(...)
-
#define ARRAY_LEN(array) (sizeof(array)/sizeof(*array))
+#define TAGGED_ARRAY(X, ...) {__VA_ARGS__}