diff options
author | June McEnroe <june@causal.agency> | 2020-04-09 21:58:10 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-09 21:58:10 -0400 |
commit | 796f5a869e2330818f549ebec74f4b18e937f1c7 (patch) | |
tree | d663b7f4eef2fce8fa0144f61482da3e24ebc3d1 /archive.h | |
parent | Render HTML To and Cc lists (diff) | |
download | bubger-796f5a869e2330818f549ebec74f4b18e937f1c7.tar.gz bubger-796f5a869e2330818f549ebec74f4b18e937f1c7.zip |
Factor out templateURL
Diffstat (limited to '')
-rw-r--r-- | archive.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archive.h b/archive.h index 6cc7c5f..5a80748 100644 --- a/archive.h +++ b/archive.h @@ -59,7 +59,6 @@ static inline void envelopeFree(struct Envelope envelope) { } #define TEMPLATE(...) #__VA_ARGS__ -#define ESCAPE_URL_CAP(len) (3 * (len)) struct Variable { const char *name; @@ -73,8 +72,9 @@ int escapeXML(FILE *file, const char *str); int templateRender( FILE *file, const char *template, - const struct Variable *vars, EscapeFn *escape + const struct Variable vars[], EscapeFn *escape ); +char *templateURL(const char *template, const struct Variable vars[]); #define MBOX_HEADERS \ "Date Subject From Sender Reply-To To Cc Bcc " \ |