diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-14 14:35:40 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-14 14:35:40 +0200 |
commit | e425cb943457ace770538aaf3be421a40a26f99a (patch) | |
tree | d625452a69931286f8921bfe44586ede1684ab02 /tools.h | |
parent | 1e72e33a9739544b64c1d52980ef5f8e43e7f8c1 (diff) | |
download | vdr-e425cb943457ace770538aaf3be421a40a26f99a.tar.gz vdr-e425cb943457ace770538aaf3be421a40a26f99a.tar.bz2 |
Changed size of all parse buffers to 10KB
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; } |