summaryrefslogtreecommitdiffstats
path: root/generic/regc_lex.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-02-21 20:09:37 (GMT)
committernijtmans <nijtmans>2010-02-21 20:09:37 (GMT)
commitc0efda860028550fa1392602cb9d479a67c7cf55 (patch)
tree107091c0a01f164224f02d295ebb0a866b39c5d4 /generic/regc_lex.c
parent3fb3008b2698db7d2a9f46adeac8c91565ba890b (diff)
downloadtcl-c0efda860028550fa1392602cb9d479a67c7cf55.zip
tcl-c0efda860028550fa1392602cb9d479a67c7cf55.tar.gz
tcl-c0efda860028550fa1392602cb9d479a67c7cf55.tar.bz2
Follow-up to Fix [Bug 2954959] expr abs(0.0) is -0.0
Some more tests, showing that the LONG implementation was not quite correct too, and a fix for that. Some more internal "const" additions
Diffstat (limited to 'generic/regc_lex.c')
-rw-r--r--generic/regc_lex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/regc_lex.c b/generic/regc_lex.c
index 4be02c6..f3a46da 100644
--- a/generic/regc_lex.c
+++ b/generic/regc_lex.c
@@ -742,10 +742,10 @@ lexescape(
struct vars *v)
{
chr c;
- static chr alert[] = {
+ static const chr alert[] = {
CHR('a'), CHR('l'), CHR('e'), CHR('r'), CHR('t')
};
- static chr esc[] = {
+ static const chr esc[] = {
CHR('E'), CHR('S'), CHR('C')
};
const chr *save;
@@ -1135,7 +1135,7 @@ newline(void)
static const chr *
ch(void)
{
- static chr chstr[] = { CHR('c'), CHR('h'), CHR('\0') };
+ static const chr chstr[] = { CHR('c'), CHR('h'), CHR('\0') };
return chstr;
}