Commit 6c1d5706 by Ulrich Drepper Committed by Ulrich Drepper

Fix all problems reported by the test suite.

From-SVN: r15505
parent c0727e2a
1997-09-17 04:08 Ulrich Drepper <drepper@cygnus.com>
* iostream.cc: Add forward declaration for __cvt_double.
* libio.h: Define _IO_USE_DTOA is _G_HAVE_PRINTF_FP is not defined.
* strops.c (_IO_str_count): Correct last change.
1997-09-17 02:50 Ulrich Drepper <drepper@cygnus.com> 1997-09-17 02:50 Ulrich Drepper <drepper@cygnus.com>
* libioP.h: Define __set_errno if not already defined. * libioP.h: Define __set_errno if not already defined.
......
...@@ -42,6 +42,10 @@ extern "C" int __printf_fp (_IO_FILE *, const struct printf_info *, ...@@ -42,6 +42,10 @@ extern "C" int __printf_fp (_IO_FILE *, const struct printf_info *,
const void *const *); const void *const *);
#else #else
#include "floatio.h" #include "floatio.h"
# ifndef _IO_USE_DTOA
int __cvt_double(double number, register int prec, int flags, int *signp,
int fmtch, char *startp, char *endp)
# endif
#endif #endif
#define BUF (MAXEXP+MAXFRACT+1) /* + decimal point */ #define BUF (MAXEXP+MAXFRACT+1) /* + decimal point */
......
...@@ -71,6 +71,9 @@ ...@@ -71,6 +71,9 @@
# define const # define const
#endif #endif
#define _IO_UNIFIED_JUMPTABLES 1 #define _IO_UNIFIED_JUMPTABLES 1
#ifndef _G_HAVE_PRINTF_FP
# define _IO_USE_DTOA 1
#endif
#if 0 #if 0
# ifdef _IO_NEED_STDARG_H # ifdef _IO_NEED_STDARG_H
......
...@@ -200,8 +200,8 @@ _IO_ssize_t ...@@ -200,8 +200,8 @@ _IO_ssize_t
_IO_str_count (fp) _IO_str_count (fp)
_IO_FILE *fp; _IO_FILE *fp;
{ {
return ((fp->_IO_write_end > fp->_IO_read_end return ((fp->_IO_write_ptr > fp->_IO_read_end
? fp->_IO_write_end : fp->_IO_read_end) ? fp->_IO_write_ptr : fp->_IO_read_end)
- fp->_IO_read_base); - fp->_IO_read_base);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment