*** empty log message ***

This commit is contained in:
hyung-hwan 2007-03-02 10:12:41 +00:00
parent ed79190a0c
commit 3018cf6373
4 changed files with 6 additions and 66 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: awk.c,v 1.111 2007-03-02 10:06:17 bacon Exp $
* $Id: awk.c,v 1.112 2007-03-02 10:12:40 bacon Exp $
*
* {License}
*/
@ -151,11 +151,6 @@ ase_awk_t* ase_awk_open (
ase_awk_setmaxdepth (awk, ASE_AWK_DEPTH_REX_BUILD, 0);
ase_awk_setmaxdepth (awk, ASE_AWK_DEPTH_REX_MATCH, 0);
/*
awk->run.count = 0;
awk->run.ptr = ASE_NULL;
*/
awk->custom_data = custom_data;
return awk;
}
@ -176,10 +171,6 @@ int ase_awk_close (ase_awk_t* awk)
if (ase_awk_clear (awk) == -1) return -1;
ase_awk_clrbfn (awk);
/*
ASE_AWK_ASSERT (awk, awk->run.count == 0 && awk->run.ptr == ASE_NULL);
*/
ase_awk_map_close (&awk->tree.afns);
ase_awk_tab_close (&awk->parse.globals);
ase_awk_tab_close (&awk->parse.locals);

View File

@ -1,5 +1,5 @@
/*
* $Id: awk_i.h,v 1.104 2007-03-02 10:06:17 bacon Exp $
* $Id: awk_i.h,v 1.105 2007-03-02 10:12:40 bacon Exp $
*
* {License}
*/
@ -189,11 +189,6 @@ struct ase_awk_t
struct
{
/*
ase_size_t count;
ase_awk_run_t* ptr;
*/
struct
{
struct

View File

@ -1,5 +1,5 @@
/*
* $Id: func.c,v 1.97 2007-02-24 14:31:44 bacon Exp $
* $Id: func.c,v 1.98 2007-03-02 10:12:40 bacon Exp $
*
* {License}
*/
@ -56,7 +56,7 @@ void* ase_awk_addbfn (
awk->prmfns.misc.sprintf (
awk->prmfns.misc.custom_data,
awk->errmsg, ASE_COUNTOF(awk->errmsg),
ASE_T("'%.*s' added already"), name_len, name);
ASE_T("'%.*s' added already"), (int)name_len, name);
ase_awk_seterror (awk, ASE_AWK_EEXIST, 0, awk->errmsg);
return ASE_NULL;
}

View File

@ -1,5 +1,5 @@
/*
* $Id: run.c,v 1.332 2007-03-02 10:06:17 bacon Exp $
* $Id: run.c,v 1.333 2007-03-02 10:12:41 bacon Exp $
*
* {License}
*/
@ -55,11 +55,6 @@ static int __set_global (
ase_awk_run_t* run, ase_size_t idx,
ase_awk_nde_var_t* var, ase_awk_val_t* val);
/*
static void __add_run (ase_awk_t* awk, ase_awk_run_t* run);
static void __del_run (ase_awk_t* awk, ase_awk_run_t* run);
*/
static int __init_run (
ase_awk_run_t* run, ase_awk_t* awk,
ase_awk_runios_t* runios, void* custom_data, int* errnum);
@ -664,9 +659,6 @@ int ase_awk_run (ase_awk_t* awk,
/* clear the run object space */
ase_memset (run, 0, ASE_SIZEOF(ase_awk_run_t));
/* add the run object to the awk object */
/*__add_run (awk, run);*/
/* initialize the run object */
if (__init_run (run, awk, runios, custom_data, &errnum) == -1)
{
@ -780,49 +772,11 @@ static void __free_namedval (void* run, void* val)
ase_awk_refdownval ((ase_awk_run_t*)run, val);
}
/*
static void __add_run (ase_awk_t* awk, ase_awk_run_t* run)
{
ASE_AWK_LOCK (awk);
run->awk = awk;
run->prev = ASE_NULL;
run->next = awk->run.ptr;
if (run->next != ASE_NULL) run->next->prev = run;
awk->run.ptr = run;
awk->run.count++;
ASE_AWK_UNLOCK (awk);
}
static void __del_run (ase_awk_t* awk, ase_awk_run_t* run)
{
ASE_AWK_LOCK (awk);
ASE_AWK_ASSERT (run->awk, awk->run.ptr != ASE_NULL);
if (run->prev == ASE_NULL)
{
awk->run.ptr = run->next;
if (run->next != ASE_NULL) run->next->prev = ASE_NULL;
}
else
{
run->prev->next = run->next;
if (run->next != ASE_NULL) run->next->prev = run->prev;
}
run->awk = ASE_NULL;
awk->run.count--;
ASE_AWK_UNLOCK (awk);
}
*/
static int __init_run (
ase_awk_run_t* run, ase_awk_t* awk,
ase_awk_runios_t* runios, void* custom_data, int* errnum)
{
run->awk = awk;
run->custom_data = custom_data;
run->stack = ASE_NULL;