diff options
author | kwaclaw <kwaclaw> | 2004-03-16 22:14:30 +0000 |
---|---|---|
committer | kwaclaw <kwaclaw> | 2004-03-16 22:14:30 +0000 |
commit | 3e070384c2645b9145dd7abeca711dc03f82a00c (patch) | |
tree | 4e697a631ff5cc380a7a3af049dd67006c9db80f /lib/xmlparse.c | |
parent | 6ce9922d281e467f77f75ee39cb81db58d830111 (diff) | |
download | libexpat-3e070384c2645b9145dd7abeca711dc03f82a00c.tar.gz |
Changed to allow aborting a suspended parser instance.
Diffstat (limited to 'lib/xmlparse.c')
-rw-r--r-- | lib/xmlparse.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/xmlparse.c b/lib/xmlparse.c index 2d84ea0..01542e1 100644 --- a/lib/xmlparse.c +++ b/lib/xmlparse.c @@ -1668,8 +1668,12 @@ XML_StopParser(XML_Parser parser, XML_Bool resumable) { switch (parsing) { case XML_SUSPENDED: - errorCode = XML_ERROR_SUSPENDED; - return XML_STATUS_ERROR; + if (resumable) { + errorCode = XML_ERROR_SUSPENDED; + return XML_STATUS_ERROR; + } + parsing = XML_FINISHED; + break; case XML_FINISHED: errorCode = XML_ERROR_FINISHED; return XML_STATUS_ERROR; |