From 0d155048397c88db09a25989450568e25af8f44c Mon Sep 17 00:00:00 2001 From: fche Date: Thu, 11 Aug 2005 16:53:45 +0000 Subject: 2005-08-11 Frank Ch. Eigler * translate.cxx (emit_function): Add an extra { } around the function body visitation. * tapset/timestamp_functions.stp: New file. * tapset/builtin_conversions.stp: Aggregated from [hex]string. * tapset/builtin_logging.stp: Aggregated from log/warn/printk. --- translate.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'translate.cxx') diff --git a/translate.cxx b/translate.cxx index 8806e502..b2a44563 100644 --- a/translate.cxx +++ b/translate.cxx @@ -771,7 +771,10 @@ c_unparser::emit_function (functiondecl* v) o->newline() << retvalue.init(); } + o->newline(1) << "{"; // in case body is embeddedcode with decls v->body->visit (this); + o->newline(-1) << "}"; + this->current_function = 0; o->newline(-1) << "out:"; -- cgit