*** empty log message ***

This commit is contained in:
hyung-hwan 2006-08-26 15:28:08 +00:00
parent 70d800cd80
commit ca336dbd9e
6 changed files with 34 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: func.c,v 1.31 2006-08-24 03:30:07 bacon Exp $
* $Id: func.c,v 1.32 2006-08-26 15:28:08 bacon Exp $
*/
#include <xp/awk/awk_i.h>
@ -8,6 +8,8 @@
#include <xp/bas/memory.h>
#include <xp/bas/string.h>
#include <xp/bas/assert.h>
#include <xp/bas/ctype.h>
#include <xp/bas/stdio.h>
#include <xp/bas/str.h>
#endif
@ -784,7 +786,8 @@ static int __bfn_system (xp_awk_t* awk, void* run)
#ifdef _WIN32
n = _tsystem (cmd);
#else
#error NOT SUPPORTED ...
/* TODO: support system on other platforms that win32 */
n = -1;
#endif
xp_free (cmd);

20
ase/awk/makefile.fbsd Normal file
View File

@ -0,0 +1,20 @@
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 rex.c
OBJS = $(SRCS:.c=.o)
OUT = libxpawk.a
CC = cc
CFLAGS = -Wall -I../.. -DXP_AWK_STAND_ALONE
all: $(OBJS)
ar cr $(OUT) $(OBJS)
clean:
rm -rf $(OBJS) $(OUT) *.obj
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -c $<

View File

@ -1,4 +1,5 @@
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
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 rex.c
OBJS = $(SRCS:.c=.o)
OUT = libxpawk.a

View File

@ -1,5 +1,5 @@
/*
* $Id: awk.c,v 1.75 2006-08-25 03:30:38 bacon Exp $
* $Id: awk.c,v 1.76 2006-08-26 15:28:08 bacon Exp $
*/
#include <xp/awk/awk.h>
@ -17,6 +17,7 @@
#include <xp/bas/memory.h>
#include <xp/bas/sysapi.h>
#include <xp/bas/assert.h>
#include <xp/bas/locale.h>
#else
#include <limits.h>
#ifndef PATH_MAX

View File

@ -4,7 +4,7 @@ OUTS = $(SRCS:.c=.x)
CC = @CC@
CFLAGS = @CFLAGS@ -I@abs_top_builddir@
LDFLAGS = @LDFLAGS@ -L@abs_top_builddir@/xp/bas -L@abs_top_builddir@/xp/awk
LIBS = @LIBS@ -lxpawk -lxpbas
LIBS = @LIBS@ -lxpawk -lxpbas -lm
all: $(OUTS)

View File

@ -1,5 +1,5 @@
/*
* $Id: types.h,v 1.52 2006-07-30 15:53:42 bacon Exp $
* $Id: types.h,v 1.53 2006-08-26 15:28:08 bacon Exp $
*/
#ifndef _XP_TYPES_H_
@ -213,6 +213,9 @@ typedef int xp_mcint_t;
#if defined(vms) || defined(__vms)
typedef unsigned int xp_wchar_t;
typedef int xp_wcint_t;
#elif defined(__FreeBSD__)
typedef int xp_wchar_t;
typedef int xp_wcint_t;
#elif XP_SIZEOF_LONG == 4
typedef long xp_wchar_t;
typedef long xp_wcint_t;