*** empty log message ***

This commit is contained in:
hyung-hwan 2006-04-14 11:13:06 +00:00
parent c5dd529c73
commit 6dd18f6e07
3 changed files with 27 additions and 2 deletions

View File

@ -6,7 +6,7 @@ CC = cc
CFLAGS = -Xc -a ansi -O2 -I../.. -D__STAND_ALONE CFLAGS = -Xc -a ansi -O2 -I../.. -D__STAND_ALONE
all: $(OBJS) all: $(OBJS)
ar cr $(OUT) $(OBJS)
clean: clean:
rm -rf $(OBJS) $(OUT) *.obj rm -rf $(OBJS) $(OUT) *.obj

17
ase/test/awk/Makefile.sco Normal file
View File

@ -0,0 +1,17 @@
CC = cc
CFLAGS = -Xc -a ansi -O2 -I../../..
LDFLAGS = -L../../bas -L../../awk
LIBS = -lxpawk -lm
all: awk
awk: awk.o
$(CC) -o awk awk.o $(LDFLAGS) $(LIBS)
clean:
rm -f *.obj awk
.SUFFIXES: .c .o
.c.o:
$(CC) -c $(CFLAGS) $<

View File

@ -1,5 +1,5 @@
/* /*
* $Id: awk.c,v 1.19 2006-04-10 09:26:17 bacon Exp $ * $Id: awk.c,v 1.20 2006-04-14 11:13:06 bacon Exp $
*/ */
#include <xp/awk/awk.h> #include <xp/awk/awk.h>
@ -47,7 +47,11 @@ static xp_ssize_t process_source (int cmd, void* arg, xp_char_t* data, xp_size_t
#include <mcheck.h> #include <mcheck.h>
#endif #endif
#if defined(_SCO_DS)
int main (int argc, char* argv[])
#else
int xp_main (int argc, xp_char_t* argv[]) int xp_main (int argc, xp_char_t* argv[])
#endif
{ {
xp_awk_t* awk; xp_awk_t* awk;
@ -81,7 +85,11 @@ int xp_main (int argc, xp_char_t* argv[])
if (argc == 2) if (argc == 2)
{ {
#if defined(_SCO_DS)
if (strcmp(argv[1], "-m") == 0)
#else
if (xp_strcmp(argv[1], XP_TEXT("-m")) == 0) if (xp_strcmp(argv[1], XP_TEXT("-m")) == 0)
#endif
{ {
xp_awk_setrunopt (awk, XP_AWK_RUNMAIN); xp_awk_setrunopt (awk, XP_AWK_RUNMAIN);
} }