From: helly Date: Thu, 29 Dec 2005 01:22:02 +0000 (+0000) Subject: - Need to make position pointers const pointers X-Git-Tag: 0.13.6~562 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76175c0d0876e6832f7dd65a4a2d2541c08394bb;p=re2c - Need to make position pointers const pointers --- diff --git a/actions.cc b/actions.cc index 8da09918..9ac5990e 100644 --- a/actions.cc +++ b/actions.cc @@ -538,7 +538,7 @@ uint Scanner::unescape(SubStr &s) const case 'x': { static const char * hex = "0123456789abcdef"; - char *p1, *p2; + const char *p1, *p2; if (s.len < 2 || !(p1 = strchr(hex, tolower(s.str[0]))) || !(p2 = strchr(hex, tolower(s.str[1])))) @@ -557,7 +557,7 @@ uint Scanner::unescape(SubStr &s) const case 'X': { static const char * hex = "0123456789abcdef"; - char *p1, *p2, *p3, *p4; + const char *p1, *p2, *p3, *p4; if (s.len < 4 || !(p1 = strchr(hex, tolower(s.str[0]))) || !(p2 = strchr(hex, tolower(s.str[1]))) @@ -587,7 +587,7 @@ uint Scanner::unescape(SubStr &s) const case '7': { static const char * oct = "01234567"; - char *p0, *p1, *p2; + const char *p0, *p1, *p2; if (s.len < 2 || !(p0 = strchr(oct, c)) || c > '3' || !(p1 = strchr(oct, s.str[0]))