Author: tkreuzer Date: Tue Oct 27 15:31:16 2009 New Revision: 43792
URL: http://svn.reactos.org/svn/reactos?rev=43792&view=rev Log: Kill floating point from RTL sprintf. It was leading to crashing freeldr when compiled with never gccs.
Modified: branches/ros-amd64-bringup/reactos/lib/rtl/sprintf.c
Modified: branches/ros-amd64-bringup/reactos/lib/rtl/sprintf.c URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/rt... ============================================================================== --- branches/ros-amd64-bringup/reactos/lib/rtl/sprintf.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/lib/rtl/sprintf.c [iso-8859-1] Tue Oct 27 15:31:16 2009 @@ -34,6 +34,7 @@ unsigned int sign:1; } double_t;
+#if 0 static __inline int @@ -62,7 +63,7 @@ x.__x = &__x; return ( x.x->exponent == 0x7ff && ( x.x->mantissah != 0 || x.x->mantissal != 0 )); } - +#endif
static __inline @@ -179,6 +180,7 @@ return buf; }
+#if 0 static char * numberf(char * buf, char * end, double num, int base, int size, int precision, int type) { @@ -283,6 +285,7 @@ } return buf; } +#endif
static char* string(char* buf, char* end, const char* s, int len, int field_width, int precision, int flags) @@ -389,7 +392,7 @@ { int len; unsigned long long num; - double _double; +// double _double;
int base; char *str, *end; @@ -594,6 +597,7 @@ } continue;
+#if 0 /* float number formats - set up the flags and "break" */ case 'e': case 'E': @@ -635,7 +639,7 @@ }
continue; - +#endif
/* integer number formats - set up the flags and "break" */ case 'o':