summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-14 14:35:40 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-14 14:35:40 +0200
commite425cb943457ace770538aaf3be421a40a26f99a (patch)
treed625452a69931286f8921bfe44586ede1684ab02 /tools.h
parent1e72e33a9739544b64c1d52980ef5f8e43e7f8c1 (diff)
downloadvdr-e425cb943457ace770538aaf3be421a40a26f99a.tar.gz
vdr-e425cb943457ace770538aaf3be421a40a26f99a.tar.bz2
Changed size of all parse buffers to 10KB
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; }