summaryrefslogtreecommitdiffstats
path: root/tools/str2c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-11-16 11:41:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-11-16 11:41:45 (GMT)
commita5e261f15f06a283ad8a648611f1a9eb5b8127e1 (patch)
treea845e3facaa1edcd61641704e890dee0f22cddcf /tools/str2c
parent7a50bcc5d5d0fe683d5519935cf00514e9358b77 (diff)
downloadtcl-a5e261f15f06a283ad8a648611f1a9eb5b8127e1.zip
tcl-a5e261f15f06a283ad8a648611f1a9eb5b8127e1.tar.gz
tcl-a5e261f15f06a283ad8a648611f1a9eb5b8127e1.tar.bz2
A few unneeded internal CONST/CONST86's
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);
}