mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +00:00
maint: remove unnecessary casts before using gnulib functions
* src/parse-gram.y, src/scan-gram.l: Do not cast c-ctype.h function args to unsigned char unnecessarily. * src/parse-gram.c: Regenerate. Copyright-paperwork-exempt: yes
This commit is contained in:
@@ -2945,11 +2945,11 @@ add_param (param_type type, char *decl, location loc)
|
|||||||
/* Strip the surrounding '{' and '}', and any blanks just inside
|
/* Strip the surrounding '{' and '}', and any blanks just inside
|
||||||
the braces. */
|
the braces. */
|
||||||
--p;
|
--p;
|
||||||
while (c_isspace ((unsigned char) *p))
|
while (c_isspace (*p))
|
||||||
--p;
|
--p;
|
||||||
p[1] = '\0';
|
p[1] = '\0';
|
||||||
++decl;
|
++decl;
|
||||||
while (c_isspace ((unsigned char) *decl))
|
while (c_isspace (*decl))
|
||||||
++decl;
|
++decl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -928,11 +928,11 @@ add_param (param_type type, char *decl, location loc)
|
|||||||
/* Strip the surrounding '{' and '}', and any blanks just inside
|
/* Strip the surrounding '{' and '}', and any blanks just inside
|
||||||
the braces. */
|
the braces. */
|
||||||
--p;
|
--p;
|
||||||
while (c_isspace ((unsigned char) *p))
|
while (c_isspace (*p))
|
||||||
--p;
|
--p;
|
||||||
p[1] = '\0';
|
p[1] = '\0';
|
||||||
++decl;
|
++decl;
|
||||||
while (c_isspace ((unsigned char) *decl))
|
while (c_isspace (*decl))
|
||||||
++decl;
|
++decl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -683,7 +683,7 @@ eqopt ({sp}=)?
|
|||||||
\\(.|{eol}) {
|
\\(.|{eol}) {
|
||||||
char const *p = yytext + 1;
|
char const *p = yytext + 1;
|
||||||
/* Quote only if escaping won't make the character visible. */
|
/* Quote only if escaping won't make the character visible. */
|
||||||
if (c_isspace ((unsigned char) *p) && c_isprint ((unsigned char) *p))
|
if (c_isspace (*p) && c_isprint (*p))
|
||||||
p = quote (p);
|
p = quote (p);
|
||||||
else
|
else
|
||||||
p = quotearg_style_mem (escape_quoting_style, p, 1);
|
p = quotearg_style_mem (escape_quoting_style, p, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user