Revert "Merge pull request #1317 from pullreq/cpp"

This reverts commit 74135c0600, reversing
changes made to 6d749789ce.

See discussion in #1317
This commit is contained in:
ridiculousfish
2014-02-28 02:15:24 -08:00
parent 858b6aa257
commit be33d3f2a4
60 changed files with 95 additions and 103 deletions

View File

@@ -506,6 +506,7 @@ parse_execution_result_t parse_execution_context_t::run_for_statement(const pars
parse_execution_result_t parse_execution_context_t::run_switch_statement(const parse_node_t &statement)
{
assert(statement.type == symbol_switch_statement);
parse_execution_result_t ret = parse_execution_success;
const parse_node_t *matching_case_item = NULL;
parse_execution_result_t result = parse_execution_success;
@@ -531,6 +532,7 @@ parse_execution_result_t parse_execution_context_t::run_switch_statement(const p
{
/* Store the node that failed to expand */
report_error(switch_value_node, WILDCARD_ERR_MSG, switch_value.c_str());
ret = parse_execution_errored;
break;
}