From 74125df122a82574b751fefaffe6d76982527a80 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 10 Apr 2020 14:49:26 -0400 Subject: Move extra atoms into the predefined enum --- export.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'export.c') diff --git a/export.c b/export.c index 6e4c7fd..6e3554c 100644 --- a/export.c +++ b/export.c @@ -162,19 +162,7 @@ static struct Envelope parseEnvelope(struct List list) { return envelope; } -static enum Atom AtomBody; -static enum Atom AtomEnvelope; -static enum Atom AtomHeaderFields; -static enum Atom AtomText; -static enum Atom AtomUID; - void exportData(struct List items) { - if (!AtomBody) AtomBody = atom("BODY"); - if (!AtomEnvelope) AtomEnvelope = atom("ENVELOPE"); - if (!AtomHeaderFields) AtomHeaderFields = atom("HEADER.FIELDS"); - if (!AtomText) AtomText = atom("TEXT"); - if (!AtomUID) AtomUID = atom("UID"); - uint32_t uid = 0; struct Envelope envelope = {0}; char *header = NULL; -- cgit 1.4.1