diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-23 13:17:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-23 13:17:12 (GMT) |
commit | 79d05673697da9aed5779d1613e072d02fe0b759 (patch) | |
tree | 3326a12bac5c8ff056623f23c433b10d6d915585 /generic/tclGetDate.y | |
parent | c6135146884f4b20a7dda117708475f8b999401a (diff) | |
parent | ec714d550beaef96474f793d50913556599c2ca5 (diff) | |
download | tcl-79d05673697da9aed5779d1613e072d02fe0b759.zip tcl-79d05673697da9aed5779d1613e072d02fe0b759.tar.gz tcl-79d05673697da9aed5779d1613e072d02fe0b759.tar.bz2 |
make some more internal tables const
Diffstat (limited to 'generic/tclGetDate.y')
-rw-r--r-- | generic/tclGetDate.y | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclGetDate.y b/generic/tclGetDate.y index e22e40c..551b1ed 100644 --- a/generic/tclGetDate.y +++ b/generic/tclGetDate.y @@ -510,7 +510,7 @@ MODULE_SCOPE int yynerrs; * Month and day table. */ -static TABLE MonthDayTable[] = { +static const TABLE MonthDayTable[] = { { "january", tMONTH, 1 }, { "february", tMONTH, 2 }, { "march", tMONTH, 3 }, @@ -542,7 +542,7 @@ static TABLE MonthDayTable[] = { * Time units table. */ -static TABLE UnitsTable[] = { +static const TABLE UnitsTable[] = { { "year", tMONTH_UNIT, 12 }, { "month", tMONTH_UNIT, 1 }, { "fortnight", tDAY_UNIT, 14 }, @@ -560,7 +560,7 @@ static TABLE UnitsTable[] = { * Assorted relative-time words. */ -static TABLE OtherTable[] = { +static const TABLE OtherTable[] = { { "tomorrow", tDAY_UNIT, 1 }, { "yesterday", tDAY_UNIT, -1 }, { "today", tDAY_UNIT, 0 }, @@ -593,7 +593,7 @@ static TABLE OtherTable[] = { * point constants to work around an SGI compiler bug). */ -static TABLE TimezoneTable[] = { +static const TABLE TimezoneTable[] = { { "gmt", tZONE, HOUR( 0) }, /* Greenwich Mean */ { "ut", tZONE, HOUR( 0) }, /* Universal (Coordinated) */ { "utc", tZONE, HOUR( 0) }, @@ -678,7 +678,7 @@ static TABLE TimezoneTable[] = { * Military timezone table. */ -static TABLE MilitaryTable[] = { +static const TABLE MilitaryTable[] = { { "a", tZONE, -HOUR( 1) }, { "b", tZONE, -HOUR( 2) }, { "c", tZONE, -HOUR( 3) }, @@ -771,7 +771,7 @@ LookupWord( { register char *p; register char *q; - register TABLE *tp; + register const TABLE *tp; int i, abbrev; /* |