comparison lwlib/lw_expr.c @ 342:7b4123dce741

Added basic symbol registration
author lost@starbug
date Wed, 24 Mar 2010 21:30:31 -0600
parents 04c80c51b16a
children a82c55070624
comparison
equal deleted inserted replaced
341:4e1cff60c293 342:7b4123dce741
29 #include "lw_alloc.h" 29 #include "lw_alloc.h"
30 #include "lw_expr.h" 30 #include "lw_expr.h"
31 #include "lw_error.h" 31 #include "lw_error.h"
32 #include "lw_string.h" 32 #include "lw_string.h"
33 33
34 static lw_expr_t (*evaluate_special)(int t, void *ptr) = NULL; 34 static lw_expr_fn_t *evaluate_special = NULL;
35 static lw_expr_t (*evaluate_var)(char *var) = NULL; 35 static lw_expr_fn2_t *evaluate_var = NULL;
36 36
37 void lw_expr_set_special_handler(lw_expr_t (*fn)(int t, void *ptr)) 37 void lw_expr_set_special_handler(lw_expr_fn_t *fn)
38 { 38 {
39 evaluate_special = fn; 39 evaluate_special = fn;
40 } 40 }
41 41
42 void lw_expr_set_var_handler(lw_expr_t (*fn)(char *var)) 42 void lw_expr_set_var_handler(lw_expr_fn2_t *fn)
43 { 43 {
44 evaluate_var = fn; 44 evaluate_var = fn;
45 } 45 }
46 46
47 lw_expr_t lw_expr_create(void) 47 lw_expr_t lw_expr_create(void)