diff options
Diffstat (limited to 'fref.lex')
-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; |