term: update to use new object system
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
#include "print.h"
|
|
||||||
|
|
||||||
#include <blue/ds/string.h>
|
#include <blue/ds/string.h>
|
||||||
#include <blue/term/print.h>
|
#include <blue/term/print.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@@ -20,7 +18,7 @@ static void indent(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int extract_line(
|
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)
|
struct b_paragraph_format *format)
|
||||||
{
|
{
|
||||||
const char *start = *sp;
|
const char *start = *sp;
|
||||||
@@ -159,7 +157,7 @@ static b_status print_paragraph_tty(
|
|||||||
need_indent = true;
|
need_indent = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
b_string_release(line);
|
b_string_unref(line);
|
||||||
|
|
||||||
return B_SUCCESS;
|
return B_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user