summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian A. Weber <chris@gna.ch>2020-06-22 17:21:48 +0000
committerChristian A. Weber <chris@gna.ch>2020-06-22 17:21:48 +0000
commit8f2111ae0b373fd7bda9184fed2ce08b0ab43a81 (patch)
tree747adff6855e2edcf88dc1e3e225c2cce41de415
parent277cd4a8bad85d78f2b0d187f840a6f8dbef30df (diff)
downloadbobi-8f2111ae0b373fd7bda9184fed2ce08b0ab43a81.tar.gz
bobi-8f2111ae0b373fd7bda9184fed2ce08b0ab43a81.tar.bz2
bobi-8f2111ae0b373fd7bda9184fed2ce08b0ab43a81.zip
add MIN() and MAX() macros
-rw-r--r--Bobi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Bobi.h b/Bobi.h
index 102573a..f3993f4 100644
--- a/Bobi.h
+++ b/Bobi.h
@@ -14,6 +14,9 @@
#include <stdio.h>
#include <string.h>
+#define MIN(a,b) ((a)<(b)?(a):(b))
+#define MAX(a,b) ((a)>(b)?(a):(b))
+
#define ClearMem(buf,len) memset(buf, 0, len)
@@ -225,7 +228,7 @@ void LoadConfigFile(char *);
/***** Misc.c: *****/
-void ShowMonoReq2(char *);
+void ShowMonoReq2(char *,...);
BOOL ShowRequest2(char *,char *);
void ShowFileError(char *);
BPTR OpenNewFileSafely(char *);