From a26aca61cd21ad73a17157d96edb563fa2d40f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 20 Jul 2021 11:29:11 +0200 Subject: Rename macro --- fref.lex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fref.lex') diff --git a/fref.lex b/fref.lex index c14bcd2..041dd8a 100644 --- a/fref.lex +++ b/fref.lex @@ -28,7 +28,7 @@ #define TR "Ă–vers." #define VOL "vol." - #define DO_ENTRIES \ + #define DO_FIELDS \ DO("ad",ad,e.ad) /* Access date. */ \ DO("bo",bo,e.bo) /* Book. */ \ DO("ci",ci,e.ci) /* City. */ \ @@ -62,7 +62,7 @@ */ struct entry { #define DO(s,n,m) char n[MAX]; - DO_ENTRIES + DO_FIELDS #undef DO int a; /* Number of authors. */ char au[MAX][MAX]; /* Authors. */ @@ -98,7 +98,7 @@ field(char *t) #define AS(a,b) if(strncmp(t, a, 2) == 0 && (t += 3)){ strcpy(b, t); return; } AS("au",e.au[e.a++]); #define DO(s,n,m) AS(s,m) - DO_ENTRIES + DO_FIELDS #undef DO fprintf(stderr, "%s: unrecognized field %%%.2s at line %d\n", @@ -180,7 +180,7 @@ harvard() if(*m) fprintf(stderr, "%s: unused field %%"s" at line %d\n", \ name, line); \ *m = 0; - DO_ENTRIES + DO_FIELDS #undef DO } -- cgit v1.2.3