Mercurial > hg > toybox
diff lib/lib.h @ 821:46919d9f14f7
Remove unused min/max macros.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 17 Mar 2013 17:57:28 -0500 |
parents | 90e98cdb1b7c |
children | 34ac05521d94 |
line wrap: on
line diff
--- a/lib/lib.h Sat Mar 16 10:54:38 2013 -0500 +++ b/lib/lib.h Sun Mar 17 17:57:28 2013 -0500 @@ -17,7 +17,8 @@ // llist.c // All these list types can be handled by the same code because first element -// is always next pointer, so next = (mytype *)&struct. +// is always next pointer, so next = (mytype *)&struct. (The payloads are +// named differently to catch using the wrong type early.) struct string_list { struct string_list *next; @@ -176,9 +177,5 @@ // du helper functions char* make_human_readable(unsigned long long size, unsigned long unit); -// useful tools -#define min(a,b) (a)<(b) ? (a) : (b) -#define max(a,b) (a)>(b) ? (a) : (b) - // cut helper functions unsigned long get_int_value(const char *numstr, unsigned lowrange, unsigned highrange);