Merge in Windows port using mingw and make.

This commit is contained in:
Russ Cox
2005-10-31 15:30:23 +00:00
parent d920d42c8b
commit 5d6ebf7a53
56 changed files with 730 additions and 978 deletions

View File

@ -1,7 +1,6 @@
ROOT=..
include ../Make.config
LIB=libc.a
CC=gcc
CFLAGS=-I../include -I. -c -ggdb -D_THREAD_SAFE -pthread
O=o
OFILES=\
charstod.$O\
@ -81,8 +80,8 @@ OFILES=\
vsnprint.$O
$(LIB): $(OFILES)
ar r $(LIB) $(OFILES)
ranlib $(LIB)
$(AR) r $(LIB) $(OFILES)
$(RANLIB) $(LIB)
%.$O: %.c
$(CC) $(CFLAGS) $*.c

View File

@ -209,7 +209,7 @@ dumpsome(char *ans, char *e, char *buf, long count)
if(count > DUMPL)
count = DUMPL;
for(i=0; i<count && printable; i++)
if((buf[i]<32 && buf[i] !='\n' && buf[i] !='\t') || buf[i]>127)
if((buf[i]<32 && buf[i] !='\n' && buf[i] !='\t') || (uchar)buf[i]>127)
printable = 0;
p = ans;
*p++ = '\'';

View File

@ -1,90 +0,0 @@
<$DSRC/mkfile-$CONF
TARG=libc.$L
OFILES=\
charstod.$O\
cleanname.$O\
convD2M.$O\
convM2D.$O\
convM2S.$O\
convS2M.$O\
crypt.$O\
dial.$O\
dirfstat.$O\
dirfwstat.$O\
dirmodefmt.$O\
dirstat.$O\
dirwstat.$O\
dofmt.$O\
dorfmt.$O\
fcallfmt.$O\
fltfmt.$O\
fmt.$O\
fmtfd.$O\
fmtlock.$O\
fmtprint.$O\
fmtquote.$O\
fmtrune.$O\
fmtstr.$O\
fmtvprint.$O\
fprint.$O\
frand.$O\
getfields.$O\
getpid.$O\
lnrand.$O\
lock.$O\
lrand.$O\
mallocz.$O\
nan64.$O\
netmkaddr.$O\
nrand.$O\
nsec.$O\
pow10.$O\
pushssl.$O\
read9pmsg.$O\
readn.$O\
rune.$O\
runefmtstr.$O\
runeseprint.$O\
runesmprint.$O\
runesnprint.$O\
runesprint.$O\
runetype.$O\
runevseprint.$O\
runevsmprint.$O\
runevsnprint.$O\
seprint.$O\
smprint.$O\
snprint.$O\
sprint.$O\
strecpy.$O\
strtod.$O\
strtoll.$O\
sysfatal.$O\
time.$O\
tokenize.$O\
truerand.$O\
u16.$O\
u32.$O\
u64.$O\
utfecpy.$O\
utflen.$O\
utfnlen.$O\
utfrrune.$O\
utfrune.$O\
utfutf.$O\
vfprint.$O\
vseprint.$O\
vsmprint.$O\
vsnprint.$O
HFILES=../include/libc.h\
fmt.h\
fmtdef.h\
nan.h\
strtod.h\
utf.h\
utfdef.h
<$DSRC/mklib-$CONF

View File

@ -12,9 +12,9 @@
// typedef unsigned long long uvlong;
// typedef unsigned long ulong;
static uvlong uvnan = 0x7FF0000000000001;
static uvlong uvinf = 0x7FF0000000000000;
static uvlong uvneginf = 0xFFF0000000000000;
static uvlong uvnan = 0x7FF0000000000001ULL;
static uvlong uvinf = 0x7FF0000000000000ULL;
static uvlong uvneginf = 0xFFF0000000000000ULL;
double
__NaN(void)

View File

@ -1,8 +1,7 @@
#include <u.h>
#include <libc.h>
static uvlong order = (uvlong) 0x0001020304050607;
static uvlong order = (uvlong) 0x0001020304050607ULL;
static void
be2vlong(vlong *to, uchar *f)