term: add an enhanced error reporting function

This commit is contained in:
2025-07-28 22:21:13 +01:00
parent 663df15289
commit 0ab1855105
2 changed files with 379 additions and 3 deletions

View File

@@ -12,6 +12,10 @@
struct b_tty;
struct b_error;
struct b_error_vendor;
enum b_error_report_flags;
typedef enum b_paragraph_format_flags {
B_PARAGRAPH_DONT_INDENT_FIRST_LINE = 0x01u,
B_PARAGRAPH_HYPHENATE = 0x02u,
@@ -39,7 +43,10 @@ BLUE_API b_status b_print_paragraph(
const char *str, struct b_tty *tty, b_paragraph_format *format);
BLUE_API int b_putc(char c);
BLUE_API int b_puts(const char* s);
BLUE_API int b_printf(const char* format, ...);
BLUE_API int b_puts(const char *s);
BLUE_API int b_printf(const char *format, ...);
#endif
BLUE_API void b_enhanced_error_reporter(
const struct b_error *, enum b_error_report_flags flags);
#endif