aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-20 02:33:40 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-21 11:19:47 +0200
commit2d87adafb158932f8da44ef1864b8f8bacb859b1 (patch)
treedacfda400794bcf4ca02cfdea13e24ba45159c6b
parent4f4771fc00c0957699bc1def27e88fd4f0a9cc08 (diff)
downloadfref-2d87adafb158932f8da44ef1864b8f8bacb859b1.tar.gz
Move formatting into separate function
-rw-r--r--fref.lex8
1 files changed, 8 insertions, 0 deletions
diff --git a/fref.lex b/fref.lex
index ccdfff5..d3b3661 100644
--- a/fref.lex
+++ b/fref.lex
@@ -12,6 +12,7 @@
void field(char *);
void entry(void);
+ void harvard(void);
int pf(char *, ...);
char *name;
@@ -86,6 +87,13 @@ field(char *t)
void
entry()
{
+ harvard();
+}
+
+/* Print Harvard-formatted entry. */
+void
+harvard()
+{
int i;
#define EI(a, b) a ? a : b