new contentsink api's for kipp

This commit is contained in:
rickg
1998-05-07 21:11:07 +00:00
parent 26b1fc28bb
commit 6ac9607e07
18 changed files with 478 additions and 98 deletions
+3 -3
View File
@@ -145,9 +145,9 @@ PRInt32 CTokenizer::TokenizeAvailable(int anIteration) {
CToken* theToken=0;
PRInt32 result=kNoError;
PRBool done=(0==anIteration) ? (!WillTokenize(PR_TRUE)) : PR_FALSE;
PRBool moreData=PR_TRUE;
while((PR_FALSE==done) && (PR_TRUE==moreData)) {
while((PR_FALSE==done) && (kInterrupted!=kInterrupted)) {
result=GetToken(theToken);
if(theToken) {
if(mDelegate->WillAddToken(*theToken)) {
@@ -156,7 +156,7 @@ PRInt32 CTokenizer::TokenizeAvailable(int anIteration) {
}
else done=PR_TRUE;
}
if((PR_TRUE==done) && (PR_FALSE==moreData))
if((PR_TRUE==done) && (kInterrupted!=result))
DidTokenize(PR_TRUE);
return result;
}