Fixed a bunch more errors; Seek doesn't work
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fa1ab5af61
commit
5be3ffdf05
1 changed files with 7 additions and 10 deletions
|
|
@ -78,12 +78,12 @@ static int Super_read(DOH *s, void *buffer, int length);
|
||||||
static long Super_tell(DOH *s);
|
static long Super_tell(DOH *s);
|
||||||
static int Super_putc(DOH *s, int ch);
|
static int Super_putc(DOH *s, int ch);
|
||||||
static int Super_getc(DOH *s);
|
static int Super_getc(DOH *s);
|
||||||
static int Super_ungetc(DOH *s, int ch);
|
static int Super_ungetc(DOH *s, int ch);
|
||||||
static int Super_replace(DOH *str, DOH *token, DOH *rep, int flags);
|
static int Super_replace(DOH *str, DOH *token, DOH *rep, int flags);
|
||||||
static void Super_setfile(DOH *s, DOH *f);
|
static void Super_setfile(DOH *s, DOH *f);
|
||||||
static void Super_setline(DOH *s, int);
|
static void Super_setline(DOH *s, int);
|
||||||
static DOH * Super_getfile(DOH *s);
|
static DOH * Super_getfile(DOH *s);
|
||||||
static int Super_getline(DOH *s);
|
static int Super_getline(DOH *s);
|
||||||
static void Super_chop(DOH *str);
|
static void Super_chop(DOH *str);
|
||||||
|
|
||||||
/* internal functions */
|
/* internal functions */
|
||||||
|
|
@ -757,8 +757,6 @@ Super_chop(DOH *so) {
|
||||||
int len, tag, offset;
|
int len, tag, offset;
|
||||||
Super *s = (Super *) so;
|
Super *s = (Super *) so;
|
||||||
|
|
||||||
/* check this one for obiwans */
|
|
||||||
|
|
||||||
s->hashkey = -1;
|
s->hashkey = -1;
|
||||||
s->pbi = 0;
|
s->pbi = 0;
|
||||||
|
|
||||||
|
|
@ -775,9 +773,8 @@ Super_chop(DOH *so) {
|
||||||
tag = Super_get_tag(s, len, &offset);
|
tag = Super_get_tag(s, len, &offset);
|
||||||
|
|
||||||
/* Delete any relevant tags... */
|
/* Delete any relevant tags... */
|
||||||
while (--s->numtags > tag)
|
while (s->numtags > tag + 1)
|
||||||
Delete(s->tags[s->numtags].filename);
|
Super_delete_tag(s, --s->numtags);
|
||||||
s->numtags++;
|
|
||||||
s->tags[tag].length = offset;
|
s->tags[tag].length = offset;
|
||||||
|
|
||||||
s->len = len;
|
s->len = len;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue