commit | 0e9f7fac2a501f2baeedd11446e9fe102720c27d | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Thu Mar 01 14:05:30 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Thu Mar 01 14:05:30 2007 +0100 |
tree | 46d615125a15184b236f50cb801262aa05d0cd68 | |
parent | 320beefe2d0c5f05f24b4e0c1d13fcb2f1286a78 [diff] [blame] |
Improve friendliness of --cmdhelp If no match is found, print the closest. Quite handy when you can't quite remember the exact option name. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/parse.h b/parse.h index 214e56b..1a71864 100644 --- a/parse.h +++ b/parse.h
@@ -67,4 +67,11 @@ #define td_var(start, offset) ((void *) start + (offset)) +#ifndef min +#define min(a, b) ((a) < (b) ? (a) : (b)) +#endif +#ifndef max +#define max(a, b) ((a) > (b) ? (a) : (b)) +#endif + #endif