This commit is contained in:
parent
d1ba624139
commit
a18adc87b5
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: Awk.hpp 129 2008-03-13 05:45:36Z baconevi $
|
* $Id: Awk.hpp 183 2008-06-03 08:18:55Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: StdAwk.hpp 115 2008-03-03 11:13:15Z baconevi $
|
* $Id: StdAwk.hpp 183 2008-06-03 08:18:55Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: awk.h 115 2008-03-03 11:13:15Z baconevi $
|
* $Id: awk.h 183 2008-06-03 08:18:55Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: val.h 155 2008-03-22 06:47:27Z baconevi $
|
* $Id: val.h 183 2008-06-03 08:18:55Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: awk.c 115 2008-03-03 11:13:15Z baconevi $
|
* $Id: awk.c 192 2008-06-06 10:33:44Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
@ -9,7 +9,7 @@
|
|||||||
#define Library
|
#define Library
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <ase/awk/awk_i.h>
|
#include "awk_i.h"
|
||||||
|
|
||||||
static void free_word (void* awk, void* ptr);
|
static void free_word (void* awk, void* ptr);
|
||||||
static void free_afn (void* awk, void* afn);
|
static void free_afn (void* awk, void* afn);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: awk_i.h 115 2008-03-03 11:13:15Z baconevi $
|
* $Id: awk_i.h 192 2008-06-06 10:33:44Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
@ -16,14 +16,14 @@ typedef struct ase_awk_chain_t ase_awk_chain_t;
|
|||||||
typedef struct ase_awk_tree_t ase_awk_tree_t;
|
typedef struct ase_awk_tree_t ase_awk_tree_t;
|
||||||
|
|
||||||
#include <ase/awk/awk.h>
|
#include <ase/awk/awk.h>
|
||||||
#include <ase/awk/tree.h>
|
|
||||||
#include <ase/awk/val.h>
|
#include <ase/awk/val.h>
|
||||||
#include <ase/awk/func.h>
|
#include "tree.h"
|
||||||
#include <ase/awk/tab.h>
|
#include "func.h"
|
||||||
#include <ase/awk/parse.h>
|
#include "tab.h"
|
||||||
#include <ase/awk/run.h>
|
#include "parse.h"
|
||||||
#include <ase/awk/extio.h>
|
#include "run.h"
|
||||||
#include <ase/awk/misc.h>
|
#include "extio.h"
|
||||||
|
#include "misc.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning (disable: 4996)
|
#pragma warning (disable: 4996)
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: err.c 115 2008-03-03 11:13:15Z baconevi $
|
* $Id: err.c 192 2008-06-06 10:33:44Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ase/awk/awk_i.h>
|
#include "awk_i.h"
|
||||||
|
|
||||||
static const ase_char_t* __geterrstr (int errnum)
|
static const ase_char_t* __geterrstr (int errnum)
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: extio.c 115 2008-03-03 11:13:15Z baconevi $
|
* $Id: extio.c 192 2008-06-06 10:33:44Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ase/awk/awk_i.h>
|
#include "awk_i.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: func.c 115 2008-03-03 11:13:15Z baconevi $
|
* $Id: func.c 192 2008-06-06 10:33:44Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ase/awk/awk_i.h>
|
#include "awk_i.h"
|
||||||
|
|
||||||
static int bfn_close (ase_awk_run_t*, const ase_char_t*, ase_size_t);
|
static int bfn_close (ase_awk_run_t*, const ase_char_t*, ase_size_t);
|
||||||
static int bfn_fflush (ase_awk_run_t*, const ase_char_t*, ase_size_t);
|
static int bfn_fflush (ase_awk_run_t*, const ase_char_t*, ase_size_t);
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
NAME = aseawk
|
NAME = aseawk
|
||||||
|
|
||||||
TOP_BUILDDIR = @abs_top_builddir@
|
TOP_DIR = @abs_top_builddir@
|
||||||
TOP_INSTALLDIR = @prefix@/ase
|
TOP_INSTALLDIR = @prefix@/ase
|
||||||
|
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
@ -12,14 +12,14 @@ CXX = @CXX@
|
|||||||
AR = @AR@
|
AR = @AR@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
|
|
||||||
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
|
CFLAGS = @CFLAGS@ -I$(TOP_DIR)/inc
|
||||||
CXXFLAGS = @CXXFLAGS@ -I@abs_top_builddir@/..
|
CXXFLAGS = @CXXFLAGS@ -I$(TOP_DIR)/inc
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
MODE = @BUILDMODE@
|
MODE = @BUILDMODE@
|
||||||
|
|
||||||
CJ = @CJ@
|
CJ = @CJ@
|
||||||
CJFLAGS = @CJFLAGS@ --classpath=@abs_top_builddir@/.. -fjni
|
CJFLAGS = @CJFLAGS@ --classpath=$(TOP_DIR)/.. -fjni
|
||||||
BUILD_CJ = @BUILD_CJ@
|
BUILD_CJ = @BUILD_CJ@
|
||||||
|
|
||||||
JAVAC = @JAVAC@
|
JAVAC = @JAVAC@
|
||||||
@ -27,10 +27,10 @@ JAR = @JAR@
|
|||||||
CFLAGS_JNI = @CFLAGS_JNI@
|
CFLAGS_JNI = @CFLAGS_JNI@
|
||||||
BUILD_JNI = @BUILD_JNI@
|
BUILD_JNI = @BUILD_JNI@
|
||||||
|
|
||||||
LIBTOOL_COMPILE = ../libtool --mode=compile
|
LIBTOOL_COMPILE = $(TOP_DIR)/libtool --mode=compile
|
||||||
LIBTOOL_LINK = ../libtool --mode=link
|
LIBTOOL_LINK = $(TOP_DIR)/libtool --mode=link
|
||||||
|
|
||||||
OUT_DIR = ../$(MODE)/lib
|
OUT_DIR = $(TOP_DIR)/out/$(MODE)/lib
|
||||||
OUT_FILE_LIB = $(OUT_DIR)/lib$(NAME).a
|
OUT_FILE_LIB = $(OUT_DIR)/lib$(NAME).a
|
||||||
OUT_FILE_JNI = $(OUT_DIR)/lib$(NAME)_jni.la
|
OUT_FILE_JNI = $(OUT_DIR)/lib$(NAME)_jni.la
|
||||||
OUT_FILE_LIB_CXX = $(OUT_DIR)/lib$(NAME)++.a
|
OUT_FILE_LIB_CXX = $(OUT_DIR)/lib$(NAME)++.a
|
||||||
@ -188,10 +188,10 @@ $(TMP_DIR)/ase/awk/Argument.class: Argument.java
|
|||||||
$(TMP_DIR)/ase/awk/Clearable.class: Clearable.java
|
$(TMP_DIR)/ase/awk/Clearable.class: Clearable.java
|
||||||
$(JAVAC) -classpath ../.. -d $(TMP_DIR) Clearable.java
|
$(JAVAC) -classpath ../.. -d $(TMP_DIR) Clearable.java
|
||||||
|
|
||||||
$(TMP_DIR)/cxx/Awk.o: Awk.cpp Awk.hpp
|
$(TMP_DIR)/cxx/Awk.o: Awk.cpp
|
||||||
$(CXX) $(CXXFLAGS) -o $@ -c Awk.cpp
|
$(CXX) $(CXXFLAGS) -o $@ -c Awk.cpp
|
||||||
|
|
||||||
$(TMP_DIR)/cxx/StdAwk.o: StdAwk.cpp StdAwk.hpp Awk.hpp
|
$(TMP_DIR)/cxx/StdAwk.o: StdAwk.cpp
|
||||||
$(CXX) $(CXXFLAGS) -o $@ -c StdAwk.cpp
|
$(CXX) $(CXXFLAGS) -o $@ -c StdAwk.cpp
|
||||||
|
|
||||||
$(TMP_DIR)/cj/Awk.o: Awk.java
|
$(TMP_DIR)/cj/Awk.o: Awk.java
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: misc.c 115 2008-03-03 11:13:15Z baconevi $
|
* $Id: misc.c 192 2008-06-06 10:33:44Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ase/awk/awk_i.h>
|
#include "awk_i.h"
|
||||||
|
|
||||||
void* ase_awk_malloc (ase_awk_t* awk, ase_size_t size)
|
void* ase_awk_malloc (ase_awk_t* awk, ase_size_t size)
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: parse.c 115 2008-03-03 11:13:15Z baconevi $
|
* $Id: parse.c 192 2008-06-06 10:33:44Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ase/awk/awk_i.h>
|
#include "awk_i.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: rec.c 115 2008-03-03 11:13:15Z baconevi $
|
* $Id: rec.c 192 2008-06-06 10:33:44Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ase/awk/awk_i.h>
|
#include "awk_i.h"
|
||||||
|
|
||||||
static int split_record (ase_awk_run_t* run);
|
static int split_record (ase_awk_run_t* run);
|
||||||
static int recomp_record_fields (
|
static int recomp_record_fields (
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: run.c 155 2008-03-22 06:47:27Z baconevi $
|
* $Id: run.c 192 2008-06-06 10:33:44Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ase/awk/awk_i.h>
|
#include "awk_i.h"
|
||||||
|
|
||||||
#ifdef DEBUG_RUN
|
#ifdef DEBUG_RUN
|
||||||
#include <ase/utl/stdio.h>
|
#include <ase/utl/stdio.h>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: tab.c 115 2008-03-03 11:13:15Z baconevi $
|
* $Id: tab.c 192 2008-06-06 10:33:44Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ase/awk/awk_i.h>
|
#include "awk_i.h"
|
||||||
|
|
||||||
ase_awk_tab_t* ase_awk_tab_open (ase_awk_tab_t* tab, ase_awk_t* awk)
|
ase_awk_tab_t* ase_awk_tab_open (ase_awk_tab_t* tab, ase_awk_t* awk)
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: tree.c 115 2008-03-03 11:13:15Z baconevi $
|
* $Id: tree.c 192 2008-06-06 10:33:44Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ase/awk/awk_i.h>
|
#include "awk_i.h"
|
||||||
|
|
||||||
static const ase_char_t* assop_str[] =
|
static const ase_char_t* assop_str[] =
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: val.c 156 2008-03-22 12:09:35Z baconevi $
|
* $Id: val.c 192 2008-06-06 10:33:44Z baconevi $
|
||||||
*
|
*
|
||||||
* {License}
|
* {License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ase/awk/awk_i.h>
|
#include "awk_i.h"
|
||||||
|
|
||||||
#ifdef DEBUG_VAL
|
#ifdef DEBUG_VAL
|
||||||
#include <ase/utl/stdio.h>
|
#include <ase/utl/stdio.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user