diff options
author | June McEnroe <june@causal.agency> | 2021-01-12 21:57:42 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-01-12 21:57:42 -0500 |
commit | 087dcc0be343494728162eb12e05ad8a42f77f22 (patch) | |
tree | 08bb9dda263e7d363bf3e4aa93003caa709ce221 /bin/hilex/hilex.h | |
parent | Remove hacky tagging from hilex (diff) | |
download | src-087dcc0be343494728162eb12e05ad8a42f77f22.tar.gz src-087dcc0be343494728162eb12e05ad8a42f77f22.zip |
Consolidate hilex formatters into hilex.c
Diffstat (limited to 'bin/hilex/hilex.h')
-rw-r--r-- | bin/hilex/hilex.h | 30 |
1 files changed, 0 insertions, 30 deletions
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 <stdio.h> -#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; |