From 2948231e0f3dfaab58e68c74d13c36b84c70ff2a Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Tue, 2 Jul 2013 19:12:53 +0000 Subject: hash function for abstract syntax trees --- src/runtime/c/pgf/expr.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/runtime/c/pgf/expr.h') 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 { -- cgit v1.2.3