2007-05-02 01:07:00 +00:00
|
|
|
/*
|
2008-09-05 04:58:08 +00:00
|
|
|
* $Id: func.h 363 2008-09-04 10:58:08Z baconevi $
|
2007-05-02 01:07:00 +00:00
|
|
|
*
|
|
|
|
* {License}
|
|
|
|
*/
|
|
|
|
|
2008-09-05 04:58:08 +00:00
|
|
|
#ifndef _ASE_LIB_AWK_FUNC_H_
|
|
|
|
#define _ASE_LIB_AWK_FUNC_H_
|
2007-05-02 01:07:00 +00:00
|
|
|
|
|
|
|
typedef struct ase_awk_bfn_t ase_awk_bfn_t;
|
|
|
|
|
|
|
|
struct ase_awk_bfn_t
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
ase_char_t* ptr;
|
|
|
|
ase_size_t len;
|
|
|
|
} name;
|
|
|
|
|
|
|
|
int valid; /* the entry is valid when this option is set */
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
ase_size_t min;
|
|
|
|
ase_size_t max;
|
|
|
|
ase_char_t* spec;
|
|
|
|
} arg;
|
|
|
|
|
|
|
|
int (*handler) (ase_awk_run_t*, const ase_char_t*, ase_size_t);
|
|
|
|
|
2007-10-25 23:43:00 +00:00
|
|
|
/*ase_awk_bfn_t* next;*/
|
2007-05-02 01:07:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
ase_awk_bfn_t* ase_awk_getbfn (
|
|
|
|
ase_awk_t* awk, const ase_char_t* name, ase_size_t len);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|