From 77e6918ba1c879b091c746b3b564b4bd76c5cfb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 22 Jul 2021 09:55:08 +0200 Subject: Rename MAX to MAXFIELD --- fref.lex | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/fref.lex b/fref.lex index 2b0861d..fb6fb47 100644 --- a/fref.lex +++ b/fref.lex @@ -14,7 +14,7 @@ #include #include - #define MAX 255 /* Max field length. */ + #define MAXFIELD 255 /* Max field length. */ #define FOR_FIELDS \ DO("ad",ad,e.ad) /* Access date. */ \ @@ -41,15 +41,6 @@ struct trans *gettrans(char *); int pf(char *, ...); - /* Fields of current entry. */ - struct entry { - int a; /* Number of authors. */ - char au[MAX][MAX]; /* Authors. */ - #define DO(s,n,m) char n[MAX]; - FOR_FIELDS - #undef DO - } e; - /* Translation strings. */ struct trans { char *and; @@ -61,6 +52,15 @@ char *vo; }; + /* Fields of current entry. */ + struct entry { + int a; /* Number of authors. */ + char au[MAXFIELD][MAXFIELD]; /* Authors. */ + #define DO(s,n,m) char n[MAXFIELD]; + FOR_FIELDS + #undef DO + } e; + extern char *optarg; extern int optind; -- cgit v1.2.3