]> git.saurik.com Git - apple/libc.git/blob - stdlib/OpenBSD/ecvt.c.patch
Libc-763.13.tar.gz
[apple/libc.git] / stdlib / OpenBSD / ecvt.c.patch
1 --- ecvt.c.orig 2009-11-06 00:43:00.000000000 -0800
2 +++ ecvt.c 2009-11-06 00:45:11.000000000 -0800
3 @@ -20,6 +20,7 @@
4 * Materiel Command, USAF, under agreement number F39502-99-1-0512.
5 */
6
7 +#include <sys/cdefs.h>
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11 @@ -29,7 +30,7 @@ extern void __freedtoa(char *);
12 static char *__cvt(double, int, int *, int *, int, int);
13
14 static char *
15 -__cvt(double value, int ndigit, int *decpt, int *sign, int fmode, int pad)
16 +__cvt(double value, int ndigit, int * __restrict decpt, int * __restrict sign, int fmode, int pad)
17 {
18 static char *s;
19 char *p, *rve, c;
20 @@ -95,13 +96,13 @@ __cvt(double value, int ndigit, int *dec
21 }
22
23 char *
24 -ecvt(double value, int ndigit, int *decpt, int *sign)
25 +ecvt(double value, int ndigit, int * __restrict decpt, int * __restrict sign)
26 {
27 return(__cvt(value, ndigit, decpt, sign, 0, 1));
28 }
29
30 char *
31 -fcvt(double value, int ndigit, int *decpt, int *sign)
32 +fcvt(double value, int ndigit, int * __restrict decpt, int * __restrict sign)
33 {
34 return(__cvt(value, ndigit, decpt, sign, 1, 1));
35 }