From c12b72801f0a71511a152e0d5deb11c84e8e9fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 20 Jul 2021 02:24:01 +0200 Subject: Rename %?? to %xx --- example.t | 2 +- refs.lex | 38 +++++++++++++++++++------------------- 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. */ -- cgit v1.2.3