From af6626d66ab4c727145cefc90b9947e164f87425 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 30 Jan 2006 17:50:38 +0000 Subject: [PATCH] *** empty log message *** --- ase/awk/makefile.in | 2 +- ase/awk/prog.h | 29 ----------------------------- ase/test/awk/awk.c | 12 ++++++++++++ 3 files changed, 13 insertions(+), 30 deletions(-) delete mode 100644 ase/awk/prog.h diff --git a/ase/awk/makefile.in b/ase/awk/makefile.in index 14d2a109..57e93902 100644 --- a/ase/awk/makefile.in +++ b/ase/awk/makefile.in @@ -1,4 +1,4 @@ -SRCS = awk.c tree.c parse.c run.c sa.c +SRCS = awk.c tree.c tab.c hash.c parse.c run.c sa.c OBJS = $(SRCS:.c=.o) OUT = libxpawk.a diff --git a/ase/awk/prog.h b/ase/awk/prog.h deleted file mode 100644 index 294e2c9f..00000000 --- a/ase/awk/prog.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * $Id: prog.h,v 1.1 2005-12-28 15:57:27 bacon Exp $ - */ - -#ifndef _XP_AWK_PROG_H_ -#define _XP_AWK_PROG_H_ - - -struct -{ - /* line number */ - xp_size_t linenum; - - union - { - const xp_char_t* func_name; - } ptn; - - union - { - struct - { - unsigned short nargs; - xp_awk_body_t body; - } func; - } act; -}; - -#endif diff --git a/ase/test/awk/awk.c b/ase/test/awk/awk.c index c18f133c..7b77d880 100644 --- a/ase/test/awk/awk.c +++ b/ase/test/awk/awk.c @@ -48,10 +48,18 @@ static xp_ssize_t process_source (int cmd, void* arg, xp_char_t* data, xp_size_t } #endif +#ifdef __linux +#include +#endif + int xp_main (int argc, xp_char_t* argv[]) { xp_awk_t awk; +#ifdef __linux + mtrace (); +#endif + #if 0 if (argc != 2) { xp_printf (XP_TEXT("Usage: %s file\n"), argv[0]); @@ -77,5 +85,9 @@ int xp_main (int argc, xp_char_t* argv[]) } xp_awk_close (&awk); + +#ifdef __linux + muntrace (); +#endif return 0; }