diff options
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; } |