*** empty log message ***

This commit is contained in:
hyung-hwan 2006-09-01 07:18:40 +00:00
parent e16d36fb1f
commit 599d50d936
13 changed files with 30 additions and 50 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: awk_i.h,v 1.53 2006-09-01 06:22:11 bacon Exp $
* $Id: awk_i.h,v 1.54 2006-09-01 07:18:39 bacon Exp $
*/
#ifndef _XP_AWK_AWKI_H_
@ -23,16 +23,6 @@ typedef struct xp_awk_tree_t xp_awk_tree_t;
#include <stdarg.h>
#include <assert.h>
#ifdef XP_CHAR_IS_MCHAR
#include <ctype.h>
#else
#include <ctype.h>
#include <wchar.h>
#if !defined(__BEOS__)
#include <wctype.h>
#endif
#endif
#define xp_assert assert
#define xp_memset(dst,fill,len) memset(dst,fill,len)

View File

@ -1,13 +1,11 @@
/*
* $Id: extio.c,v 1.44 2006-09-01 06:22:11 bacon Exp $
* $Id: extio.c,v 1.45 2006-09-01 07:18:39 bacon Exp $
*/
#include <xp/awk/awk_i.h>
#ifndef XP_AWK_STAND_ALONE
#include <xp/bas/assert.h>
#include <xp/bas/string.h>
#include <xp/bas/memory.h>
#endif
enum
@ -289,7 +287,7 @@ int xp_awk_readextio (
const xp_char_t* match_ptr;
xp_size_t match_len;
xp_assert (run->extio.rs_rex != NULL);
xp_assert (run->extio.rs_rex != XP_NULL);
/* TODO: safematchrex */
n = xp_awk_matchrex (
@ -417,7 +415,7 @@ static int __writeextio (
/* TOOD: consider using a shared buffer when calling
* xp_awk_valtostr. maybe run->shared_buf.extio */
str = xp_awk_valtostr (run, v, xp_true, NULL, &len);
str = xp_awk_valtostr (run, v, xp_true, XP_NULL, &len);
if (str == XP_NULL) return -1;
}

View File

@ -1,5 +1,5 @@
/*
* $Id: func.c,v 1.41 2006-09-01 06:45:05 bacon Exp $
* $Id: func.c,v 1.42 2006-09-01 07:18:39 bacon Exp $
*/
#include <xp/awk/awk_i.h>
@ -51,9 +51,9 @@ static xp_awk_bfn_t __sys_bfn[] =
};
xp_awk_bfn_t* xp_awk_addbfn (
xp_awk_t* awk, const xp_char_t* name, size_t name_len, int when_valid,
xp_size_t min_args, xp_size_t max_args, const xp_char_t* arg_spec,
int (*handler)(xp_awk_t*,void*))
xp_awk_t* awk, const xp_char_t* name, xp_size_t name_len,
int when_valid, xp_size_t min_args, xp_size_t max_args,
const xp_char_t* arg_spec, int (*handler)(xp_awk_t*,void*))
{
xp_awk_bfn_t* p;
@ -77,7 +77,7 @@ xp_awk_bfn_t* xp_awk_addbfn (
return p;
}
int xp_awk_delbfn (xp_awk_t* awk, const xp_char_t* name, size_t name_len)
int xp_awk_delbfn (xp_awk_t* awk, const xp_char_t* name, xp_size_t name_len)
{
xp_awk_bfn_t* p, * pp = XP_NULL;
@ -115,7 +115,7 @@ void xp_awk_clrbfn (xp_awk_t* awk)
}
xp_awk_bfn_t* xp_awk_getbfn (
xp_awk_t* awk, const xp_char_t* name, size_t name_len)
xp_awk_t* awk, const xp_char_t* name, xp_size_t name_len)
{
xp_awk_bfn_t* p;

View File

@ -1,5 +1,5 @@
/*
* $Id: func.h,v 1.10 2006-09-01 06:22:11 bacon Exp $
* $Id: func.h,v 1.11 2006-09-01 07:18:39 bacon Exp $
*/
#ifndef _XP_AWK_FUNC_H_
@ -42,16 +42,16 @@ extern "C" {
#endif
xp_awk_bfn_t* xp_awk_addbfn (
xp_awk_t* awk, const xp_char_t* name, size_t name_len, int when_valid,
xp_size_t min_args, xp_size_t max_args, const xp_char_t* arg_spec,
int (*handler)(xp_awk_t*,void*));
xp_awk_t* awk, const xp_char_t* name, xp_size_t name_len,
int when_valid, xp_size_t min_args, xp_size_t max_args,
const xp_char_t* arg_spec, int (*handler)(xp_awk_t*,void*));
int xp_awk_delbfn (xp_awk_t* awk, const xp_char_t* name, size_t name_len);
int xp_awk_delbfn (xp_awk_t* awk, const xp_char_t* name, xp_size_t name_len);
void xp_awk_clrbfn (xp_awk_t* awk);
xp_awk_bfn_t* xp_awk_getbfn (
xp_awk_t* awk, const xp_char_t* name, size_t name_len);
xp_awk_t* awk, const xp_char_t* name, xp_size_t name_len);
#ifdef __cplusplus
}

