term: update to use new object system

This commit is contained in:
2025-10-19 21:01:55 +01:00
parent 6e979579ea
commit fd04a49d84

View File

@@ -1,5 +1,3 @@
#include "print.h"
#include <blue/ds/string.h>
#include <blue/term/print.h>
#include <ctype.h>
@@ -20,7 +18,7 @@ static void indent(
}
static unsigned int extract_line(
const char **sp, unsigned int line_length, struct b_string *out,
const char **sp, unsigned int line_length, b_string *out,
struct b_paragraph_format *format)
{
const char *start = *sp;
@@ -159,7 +157,7 @@ static b_status print_paragraph_tty(
need_indent = true;
}
b_string_release(line);
b_string_unref(line);
return B_SUCCESS;
}