mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Clean up indentation
This commit is contained in:
parent
e54a13827b
commit
ce3101a380
4 changed files with 118 additions and 112 deletions
22
src/print.h
22
src/print.h
|
|
@ -35,7 +35,8 @@ extern char ansi_format[];
|
|||
|
||||
#define ansi_printf(format, args...) \
|
||||
{ \
|
||||
if (!option.mute) { \
|
||||
if (!option.mute) \
|
||||
{ \
|
||||
if (option.color < 0) \
|
||||
fprintf (stdout, "\r" format "\r\n", ## args); \
|
||||
else \
|
||||
|
|
@ -45,7 +46,8 @@ extern char ansi_format[];
|
|||
|
||||
#define ansi_error_printf(format, args...) \
|
||||
{ \
|
||||
if (!option.mute) { \
|
||||
if (!option.mute) \
|
||||
{ \
|
||||
if (option.color < 0) \
|
||||
fprintf (stderr, "\r" format "\r\n", ## args); \
|
||||
else \
|
||||
|
|
@ -56,7 +58,8 @@ extern char ansi_format[];
|
|||
|
||||
#define ansi_printf_raw(format, args...) \
|
||||
{ \
|
||||
if (!option.mute) { \
|
||||
if (!option.mute) \
|
||||
{ \
|
||||
if (option.color < 0) \
|
||||
fprintf (stdout, format, ## args); \
|
||||
else \
|
||||
|
|
@ -66,7 +69,8 @@ extern char ansi_format[];
|
|||
|
||||
#define tio_warning_printf(format, args...) \
|
||||
{ \
|
||||
if (!option.mute) { \
|
||||
if (!option.mute) \
|
||||
{ \
|
||||
if (print_tainted) \
|
||||
putchar('\n'); \
|
||||
if (option.color < 0) \
|
||||
|
|
@ -78,7 +82,8 @@ extern char ansi_format[];
|
|||
|
||||
#define tio_printf(format, args...) \
|
||||
{ \
|
||||
if (!option.mute) { \
|
||||
if (!option.mute) \
|
||||
{ \
|
||||
if (print_tainted) \
|
||||
putchar('\n'); \
|
||||
ansi_printf("[%s] " format, timestamp_current_time(), ## args); \
|
||||
|
|
@ -88,7 +93,8 @@ extern char ansi_format[];
|
|||
|
||||
#define tio_printf_raw(format, args...) \
|
||||
{ \
|
||||
if (!option.mute) { \
|
||||
if (!option.mute) \
|
||||
{ \
|
||||
if (print_tainted) \
|
||||
putchar('\n'); \
|
||||
ansi_printf_raw("[%s] " format, timestamp_current_time(), ## args); \
|
||||
|
|
@ -98,9 +104,9 @@ extern char ansi_format[];
|
|||
|
||||
#ifdef DEBUG
|
||||
#define tio_debug_printf(format, args...) \
|
||||
fprintf (stdout, "[debug] " format, ## args)
|
||||
fprintf(stdout, "[debug] " format, ## args)
|
||||
#define tio_debug_printf_raw(format, args...) \
|
||||
fprintf (stdout, "" format, ## args)
|
||||
fprintf(stdout, "" format, ## args)
|
||||
#else
|
||||
#define tio_debug_printf(format, args...)
|
||||
#define tio_debug_printf_raw(format, args...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue