Minor const cleanup.
Don't discard qualifiers we don't need to discard.
This commit is contained in:
parent
2a1d418ce1
commit
8b7808bc49
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98463
@ -81,14 +81,14 @@ const char tokendlist[] = {'
|
||||
awk '{print "\t" $2 ","}' $temp
|
||||
echo '};
|
||||
|
||||
char *const tokname[] = {'
|
||||
const char *const tokname[] = {'
|
||||
sed -e 's/"/\\"/g' \
|
||||
-e 's/[^ ]*[ ][ ]*[^ ]*[ ][ ]*\(.*\)/ "\1",/' \
|
||||
$temp
|
||||
echo '};
|
||||
'
|
||||
sed 's/"//g' $temp | awk '
|
||||
/TIF/{print "#define KWDOFFSET " NR-1; print ""; print "char *const parsekwd[] = {"}
|
||||
/TIF/{print "#define KWDOFFSET " NR-1; print ""; print "const char *const parsekwd[] = {"}
|
||||
/TIF/,/neverfound/{print " \"" $3 "\","}'
|
||||
echo ' 0
|
||||
};'
|
||||
|
@ -742,9 +742,9 @@ readtoken(void)
|
||||
*/
|
||||
if (t == TWORD && !quoteflag)
|
||||
{
|
||||
char * const *pp;
|
||||
const char * const *pp;
|
||||
|
||||
for (pp = (char **)parsekwd; *pp; pp++) {
|
||||
for (pp = parsekwd; *pp; pp++) {
|
||||
if (**pp == *wordtext && equal(*pp, wordtext))
|
||||
{
|
||||
lasttoken = t = pp - parsekwd + KWDOFFSET;
|
||||
|
Loading…
Reference in New Issue
Block a user