Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/hbuf.h @ 186:888ad9f15346
[/trunk] Changeset 198 by mikael
* Use lowercase jid for history log files
* Workaround a problem when loading a history file big a (too) big message
* Increase HBB_BLOCKSIZE to 4096
author | mikael |
---|---|
date | Thu, 05 May 2005 20:50:50 +0000 |
parents | b5aa2b9c425a |
children | 4f3975f1b852 |
comparison
equal
deleted
inserted
replaced
185:e8e447a07641 | 186:888ad9f15346 |
---|---|
4 #include <time.h> | 4 #include <time.h> |
5 #include <glib.h> | 5 #include <glib.h> |
6 | 6 |
7 // With current implementation a message must fit in a hbuf block, | 7 // With current implementation a message must fit in a hbuf block, |
8 // so we shouldn't choose a too small size. | 8 // so we shouldn't choose a too small size. |
9 #define HBB_BLOCKSIZE 2048 // > 20 please | 9 #define HBB_BLOCKSIZE 4096 // > 20 please |
10 | 10 |
11 // Flags: | 11 // Flags: |
12 // - ALLOC: the ptr data has been allocated, it can be freed | 12 // - ALLOC: the ptr data has been allocated, it can be freed |
13 // - PERSISTENT: this is a new history line | 13 // - PERSISTENT: this is a new history line |
14 #define HBB_FLAG_ALLOC 1 | 14 #define HBB_FLAG_ALLOC 1 |