*** empty log message ***
This commit is contained in:
parent
63fbbfedec
commit
3f31c110cd
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: awk.c,v 1.15 2006-01-31 16:57:45 bacon Exp $
|
* $Id: awk.c,v 1.16 2006-02-01 02:56:12 bacon Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <xp/awk/awk.h>
|
#include <xp/awk/awk.h>
|
||||||
@ -194,4 +194,3 @@ static void __free_func (void* func)
|
|||||||
xp_awk_clrpt (f->body);
|
xp_awk_clrpt (f->body);
|
||||||
xp_free (f);
|
xp_free (f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: parse.c,v 1.41 2006-01-31 16:57:45 bacon Exp $
|
* $Id: parse.c,v 1.42 2006-02-01 02:56:12 bacon Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <xp/awk/awk.h>
|
#include <xp/awk/awk.h>
|
||||||
@ -921,7 +921,7 @@ static xp_awk_node_t* __parse_primary (xp_awk_t* awk)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* search the parameter name list */
|
/* search the parameter name list */
|
||||||
idxa = xp_awk_tab_find (&awk->parse.params, name_dup, 0);
|
idxa = xp_awk_tab_find(&awk->parse.params, name_dup, 0);
|
||||||
if (idxa != (xp_size_t)-1) {
|
if (idxa != (xp_size_t)-1) {
|
||||||
node->type = XP_AWK_NODE_ARG;
|
node->type = XP_AWK_NODE_ARG;
|
||||||
node->next = XP_NULL;
|
node->next = XP_NULL;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: tree.c,v 1.14 2006-01-31 16:57:45 bacon Exp $
|
* $Id: tree.c,v 1.15 2006-02-01 02:56:12 bacon Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <xp/awk/awk.h>
|
#include <xp/awk/awk.h>
|
||||||
@ -380,8 +380,8 @@ void xp_awk_clrpt (xp_awk_node_t* tree)
|
|||||||
|
|
||||||
case XP_AWK_NODE_ARGIDX:
|
case XP_AWK_NODE_ARGIDX:
|
||||||
xp_awk_clrpt (((xp_awk_node_idx_t*)p)->idx);
|
xp_awk_clrpt (((xp_awk_node_idx_t*)p)->idx);
|
||||||
if (((xp_awk_node_var_t*)p)->id.name != XP_NULL)
|
if (((xp_awk_node_idx_t*)p)->id.name != XP_NULL)
|
||||||
xp_free (((xp_awk_node_var_t*)p)->id.name);
|
xp_free (((xp_awk_node_idx_t*)p)->id.name);
|
||||||
xp_free (p);
|
xp_free (p);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -393,8 +393,8 @@ void xp_awk_clrpt (xp_awk_node_t* tree)
|
|||||||
|
|
||||||
case XP_AWK_NODE_VARIDX:
|
case XP_AWK_NODE_VARIDX:
|
||||||
xp_awk_clrpt (((xp_awk_node_idx_t*)p)->idx);
|
xp_awk_clrpt (((xp_awk_node_idx_t*)p)->idx);
|
||||||
if (((xp_awk_node_var_t*)p)->id.name != XP_NULL)
|
if (((xp_awk_node_idx_t*)p)->id.name != XP_NULL)
|
||||||
xp_free (((xp_awk_node_var_t*)p)->id.name);
|
xp_free (((xp_awk_node_idx_t*)p)->id.name);
|
||||||
xp_free (p);
|
xp_free (p);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: tree.h,v 1.19 2006-01-30 14:34:47 bacon Exp $
|
* $Id: tree.h,v 1.20 2006-02-01 02:56:12 bacon Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _XP_AWK_TREE_H_
|
#ifndef _XP_AWK_TREE_H_
|
||||||
@ -102,7 +102,7 @@ struct xp_awk_node_term_t
|
|||||||
struct xp_awk_node_var_t
|
struct xp_awk_node_var_t
|
||||||
{
|
{
|
||||||
XP_AWK_NODE_HDR;
|
XP_AWK_NODE_HDR;
|
||||||
union
|
struct // uniion
|
||||||
{
|
{
|
||||||
xp_char_t* name;
|
xp_char_t* name;
|
||||||
xp_size_t idxa;
|
xp_size_t idxa;
|
||||||
@ -112,7 +112,7 @@ struct xp_awk_node_var_t
|
|||||||
struct xp_awk_node_idx_t
|
struct xp_awk_node_idx_t
|
||||||
{
|
{
|
||||||
XP_AWK_NODE_HDR;
|
XP_AWK_NODE_HDR;
|
||||||
union
|
struct // union
|
||||||
{
|
{
|
||||||
xp_char_t* name;
|
xp_char_t* name;
|
||||||
xp_size_t idxa;
|
xp_size_t idxa;
|
||||||
|
Loading…
Reference in New Issue
Block a user