View File

@ -1,12 +1,10 @@
/*
* $Id: map.c,v 1.23 2006-09-01 06:22:12 bacon Exp $
* $Id: map.c,v 1.24 2006-09-01 07:18:39 bacon Exp $
*/
#include <xp/awk/awk_i.h>
#ifndef XP_AWK_STAND_ALONE
#include <xp/bas/memory.h>
#include <xp/bas/string.h>
#include <xp/bas/assert.h>
#endif

View File

@ -1,12 +1,12 @@
/*
* $Id: misc.c,v 1.10 2006-09-01 06:42:52 bacon Exp $
* $Id: misc.c,v 1.11 2006-09-01 07:18:40 bacon Exp $
*/
#include <xp/awk/awk_i.h>
#ifndef XP_AWK_STAND_ALONE
#include <xp/bas/ctype.h>
#include <xp/bas/assert.h>
#include <xp/bas/stdarg.h>
#endif
static int __vprintf (

View File

@ -1,14 +1,11 @@
/*
* $Id: parse.c,v 1.176 2006-09-01 06:22:12 bacon Exp $
* $Id: parse.c,v 1.177 2006-09-01 07:18:40 bacon Exp $
*/
#include <xp/awk/awk_i.h>
#ifndef XP_AWK_STAND_ALONE
#include <xp/bas/memory.h>
#include <xp/bas/ctype.h>
#include <xp/bas/string.h>
#include <xp/bas/stdlib.h>
#include <xp/bas/assert.h>
#include <xp/bas/stdio.h>
#endif

View File

@ -1,5 +1,5 @@
/*
* $Id: rex.c,v 1.26 2006-09-01 06:42:52 bacon Exp $
* $Id: rex.c,v 1.27 2006-09-01 07:18:40 bacon Exp $
*/
#include <xp/awk/awk_i.h>
@ -213,14 +213,14 @@ static const xp_byte_t* __print_branch (const xp_byte_t* p);
static const xp_byte_t* __print_atom (const xp_byte_t* p);
#ifndef XP_AWK_NTDDK
static struct __char_class_t
struct __char_class_t
{
const xp_char_t* name;
xp_size_t name_len;
xp_bool_t (*func) (xp_awk_t* awk, xp_char_t c);
};
static struct __char_class_t __char_class [] =
static struct __char_class_t __char_class[] =
{
{ XP_T("alnum"), 5, __cc_isalnum },
{ XP_T("alpha"), 5, __cc_isalpha },

View File

@ -1,5 +1,5 @@
/*
* $Id: run.c,v 1.193 2006-09-01 06:22:12 bacon Exp $
* $Id: run.c,v 1.194 2006-09-01 07:18:40 bacon Exp $
*/
#include <xp/awk/awk_i.h>
@ -9,7 +9,6 @@
#ifndef XP_AWK_STAND_ALONE
#include <xp/bas/assert.h>
#include <xp/bas/string.h>
#include <xp/bas/memory.h>
#endif

View File

@ -1,12 +1,11 @@
/*
* $Id: str.c,v 1.2 2006-09-01 06:22:13 bacon Exp $
* $Id: str.c,v 1.3 2006-09-01 07:18:40 bacon Exp $
*/
#include <xp/awk/awk_i.h>
#ifndef XP_AWK_STAND_ALONE
#include <xp/bas/memory.h>
#include <xp/bas/string.h>
#include <xp/bas/assert.h>
#endif

View File

@ -1,12 +1,11 @@
/*
* $Id: tab.c,v 1.15 2006-09-01 06:22:13 bacon Exp $
* $Id: tab.c,v 1.16 2006-09-01 07:18:40 bacon Exp $
*/
#include <xp/awk/awk_i.h>
#ifndef XP_AWK_STAND_ALONE
#include <xp/bas/memory.h>
#include <xp/bas/string.h>
#include <xp/bas/assert.h>
#endif

View File

@ -1,11 +1,10 @@
/*
* $Id: val.c,v 1.58 2006-09-01 06:22:13 bacon Exp $
* $Id: val.c,v 1.59 2006-09-01 07:18:40 bacon Exp $
*/
#include <xp/awk/awk_i.h>
#ifndef XP_AWK_STAND_ALONE
#include <xp/bas/string.h>
#include <xp/bas/memory.h>
#include <xp/bas/assert.h>
#include <xp/bas/stdio.h>

View File

@ -1,5 +1,5 @@
/*
* $Id: awk.c,v 1.84 2006-09-01 06:23:57 bacon Exp $
* $Id: awk.c,v 1.85 2006-09-01 07:18:40 bacon Exp $
*/
#include <xp/awk/awk.h>
@ -9,6 +9,7 @@
#ifdef XP_CHAR_IS_WCHAR
#include <wchar.h>
#include <wctype.h>
#endif
#ifndef __STAND_ALONE