*** empty log message ***
This commit is contained in:
parent
70d800cd80
commit
ca336dbd9e
@ -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>
|
#include <xp/awk/awk_i.h>
|
||||||
@ -8,6 +8,8 @@
|
|||||||
#include <xp/bas/memory.h>
|
#include <xp/bas/memory.h>
|
||||||
#include <xp/bas/string.h>
|
#include <xp/bas/string.h>
|
||||||
#include <xp/bas/assert.h>
|
#include <xp/bas/assert.h>
|
||||||
|
#include <xp/bas/ctype.h>
|
||||||
|
#include <xp/bas/stdio.h>
|
||||||
#include <xp/bas/str.h>
|
#include <xp/bas/str.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -784,7 +786,8 @@ static int __bfn_system (xp_awk_t* awk, void* run)
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
n = _tsystem (cmd);
|
n = _tsystem (cmd);
|
||||||
#else
|
#else
|
||||||
#error NOT SUPPORTED ...
|
/* TODO: support system on other platforms that win32 */
|
||||||
|
n = -1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
xp_free (cmd);
|
xp_free (cmd);
|
||||||
|
20
ase/awk/makefile.fbsd
Normal file
20
ase/awk/makefile.fbsd
Normal 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 $<
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -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)
|
OBJS = $(SRCS:.c=.o)
|
||||||
OUT = libxpawk.a
|
OUT = libxpawk.a
|
||||||
|
|
||||||
|
@ -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>
|
#include <xp/awk/awk.h>
|
||||||
@ -17,6 +17,7 @@
|
|||||||
#include <xp/bas/memory.h>
|
#include <xp/bas/memory.h>
|
||||||
#include <xp/bas/sysapi.h>
|
#include <xp/bas/sysapi.h>
|
||||||
#include <xp/bas/assert.h>
|
#include <xp/bas/assert.h>
|
||||||
|
#include <xp/bas/locale.h>
|
||||||
#else
|
#else
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#ifndef PATH_MAX
|
#ifndef PATH_MAX
|
||||||
|
@ -4,7 +4,7 @@ OUTS = $(SRCS:.c=.x)
|
|||||||
CC = @CC@
|
CC = @CC@
|
||||||
CFLAGS = @CFLAGS@ -I@abs_top_builddir@
|
CFLAGS = @CFLAGS@ -I@abs_top_builddir@
|
||||||
LDFLAGS = @LDFLAGS@ -L@abs_top_builddir@/xp/bas -L@abs_top_builddir@/xp/awk
|
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)
|
all: $(OUTS)
|
||||||
|
|
||||||
|
@ -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_
|
#ifndef _XP_TYPES_H_
|
||||||
@ -213,6 +213,9 @@ typedef int xp_mcint_t;
|
|||||||
#if defined(vms) || defined(__vms)
|
#if defined(vms) || defined(__vms)
|
||||||
typedef unsigned int xp_wchar_t;
|
typedef unsigned int xp_wchar_t;
|
||||||
typedef int xp_wcint_t;
|
typedef int xp_wcint_t;
|
||||||
|
#elif defined(__FreeBSD__)
|
||||||
|
typedef int xp_wchar_t;
|
||||||
|
typedef int xp_wcint_t;
|
||||||
#elif XP_SIZEOF_LONG == 4
|
#elif XP_SIZEOF_LONG == 4
|
||||||
typedef long xp_wchar_t;
|
typedef long xp_wchar_t;
|
||||||
typedef long xp_wcint_t;
|
typedef long xp_wcint_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user