mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 06:43:03 +00:00
style: src: remove useless reference to 'int' in integral types
* src/AnnotationList.c, src/AnnotationList.h, src/InadequacyList.h, * src/closure.c, src/closure.h, src/gram.c, src/gram.h, src/ielr.c, * src/location.c, src/output.c, src/reader.c, src/relation.c, * src/scan-code.l, src/scan-gram.l, src/tables.c, src/tables.h: Prefer 'unsigned' to 'unsigned int'. Likewise for long and short.
This commit is contained in:
@@ -96,7 +96,7 @@ gram_scanner_last_string_free (void)
|
||||
}
|
||||
|
||||
static void handle_syncline (char *, location);
|
||||
static unsigned long int scan_integer (char const *p, int base, location loc);
|
||||
static unsigned long scan_integer (char const *p, int base, location loc);
|
||||
static int convert_ucn_to_byte (char const *hex_text);
|
||||
static void unexpected_eof (boundary, char const *);
|
||||
static void unexpected_newline (boundary, char const *);
|
||||
@@ -591,7 +591,7 @@ eqopt ([[:space:]]*=)?
|
||||
<SC_ESCAPED_STRING,SC_ESCAPED_CHARACTER>
|
||||
{
|
||||
\\[0-7]{1,3} {
|
||||
unsigned long int c = strtoul (yytext + 1, NULL, 8);
|
||||
unsigned long c = strtoul (yytext + 1, NULL, 8);
|
||||
if (!c || UCHAR_MAX < c)
|
||||
complain (loc, complaint, _("invalid number after \\-escape: %s"),
|
||||
yytext+1);
|
||||
@@ -601,7 +601,7 @@ eqopt ([[:space:]]*=)?
|
||||
|
||||
\\x[0-9abcdefABCDEF]+ {
|
||||
verify (UCHAR_MAX < ULONG_MAX);
|
||||
unsigned long int c = strtoul (yytext + 2, NULL, 16);
|
||||
unsigned long c = strtoul (yytext + 2, NULL, 16);
|
||||
if (!c || UCHAR_MAX < c)
|
||||
complain (loc, complaint, _("invalid number after \\-escape: %s"),
|
||||
yytext+1);
|
||||
@@ -844,11 +844,11 @@ no_cr_read (FILE *fp, char *buf, size_t size)
|
||||
| Scan NUMBER for a base-BASE integer at location LOC. |
|
||||
`------------------------------------------------------*/
|
||||
|
||||
static unsigned long int
|
||||
static unsigned long
|
||||
scan_integer (char const *number, int base, location loc)
|
||||
{
|
||||
verify (INT_MAX < ULONG_MAX);
|
||||
unsigned long int num = strtoul (number, NULL, base);
|
||||
unsigned long num = strtoul (number, NULL, base);
|
||||
|
||||
if (INT_MAX < num)
|
||||
{
|
||||
@@ -871,7 +871,7 @@ static int
|
||||
convert_ucn_to_byte (char const *ucn)
|
||||
{
|
||||
verify (UCHAR_MAX <= INT_MAX);
|
||||
unsigned long int code = strtoul (ucn + 2, NULL, 16);
|
||||
unsigned long code = strtoul (ucn + 2, NULL, 16);
|
||||
|
||||
/* FIXME: Currently we assume Unicode-compatible unibyte characters
|
||||
on ASCII hosts (i.e., Latin-1 on hosts with 8-bit bytes). On
|
||||
@@ -926,7 +926,7 @@ static void
|
||||
handle_syncline (char *args, location loc)
|
||||
{
|
||||
char *file;
|
||||
unsigned long int lineno = strtoul (args, &file, 10);
|
||||
unsigned long lineno = strtoul (args, &file, 10);
|
||||
if (INT_MAX <= lineno)
|
||||
{
|
||||
complain (&loc, Wother, _("line number overflow"));
|
||||
|
||||
Reference in New Issue
Block a user