From 087dcc0be343494728162eb12e05ad8a42f77f22 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 12 Jan 2021 21:57:42 -0500 Subject: Consolidate hilex formatters into hilex.c --- bin/hilex/hilex.h | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'bin/hilex/hilex.h') diff --git a/bin/hilex/hilex.h b/bin/hilex/hilex.h index f01bc583..2e463be7 100644 --- a/bin/hilex/hilex.h +++ b/bin/hilex/hilex.h @@ -16,8 +16,6 @@ #include -#define ARRAY_LEN(a) (sizeof(a) / sizeof(a[0])) - #define ENUM_CLASS \ X(None) \ X(Normal) \ @@ -50,31 +48,3 @@ extern const struct Lexer LexC; extern const struct Lexer LexMake; extern const struct Lexer LexMdoc; extern const struct Lexer LexText; - -#define ENUM_OPTION \ - X(Document, "document") \ - X(Inline, "inline") \ - X(Monospace, "monospace") \ - X(Style, "style") \ - X(Tab, "tab") \ - X(Title, "title") - -enum Option { -#define X(option, key) option, - ENUM_OPTION -#undef X - OptionCap, -}; - -typedef void Header(const char *opts[]); -typedef void Format(const char *opts[], enum Class class, const char *text); -struct Formatter { - Header *header; - Format *format; - Header *footer; -}; - -extern const struct Formatter FormatANSI; -extern const struct Formatter FormatDebug; -extern const struct Formatter FormatHTML; -extern const struct Formatter FormatIRC; -- cgit 1.4.1 omepage
Commit message (Expand)Author
2023-12-11Solve day 3 part 2June McEnroe