diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-11-10 19:47:00 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-11-10 19:47:00 -0500 |
commit | d3f9d5478df478427c2aa5db4507ddd0a38f0eb6 (patch) | |
tree | e27eacd6bbda653dd77f11cc020b9e0a59f7f4fc /WWW/Library/Implementation/HTVMS_WaisProt.c | |
parent | 18024037b515bfff83e0230b35151babe6005e18 (diff) | |
download | lynx-snapshots-d3f9d5478df478427c2aa5db4507ddd0a38f0eb6.tar.gz |
snapshot of project "lynx", label v2-8-2dev_2
Diffstat (limited to 'WWW/Library/Implementation/HTVMS_WaisProt.c')
-rw-r--r-- | WWW/Library/Implementation/HTVMS_WaisProt.c | 81 |
1 files changed, 40 insertions, 41 deletions
diff --git a/WWW/Library/Implementation/HTVMS_WaisProt.c b/WWW/Library/Implementation/HTVMS_WaisProt.c index 543de7ad..76081407 100644 --- a/WWW/Library/Implementation/HTVMS_WaisProt.c +++ b/WWW/Library/Implementation/HTVMS_WaisProt.c @@ -32,7 +32,6 @@ */ #include <HTUtils.h> -#include <tcp.h> #include <HTVMS_WaisUI.h> #include <HTVMS_WaisProt.h> @@ -58,7 +57,7 @@ /*----------------------------------------------------------------------*/ -static unsigned long userInfoTagSize _AP((data_tag tag, +static unsigned long userInfoTagSize PARAMS((data_tag tag, unsigned long length)); static unsigned long @@ -80,7 +79,7 @@ unsigned long length; /*----------------------------------------------------------------------*/ -static char* writeUserInfoHeader _AP((data_tag tag,long infoSize, +static char* writeUserInfoHeader PARAMS((data_tag tag,long infoSize, long estHeaderSize,char* buffer, long* len)); @@ -127,7 +126,7 @@ long* len; /*----------------------------------------------------------------------*/ -static char* readUserInfoHeader _AP((data_tag* tag,unsigned long* num, +static char* readUserInfoHeader PARAMS((data_tag* tag,unsigned long* num, char* buffer)); static char* @@ -228,8 +227,8 @@ char* buffer; char* buf = buffer; unsigned long size; unsigned long headerSize; - data_tag tag; long chunkCode,chunkIDLen; + data_tag tag1; char* chunkMarker = NULL; char* highlightMarker = NULL; char* deHighlightMarker = NULL; @@ -237,7 +236,7 @@ char* buffer; chunkCode = chunkIDLen = UNUSED; - buf = readUserInfoHeader(&tag,&size,buf); + buf = readUserInfoHeader(&tag1,&size,buf); headerSize = buf - buffer; while (buf < (buffer + size + headerSize)) @@ -436,7 +435,7 @@ DocObj* doc; /*----------------------------------------------------------------------*/ -static char* writeDocObj _AP((DocObj* doc,char* buffer,long* len)); +static char* writeDocObj PARAMS((DocObj* doc,char* buffer,long* len)); static char* writeDocObj(doc,buffer,len) @@ -483,7 +482,7 @@ long* len; /*----------------------------------------------------------------------*/ -static char* readDocObj _AP((DocObj** doc,char* buffer)); +static char* readDocObj PARAMS((DocObj** doc,char* buffer)); static char* readDocObj(doc,buffer) @@ -610,7 +609,7 @@ char* buffer; { char* buf = buffer; unsigned long size; unsigned long headerSize; - data_tag tag; + data_tag tag1; char* seedWords = NULL; char* beginDateRange = NULL; char* endDateRange = NULL; @@ -624,7 +623,7 @@ char* buffer; dateFactor = maxDocsRetrieved = UNUSED; - buf = readUserInfoHeader(&tag,&size,buf); + buf = readUserInfoHeader(&tag1,&size,buf); headerSize = buf - buffer; while (buf < (buffer + size + headerSize)) @@ -769,7 +768,7 @@ long* len; unsigned long header_len = userInfoTagSize(DT_DocumentHeaderGroup , DefWAISDocHeaderSize); char* buf = buffer + header_len; - unsigned long size; + unsigned long size1; RESERVE_SPACE_FOR_WAIS_HEADER(len); @@ -800,8 +799,8 @@ long* len; buf = writeString(header->OriginCity,DT_OriginCity,buf,len); /* now write the header and size */ - size = buf - buffer; - buf = writeUserInfoHeader(DT_DocumentHeaderGroup,size,header_len,buffer,len); + size1 = buf - buffer; + buf = writeUserInfoHeader(DT_DocumentHeaderGroup,size1,header_len,buffer,len); return(buf); } @@ -814,9 +813,9 @@ WAISDocumentHeader** header; char* buffer; { char* buf = buffer; - unsigned long size; + unsigned long size1; unsigned long headerSize; - data_tag tag; + data_tag tag1; any* docID = NULL; long versionNumber,score,bestMatch,docLength,lines; char** types = NULL; @@ -827,10 +826,10 @@ char* buffer; versionNumber = score = bestMatch = docLength = lines = UNUSED; - buf = readUserInfoHeader(&tag,&size,buf); + buf = readUserInfoHeader(&tag1,&size1,buf); headerSize = buf - buffer; - while (buf < (buffer + size + headerSize)) + while (buf < (buffer + size1 + headerSize)) { data_tag tag = peekTag(buf); switch (tag) { case DT_DocumentID: @@ -977,13 +976,13 @@ char* buffer; char* buf = buffer; unsigned long size; unsigned long headerSize; - data_tag tag; + data_tag tag1; any* docID = NULL; long versionNumber,score,bestMatch,docLength,lines; versionNumber = score = bestMatch = docLength = lines = UNUSED; - buf = readUserInfoHeader(&tag,&size,buf); + buf = readUserInfoHeader(&tag1,&size,buf); headerSize = buf - buffer; while (buf < (buffer + size + headerSize)) @@ -1105,7 +1104,7 @@ long* len; unsigned long header_len = userInfoTagSize(DT_DocumentLongHeaderGroup , DefWAISLongHeaderSize); char* buf = buffer + header_len; - unsigned long size; + unsigned long size1; RESERVE_SPACE_FOR_WAIS_HEADER(len); @@ -1139,8 +1138,8 @@ long* len; buf = writeString(header->IndustryCodes,DT_IndustryCodes,buf,len); /* now write the header and size */ - size = buf - buffer; - buf = writeUserInfoHeader(DT_DocumentLongHeaderGroup,size,header_len,buffer,len); + size1 = buf - buffer; + buf = writeUserInfoHeader(DT_DocumentLongHeaderGroup,size1,header_len,buffer,len); return(buf); } @@ -1153,9 +1152,9 @@ WAISDocumentLongHeader** header; char* buffer; { char* buf = buffer; - unsigned long size; + unsigned long size1; unsigned long headerSize; - data_tag tag; + data_tag tag1; any* docID; long versionNumber,score,bestMatch,docLength,lines; char **types; @@ -1166,10 +1165,10 @@ char* buffer; types = NULL; source = date = headline = originCity = stockCodes = companyCodes = industryCodes = NULL; - buf = readUserInfoHeader(&tag,&size,buf); + buf = readUserInfoHeader(&tag1,&size1,buf); headerSize = buf - buffer; - while (buf < (buffer + size + headerSize)) + while (buf < (buffer + size1 + headerSize)) { data_tag tag = peekTag(buf); switch (tag) { case DT_DocumentID: @@ -1396,7 +1395,7 @@ long* len; /*----------------------------------------------------------------------*/ static void -cleanUpWaisSearchResponse _AP((char* buf,char* seedWordsUsed, +cleanUpWaisSearchResponse PARAMS((char* buf,char* seedWordsUsed, WAISDocumentHeader** docHeaders, WAISDocumentShortHeader** shortHeaders, WAISDocumentLongHeader** longHeaders, @@ -1474,7 +1473,7 @@ char* buffer; char* buf = buffer; unsigned long size; unsigned long headerSize; - data_tag tag; + data_tag tag1; void* header = NULL; WAISDocumentHeader** docHeaders = NULL; WAISDocumentShortHeader** shortHeaders = NULL; @@ -1491,7 +1490,7 @@ char* buffer; numDocHeaders = numLongHeaders = numShortHeaders = numText = numHeadlines = numCodes = 0; - buf = readUserInfoHeader(&tag,&size,buf); + buf = readUserInfoHeader(&tag1,&size,buf); headerSize = buf - buffer; while (buf < (buffer + size + headerSize)) @@ -1672,14 +1671,14 @@ char* buffer; char* buf = buffer; unsigned long size; unsigned long headerSize; - data_tag tag; + data_tag tag1; any *docID,*documentText; long versionNumber; docID = documentText = NULL; versionNumber = UNUSED; - buf = readUserInfoHeader(&tag,&size,buf); + buf = readUserInfoHeader(&tag1,&size,buf); headerSize = buf - buffer; while (buf < (buffer + size + headerSize)) @@ -1788,7 +1787,7 @@ char* buffer; char* buf = buffer; unsigned long size; unsigned long headerSize; - data_tag tag; + data_tag tag1; any* docID; long versionNumber; char *source,*date,*headline,*originCity; @@ -1797,7 +1796,7 @@ char* buffer; versionNumber = UNUSED; source = date = headline = originCity = NULL; - buf = readUserInfoHeader(&tag,&size,buf); + buf = readUserInfoHeader(&tag1,&size,buf); headerSize = buf - buffer; while (buf < (buffer + size + headerSize)) @@ -1913,7 +1912,7 @@ char* buffer; char* buf = buffer; unsigned long size; unsigned long headerSize; - data_tag tag; + data_tag tag1; any* docID; long versionNumber; char *stockCodes,*companyCodes,*industryCodes; @@ -1922,7 +1921,7 @@ char* buffer; versionNumber = UNUSED; stockCodes = companyCodes = industryCodes = NULL; - buf = readUserInfoHeader(&tag,&size,buf); + buf = readUserInfoHeader(&tag1,&size,buf); headerSize = buf - buffer; while (buf < (buffer + size + headerSize)) @@ -1962,9 +1961,9 @@ char* buffer; char* writePresentInfo(present,buffer,len) -PresentAPDU* present; +PresentAPDU* present GCC_UNUSED; char* buffer; -long* len; +long* len GCC_UNUSED; { /* The WAIS protocol doesn't use present info */ return(buffer); @@ -1986,9 +1985,9 @@ char* buffer; char* writePresentResponseInfo(response,buffer,len) -PresentResponseAPDU* response; +PresentResponseAPDU* response GCC_UNUSED; char* buffer; -long* len; +long* len GCC_UNUSED; { /* The WAIS protocol doesn't use presentResponse info */ return(buffer); @@ -2045,7 +2044,7 @@ char* buffer; ( XXX return type could be in the element set) */ -static query_term** makeWAISQueryTerms _AP((DocObj** docs)); +static query_term** makeWAISQueryTerms PARAMS((DocObj** docs)); static query_term** makeWAISQueryTerms(docs) @@ -2164,7 +2163,7 @@ DocObj** docs; /*----------------------------------------------------------------------*/ -static DocObj** makeWAISQueryDocs _AP((query_term** terms)); +static DocObj** makeWAISQueryDocs PARAMS((query_term** terms)); static DocObj** makeWAISQueryDocs(terms) |