summaryrefslogtreecommitdiff
path: root/src/runtime/c/pgf/expr.h
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-07-02 19:12:53 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-07-02 19:12:53 +0000
commit2948231e0f3dfaab58e68c74d13c36b84c70ff2a (patch)
tree586d51a18e346097d990e2b3fd6b77aa89deea21 /src/runtime/c/pgf/expr.h
parentc0a0859566dedd0f73b20285ea1d38aa15728c6b (diff)
hash function for abstract syntax trees
Diffstat (limited to 'src/runtime/c/pgf/expr.h')
-rw-r--r--src/runtime/c/pgf/expr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/c/pgf/expr.h b/src/runtime/c/pgf/expr.h
index 3d07ce863..bcfaee52c 100644
--- a/src/runtime/c/pgf/expr.h
+++ b/src/runtime/c/pgf/expr.h
@@ -166,6 +166,12 @@ pgf_expr_eq(PgfExpr e1, PgfExpr e2);
bool
pgf_type_eq(PgfType* t1, PgfType* t2);
+GuHash
+pgf_literal_hash(GuHash h, PgfLiteral lit);
+
+GuHash
+pgf_expr_hash(GuHash h, PgfExpr e);
+
typedef struct PgfPrintContext PgfPrintContext;
struct PgfPrintContext {