From 6aef20775ac0fce711d9fb95813c1c2a90e24a3f Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 30 Jun 2006 06:09:38 +0000 Subject: [PATCH] *** empty log message *** --- ase/awk/makefile.sco | 4 +++- ase/test/awk/awk.c | 22 +++++++++++++++------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/ase/awk/makefile.sco b/ase/awk/makefile.sco index 6633e111..2bb34e9a 100644 --- a/ase/awk/makefile.sco +++ b/ase/awk/makefile.sco @@ -1,4 +1,4 @@ -SRCS = awk.c err.c tree.c tab.c map.c parse.c run.c sa.c val.c misc.c +SRCS = awk.c err.c tree.c tab.c map.c parse.c run.c sa.c val.c func.c misc.c extio.c OBJS = $(SRCS:.c=.o) OUT = libxpawk.a @@ -15,3 +15,5 @@ clean: .c.o: $(CC) $(CFLAGS) -c $< + + diff --git a/ase/test/awk/awk.c b/ase/test/awk/awk.c index bc3fa35d..d110dbbb 100644 --- a/ase/test/awk/awk.c +++ b/ase/test/awk/awk.c @@ -1,18 +1,26 @@ /* - * $Id: awk.c,v 1.48 2006-06-30 04:25:53 bacon Exp $ + * $Id: awk.c,v 1.49 2006-06-30 06:09:38 bacon Exp $ */ #include #include #include + #ifdef XP_CHAR_IS_WCHAR -#include + #include #endif #ifndef __STAND_ALONE -#include -#include -#include + #include + #include + #include +#else + #include + #ifndef PATH_MAX + #define XP_PATH_MAX 4096 + #else + #define XP_PATH_MAX PATH_MAX + #endif #endif #ifdef _WIN32 @@ -372,7 +380,7 @@ xp_printf (XP_TEXT("closing [%s] of type %d (console)\n"), epa->name, epa->type case XP_AWK_IO_READ: { if (fgets_t (data, size, (FILE*)epa->handle) == XP_NULL) - //if (fgets_t (data, size, stdin) == XP_NULL) + /*if (fgets_t (data, size, stdin) == XP_NULL)*/ { return 0; } @@ -383,7 +391,7 @@ xp_printf (XP_TEXT("closing [%s] of type %d (console)\n"), epa->name, epa->type { /* TODO: how to return error or 0 */ fputs_t (data, /*size,*/ (FILE*)epa->handle); - //fputs_t (data, /*size,*/ stdout); + /*fputs_t (data, stdout);*/ return size; }