about summary refs log tree commit diff
path: root/atom.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-13 11:47:36 -0400
committerJune McEnroe <june@causal.agency>2020-04-13 11:47:36 -0400
commit79efea7ad5ffa571d27321243e25c372ab4303b2 (patch)
treeff31d350114e46f8c2402405e82b11c34613e3b9 /atom.c
parentFix concatHTML thread nesting (diff)
downloadbubger-79efea7ad5ffa571d27321243e25c372ab4303b2.tar.gz
bubger-79efea7ad5ffa571d27321243e25c372ab4303b2.zip
Rename atom rendering functions
Again, probably.
Diffstat (limited to '')
-rw-r--r--atom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/atom.c b/atom.c
index bf4b456..83a4457 100644
--- a/atom.c
+++ b/atom.c
@@ -30,7 +30,7 @@ static char *atomID(const char *messageID) {
 	return templateURL("mailto:?Message-Id=[messageID]", vars);
 }
 
-int atomEntryHead(FILE *file, const struct Envelope *envelope) {
+int atomEntryOpen(FILE *file, const struct Envelope *envelope) {
 	char *id = atomID(envelope->messageID);
 	char date[sizeof("0000-00-00T00:00:00Z")];
 	strftime(date, sizeof(date), "%FT%TZ", gmtime(&envelope->utc));
@@ -58,12 +58,12 @@ int atomEntryHead(FILE *file, const struct Envelope *envelope) {
 	return error;
 }
 
-int atomEntryTail(FILE *file) {
+int atomEntryClose(FILE *file) {
 	int n = fprintf(file, "</entry>\n");
 	return (n < 0 ? n : 0);
 }
 
-int atomFeedHead(FILE *file, const struct Envelope *envelope) {
+int atomFeedOpen(FILE *file, const struct Envelope *envelope) {
 	char *id = atomID(envelope->messageID);
 	char date[sizeof("0000-00-00T00:00:00Z")];
 	strftime(date, sizeof(date), "%FT%TZ", gmtime(&(time_t) { time(NULL) }));
@@ -93,7 +93,7 @@ int atomFeedHead(FILE *file, const struct Envelope *envelope) {
 	return error;
 }
 
-int atomFeedTail(FILE *file) {
+int atomFeedClose(FILE *file) {
 	int n = fprintf(file, "</feed>\n");
 	return (n < 0 ? n : 0);
 }
95b8d170cd0f60845&follow=1'>Don't output a pre in hilex by defaultJune McEnroe 2021-01-12Move hilex out of hilex directoryJune McEnroe 2021-01-12Consolidate hilex formatters into hilex.cJune McEnroe 2021-01-12Remove hacky tagging from hilexJune McEnroe God that makes the lexers so much simpler. 2021-01-12Add htagml -iJune McEnroe 2021-01-12Render tag index in HTMLJune McEnroe 2021-01-12Add htagml -xJune McEnroe 2021-01-12Prevent matching the same tag twiceJune McEnroe 2021-01-12Process htagml file line by lineJune McEnroe This simplifies some things, adds support for line number tag definitions, and should enable combining htagml with other preprocessors in the future. 2021-01-12Split fields by tab onlyJune McEnroe Also don't fail hard on non-forward-search definitions. 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated. 2021-01-09Add c -t flag to print expression typeJune McEnroe Also add missing float case. 2021-01-05Update taglineJune McEnroe