*** empty log message ***
This commit is contained in:
parent
c5dd529c73
commit
6dd18f6e07
@ -6,7 +6,7 @@ CC = cc
|
||||
CFLAGS = -Xc -a ansi -O2 -I../.. -D__STAND_ALONE
|
||||
|
||||
all: $(OBJS)
|
||||
|
||||
ar cr $(OUT) $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJS) $(OUT) *.obj
|
||||
|
17
ase/test/awk/Makefile.sco
Normal file
17
ase/test/awk/Makefile.sco
Normal 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) $<
|
||||
|
@ -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>
|
||||
@ -47,7 +47,11 @@ static xp_ssize_t process_source (int cmd, void* arg, xp_char_t* data, xp_size_t
|
||||
#include <mcheck.h>
|
||||
#endif
|
||||
|
||||
#if defined(_SCO_DS)
|
||||
int main (int argc, char* argv[])
|
||||
#else
|
||||
int xp_main (int argc, xp_char_t* argv[])
|
||||
#endif
|
||||
{
|
||||
xp_awk_t* awk;
|
||||
|
||||
@ -81,7 +85,11 @@ int xp_main (int argc, xp_char_t* argv[])
|
||||
|
||||
if (argc == 2)
|
||||
{
|
||||
#if defined(_SCO_DS)
|
||||
if (strcmp(argv[1], "-m") == 0)
|
||||
#else
|
||||
if (xp_strcmp(argv[1], XP_TEXT("-m")) == 0)
|
||||
#endif
|
||||
{
|
||||
xp_awk_setrunopt (awk, XP_AWK_RUNMAIN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user