summaryrefslogtreecommitdiffstats
path: root/tools/str2c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-11-20 12:13:43 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-11-20 12:13:43 (GMT)
commit35047bd5e543d9e0eaa9ca52914e21104d556f25 (patch)
treefb090e3289193ec27321e51dab2e78b60ac9de05 /tools/str2c
parent7b0ea460a683488b338559e7cf74cf93cbe050f4 (diff)
parent6ba5327e8579861a348ee361e3aff04356086458 (diff)
downloadtcl-35047bd5e543d9e0eaa9ca52914e21104d556f25.zip
tcl-35047bd5e543d9e0eaa9ca52914e21104d556f25.tar.gz
tcl-35047bd5e543d9e0eaa9ca52914e21104d556f25.tar.bz2
merge dkf-compile-misc-info
Diffstat (limited to 'tools/str2c')
-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);
}