From 9a2fe02c2842f1ecf60e587b94e645a9fc36385d Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 30 Jan 2006 14:45:12 +0000 Subject: [PATCH] *** empty log message *** --- ase/awk/awk.c | 4 +--- ase/awk/hash.c | 8 +++++++- ase/awk/mem.h | 26 -------------------------- ase/awk/parse.c | 7 ++++++- ase/awk/tab.c | 4 +++- 5 files changed, 17 insertions(+), 32 deletions(-) delete mode 100644 ase/awk/mem.h diff --git a/ase/awk/awk.c b/ase/awk/awk.c index d9798a7d..46e5c144 100644 --- a/ase/awk/awk.c +++ b/ase/awk/awk.c @@ -1,5 +1,5 @@ /* - * $Id: awk.c,v 1.13 2006-01-30 14:34:47 bacon Exp $ + * $Id: awk.c,v 1.14 2006-01-30 14:45:12 bacon Exp $ */ #include @@ -52,8 +52,6 @@ xp_awk_t* xp_awk_open (xp_awk_t* awk) awk->tree.begin = XP_NULL; awk->tree.end = XP_NULL; awk->tree.unnamed = XP_NULL; - //awk->tree.funcs = XP_NULL; - awk->lex.curc = XP_CHAR_EOF; awk->lex.ungotc_count = 0; diff --git a/ase/awk/hash.c b/ase/awk/hash.c index 7425191b..99c7ca34 100644 --- a/ase/awk/hash.c +++ b/ase/awk/hash.c @@ -1,9 +1,15 @@ /* - * $Id: hash.c,v 1.3 2006-01-30 14:34:47 bacon Exp $ + * $Id: hash.c,v 1.4 2006-01-30 14:45:12 bacon Exp $ */ #include +#ifndef __STAND_ALONE +#include +#include +#include +#endif + // TODO: improve the entire hash routines. // support automatic bucket resizing and rehashing, etc. diff --git a/ase/awk/mem.h b/ase/awk/mem.h deleted file mode 100644 index 9f843aef..00000000 --- a/ase/awk/mem.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * $Id: mem.h,v 1.1 2005-09-30 09:40:15 bacon Exp $ - */ - -#ifndef _XP_SCE_MEM_H_ -#define _XP_SCE_MEM_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -xp_sce_mem_t* xp_sce_mem_open ( - xp_sce_mem_t* mem, xp_word_t capacity); -void xp_sce_mem_close (xp_sce_mem_t* mem); - -void xp_sce_mem_gc (xp_sce_mem_t* mem); -xp_word_t xp_sce_mem_alloc (xp_sce_mem_t* mem, xp_word_t size); -void xp_sce_mem_dealloc (xp_sce_mem_t* mem, xp_word_t object_index); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/ase/awk/parse.c b/ase/awk/parse.c index 6c0ee66d..02f93136 100644 --- a/ase/awk/parse.c +++ b/ase/awk/parse.c @@ -1,5 +1,5 @@ /* - * $Id: parse.c,v 1.39 2006-01-30 14:34:47 bacon Exp $ + * $Id: parse.c,v 1.40 2006-01-30 14:45:12 bacon Exp $ */ #include @@ -188,6 +188,11 @@ static struct __kwent __kwtab[] = #define PANIC(awk,code) do { (awk)->errnum = (code); return XP_NULL; } while (0); + +// TODO: remove stdio.h +#ifndef __STAND_ALONE +#include +#endif static int __dump_func (xp_awk_pair_t* pair) { xp_awk_func_t* func = (xp_awk_func_t*)pair->value; diff --git a/ase/awk/tab.c b/ase/awk/tab.c index c5e1ff33..05351f95 100644 --- a/ase/awk/tab.c +++ b/ase/awk/tab.c @@ -1,10 +1,12 @@ /* - * $Id: tab.c,v 1.1 2006-01-29 18:28:14 bacon Exp $ + * $Id: tab.c,v 1.2 2006-01-30 14:45:12 bacon Exp $ */ #include + #ifndef __STAND_ALONE #include +#include #include #endif