qse/ase/awk/func.h

35 lines
585 B
C
Raw Normal View History

2006-06-16 14:31:42 +00:00
/*
2006-06-21 15:37:51 +00:00
* $Id: func.h,v 1.3 2006-06-21 15:37:51 bacon Exp $
2006-06-16 14:31:42 +00:00
*/
#ifndef _XP_AWK_FUNC_H_
#define _XP_AWK_FUNC_H_
#ifndef _XP_AWK_AWK_H_
#error Never include this file directly. Include <xp/awk/awk.h> instead
#endif
typedef struct xp_awk_bfn_t xp_awk_bfn_t;
struct xp_awk_bfn_t
{
const xp_char_t* name;
int valid; /* the entry is valid when this option is set */
2006-06-21 15:37:51 +00:00
xp_size_t min_args;
xp_size_t max_args;
2006-06-20 15:27:50 +00:00
int (*handler) (void* run);
2006-06-16 14:31:42 +00:00
};
#ifdef __cplusplus
extern "C" {
#endif
2006-06-21 15:37:51 +00:00
xp_awk_bfn_t* xp_awk_getbfn (xp_awk_t* awk, const xp_char_t* name);
2006-06-16 14:31:42 +00:00
#ifdef __cplusplus
}
#endif
#endif