- From: Vic Bancroft <bancroft@csi-soft.com>
- Date: Thu, 3 Feb 2000 20:31:38 -0500 (EST)
- To: www-lib@w3.org
- Message-ID: <389A2B43.F1335129@csi-soft.com>
BTW, is there any objection to adding the previously posted HTList.* modifications as mentioned in a prior post : http://lists.w3.org/Archives/Public/www-lib/2000JanMar/0022.html Testing indicates a significant improvement when used in loops, where the last element of the list is used for subsequent HTList_appendList calls as suggested by the fragment : while ( (hostrec) && (iCount--) && (iAmt++ < MaxAmt) ) { chunky = HTChunk_new( sizeof(host_rec) ); FormatHostRecord( (char *)&tmp, hostrec ), HTChunk_putb(chunky, (char *)&tmp, strlen(tmp)); currentList = HTList_appendList((struct _HTList *)currentList, chunky); hostrec = (host_rec*)HostList->getNextRec(); } // endwhile Also here are a few header file modifications we needed when extending our use of libwww from within c++ classes. This may or may not address a few of the reported compile problems. It might be nice if someone made all of the header files c++ sensitive . . . ***************** HTReader.h ***************** User: C113 Date: 1/11/00 Time: 12:25p Checked in $/W3C Libraries/w3c-libwww-5.2.8/Library/src Comment: add c++ capability Changes: 38 Ins: 39 Ins: #ifdef __cplusplus 40 Ins: extern "C" { 41 Ins: #endif 42 Ins: 70 Ins: 71 Ins: #ifdef __cplusplus 72 Ins: } /* end extern C definitions */ 73 Ins: #endif 74 Ins: ***************** HTTCP.h ***************** User: C113 Date: 1/06/00 Time: 1:48p Checked in $/W3C Libraries/w3c-libwww-5.2.8/Library/src Comment: let W3C be able to compile in a c++ world Changes: 32 Ins: #ifdef __cplusplus 33 Ins: extern "C" { 34 Ins: #endif 35 Ins: 36 Ins: 70 Ins: extern int HTDoAccept (HTNet * net, HTNet ** accepted); 72 Ins: 103 Ins: 104 Ins: #ifdef __cplusplus 105 Ins: } /* end extern C definitions */ 106 Ins: #endif 107 Ins: ***************** HTFWrite.h ***************** User: C113 Date: 1/06/00 Time: 1:46p Checked in $/W3C Libraries/w3c-libwww-5.2.8/Library/src Comment: able to operate in a C++ world Changes: 32 Ins: 33 Ins: #ifdef __cplusplus 34 Ins: extern "C" { 35 Ins: #endif 36 Ins: 40 Ins: 41 Ins: 60 Ins: #ifdef __cplusplus 61 Ins: } /* end extern C definitions */ 62 Ins: #endif 63 Ins: ------------------------------------------------------------------ Victor Bancroft Fellow, Artificial Intelligence Center (706) 542-0358 Athens, Georgia 30602, U.S.A http://ai.uga.edu/~bancroft Senior Software Engineer, Business Technology Group (404) 231-5520 FAX (404) 231-5377
Received on Thursday, 3 February 2000 21:59:43 UTC