exposed the details of qse_awk_fun_t

This commit is contained in:
hyung-hwan 2011-05-23 21:38:03 +00:00
parent bc941f10db
commit 40711d3320
3 changed files with 16 additions and 28 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: awk.h 468 2011-05-21 16:08:54Z hyunghwan.chung $
* $Id: awk.h 473 2011-05-23 03:38:03Z hyunghwan.chung $
*
Copyright 2006-2011 Chung, Hyung-Hwan.
This file is part of QSE.
@ -118,17 +118,6 @@ typedef struct qse_awk_t qse_awk_t;
*/
typedef struct qse_awk_rtx_t qse_awk_rtx_t;
/**
* The qse_awk_fun_t type defines an awk function type defined with the
* keyword 'function'.
*/
typedef struct qse_awk_fun_t qse_awk_fun_t;
/**
* The qse_awk_fnc_t type defines an intrisic function type.
*/
typedef struct qse_awk_fnc_t qse_awk_fnc_t;
/**
* The qse_awk_loc_t type defines a structure to hold location.
*/
@ -365,6 +354,17 @@ struct qse_awk_nde_t
QSE_AWK_NDE_HDR;
};
/**
* The qse_awk_fun_t type defines a structure to maintain functions
* defined with the keyword 'function'.
*/
struct qse_awk_fun_t
{
qse_xstr_t name;
qse_size_t nargs;
qse_awk_nde_t* body;
};
typedef struct qse_awk_fun_t qse_awk_fun_t;
typedef int (*qse_awk_sprintf_t) (
qse_awk_t* awk,

View File

@ -1,5 +1,5 @@
/*
* $Id: fnc.h 468 2011-05-21 16:08:54Z hyunghwan.chung $
* $Id: fnc.h 473 2011-05-23 03:38:03Z hyunghwan.chung $
*
Copyright 2006-2011 Chung, Hyung-Hwan.
This file is part of QSE.
@ -21,6 +21,8 @@
#ifndef _QSE_LIB_AWK_FNC_H_
#define _QSE_LIB_AWK_FNC_H_
typedef struct qse_awk_fnc_t qse_awk_fnc_t;
struct qse_awk_fnc_t
{
struct

View File

@ -1,5 +1,5 @@
/*
* $Id: tree.h 468 2011-05-21 16:08:54Z hyunghwan.chung $
* $Id: tree.h 473 2011-05-23 03:38:03Z hyunghwan.chung $
*
Copyright 2006-2011 Chung, Hyung-Hwan.
This file is part of QSE.
@ -51,15 +51,8 @@ typedef struct qse_awk_nde_exp_t qse_awk_nde_exp_t;
typedef struct qse_awk_nde_cnd_t qse_awk_nde_cnd_t;
typedef struct qse_awk_nde_pos_t qse_awk_nde_pos_t;
#ifndef QSE_AWK_NDE_INT_DEFINED
#define QSE_AWK_NDE_INT_DEFINED
typedef struct qse_awk_nde_int_t qse_awk_nde_int_t;
#endif
#ifndef QSE_AWK_NDE_REAL_DEFINED
#define QSE_AWK_NDE_REAL_DEFINED
typedef struct qse_awk_nde_real_t qse_awk_nde_real_t;
#endif
typedef struct qse_awk_nde_str_t qse_awk_nde_str_t;
typedef struct qse_awk_nde_rex_t qse_awk_nde_rex_t;
@ -81,13 +74,6 @@ typedef struct qse_awk_nde_delete_t qse_awk_nde_delete_t;
typedef struct qse_awk_nde_reset_t qse_awk_nde_reset_t;
typedef struct qse_awk_nde_print_t qse_awk_nde_print_t;
struct qse_awk_fun_t
{
qse_xstr_t name;
qse_size_t nargs;
qse_awk_nde_t* body;
};
/* QSE_AWK_NDE_BLK - block statement including top-level blocks */
struct qse_awk_nde_blk_t
{