diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-20 11:29:11 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-21 11:19:55 +0200 |
commit | a26aca61cd21ad73a17157d96edb563fa2d40f28 (patch) | |
tree | 837ff5f0a3af7dd6a9ce290b3ff68200cb38d33c | |
parent | 398bf9b806b2b2a95cb3dee9ee367c5392a517ee (diff) | |
download | fref-a26aca61cd21ad73a17157d96edb563fa2d40f28.tar.gz |
Rename macro
-rw-r--r-- | fref.lex | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 } |