This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 05/11] Fix SYNOPSIS prototypes without marked up parameter names
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: newlib at sourceware dot org
- Cc: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- Date: Tue, 23 Jun 2015 20:49:18 +0100
- Subject: [PATCH 05/11] Fix SYNOPSIS prototypes without marked up parameter names
- Authentication-results: sourceware.org; auth=none
- References: <1435088964-5096-1-git-send-email-jon dot turney at dronecode dot org dot uk>
2015-06-23 Jon Turney <jon.turney@dronecode.org.uk>
* 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 <jon.turney@dronecode.org.uk>
---
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 7c29d88..2f1c8e2 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,11 @@
2015-06-23 Jon Turney <jon.turney@dronecode.org.uk>
+ * 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 <jon.turney@dronecode.org.uk>
+
* libc/stdio/getchar_u.c: Fix a non-ANSI prototype in SYNOPSIS.
2015-06-23 Jon Turney <jon.turney@dronecode.org.uk>
diff --git a/newlib/libc/stdlib/llabs.c b/newlib/libc/stdlib/llabs.c
index 11246c3..4963739 100644
--- a/newlib/libc/stdlib/llabs.c
+++ b/newlib/libc/stdlib/llabs.c
@@ -7,7 +7,7 @@ INDEX
ANSI_SYNOPSIS
#include <stdlib.h>
- long long llabs(long long j);
+ long long llabs(long long <[j]>);
TRAD_SYNOPSIS
#include <stdlib.h>
diff --git a/newlib/libc/time/tzset.c b/newlib/libc/time/tzset.c
index 5c421a5..e0750e1 100644
--- a/newlib/libc/time/tzset.c
+++ b/newlib/libc/time/tzset.c
@@ -10,12 +10,12 @@ INDEX
ANSI_SYNOPSIS
#include <time.h>
void tzset(void);
- void _tzset_r (struct _reent *);
+ void _tzset_r (struct _reent *<[reent_ptr]>);
TRAD_SYNOPSIS
#include <time.h>
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 ba0bb0a..a98650d 100644
--- a/newlib/libm/common/s_nan.c
+++ b/newlib/libm/common/s_nan.c
@@ -14,8 +14,8 @@ INDEX
ANSI_SYNOPSIS
#include <math.h>
- double nan(const char *);
- float nanf(const char *);
+ double nan(const char *<[unused]>);
+ float nanf(const char *<[unused]>);
TRAD_SYNOPSIS
#include <math.h>
--
2.1.4