*** empty log message ***
This commit is contained in:
parent
c4a635d425
commit
9a2fe02c28
@ -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 <xp/awk/awk.h>
|
||||
@ -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;
|
||||
|
@ -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 <xp/awk/hash.h>
|
||||
|
||||
#ifndef __STAND_ALONE
|
||||
#include <xp/bas/memory.h>
|
||||
#include <xp/bas/string.h>
|
||||
#include <xp/bas/assert.h>
|
||||
#endif
|
||||
|
||||
// TODO: improve the entire hash routines.
|
||||
// support automatic bucket resizing and rehashing, etc.
|
||||
|
||||
|
@ -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 <xp/sce/sce.h>
|
||||
|
||||
#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
|
@ -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 <xp/awk/awk.h>
|
||||
@ -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 <xp/bas/stdio.h>
|
||||
#endif
|
||||
static int __dump_func (xp_awk_pair_t* pair)
|
||||
{
|
||||
xp_awk_func_t* func = (xp_awk_func_t*)pair->value;
|
||||
|
@ -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 <xp/awk/tab.h>
|
||||
|
||||
#ifndef __STAND_ALONE
|
||||
#include <xp/bas/memory.h>
|
||||
#include <xp/bas/string.h>
|
||||
#include <xp/bas/assert.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user