2 * globally useful cruft goes here
13 # define __attribute__(x)
16 #define prefixcmp(a, b) strncmp(a, b, strlen(b))
17 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
18 #define ISSPACE(c) (c == ' ' || c == '\t')
21 * finds the next word in a comma-separated list.
22 * if there are multiple commas between each word,
23 * it will return a pointer to the second one
25 static inline char *next_word(char *str
)
27 while (*str
&& *str
!= ',' && !ISSPACE(*str
))