*** empty log message ***

This commit is contained in:
2005-06-06 16:32:29 +00:00
parent a483c08adf
commit 883b323b80
5 changed files with 17 additions and 20 deletions

View File

@ -1,15 +1,16 @@
SRCS = stx.c
OBJS = stx.obj
OUT = stx.exe
CC = bcc32
CFLAGS = -I..\..\..
LDFLAGS = -L..\..\..\xp\bas -L..\..\..\xp\stx
LIBS = import32.lib cw32mt.lib xpbas.lib xpstx.lib
STARTUP = c0x32w.obj
all: $(OBJS)
ilink32 $(LDFLAGS) $(STARTUP) $(OBJS),$(OUT),,$(LIBS),,
all: stx parser
stx: stx.obj
ilink32 $(LDFLAGS) $(STARTUP) stx.obj,stx.exe,,$(LIBS),,
parser: parser.obj
ilink32 $(LDFLAGS) $(STARTUP) parser.obj,parser.exe,,$(LIBS),,
clean:
del $(OBJS) *.obj $(OUT)

View File

@ -75,17 +75,12 @@ int stdio_func (int cmd, void* owner, void* arg)
else if (cmd == XP_STX_PARSER_INPUT_CONSUME) {
stdio_t* p = (stdio_t*)owner;
xp_cint_t* c = (xp_cint_t*)arg;
if (xp_feof(p->stdio)) {
xp_cint_t t = xp_fgetc (p->stdio);
if (t == XP_CHAR_EOF) {
if (xp_ferror (p->stdio)) return -1;
*c = XP_STX_CHAR_EOF;
}
else {
xp_cint_t t = xp_fgetc (p->stdio);
if (t == XP_CHAR_EOF) {
if (xp_ferror (p->stdio)) return -1;
*c = XP_STX_CHAR_EOF;
}
else *c = t;
}
else *c = t;
return 0;
}
else if (cmd == XP_STX_PARSER_INPUT_REWIND) {