[PATCH 1/3] Add missing semicolons to prototypes in documentation SYNOPSIS sections

Jon Turney jon.turney@dronecode.org.uk
Tue Oct 27 16:09:00 GMT 2015


2015-10-27  Jon Turney  <jon.turney@dronecode.org.uk>

	* 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.

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
---
 newlib/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/newlib/ChangeLog b/newlib/ChangeLog
index 94b1f7b..0e83aca 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,16 @@
+2015-10-27  Jon Turney  <jon.turney@dronecode.org.uk>
+
+	* 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-10-19  Nick Clifton  <nickc@redhat.com>
 
 	* libc/include/sys/_intsup.h: Add support for 16-bit and 20-bit
diff --git a/newlib/libc/stdio/fseek.c b/newlib/libc/stdio/fseek.c
index 34147fa..b8fc36a 100644
--- a/newlib/libc/stdio/fseek.c
+++ b/newlib/libc/stdio/fseek.c
@@ -30,32 +30,32 @@ INDEX
 
 ANSI_SYNOPSIS
 	#include <stdio.h>
-	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 <stdio.h>
-	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 a060d8f..b2aaf8a 100644
--- a/newlib/libc/stdio/fwide.c
+++ b/newlib/libc/stdio/fwide.c
@@ -9,17 +9,17 @@ INDEX
 
 ANSI_SYNOPSIS
 	#include <wchar.h>
-	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 <wchar.h>
-	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 d605dd0..34eee67 100644
--- a/newlib/libc/stdio64/fseeko64.c
+++ b/newlib/libc/stdio64/fseeko64.c
@@ -26,18 +26,18 @@ INDEX
 
 ANSI_SYNOPSIS
 	#include <stdio.h>
-	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 <stdio.h>
 
-	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 35460ba..21607e0 100644
--- a/newlib/libc/string/strtok.c
+++ b/newlib/libc/string/strtok.c
@@ -14,24 +14,24 @@ INDEX
 ANSI_SYNOPSIS
 	#include <string.h>
       	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 <string.h>
-	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 95e9af3..144b33e 100644
--- a/newlib/libc/string/wcstok.c
+++ b/newlib/libc/string/wcstok.c
@@ -10,11 +10,11 @@ ANSI_SYNOPSIS
 	#include <wchar.h>
       	wchar_t *wcstok(wchar_t *__restrict <[source]>,
       			const wchar_t *__restrict <[delimiters]>,
-			wchar_t **__restrict <[lasts]>)
+			wchar_t **__restrict <[lasts]>);
 
 TRAD_SYNOPSIS
 	#include <wchar.h>
-	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 ab046f6..54bfec3 100644
--- a/newlib/libm/math/w_cosh.c
+++ b/newlib/libm/math/w_cosh.c
@@ -19,14 +19,14 @@ FUNCTION
 ANSI_SYNOPSIS
         #include <math.h>
         double cosh(double <[x]>);
-        float coshf(float <[x]>)
+        float coshf(float <[x]>);
 
 TRAD_SYNOPSIS
         #include <math.h>
-        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 47d1dd0..f9f72c7 100644
--- a/newlib/libm/math/w_fmod.c
+++ b/newlib/libm/math/w_fmod.c
@@ -22,15 +22,15 @@ fmodf
 
 ANSI_SYNOPSIS
 #include <math.h>
-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 <math.h>
-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 24b5420..f914110 100644
--- a/newlib/libm/mathfp/s_cosh.c
+++ b/newlib/libm/mathfp/s_cosh.c
@@ -9,14 +9,14 @@ FUNCTION
 ANSI_SYNOPSIS
         #include <math.h>
         double cosh(double <[x]>);
-        float coshf(float <[x]>)
+        float coshf(float <[x]>);
 
 TRAD_SYNOPSIS
         #include <math.h>
-        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 ec86376..19bba9c 100644
--- a/newlib/libm/mathfp/s_fmod.c
+++ b/newlib/libm/mathfp/s_fmod.c
@@ -22,15 +22,15 @@ fmodf
 
 ANSI_SYNOPSIS
 #include <math.h>
-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 <math.h>
-double fmod(<[x]>, <[y]>)
+double fmod(<[x]>, <[y]>);
 double (<[x]>, <[y]>);
 
-float fmodf(<[x]>, <[y]>)
+float fmodf(<[x]>, <[y]>);
 float (<[x]>, <[y]>);
 
 DESCRIPTION
-- 
2.5.3



More information about the Newlib mailing list