[PATCH 2/4] fenv: Fix mangled makedoc markup

Jon Turney jon.turney@dronecode.org.uk
Mon Aug 12 18:30:00 GMT 2019


See makedoc.c:657:
Variables are marked up as '<[foo]>'.
Code is marked up as '<<foo>>'.
---
 newlib/libm/fenv/fegetexceptflag.c | 2 +-
 newlib/libm/fenv/fesetenv.c        | 4 ++--
 newlib/libm/fenv/fesetexceptflag.c | 4 ++--
 newlib/libm/fenv/feupdateenv.c     | 6 +++---
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/newlib/libm/fenv/fegetexceptflag.c b/newlib/libm/fenv/fegetexceptflag.c
index e0e20b926..c2f854bb2 100644
--- a/newlib/libm/fenv/fegetexceptflag.c
+++ b/newlib/libm/fenv/fegetexceptflag.c
@@ -45,7 +45,7 @@ SYNOPSIS
 DESCRIPTION
 This method attempts to store an implementation-defined representation
 of the states of the floating-point status flags specified by <[excepts]>
-in the memory pointed to by <[flagp>].
+in the memory pointed to by <[flagp]>.
 
 RETURNS
 If the information was successfully returned, this method returns
diff --git a/newlib/libm/fenv/fesetenv.c b/newlib/libm/fenv/fesetenv.c
index 410abcc4f..f2432e0fc 100644
--- a/newlib/libm/fenv/fesetenv.c
+++ b/newlib/libm/fenv/fesetenv.c
@@ -38,13 +38,13 @@ INDEX
 
 SYNOPSIS
 	#include <fenv.h>
-	int fesetenv(const fenv_t *[<envp>]);
+	int fesetenv(const fenv_t *<[envp]>);
 
 	Link with -lm.
 
 DESCRIPTION
 This method attempts to establish the floating-point environment
-pointed to by <[envp]>. The argument [<envp>] must point to a
+pointed to by <[envp]>. The argument <[envp]> must point to a
 floating-point environment obtained via <<fegetenv>> or <<feholdexcept>>
 or a floating-point environment macro such as <<FE_DFL_ENV>>.
 
diff --git a/newlib/libm/fenv/fesetexceptflag.c b/newlib/libm/fenv/fesetexceptflag.c
index 1f350933c..0e8ce1f5c 100644
--- a/newlib/libm/fenv/fesetexceptflag.c
+++ b/newlib/libm/fenv/fesetexceptflag.c
@@ -44,8 +44,8 @@ SYNOPSIS
 
 DESCRIPTION
 This method attempts to set the floating-point status flags specified
-by <[excepts]> to the states indicated by <[flagp>].  The argument
-[<flagp>] must point to an fexcept_t instance obtained via calling
+by <[excepts]> to the states indicated by <[flagp]>.  The argument
+<[flagp]> must point to an fexcept_t instance obtained via calling
 <<fegetexceptflag>> with at least the floating-point exceptions specified
 by the argument <[excepts]>.
 
diff --git a/newlib/libm/fenv/feupdateenv.c b/newlib/libm/fenv/feupdateenv.c
index e1dd9657f..014440ba4 100644
--- a/newlib/libm/fenv/feupdateenv.c
+++ b/newlib/libm/fenv/feupdateenv.c
@@ -38,17 +38,17 @@ INDEX
 
 SYNOPSIS
 	#include <fenv.h>
-	int feupdateenv(const fenv_t *[<envp>]);
+	int feupdateenv(const fenv_t *<[envp]>);
 
 	Link with -lm.
 
 DESCRIPTION
 This method attempts to save the currently raised floating point
 exceptions in its automatic storage, install the floating point
-environment specified by [<envp]>, and raise the saved floating
+environment specified by <[envp]>, and raise the saved floating
 point exceptions.
 
-The argument [<envp>] must point to a floating-point environment
+The argument <[envp]> must point to a floating-point environment
 obtained via <<fegetenv>> or <<feholdexcept>>.
 
 RETURNS
-- 
2.21.0



More information about the Newlib mailing list