W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2007

Re: Did the function HTXML_write forget to write stream to the "target" stream?

From: Vic Bancroft <bancroft@america.net>
Date: Wed, 01 Aug 2007 23:06:52 -0400
Message-ID: <46B14A4C.8050906@america.net>
To: wei wei <weiwei9@gmail.com>
CC: www-lib@w3.org

wei wei wrote:

>I traced the program and finally focused to the function HTXML_write(HTStream
>*me, const char *buf, in len) in HTXML.c
Okay . . .

>I think this function should write the content to the target stream in the
>param HTStream "me", after doing the XML_Parse work, just like what it did
>in function HTXML_abort.
Interesting . . .

>I added a line of code
>   (*me->target->isa->put_block)(me->target,buf,len);
>before the return of HTXML_write. Then it worked here.
Did you check me->target as well, something like

 >         if(me->target)
 >           (*me->target->isa->put_block)(me->target,buf,len);


"The future is here. It's just not evenly distributed yet."
 -- William Gibson, quoted by Whitfield Diffie
Received on Thursday, 2 August 2007 03:07:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:57 UTC