summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-11-19 22:23:08 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-11-19 22:23:08 (GMT)
commitc96b49ed88b11232f11d79f859e6b62418c5c10a (patch)
tree3127a144602ef0cb05795cd722659052d0388891 /tools
parent9d8f556865a0a282039621759755c0cf44664039 (diff)
parent094f23c172acca8f32b0888cd536f01fc1daab1b (diff)
downloadtcl-c96b49ed88b11232f11d79f859e6b62418c5c10a.zip
tcl-c96b49ed88b11232f11d79f859e6b62418c5c10a.tar.gz
tcl-c96b49ed88b11232f11d79f859e6b62418c5c10a.tar.bz2
merge trunk
Diffstat (limited to 'tools')
-rw-r--r--tools/str2c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/str2c b/tools/str2c
index 971e552..cff7ba2 100644
--- a/tools/str2c
+++ b/tools/str2c
@@ -36,7 +36,7 @@ static char data\[\]=\"[translate $r]\";"
puts "/*
* Multi parts read only string generated by str2c
*/
-static CONST char * CONST data\[\]= {"
+static const char * const data\[\]= {"
set n 1
for {set i 0} {$i<$lg} {incr i $MAX} {
set part [string range $r $i [expr $i+$MAX-1]]
@@ -48,7 +48,7 @@ static CONST char * CONST data\[\]= {"
}
puts "\tNULL\t/* End of data marker */\n};"
puts "\n/* use for instance with:
- CONST char * CONST *chunk;
+ const char * const *chunk;
for (chunk=data; *chunk; chunk++) {
Tcl_AppendResult(interp, *chunk, (char *) NULL);
}