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:
Dave Beazley 2000-06-15 03:23:47 +00:00
commit 64ddf38c9a
5 changed files with 19 additions and 15 deletions

View file

@ -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++;