Remove memory pool

FossilOrigin-Name: 0097baa3a78b36f6358e9877ad0c14ed4225486be33b821a408adf2e0213e0c0
This commit is contained in:
Jonathan Schleifer 2025-03-08 01:09:36 +00:00
parent 7ab817d420
commit f904d80214
6 changed files with 16 additions and 189 deletions

View file

@ -32,10 +32,11 @@ static void
conline(OFString *sf, bool highlight) // add a line to the console buffer
{
cline cl;
cl.cref = conlines.length() > 100
? conlines.pop().cref
: newstringbuf(""); // constrain the buffer size
cl.outtime = lastmillis; // for how long to keep line on screen
// constrain the buffer size
cl.cref = conlines.length() > 100 ? conlines.pop().cref
: (char *)calloc(_MAXDEFSTR, 1);
// for how long to keep line on screen
cl.outtime = lastmillis;
conlines.insert(0, cl);
if (highlight) // show line in a different colour, for chat etc.
{