Mercurial > hg > toybox
comparison toys.h @ 647:3258d9233753
Replace TOY_LIST_LEN with more generic ARRAY_LEN()
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 14 Aug 2012 01:42:06 -0500 |
parents | c8330ef95d13 |
children | 7e846e281e38 |
comparison
equal
deleted
inserted
replaced
646:fb546cc2a022 | 647:3258d9233753 |
---|---|
106 // One big temporary buffer, for use by commands (not library functions). | 106 // One big temporary buffer, for use by commands (not library functions). |
107 | 107 |
108 extern char toybuf[4096]; | 108 extern char toybuf[4096]; |
109 | 109 |
110 #define DEFINE_GLOBALS(...) | 110 #define DEFINE_GLOBALS(...) |
111 | |
112 #define ARRAY_LEN(array) (sizeof(array)/sizeof(*array)) |