diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-20 02:33:40 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-21 11:19:47 +0200 |
commit | 2d87adafb158932f8da44ef1864b8f8bacb859b1 (patch) | |
tree | dacfda400794bcf4ca02cfdea13e24ba45159c6b | |
parent | 4f4771fc00c0957699bc1def27e88fd4f0a9cc08 (diff) | |
download | fref-2d87adafb158932f8da44ef1864b8f8bacb859b1.tar.gz |
Move formatting into separate function
-rw-r--r-- | fref.lex | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |