]> git.saurik.com Git - apple/libc.git/blame - stdlib/OpenBSD/ecvt.c.patch
Libc-763.11.tar.gz
[apple/libc.git] / stdlib / OpenBSD / ecvt.c.patch
CommitLineData
1f2f436a
A
1--- ecvt.c.orig 2009-11-06 00:43:00.000000000 -0800
2+++ ecvt.c 2009-11-06 00:45:11.000000000 -0800
3d9156a7
A
3@@ -20,6 +20,7 @@
4 * Materiel Command, USAF, under agreement number F39502-99-1-0512.
5 */
6
7+#include <sys/cdefs.h>
1f2f436a
A
8 #include <stdio.h>
9 #include <stdlib.h>
3d9156a7 10 #include <string.h>
1f2f436a 11@@ -29,7 +30,7 @@ extern void __freedtoa(char *);
3d9156a7
A
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;
1f2f436a
A
19 char *p, *rve, c;
20@@ -95,13 +96,13 @@ __cvt(double value, int ndigit, int *dec
3d9156a7
A
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 }