fix line issues reported by Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8743 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bfa34459f3
commit
be2a108a3a
3 changed files with 5 additions and 4 deletions
|
|
@ -365,7 +365,7 @@ void skip_decl(void) {
|
|||
int done = 0;
|
||||
while (!done) {
|
||||
if ((c = nextchar()) == 0) {
|
||||
Swig_error(cparse_file,cparse_line,"Missing semicolon. Reached end of input.\n");
|
||||
Swig_error(cparse_file,cparse_line - 2,"Missing semicolon. Reached end of input.\n");
|
||||
return;
|
||||
}
|
||||
if (c == '{') {
|
||||
|
|
@ -379,7 +379,7 @@ void skip_decl(void) {
|
|||
if (!done) {
|
||||
while (num_brace > last_brace) {
|
||||
if ((c = nextchar()) == 0) {
|
||||
Swig_error(cparse_file,cparse_line,"Missing '}'. Reached end of input.\n");
|
||||
Swig_error(cparse_file,cparse_line - 2,"Missing '}'. Reached end of input.\n");
|
||||
return;
|
||||
}
|
||||
if (c == '{') num_brace++;
|
||||
|
|
@ -546,6 +546,7 @@ int yylook(void) {
|
|||
}
|
||||
}
|
||||
else if (c == '{') {
|
||||
cparse_start_line = cparse_line;
|
||||
last_brace = num_brace;
|
||||
num_brace++;
|
||||
return (LBRACE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue