From fc7543b7f63c159d966ca6b71caf17f877eae985 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 12 Dec 2015 21:18:40 -0600 Subject: 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. --- toys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys.h') 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__} -- cgit v1.2.3