C99 anomolies... ?

Joel Sherrill joel.sherrill@oarcorp.com
Wed Aug 27 19:51:00 GMT 2014


I was hoping for a big set of new language guards. :)

But thanks. :)
On 8/27/2014 2:27 PM, DJ Delorie wrote:
>>> <math.h>
>>>
>>> 	has:
>>> 	 extern long double frexpl _PARAMS((long double value, int *));
>>> 	but the "value" part is problematic.  Should be:
>>> 	 extern long double frexpl _PARAMS((long double, int *));
>>> 	Looks like the only case of this in <math.h>
>> Fix it. :)
> Committed as "hopefully obvious" ;-)
>
> 	* libc/include/math.h (frexpl): Remove parameter name.
>
> Index: libc/include/math.h
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/include/math.h,v
> retrieving revision 1.51
> diff -p -U 5 -r1.51 math.h
> --- libc/include/math.h	4 Aug 2014 21:32:37 -0000	1.51
> +++ libc/include/math.h	27 Aug 2014 19:19:36 -0000
> @@ -388,11 +388,11 @@ extern float hypotf _PARAMS((float, floa
>  extern long double atanl _PARAMS((long double));
>  extern long double cosl _PARAMS((long double));
>  extern long double sinl _PARAMS((long double));
>  extern long double tanl _PARAMS((long double));
>  extern long double tanhl _PARAMS((long double));
> -extern long double frexpl _PARAMS((long double value, int *));
> +extern long double frexpl _PARAMS((long double, int *));
>  extern long double modfl _PARAMS((long double, long double *));
>  extern long double ceill _PARAMS((long double));
>  extern long double fabsl _PARAMS((long double));
>  extern long double floorl _PARAMS((long double));
>  extern long double log1pl _PARAMS((long double));

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the Newlib mailing list