aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;