summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-10-12 14:55:33 (GMT)
committernijtmans <nijtmans>2010-10-12 14:55:33 (GMT)
commitcfcfa7c32e49d6a3e3613f260e715ac9f4dba79a (patch)
treeeb0a25e529624327f7f95ec4736871d354b6d929 /tools
parent92e0bb7cedfa98e6c502bd81e5ae4f9f0a62cfea (diff)
downloadtcl-cfcfa7c32e49d6a3e3613f260e715ac9f4dba79a.zip
tcl-cfcfa7c32e49d6a3e3613f260e715ac9f4dba79a.tar.gz
tcl-cfcfa7c32e49d6a3e3613f260e715ac9f4dba79a.tar.bz2
Spacing and comments: let uniClass.tcl generation match better the current (hand-modified) regc_locale.c
Diffstat (limited to 'tools')
-rw-r--r--tools/uniClass.tcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/uniClass.tcl b/tools/uniClass.tcl
index 1840851..9a1bf13 100644
--- a/tools/uniClass.tcl
+++ b/tools/uniClass.tcl
@@ -65,16 +65,16 @@ proc genTable {type} {
set ranges [string trimright $ranges "\t\n ,"]
set chars [string trimright $chars "\t\n ,"]
if {$ranges ne ""} {
- puts "static crange ${type}RangeTable\[\] = {\n$ranges\n};\n"
+ puts "static const crange ${type}RangeTable\[\] = {\n$ranges\n};\n"
puts "#define NUM_[string toupper $type]_RANGE (sizeof(${type}RangeTable)/sizeof(crange))\n"
} else {
puts "/* no contiguous ranges of $type characters */\n"
}
if {$chars ne ""} {
- puts "static chr ${type}CharTable\[\] = {\n$chars\n};\n"
+ puts "static const chr ${type}CharTable\[\] = {\n$chars\n};\n"
puts "#define NUM_[string toupper $type]_CHAR (sizeof(${type}CharTable)/sizeof(chr))\n"
} else {
- puts "/* no singletons of $type characters */\n"
+ puts "/*\n * no singletons of $type characters.\n */\n"
}
}
@@ -94,7 +94,7 @@ foreach {type desc} {
upper "uppercase characters"
graph "unicode print characters excluding space"
} {
- puts "/* Unicode: $desc */\n"
+ puts "/*\n * Unicode: $desc.\n */\n"
genTable $type
}