Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/hbuf.c @ 197:c289e3c39c48
[/trunk] Changeset 209 by mikael
* screen.c: display prefixes "*<*" or "*>*" when both info and in/out prefixes
are requested.
* hbuf.c: set HBB_PREFIX_INFO prefix when a line is too long to fit in an
hbuf block
* histolog.c: display a message when reading a big history file (because it
can hang the ui for a while)
author | mikael |
---|---|
date | Sat, 07 May 2005 07:33:10 +0000 |
parents | 4f3975f1b852 |
children | da50f08ea058 |
comparison
equal
deleted
inserted
replaced
196:58eb8ad9ef74 | 197:c289e3c39c48 |
---|---|
76 } | 76 } |
77 | 77 |
78 if (strlen(text) >= HBB_BLOCKSIZE) { | 78 if (strlen(text) >= HBB_BLOCKSIZE) { |
79 // Too long | 79 // Too long |
80 text = "[ERR:LINE_TOO_LONG]"; | 80 text = "[ERR:LINE_TOO_LONG]"; |
81 hbuf_block_elt->prefix.flags |= HBB_PREFIX_INFO; | |
81 } | 82 } |
82 if (hbuf_block_elt->ptr + strlen(text) >= hbuf_block_elt->ptr_end_alloc) { | 83 if (hbuf_block_elt->ptr + strlen(text) >= hbuf_block_elt->ptr_end_alloc) { |
83 // Too long for the current allocated bloc, we need another one | 84 // Too long for the current allocated bloc, we need another one |
84 do { | 85 do { |
85 hbuf_block_elt->ptr = g_new0(char, HBB_BLOCKSIZE); | 86 hbuf_block_elt->ptr = g_new0(char, HBB_BLOCKSIZE); |