bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] [bug #36578] inconsistency in gsl_ieee_env_setup doc/api


From: Rhys Ulerich
Subject: [Bug-gsl] [bug #36578] inconsistency in gsl_ieee_env_setup doc/api
Date: Sat, 02 Jun 2012 17:41:52 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.78 Safari/535.11

URL:
  <http://savannah.gnu.org/bugs/?36578>

                 Summary: inconsistency in gsl_ieee_env_setup doc/api
                 Project: GNU Scientific Library
            Submitted by: rhysu
            Submitted on: Sat 02 Jun 2012 05:41:51 PM GMT
                Category: Documentation
                Severity: 3 - Normal
        Operating System: 
                  Status: None
             Assigned to: rhysu
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any

    _______________________________________________________

Details:

---8<---
This line from the gsl_ieee_env_setup() documentation
(http://www.gnu.org/software/gsl/manual/html_node/Setting-up-your-IEEE-environment.html)
makes no sense

> If the requested modes are not supported by the platform
> being used then the function calls the error handler and
> returns an error code of GSL_EUNSUP.

as the relevant function signature is

> void gsl_ieee_env_setup (void)

The GSL_EUNSUP value is returned from gsl_ieee_set_mode within
gsl_ieee_env_setup's implementation, but the value is ignored and not
returned to the caller.

So:

a) Fix the documentation.  Easy.

b) Fix the API signature and implementation.  Presumably everyone's
ignoring the currently void return value anyhow and changing the
signature to return an int would harm no one.

Thoughts?

- Rhys
---8<---
Thread at http://lists.gnu.org/archive/html/bug-gsl/2012-06/msg00000.html




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36578>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]