diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-22 09:55:08 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-22 09:55:08 +0200 |
commit | 77e6918ba1c879b091c746b3b564b4bd76c5cfb3 (patch) | |
tree | 4b66e97595e4734f30eb402dc35fd9e353bce734 | |
parent | 619f7eab8fa93116e66d839d057a276e54a59085 (diff) | |
download | fref-77e6918ba1c879b091c746b3b564b4bd76c5cfb3.tar.gz |
Rename MAX to MAXFIELD
-rw-r--r-- | fref.lex | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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; |