summary refs log tree commit diff
path: root/bin/hilex/hilex.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-12 21:57:42 -0500
committerJune McEnroe <june@causal.agency>2021-01-12 21:57:42 -0500
commitfdc0c5cdf65a9d48fd624320dbaf2d95c3675252 (patch)
tree520793cf9bee146a4c76a0ad96bf5989d6885741 /bin/hilex/hilex.h
parentRemove hacky tagging from hilex (diff)
downloadsrc-fdc0c5cdf65a9d48fd624320dbaf2d95c3675252.tar.gz
src-fdc0c5cdf65a9d48fd624320dbaf2d95c3675252.zip
Consolidate hilex formatters into hilex.c
Diffstat (limited to '')
-rw-r--r--bin/hilex/hilex.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/bin/hilex/hilex.h b/bin/hilex/hilex.h
index 88a71a51..5998e6a4 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;