Mercurial > hg-old > index.cgi
comparison lwlib/lw_expr.h @ 370:6b33faa21a0a
Debugging output and bugfixing pass 0
author | lost@starbug |
---|---|
date | Tue, 20 Apr 2010 21:59:58 -0600 |
parents | 34dfc9747f23 |
children | 90de73ba0cac |
comparison
equal
deleted
inserted
replaced
369:898a41f7eb59 | 370:6b33faa21a0a |
---|---|
20 */ | 20 */ |
21 | 21 |
22 #ifndef ___lw_expr_h_seen___ | 22 #ifndef ___lw_expr_h_seen___ |
23 #define ___lw_expr_h_seen___ | 23 #define ___lw_expr_h_seen___ |
24 | 24 |
25 #include <stdio.h> | |
25 | 26 |
26 enum | 27 enum |
27 { | 28 { |
28 lw_expr_type_oper, // operator term | 29 lw_expr_type_oper, // operator term |
29 lw_expr_type_int, // integer | 30 lw_expr_type_int, // integer |
79 extern lw_expr_t lwexpr_create(void); | 80 extern lw_expr_t lwexpr_create(void); |
80 extern void lw_expr_destroy(lw_expr_t E); | 81 extern void lw_expr_destroy(lw_expr_t E); |
81 extern lw_expr_t lw_expr_copy(lw_expr_t E); | 82 extern lw_expr_t lw_expr_copy(lw_expr_t E); |
82 extern void lw_expr_add_operand(lw_expr_t E, lw_expr_t O); | 83 extern void lw_expr_add_operand(lw_expr_t E, lw_expr_t O); |
83 extern lw_expr_t lw_expr_build(int exprtype, ...); | 84 extern lw_expr_t lw_expr_build(int exprtype, ...); |
84 extern void lw_expr_print(lw_expr_t E); | 85 extern void lw_expr_print(lw_expr_t E, FILE *fp); |
85 extern int lw_expr_compare(lw_expr_t E1, lw_expr_t E2); | 86 extern int lw_expr_compare(lw_expr_t E1, lw_expr_t E2); |
86 extern void lw_expr_simplify(lw_expr_t E, void *priv); | 87 extern void lw_expr_simplify(lw_expr_t E, void *priv); |
87 | 88 |
88 typedef lw_expr_t lw_expr_fn_t(int t, void *ptr, void *priv); | 89 typedef lw_expr_t lw_expr_fn_t(int t, void *ptr, void *priv); |
89 typedef lw_expr_t lw_expr_fn2_t(char *var, void *priv); | 90 typedef lw_expr_t lw_expr_fn2_t(char *var, void *priv); |