From c43a8331cf6bee3a929e2c8db2a617e91bf4bbc7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 7 Nov 2012 14:07:21 +0900 Subject: [PATCH] Expose dump_dot_sblock. --- tools/qfcc/include/statements.h | 1 + tools/qfcc/source/statements.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/include/statements.h b/tools/qfcc/include/statements.h index 2359230a4..e9dff8941 100644 --- a/tools/qfcc/include/statements.h +++ b/tools/qfcc/include/statements.h @@ -88,6 +88,7 @@ int find_operands (statement_t *s, operand_t **x, operand_t **y, operand_t **z, operand_t **w); sblock_t *make_statements (struct expr_s *expr); void print_statement (statement_t *s); +void dump_dot_sblock (void *data, const char *fname); void print_sblock (sblock_t *sblock, const char *filename); const char *operand_string (operand_t *op); diff --git a/tools/qfcc/source/statements.c b/tools/qfcc/source/statements.c index 588af0ba5..c0c045f43 100644 --- a/tools/qfcc/source/statements.c +++ b/tools/qfcc/source/statements.c @@ -1434,7 +1434,7 @@ check_final_block (sblock_t *sblock) sblock_add_statement (sblock, s); } -static void +void dump_dot_sblock (void *data, const char *fname) { print_sblock ((sblock_t *) data, fname);