mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 22:41:12 +01:00
Fix --disable-balloc.
libratbox r26769
This commit is contained in:
parent
97f44d343a
commit
74178a388e
2 changed files with 8 additions and 7 deletions
|
@ -492,11 +492,14 @@ rb_bh_usage(rb_bh *bh, size_t *bused, size_t *bfree, size_t *bmemusage, const ch
|
||||||
if(desc != NULL)
|
if(desc != NULL)
|
||||||
*desc = bh->desc;
|
*desc = bh->desc;
|
||||||
#else
|
#else
|
||||||
static char *noballoc = "no blockheap";
|
if(bused != NULL)
|
||||||
*bused = 0;
|
*bused = 0;
|
||||||
|
if(bfree != NULL)
|
||||||
*bfree = 0;
|
*bfree = 0;
|
||||||
|
if(bmemusage != NULL)
|
||||||
*bmemusage = 0;
|
*bmemusage = 0;
|
||||||
*desc = noballoc;
|
if(desc != NULL)
|
||||||
|
*desc = "no blockheap";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,7 @@
|
||||||
#include <ratbox_lib.h>
|
#include <ratbox_lib.h>
|
||||||
#include <commio-int.h>
|
#include <commio-int.h>
|
||||||
|
|
||||||
#ifndef NOBALLOC
|
|
||||||
static rb_bh *rb_linebuf_heap;
|
static rb_bh *rb_linebuf_heap;
|
||||||
#endif
|
|
||||||
|
|
||||||
static int bufline_count = 0;
|
static int bufline_count = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue