2007-05-02 01:07:00 +00:00
|
|
|
/*
|
2007-10-25 23:43:00 +00:00
|
|
|
* $Id: func.h,v 1.4 2007/10/24 09:57:45 bacon Exp $
|
2007-05-02 01:07:00 +00:00
|
|
|
*
|
|
|
|
* {License}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASE_AWK_FUNC_H_
|
|
|
|
#define _ASE_AWK_FUNC_H_
|
|
|
|
|
|
|
|
#ifndef _ASE_AWK_AWK_H_
|
|
|
|
#error Never include this file directly. Include <ase/awk/awk.h> instead
|
|
|
|
#endif
|
|
|
|
|
|
|
|
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
|