diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-06-16 16:22:16 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-06-16 16:22:16 -0400 |
commit | 7109fcbe8eba5fce5055d02e15aa1ba78f51037e (patch) | |
tree | 62ff0fb469e907cf8cbf958a9d8e6407c717636d | |
parent | dd1959df5fc4c0bc90509205bb2b1049ed9c2ede (diff) |
formatting
-rw-r--r-- | prepare.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -73,7 +73,8 @@ prepare_void_type (ast_type_spec_t *type_spec) return TRUE; } - return report_error ("void is allowed only as the return type of a function\n"); + return report_error ( + "void is allowed only as the return type of a function\n"); } static gboolean @@ -220,7 +221,8 @@ prepare_definition (ast_definition_t *definition, enclosing_class = (ast_t *)ast_enclosing_class (ast); enclosing_function = (ast_t *)ast_enclosing_function (ast); if (enclosing_class && - (!enclosing_function || ast_encloses (enclosing_function, enclosing_class))) + (!enclosing_function || + ast_encloses (enclosing_function, enclosing_class))) { definition->variable.field = TRUE; } @@ -485,6 +487,10 @@ prepare_statement (ast_statement_t *statement, { if (ast_encloses (enclosing, function)) { + /* FIXME: We could actually allow this since we support + * gotos out of the current function; the question is + * whether that would be more confusing than useful. + */ return report_error ( "break or continue cannot be used with a do, while, for, " "or switch which is outside the current function\n"); |