From 72e18faf625a9644b4d1fd8957433db482c42aae Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 2 Nov 2015 16:34:49 -0500 Subject: [PATCH] Add missing semicolons to prototypes. * libc/stdio/fseek.c: Add missing semicolons to prototypes in SYNOPSIS. * libc/stdio/fwide.c: Ditto. * libc/stdio64/fseeko64.c: Ditto. * libc/string/strtok.c: Ditto. * libc/string/wcstok.c: Ditto. * libm/math/w_cosh.c: Ditto. * libm/math/w_fmod.c: Ditto. * libm/mathfp/s_cosh.c: Ditto. * libm/mathfp/s_fmod.c: Ditto. --- ChangeLog | 13 +++++++++++++ newlib/libc/stdio/fseek.c | 16 ++++++++-------- newlib/libc/stdio/fwide.c | 8 ++++---- newlib/libc/stdio64/fseeko64.c | 8 ++++---- newlib/libc/string/strtok.c | 12 ++++++------ newlib/libc/string/wcstok.c | 4 ++-- newlib/libm/math/w_cosh.c | 6 +++--- newlib/libm/math/w_fmod.c | 8 ++++---- newlib/libm/mathfp/s_cosh.c | 6 +++--- newlib/libm/mathfp/s_fmod.c | 8 ++++---- 10 files changed, 51 insertions(+), 38 deletions(-) diff --git a/ChangeLog b/ChangeLog index 547474a56..487b1d374 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2015-11-02 Jon Turney + + * libc/stdio/fseek.c: Add missing semicolons to prototypes in + SYNOPSIS. + * libc/stdio/fwide.c: Ditto. + * libc/stdio64/fseeko64.c: Ditto. + * libc/string/strtok.c: Ditto. + * libc/string/wcstok.c: Ditto. + * libm/math/w_cosh.c: Ditto. + * libm/math/w_fmod.c: Ditto. + * libm/mathfp/s_cosh.c: Ditto. + * libm/mathfp/s_fmod.c: Ditto. + 2015-09-22 Mike Frysinger * config.guess: Update from config repo. diff --git a/newlib/libc/stdio/fseek.c b/newlib/libc/stdio/fseek.c index 34147faff..b8fc36a04 100644 --- a/newlib/libc/stdio/fseek.c +++ b/newlib/libc/stdio/fseek.c @@ -30,32 +30,32 @@ INDEX ANSI_SYNOPSIS #include - int fseek(FILE *<[fp]>, long <[offset]>, int <[whence]>) - int fseeko(FILE *<[fp]>, off_t <[offset]>, int <[whence]>) + int fseek(FILE *<[fp]>, long <[offset]>, int <[whence]>); + int fseeko(FILE *<[fp]>, off_t <[offset]>, int <[whence]>); int _fseek_r(struct _reent *<[ptr]>, FILE *<[fp]>, - long <[offset]>, int <[whence]>) + long <[offset]>, int <[whence]>); int _fseeko_r(struct _reent *<[ptr]>, FILE *<[fp]>, - off_t <[offset]>, int <[whence]>) + off_t <[offset]>, int <[whence]>); TRAD_SYNOPSIS #include - int fseek(<[fp]>, <[offset]>, <[whence]>) + int fseek(<[fp]>, <[offset]>, <[whence]>); FILE *<[fp]>; long <[offset]>; int <[whence]>; - int fseeko(<[fp]>, <[offset]>, <[whence]>) + int fseeko(<[fp]>, <[offset]>, <[whence]>); FILE *<[fp]>; off_t <[offset]>; int <[whence]>; - int _fseek_r(<[ptr]>, <[fp]>, <[offset]>, <[whence]>) + int _fseek_r(<[ptr]>, <[fp]>, <[offset]>, <[whence]>); struct _reent *<[ptr]>; FILE *<[fp]>; long <[offset]>; int <[whence]>; - int _fseeko_r(<[ptr]>, <[fp]>, <[offset]>, <[whence]>) + int _fseeko_r(<[ptr]>, <[fp]>, <[offset]>, <[whence]>); struct _reent *<[ptr]>; FILE *<[fp]>; off_t <[offset]>; diff --git a/newlib/libc/stdio/fwide.c b/newlib/libc/stdio/fwide.c index a060d8f65..b2aaf8a62 100644 --- a/newlib/libc/stdio/fwide.c +++ b/newlib/libc/stdio/fwide.c @@ -9,17 +9,17 @@ INDEX ANSI_SYNOPSIS #include - int fwide(FILE *<[fp]>, int <[mode]>) + int fwide(FILE *<[fp]>, int <[mode]>); - int _fwide_r(struct _reent *<[ptr]>, FILE *<[fp]>, int <[mode]>) + int _fwide_r(struct _reent *<[ptr]>, FILE *<[fp]>, int <[mode]>); TRAD_SYNOPSIS #include - int fwide(<[fp]>, <[mode]>) + int fwide(<[fp]>, <[mode]>); FILE *<[fp]>; int <[mode]>; - int _fwide_r(<[ptr]>, <[fp]>, <[mode]>) + int _fwide_r(<[ptr]>, <[fp]>, <[mode]>); struct _reent *<[ptr]>; FILE *<[fp]>; int <[mode]>; diff --git a/newlib/libc/stdio64/fseeko64.c b/newlib/libc/stdio64/fseeko64.c index d605dd09b..34eee6783 100644 --- a/newlib/libc/stdio64/fseeko64.c +++ b/newlib/libc/stdio64/fseeko64.c @@ -26,18 +26,18 @@ INDEX ANSI_SYNOPSIS #include - int fseeko64(FILE *<[fp]>, _off64_t <[offset]>, int <[whence]>) + int fseeko64(FILE *<[fp]>, _off64_t <[offset]>, int <[whence]>); int _fseeko64_r (struct _reent *<[ptr]>, FILE *<[fp]>, - _off64_t <[offset]>, int <[whence]>) + _off64_t <[offset]>, int <[whence]>); TRAD_SYNOPSIS #include - int fseeko64(<[fp]>, <[offset]>, <[whence]>) + int fseeko64(<[fp]>, <[offset]>, <[whence]>); FILE *<[fp]>; _off64_t <[offset]>; int <[whence]>; - int _fseeko64_r (<[ptr]>, <[fp]>, <[offset]>, <[whence]>) + int _fseeko64_r (<[ptr]>, <[fp]>, <[offset]>, <[whence]>); struct _reent *<[ptr]>; FILE *<[fp]>; _off64_t <[offset]>; diff --git a/newlib/libc/string/strtok.c b/newlib/libc/string/strtok.c index 35460ba04..21607e04a 100644 --- a/newlib/libc/string/strtok.c +++ b/newlib/libc/string/strtok.c @@ -14,24 +14,24 @@ INDEX ANSI_SYNOPSIS #include char *strtok(char *restrict <[source]>, - const char *restrict <[delimiters]>) + const char *restrict <[delimiters]>); char *strtok_r(char *restrict <[source]>, const char *restrict <[delimiters]>, - char **<[lasts]>) - char *strsep(char **<[source_ptr]>, const char *<[delimiters]>) + char **<[lasts]>); + char *strsep(char **<[source_ptr]>, const char *<[delimiters]>); TRAD_SYNOPSIS #include - char *strtok(<[source]>, <[delimiters]>) + char *strtok(<[source]>, <[delimiters]>); char *<[source]>; char *<[delimiters]>; - char *strtok_r(<[source]>, <[delimiters]>, <[lasts]>) + char *strtok_r(<[source]>, <[delimiters]>, <[lasts]>); char *<[source]>; char *<[delimiters]>; char **<[lasts]>; - char *strsep(<[source_ptr]>, <[delimiters]>) + char *strsep(<[source_ptr]>, <[delimiters]>); char **<[source_ptr]>; char *<[delimiters]>; diff --git a/newlib/libc/string/wcstok.c b/newlib/libc/string/wcstok.c index 95e9af3c2..144b33efd 100644 --- a/newlib/libc/string/wcstok.c +++ b/newlib/libc/string/wcstok.c @@ -10,11 +10,11 @@ ANSI_SYNOPSIS #include wchar_t *wcstok(wchar_t *__restrict <[source]>, const wchar_t *__restrict <[delimiters]>, - wchar_t **__restrict <[lasts]>) + wchar_t **__restrict <[lasts]>); TRAD_SYNOPSIS #include - wchar_t *wcstok(<[source]>, <[delimiters]>, <[lasts]>) + wchar_t *wcstok(<[source]>, <[delimiters]>, <[lasts]>); wchar_t *__restrict <[source]>; wchar_t *__restrict <[delimiters]>; wchar_t **__restrict <[lasts]>; diff --git a/newlib/libm/math/w_cosh.c b/newlib/libm/math/w_cosh.c index ab046f6ed..54bfec37d 100644 --- a/newlib/libm/math/w_cosh.c +++ b/newlib/libm/math/w_cosh.c @@ -19,14 +19,14 @@ FUNCTION ANSI_SYNOPSIS #include double cosh(double <[x]>); - float coshf(float <[x]>) + float coshf(float <[x]>); TRAD_SYNOPSIS #include - double cosh(<[x]>) + double cosh(<[x]>); double <[x]>; - float coshf(<[x]>) + float coshf(<[x]>); float <[x]>; DESCRIPTION diff --git a/newlib/libm/math/w_fmod.c b/newlib/libm/math/w_fmod.c index 47d1dd081..f9f72c745 100644 --- a/newlib/libm/math/w_fmod.c +++ b/newlib/libm/math/w_fmod.c @@ -22,15 +22,15 @@ fmodf ANSI_SYNOPSIS #include -double fmod(double <[x]>, double <[y]>) -float fmodf(float <[x]>, float <[y]>) +double fmod(double <[x]>, double <[y]>); +float fmodf(float <[x]>, float <[y]>); TRAD_SYNOPSIS #include -double fmod(<[x]>, <[y]>) +double fmod(<[x]>, <[y]>); double (<[x]>, <[y]>); -float fmodf(<[x]>, <[y]>) +float fmodf(<[x]>, <[y]>); float (<[x]>, <[y]>); DESCRIPTION diff --git a/newlib/libm/mathfp/s_cosh.c b/newlib/libm/mathfp/s_cosh.c index 24b542092..f91411037 100644 --- a/newlib/libm/mathfp/s_cosh.c +++ b/newlib/libm/mathfp/s_cosh.c @@ -9,14 +9,14 @@ FUNCTION ANSI_SYNOPSIS #include double cosh(double <[x]>); - float coshf(float <[x]>) + float coshf(float <[x]>); TRAD_SYNOPSIS #include - double cosh(<[x]>) + double cosh(<[x]>); double <[x]>; - float coshf(<[x]>) + float coshf(<[x]>); float <[x]>; DESCRIPTION diff --git a/newlib/libm/mathfp/s_fmod.c b/newlib/libm/mathfp/s_fmod.c index ec86376af..19bba9c18 100644 --- a/newlib/libm/mathfp/s_fmod.c +++ b/newlib/libm/mathfp/s_fmod.c @@ -22,15 +22,15 @@ fmodf ANSI_SYNOPSIS #include -double fmod(double <[x]>, double <[y]>) -float fmodf(float <[x]>, float <[y]>) +double fmod(double <[x]>, double <[y]>); +float fmodf(float <[x]>, float <[y]>); TRAD_SYNOPSIS #include -double fmod(<[x]>, <[y]>) +double fmod(<[x]>, <[y]>); double (<[x]>, <[y]>); -float fmodf(<[x]>, <[y]>) +float fmodf(<[x]>, <[y]>); float (<[x]>, <[y]>); DESCRIPTION