aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-22 09:55:08 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-22 09:55:08 +0200
commit77e6918ba1c879b091c746b3b564b4bd76c5cfb3 (patch)
tree4b66e97595e4734f30eb402dc35fd9e353bce734
parent619f7eab8fa93116e66d839d057a276e54a59085 (diff)
downloadfref-77e6918ba1c879b091c746b3b564b4bd76c5cfb3.tar.gz
Rename MAX to MAXFIELD
-rw-r--r--fref.lex20
1 files 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 <err.h>
#include <stdarg.h>
- #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;