para.h: Add documentation of PARA_MAX, PARA_MIN, PARA_ABS
[paraslash.git] / para.h
diff --git a/para.h b/para.h
index 10931aaf08461cef768d95720a833e0f86f8139e..f22157d8ae6063969ffabfd29e3e0ecb21cf0af1 100644 (file)
--- a/para.h
+++ b/para.h
 #include <string.h>
 #include "gcc-compat.h"
 
-/* some internal constants */
-#define STRINGSIZE 4096
+/** used in various contexts */
 #define MAXLINE 255
 
-
+/** compute the minimum of \a a and \a b */
 #define PARA_MIN(a,b) ((a) < (b) ? (a) : (b))
+/** compute the maximum of \a a and \a b */
 #define PARA_MAX(a,b) ((a) > (b) ? (a) : (b))
+/** compute the absolute value of \a a */
 #define PARA_ABS(a) ((a) > 0 ? (a) : -(a))
 
 /* Loglevels */
@@ -56,8 +57,8 @@
 #define CRIT 6
 #define EMERG 7
 
-
 #define COMPILE_TIME_LOGLEVEL 0
+
 #if DEBUG > COMPILE_TIME_LOGLEVEL
 #define PARA_DEBUG_LOG(f,...) para_log(DEBUG, "%s: " f, __FUNCTION__, __VA_ARGS__)
 #else