Mercurial > hg-old > index.cgi
diff lwlib/lw_expr.h @ 342:7b4123dce741
Added basic symbol registration
author | lost@starbug |
---|---|
date | Wed, 24 Mar 2010 21:30:31 -0600 |
parents | 04c80c51b16a |
children | a82c55070624 |
line wrap: on
line diff
--- a/lwlib/lw_expr.h Fri Mar 19 10:03:56 2010 +0000 +++ b/lwlib/lw_expr.h Wed Mar 24 21:30:31 2010 -0600 @@ -66,6 +66,9 @@ struct lw_expr_opers *operands; // ptr to list of operands (for operators) }; +typedef lw_expr_t lw_expr_fn_t(int t, void *ptr); +typedef lw_expr_t lw_expr_fn2_t(char *var); + #else /* def ___lw_expr_c_seen___ */ @@ -80,8 +83,11 @@ extern int lw_expr_compare(lw_expr_t E1, lw_expr_t E2); extern void lw_expr_simplify(lw_expr_t E); -extern void lw_expr_set_special_handler(lw_expr_t (*fn)(int t, void *ptr)); -extern void lw_expr_set_var_handler(lw_expr_t (*fn)(char *var)); +typedef lw_expr_t lw_expr_fn_t(int t, void *ptr); +typedef lw_expr_t lw_expr_fn2_t(char *var); + +extern void lw_expr_set_special_handler(lw_expr_fn_t *fn); +extern void lw_expr_set_var_handler(lw_expr_fn2_t *fn); #endif /* def ___lw_expr_c_seen___ */