Don't call skip_decl() on "Syntax error in input(3)"
This is a useless left-over from long ago (2007) when we didn't exit right away after reporting this error.
This commit is contained in:
parent
ef3f25ab1c
commit
471df4823b
1 changed files with 1 additions and 3 deletions
|
|
@ -4670,9 +4670,7 @@ cpp_members : cpp_member cpp_members {
|
||||||
| include_directive { $$ = $1; }
|
| include_directive { $$ = $1; }
|
||||||
| empty { $$ = 0;}
|
| empty { $$ = 0;}
|
||||||
| error {
|
| error {
|
||||||
int start_line = cparse_line;
|
Swig_error(cparse_file,cparse_line,"Syntax error in input(3).\n");
|
||||||
skip_decl();
|
|
||||||
Swig_error(cparse_file,start_line,"Syntax error in input(3).\n");
|
|
||||||
Exit(EXIT_FAILURE);
|
Exit(EXIT_FAILURE);
|
||||||
} cpp_members {
|
} cpp_members {
|
||||||
$$ = $3;
|
$$ = $3;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue