aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-20 02:24:01 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-20 02:24:01 +0200
commitc12b72801f0a71511a152e0d5deb11c84e8e9fa4 (patch)
tree884e4cf88315ea774b880804dd58e0bd4c68334f
parent750b1c9febf27760e70aa2ce49a7fd94121fd145 (diff)
downloadfref-c12b72801f0a71511a152e0d5deb11c84e8e9fa4.tar.gz
Rename %?? to %xx
-rw-r--r--example.t2
-rw-r--r--refs.lex38
2 files changed, 20 insertions, 20 deletions
diff --git a/example.t b/example.t
index 1cf8730..98b4340 100644
--- a/example.t
+++ b/example.t
@@ -19,7 +19,7 @@ References
%tr Edward Stankiewicz
%ci Bloomington
%pu Indiana University Press
-%?? Extra information
+%xx Extra information
.XP
%au Lesk, M. E.
%ti Some Applications of Inverted Indexes on the UNIX System
diff --git a/refs.lex b/refs.lex
index b78fa4b..645a2aa 100644
--- a/refs.lex
+++ b/refs.lex
@@ -18,22 +18,22 @@
struct entry {
int a; /* Number of authors. */
- char au[MAX][MAX];
- char ad[MAX];
- char al[MAX];
- char bo[MAX];
- char ci[MAX];
- char da[MAX];
- char ed[MAX];
- char jo[MAX];
- char no[MAX]; /* TODO */
- char pp[MAX];
- char pu[MAX];
- char se[MAX]; /* TODO */
- char ti[MAX];
- char tr[MAX];
- char vo[MAX];
- char QQ[MAX];
+ char au[MAX][MAX]; /* author */
+ char ad[MAX]; /* internet address */
+ char al[MAX]; /* TODO: alternative author name */
+ char bo[MAX]; /* book */
+ char ci[MAX]; /* city */
+ char da[MAX]; /* date (year) */
+ char ed[MAX]; /* editor */
+ char jo[MAX]; /* journal */
+ char no[MAX]; /* TODO: issue number */
+ char pp[MAX]; /* pages */
+ char pu[MAX]; /* publisher */
+ char se[MAX]; /* TODO: series */
+ char ti[MAX]; /* title */
+ char tr[MAX]; /* translator */
+ char vo[MAX]; /* volume */
+ char xx[MAX]; /* extra information */
} e;
%s ENTRY
@@ -76,7 +76,7 @@ field(char *t)
AS("ti",e.ti);
AS("tr",e.tr);
AS("vo",e.vo);
- AS("??",e.QQ);
+ AS("xx",e.xx);
fprintf(stderr, "%s: unrecognized field %%%.2s\n", name, t);
exit(1);
@@ -121,7 +121,7 @@ entry()
(pf("%: %.\n", e.ci, e.pu) || pf("%.\n", e.pu));
/* Print other information. */
- pf("%.\n", e.QQ);
+ pf("%.\n", e.xx);
/* Print internet address. */
pf(AVAIL"%\n", e.ad);
@@ -143,7 +143,7 @@ entry()
CL(e.ti);
CL(e.tr);
CL(e.vo);
- CL(e.QQ);
+ CL(e.xx);
}
/* Print formatted text if given strings are non-empty. */