MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / par_end_error

Function par_end_error

src/gpre/par.cpp:1750–1771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1748//
1749
1750static act* par_end_error()
1751{
1752
1753 // avoid parsing an ada exception end_error -
1754 // check for a semicolon
1755
1756 if (!PAR_end() && gpreGlob.sw_language == lang_ada)
1757 return NULL;
1758
1759 if (!cur_error)
1760 PAR_error("END_ERROR used out of context");
1761
1762 if (!((act*) MSC_pop(&cur_error)))
1763 return NULL;
1764
1765 // Need to eat the semicolon for c if present
1766
1767 if (gpreGlob.sw_language == lang_c)
1768 MSC_match(KW_SEMI_COLON);
1769
1770 return MSC_action(0, ACT_enderror);
1771}
1772
1773
1774//____________________________________________________________

Callers 1

PAR_actionFunction · 0.85

Calls 5

PAR_endFunction · 0.85
MSC_popFunction · 0.85
MSC_matchFunction · 0.85
MSC_actionFunction · 0.85
PAR_errorFunction · 0.70

Tested by

no test coverage detected