diff options
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -67,7 +67,7 @@ char *argv0; | |||
| 67 | /* macros */ | 67 | /* macros */ |
| 68 | #define MIN(a, b) ((a) < (b) ? (a) : (b)) | 68 | #define MIN(a, b) ((a) < (b) ? (a) : (b)) |
| 69 | #define MAX(a, b) ((a) < (b) ? (b) : (a)) | 69 | #define MAX(a, b) ((a) < (b) ? (b) : (a)) |
| 70 | #define LEN(a) (sizeof(a) / sizeof(a[0])) | 70 | #define LEN(a) (sizeof(a) / sizeof(a)[0]) |
| 71 | #define DEFAULT(a, b) (a) = (a) ? (a) : (b) | 71 | #define DEFAULT(a, b) (a) = (a) ? (a) : (b) |
| 72 | #define BETWEEN(x, a, b) ((a) <= (x) && (x) <= (b)) | 72 | #define BETWEEN(x, a, b) ((a) <= (x) && (x) <= (b)) |
| 73 | #define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x) | 73 | #define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x) |
