From ff4a4f2655dc5e1da47b0b4bcf8931a90d1a1914 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Tue, 23 Jun 2015 13:00:57 +0100 Subject: [PATCH] Fix SYNOPSIS prototypes without marked up parameter names 2015-06-23 Jon Turney * libc/stdlib/llabs.c: Mark up parameter name in ANSI_SYNOPSIS. * libc/time/tzset.c: Add and mark up parameter in SYNOPSIS. * libm/common/s_nan.c: Ditto. Signed-off-by: Jon TURNEY --- newlib/ChangeLog | 6 ++++++ newlib/libc/stdlib/llabs.c | 2 +- newlib/libc/time/tzset.c | 4 ++-- newlib/libm/common/s_nan.c | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 7c29d88b8..2f1c8e2c1 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2015-06-23 Jon Turney + + * libc/stdlib/llabs.c: Mark up parameter name in ANSI_SYNOPSIS. + * libc/time/tzset.c: Add and mark up parameter in SYNOPSIS. + * libm/common/s_nan.c: Ditto. + 2015-06-23 Jon Turney * libc/stdio/getchar_u.c: Fix a non-ANSI prototype in SYNOPSIS. diff --git a/newlib/libc/stdlib/llabs.c b/newlib/libc/stdlib/llabs.c index 11246c354..496373910 100644 --- a/newlib/libc/stdlib/llabs.c +++ b/newlib/libc/stdlib/llabs.c @@ -7,7 +7,7 @@ INDEX ANSI_SYNOPSIS #include - long long llabs(long long j); + long long llabs(long long <[j]>); TRAD_SYNOPSIS #include diff --git a/newlib/libc/time/tzset.c b/newlib/libc/time/tzset.c index 5c421a58e..e0750e1fd 100644 --- a/newlib/libc/time/tzset.c +++ b/newlib/libc/time/tzset.c @@ -10,12 +10,12 @@ INDEX ANSI_SYNOPSIS #include void tzset(void); - void _tzset_r (struct _reent *); + void _tzset_r (struct _reent *<[reent_ptr]>); TRAD_SYNOPSIS #include void tzset(); - void _tzset_r (reent_ptr) + void _tzset_r (<[reent_ptr]>); struct _reent *reent_ptr; DESCRIPTION diff --git a/newlib/libm/common/s_nan.c b/newlib/libm/common/s_nan.c index ba0bb0ac1..a98650db0 100644 --- a/newlib/libm/common/s_nan.c +++ b/newlib/libm/common/s_nan.c @@ -14,8 +14,8 @@ INDEX ANSI_SYNOPSIS #include - double nan(const char *); - float nanf(const char *); + double nan(const char *<[unused]>); + float nanf(const char *<[unused]>); TRAD_SYNOPSIS #include