]> git.saurik.com Git - apple/libc.git/blobdiff - gdtoa/FreeBSD/gdtoa.h
Libc-1439.100.3.tar.gz
[apple/libc.git] / gdtoa / FreeBSD / gdtoa.h
index 62553f2ed05d6b8a12b59e62b1a464b2d960f301..317612d025d66e44d51120fda9b159c6bdc58456 100644 (file)
@@ -26,19 +26,14 @@ THIS SOFTWARE.
 
 ****************************************************************/
 
-/* Please send bug reports to
-       David M. Gay
-       Bell Laboratories, Room 2C-463
-       600 Mountain Avenue
-       Murray Hill, NJ 07974-0636
-       U.S.A.
-       dmg@bell-labs.com
- */
+/* Please send bug reports to David M. Gay (dmg at acm dot org,
+ * with " at " changed at "@" and " dot " changed to ".").     */
 
 #ifndef GDTOA_H_INCLUDED
 #define GDTOA_H_INCLUDED
 
 #include "arith.h"
+#include <stddef.h> /* for size_t */
 
 #ifndef Long
 #define Long long
@@ -80,9 +75,9 @@ typedef unsigned short UShort;
 
        /* The following may be or-ed into one of the above values. */
 
-       STRTOG_Neg      = 0x08,
-       STRTOG_Inexlo   = 0x10,
-       STRTOG_Inexhi   = 0x20,
+       STRTOG_Neg      = 0x08, /* does not affect STRTOG_Inexlo or STRTOG_Inexhi */
+       STRTOG_Inexlo   = 0x10, /* returned result rounded toward zero */
+       STRTOG_Inexhi   = 0x20, /* returned result rounded away from zero */
        STRTOG_Inexact  = 0x30,
        STRTOG_Underflow= 0x40,
        STRTOG_Overflow = 0x80
@@ -115,14 +110,14 @@ extern char* gdtoa ANSI((FPI *fpi, int be, ULong *bits, int *kindp,
 extern void freedtoa ANSI((char*));
 extern float  strtof ANSI((CONST char *, char **));
 extern double strtod ANSI((CONST char *, char **));
-extern int strtodg ANSI((CONST char*, char**, FPI*, Long*, ULong*));
+extern int strtodg ANSI((CONST char*, char**, CONST FPI*, Long*, ULong*, locale_t)) __DARWIN_ALIAS(strtodg);
 
-extern char*   g_ddfmt  ANSI((char*, double*, int, unsigned));
-extern char*   g_dfmt   ANSI((char*, double*, int, unsigned));
-extern char*   g_ffmt   ANSI((char*, float*,  int, unsigned));
-extern char*   g_Qfmt   ANSI((char*, void*,   int, unsigned));
-extern char*   g_xfmt   ANSI((char*, void*,   int, unsigned));
-extern char*   g_xLfmt  ANSI((char*, void*,   int, unsigned));
+extern char*   g_ddfmt  ANSI((char*, double*, int, size_t));
+extern char*   g_dfmt   ANSI((char*, double*, int, size_t));
+extern char*   g_ffmt   ANSI((char*, float*,  int, size_t));
+extern char*   g_Qfmt   ANSI((char*, void*,   int, size_t));
+extern char*   g_xfmt   ANSI((char*, void*,   int, size_t));
+extern char*   g_xLfmt  ANSI((char*, void*,   int, size_t));
 
 extern int     strtoId  ANSI((CONST char*, char**, double*, double*));
 extern int     strtoIdd ANSI((CONST char*, char**, double*, double*));
@@ -139,10 +134,10 @@ extern int        strtorxL ANSI((CONST char*, char**, int, void*));
 #if 1
 extern int     strtodI  ANSI((CONST char*, char**, double*));
 extern int     strtopd  ANSI((CONST char*, char**, double*));
-extern int     strtopdd ANSI((CONST char*, char**, double*));
+extern int     strtopdd ANSI((CONST char*, char**, double*, locale_t));
 extern int     strtopf  ANSI((CONST char*, char**, float*));
 extern int     strtopQ  ANSI((CONST char*, char**, void*));
-extern int     strtopx  ANSI((CONST char*, char**, void*));
+extern int     strtopx  ANSI((CONST char*, char**, void*, locale_t));
 extern int     strtopxL ANSI((CONST char*, char**, void*));
 #else
 #define strtopd(s,se,x) strtord(s,se,1,x)