From 62f17889aed9a0488173d16f28adcefa41daa204 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 13 Apr 2020 15:04:09 -0400 Subject: Use in Atom The
 thing would require the text to be
escaped twice...
---
 atom.c | 20 ++------------------
 1 file changed, 2 insertions(+), 18 deletions(-)

diff --git a/atom.c b/atom.c
index 80639a3..d3463ce 100644
--- a/atom.c
+++ b/atom.c
@@ -72,27 +72,11 @@ int atomEntryOpen(FILE *file, const struct Envelope *envelope) {
 }
 
 int atomContentOpen(FILE *file) {
-	const char *template = TEMPLATE(
-		
-		[
]
-	);
-	struct Variable vars[] = {
-		{ "
", "
" },
-		{0},
-	};
-	return templateRender(file, template, vars, escapeXML);
+	return templateRender(file, TEMPLATE(), NULL, NULL);
 }
 
 int atomContentClose(FILE *file) {
-	const char *template = TEMPLATE(
-		[
] - - ); - struct Variable vars[] = { - { "
", "
" }, - {0}, - }; - return templateRender(file, template, vars, escapeXML); + return templateRender(file, TEMPLATE(
), NULL, NULL); } int atomEntryClose(FILE *file) { -- cgit 1.4.1 t.causal.agency/cgit/tests?showmsg=1&follow=1'>log tree commit diff
Commit message (Collapse)Author
2021-01-01Clean up order lexerJune McEnroe
2021-01-01Remove empty comma statement from bitJune McEnroe
2021-01-01Increment license header templatesJune McEnroe
2020-12-31Tell "Music" rather than "iTunes"June McEnroe
It's the new era.
2020-12-31Add ASCII control code names to bitJune McEnroe
2020-12-31Simplify bit lexing and parsingJune McEnroe
Also print the value of each expression separated by commas.
2020-12-31Add ddateJune McEnroe
I'm tired of package managers not having this!
2020-12-30Print octal for 8 bits in bitJune McEnroe
2020-12-30Add unary & to bitJune McEnroe
Also unary + and fix precedence of unary -.
2020-12-30Support unary + in orderJune McEnroe
Missed this because operator(7) just doesn't list it, oddly.
2020-12-30Add postfix $ operator to bitJune McEnroe
2020-12-29Add make lexerJune McEnroe
This is kind of a mess and needs to be cleaned up against more careful reading of the make grammar.
2020-12-29Clean up C lexerJune McEnroe
This ordering of rules feels much cleaner.
2020-12-29Clean up hilex code somewhatJune McEnroe
2020-12-29Match lex/yacc %% %{ %} lines as MacroJune McEnroe
2020-12-29Match top-level C definitions as IdentifierTagJune McEnroe
2020-12-29Match C type declarations as IdentifierTagJune McEnroe
2020-12-29Match function-like macro definitions as IdentifierTagJune McEnroe
2020-12-29Reconfigure C macro start conditionsJune McEnroe
2020-12-29Document HTML class namesJune McEnroe
2020-12-29Rename Tag class to IdentifierTagJune McEnroe
2020-12-29Change HTML class from hi to hilexJune McEnroe
You can tell I was just copying the HTML code huh.
2020-12-29Add hilex HTML outputJune McEnroe