From 2d87adafb158932f8da44ef1864b8f8bacb859b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 20 Jul 2021 02:33:40 +0200 Subject: Move formatting into separate function --- fref.lex | 8 ++++++++ 1 file changed, 8 insertions(+) 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; @@ -85,6 +86,13 @@ field(char *t) /* Print formatted entry. */ void entry() +{ + harvard(); +} + +/* Print Harvard-formatted entry. */ +void +harvard() { int i; -- cgit v1.2.3