[PATCH 05/11] Fix SYNOPSIS prototypes without marked up parameter names

Jon TURNEY jon.turney@dronecode.org.uk
Tue Jun 23 19:51:00 GMT 2015


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



More information about the Newlib mailing list