patches to get v14 to compile.

svn path=/trunk/; revision=503
This commit is contained in:
Rex Jolliff 1999-05-21 18:47:44 +00:00
parent ed003aa199
commit ae32243b6a
4 changed files with 11 additions and 11 deletions

View file

@ -17,9 +17,9 @@
; DISCLAMED. This includes but is not limited to warrenties of ; DISCLAMED. This includes but is not limited to warrenties of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
; ;
; $Revision: 1.10 $ ; $Revision: 1.11 $
; $Author: ariadne $ ; $Author: rex $
; $Date: 1999/05/18 18:16:11 $ ; $Date: 1999/05/21 18:47:43 $
; ;
; These three functions appear to be name mangled in some way, so GCC is ; These three functions appear to be name mangled in some way, so GCC is
; probably not going to be able to use them in any case. ; probably not going to be able to use them in any case.
@ -66,7 +66,7 @@ __fpecode
__isascii __isascii
__iscsym __iscsym
__iscsymf __iscsymf
__mb_cur_max_dll ;__mb_cur_max_dll
__pxcptinfoptrs __pxcptinfoptrs
__threadhandle __threadhandle
__threadid __threadid
@ -454,7 +454,7 @@ isxdigit
labs labs
ldexp ldexp
ldiv ldiv
localeconv ;localeconv
localtime localtime
log log
log10 log10
@ -485,7 +485,7 @@ rename
rewind rewind
scanf scanf
setbuf setbuf
setlocale ;setlocale
setvbuf setvbuf
signal signal
sin sin

View file

@ -27,7 +27,7 @@ DIRECT_OBJECTS = direct/chdir.o direct/chdrive.o direct/getcwd.o direct/getdrive
EXCEPT_OBJECTS = except/unwind.o except/abnorter.o except/exhand2.o except/matherr.o EXCEPT_OBJECTS = except/unwind.o except/abnorter.o except/exhand2.o except/matherr.o
LOCALE_OBJECTS = locale/locale.o LOCALE_OBJECTS = # locale/locale.o
MALLOC_OBJECTS = malloc/expand.o malloc/heap.o MALLOC_OBJECTS = malloc/expand.o malloc/heap.o

View file

@ -3,7 +3,7 @@
#include <crtdll/stdio.h> #include <crtdll/stdio.h>
#include <crtdll/string.h> #include <crtdll/string.h>
#include <crtdll/float.h> #include <crtdll/float.h>
#include <crtdll/locale.h> // #include <crtdll/locale.h>
void __ecvround (char *, char *, const char *, int *); void __ecvround (char *, char *, const char *, int *);
@ -39,7 +39,7 @@ char *
ecvtbuf (double value, int ndigits, int *decpt, int *sign, char *buf) ecvtbuf (double value, int ndigits, int *decpt, int *sign, char *buf)
{ {
static char INFINITY[] = "Infinity"; static char INFINITY[] = "Infinity";
char decimal = localeconv()->decimal_point[0]; char decimal = '.' /* localeconv()->decimal_point[0] */;
char *cvtbuf = (char *)alloca (ndigits + 20); /* +3 for sign, dot, null; */ char *cvtbuf = (char *)alloca (ndigits + 20); /* +3 for sign, dot, null; */
/* two extra for rounding */ /* two extra for rounding */
/* 15 extra for alignment */ /* 15 extra for alignment */

View file

@ -3,7 +3,7 @@
#include <crtdll/stdio.h> #include <crtdll/stdio.h>
#include <crtdll/string.h> #include <crtdll/string.h>
#include <crtdll/float.h> #include <crtdll/float.h>
#include <crtdll/locale.h> // #include <crtdll/locale.h>
void __ecvround (char *, char *, const char *, int *); void __ecvround (char *, char *, const char *, int *);
@ -11,7 +11,7 @@ char *
fcvtbuf (double value, int ndigits, int *decpt, int *sign, char *buf) fcvtbuf (double value, int ndigits, int *decpt, int *sign, char *buf)
{ {
static char INFINITY[] = "Infinity"; static char INFINITY[] = "Infinity";
char decimal = localeconv()->decimal_point[0]; char decimal = '.' /* localeconv()->decimal_point[0] */;
int digits = ndigits >= 0 ? ndigits : 0; int digits = ndigits >= 0 ? ndigits : 0;
char *cvtbuf = (char *)alloca (2*DBL_MAX_10_EXP + 16); char *cvtbuf = (char *)alloca (2*DBL_MAX_10_EXP + 16);
char *s = cvtbuf; char *s = cvtbuf;