Cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e247a550ca
commit
bd6fb3ab4a
1 changed files with 3 additions and 2 deletions
|
|
@ -179,9 +179,10 @@ nextchar(SwigScanner *s)
|
|||
Delitem(s->scanobjs,0);
|
||||
if (Len(s->scanobjs) == 0) return 0;
|
||||
s->str = Getitem(s->scanobjs,0);
|
||||
s->line = Getline(s->str);
|
||||
if (s->str)
|
||||
if (s->str) {
|
||||
s->line = Getline(s->str);
|
||||
Incref(s->str);
|
||||
}
|
||||
}
|
||||
if (nc == '\n') s->line++;
|
||||
c[0] = (char) nc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue