diff options
author | June McEnroe <june@causal.agency> | 2020-12-28 23:48:24 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-12-28 23:48:24 -0500 |
commit | 91bb43a64f479c1fe2dbb54500912049505875c1 (patch) | |
tree | 9c9ba5720b3dd45f9430c0b83b761b911ca8898d /bin/hilex/ansi.c | |
parent | Generate Tag tokens for mdoc headings (diff) | |
download | src-91bb43a64f479c1fe2dbb54500912049505875c1.tar.gz src-91bb43a64f479c1fe2dbb54500912049505875c1.zip |
Add hilex IRC formatter
Diffstat (limited to '')
-rw-r--r-- | bin/hilex/ansi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/hilex/ansi.c b/bin/hilex/ansi.c index 6a5600d4..6ef41f22 100644 --- a/bin/hilex/ansi.c +++ b/bin/hilex/ansi.c @@ -29,7 +29,7 @@ static const char *SGR[ClassCap] = { [StringFormat] = "36;1;96", }; -static void format(const char *opts[], enum Class class, const char *text) { +static void ansiFormat(const char *opts[], enum Class class, const char *text) { (void)opts; if (!SGR[class]) { printf("%s", text); @@ -42,4 +42,4 @@ static void format(const char *opts[], enum Class class, const char *text) { if (*text) printf("\33[%sm%s\33[m", SGR[class], text); } -const struct Formatter FormatANSI = { .format = format }; +const struct Formatter FormatANSI = { .format = ansiFormat }; |