24#define dfunc_fail(dfw, node, ...) \
26 ws_noisy("Semantic check failed here."); \
27 dfilter_fail_throw(dfw, DF_ERROR_GENERIC, stnode_location(node), __VA_ARGS__); \
31typedef bool (*DFFuncType)(GSList *stack, uint32_t arg_count,
df_cell_t *retval);
34typedef ftenum_t (*DFSemCheckType)(
dfwork_t *dfw,
const char *func_name, ftenum_t lhs_ftype,
35 GSList *param_list,
df_loc_t func_loc);
44 ftenum_t return_ftype;
46 DFSemCheckType semcheck_param_function;
WS_DLL_PUBLIC bool df_func_deregister(df_func_def_t *func)
Deregisters a display filter function.
Definition dfunctions.c:742
WS_DLL_PUBLIC GPtrArray * df_func_name_list(void)
Returns a pointer to an array of registered display filter function names.
Definition dfunctions.c:766
WS_DLL_PUBLIC ftenum_t df_semcheck_param(dfwork_t *dfw, const char *func_name, ftenum_t logical_ftype, stnode_t *param, df_loc_t func_loc)
Check semantic correctness of a parameter in a display filter function.
WS_DLL_PUBLIC bool df_func_register(df_func_def_t *func)
Register a display filter function.
Definition dfunctions.c:721
void df_func_cleanup(void)
Cleans up resources used by display filter functions.
Definition dfunctions.c:772
void df_func_init(void)
Initialize the display filter functions.
Definition dfunctions.c:707
WS_DLL_PUBLIC df_func_def_t * df_func_lookup(const char *name)
Lookup a display filter function definition record by name.
Definition dfunctions.c:760
Definition dfilter-loc.h:16
Definition dfilter-int.h:25
Definition dfunctions.h:39
Definition dfilter-int.h:76
Definition syntax-tree.h:78