mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
mingw: stop using K&R-style function definitions
this patch is from upstream, to fix -Wdeprecated-non-prototypes issues. K&R-style has apparently been deprecated since even C89, and C2x will be repurposing the syntax space. this warning triggers when the change would affect the meaning of the code.
This commit is contained in:
parent
304420b99c
commit
72a7e3dc5e
5
lib/libc/mingw/misc/strtoimax.c
vendored
5
lib/libc/mingw/misc/strtoimax.c
vendored
@ -31,10 +31,7 @@
|
||||
#define valid(n, b) ((n) >= 0 && (n) < (b))
|
||||
|
||||
intmax_t
|
||||
strtoimax(nptr, endptr, base)
|
||||
register const char * __restrict__ nptr;
|
||||
char ** __restrict__ endptr;
|
||||
register int base;
|
||||
strtoimax(const char * __restrict__ nptr, char ** __restrict__ endptr, int base)
|
||||
{
|
||||
register uintmax_t accum; /* accumulates converted value */
|
||||
register int n; /* numeral from digit character */
|
||||
|
||||
5
lib/libc/mingw/misc/strtoumax.c
vendored
5
lib/libc/mingw/misc/strtoumax.c
vendored
@ -31,10 +31,7 @@
|
||||
#define valid(n, b) ((n) >= 0 && (n) < (b))
|
||||
|
||||
uintmax_t
|
||||
strtoumax(nptr, endptr, base)
|
||||
register const char * __restrict__ nptr;
|
||||
char ** __restrict__ endptr;
|
||||
register int base;
|
||||
strtoumax(const char * __restrict__ nptr, char ** __restrict__ endptr, int base)
|
||||
{
|
||||
register uintmax_t accum; /* accumulates converted value */
|
||||
register uintmax_t next; /* for computing next value of accum */
|
||||
|
||||
5
lib/libc/mingw/misc/wcstoimax.c
vendored
5
lib/libc/mingw/misc/wcstoimax.c
vendored
@ -33,10 +33,7 @@
|
||||
#define valid(n, b) ((n) >= 0 && (n) < (b))
|
||||
|
||||
intmax_t
|
||||
wcstoimax(nptr, endptr, base)
|
||||
register const wchar_t * __restrict__ nptr;
|
||||
wchar_t ** __restrict__ endptr;
|
||||
register int base;
|
||||
wcstoimax(const wchar_t * __restrict__ nptr, wchar_t ** __restrict__ endptr, int base)
|
||||
{
|
||||
register uintmax_t accum; /* accumulates converted value */
|
||||
register int n; /* numeral from digit character */
|
||||
|
||||
5
lib/libc/mingw/misc/wcstoumax.c
vendored
5
lib/libc/mingw/misc/wcstoumax.c
vendored
@ -33,10 +33,7 @@
|
||||
#define valid(n, b) ((n) >= 0 && (n) < (b))
|
||||
|
||||
uintmax_t
|
||||
wcstoumax(nptr, endptr, base)
|
||||
register const wchar_t * __restrict__ nptr;
|
||||
wchar_t ** __restrict__ endptr;
|
||||
register int base;
|
||||
wcstoumax(const wchar_t * __restrict__ nptr, wchar_t ** __restrict__ endptr, int base)
|
||||
{
|
||||
register uintmax_t accum; /* accumulates converted value */
|
||||
register uintmax_t next; /* for computing next value of accum */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user