Improve printed output

Get rid of inconsistencies in the printed output (error printing,
colors, etc.).

Prepare for user configurable color.

Cleanup.
This commit is contained in:
Martin Lund 2022-02-12 22:47:38 +01:00
parent 5efd519d2e
commit b6eac3f001
8 changed files with 122 additions and 66 deletions

View file

@ -19,20 +19,11 @@
* 02110-1301, USA.
*/
#ifndef ERROR_H
#define ERROR_H
#pragma once
#define TIO_SUCCESS 0
#define TIO_ERROR 1
extern char error[2][1000];
#define error_printf(format, args...) \
snprintf (error[0], 1000, format, ## args);
#define error_printf_silent(format, args...) \
snprintf (error[1], 1000, format, ## args);
void error_exit(void);
#endif