Minor fixes and cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1d28f29584
commit
64ddf38c9a
5 changed files with 19 additions and 15 deletions
|
|
@ -100,7 +100,7 @@ SwigScanner_push(SwigScanner *s, DOHString *txt) {
|
|||
Push(s->scanobjs,txt);
|
||||
if (s->str) Delete(s->str);
|
||||
s->str = txt;
|
||||
Incref(s->str);
|
||||
DohIncref(s->str);
|
||||
s->line = Getline(txt);
|
||||
}
|
||||
|
||||
|
|
@ -181,7 +181,7 @@ nextchar(SwigScanner *s)
|
|||
s->str = Getitem(s->scanobjs,0);
|
||||
if (s->str) {
|
||||
s->line = Getline(s->str);
|
||||
Incref(s->str);
|
||||
DohIncref(s->str);
|
||||
}
|
||||
}
|
||||
if (nc == '\n') s->line++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue