From f1076349535b24cd3570575e2874e494163080a4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 19 Jul 2014 15:44:39 -0700 Subject: [PATCH] * checktab.awk: Fix typo that prevented catching inks in 'time.tab'. Also, hoist some code out of a loop. --- checktab.awk | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/checktab.awk b/checktab.awk index ac40954..94354d7 100644 --- a/checktab.awk +++ b/checktab.awk @@ -72,13 +72,13 @@ BEGIN { status = 1 } cc0 = cc + tztab[tz] = 1 + tz2comments[tz] = comments + tz2NR[tz] = zone_NR for (i in cca) { cc = cca[i] cctz = cc tz cctztab[cctz] = 1 - tztab[tz] = 1 - tz2comments[tz] = comments - tz2NR[tz] = zone_NR if (cc2name[cc]) { cc_used[cc]++ } else { @@ -158,14 +158,13 @@ END { status = 1 } } - for (tz in tz2cc) { + for (tz in tztab) { if (!zoneSeen[tz]) { printf "%s:%d: no Zone table for '%s'\n", \ zone_table, tz2NR[tz], tz >>"/dev/stderr" status = 1 } } - if (0 < want_warnings) { for (cc in cc2name) { if (!cc_used[cc]) { -- 1.9.1