summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools.h b/tools.h
index 50ea74cc..6e945e18 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 1.32 2001/09/14 13:40:35 kls Exp $
+ * $Id: tools.h 1.33 2001/09/14 14:35:40 kls Exp $
*/
#ifndef __TOOLS_H
@@ -29,6 +29,11 @@ extern int SysLogLevel;
#define SECSINDAY 86400
+#define KILOBYTE(n) ((n) * 1024)
+#define MEGABYTE(n) ((n) * 1024 * 1024)
+
+#define MAXPARSEBUFFER KILOBYTE(10)
+
#define DELETENULL(p) (delete (p), p = NULL)
template<class T> inline T min(T a, T b) { return a <= b ? a : b; }