diff options
| -rw-r--r-- | CHANGES | 38 | ||||
| -rw-r--r-- | INSTALLATION | 26 | ||||
| -rw-r--r-- | WWW/Library/Implementation/CommonMakefile | 3 | ||||
| -rw-r--r-- | WWW/Library/Implementation/HTDOS.c | 8 | ||||
| -rw-r--r-- | WWW/Library/Implementation/HTFile.c | 1 | ||||
| -rw-r--r-- | WWW/Library/Implementation/HTFormat.c | 19 | ||||
| -rw-r--r-- | WWW/Library/Implementation/HTUtils.h | 2 | ||||
| -rw-r--r-- | WWW/Library/Implementation/HTVMS_WaisUI.c | 461 | ||||
| -rw-r--r-- | WWW/Library/Implementation/HTVMS_WaisUI.h | 2 | ||||
| -rw-r--r-- | lynx.cfg | 4 | ||||
| -rw-r--r-- | lynx.man | 89 | ||||
| -rw-r--r-- | lynx_help/Lynx_users_guide.html | 27 | ||||
| -rw-r--r-- | src/HTAlert.c | 14 | ||||
| -rw-r--r-- | src/LYCharUtils.c | 17 | ||||
| -rw-r--r-- | src/LYCurses.c | 4 | ||||
| -rw-r--r-- | src/LYGlobalDefs.h | 2 | ||||
| -rw-r--r-- | src/LYMain.c | 15 | ||||
| -rw-r--r-- | src/LYReadCFG.c | 12 | ||||
| -rw-r--r-- | src/LYUtils.c | 12 | ||||
| -rw-r--r-- | src/LYrcFile.c | 27 | ||||
| -rw-r--r-- | userdefs.h | 4 |
21 files changed, 349 insertions, 438 deletions
@@ -1,14 +1,44 @@ Changes since Lynx 2.8 release ================================================================================ +1998-09-29 (2.8.1pre.5) +* force compile on VMS to use stdarg.h; it was ifdef'd for __STDC__ which + VAX C does not define, though it does support stdarg.h (reported by Tony + Bolton). Test-compile HTVMS_WaisUI.c on Linux to check... - TD +* update url for tcplib in INSTALLATION - DK +* fix HTDOS_name trace massage - LP +* expand "~" in include-statements in lynx.cfg (reported by LP) - TD +* remove some obsolete stuff from INSTALLATION - HN +* DOSPATH fix: user input URL like c:/path/file.ext (begins with drive letter) + now resolved as local path and will not be passed to DNS search in any case + (was running URL guessing process for host "c:" if file.ext not found...) + fix LYFillLocalFileURL() - LP +* fix HTUserMsg2 trace massage - LP +* add user's guide documentation for COOKIE_ACCEPT_DOMAINS and + COOKIE_REJECT_DOMAINS - BJP +* change default Unix cookie-file name to "~/.lynx_cookies" - BJP +* customize incremental rendering: + - add -partial_thres[=NUMBER] option to set the number of lines + - add PARTIAL_THRES config variable in lynx.cfg to set the number of lines + - add partial_thres variable in .lynxrc to set the number of lines. + Selecting save to disk and hitting Accept Changes in options menu will save + this variable to the current value. Haven't looked into making a form + entry for this yet. With -partial_thres command line option, probably not + necessary (patch by Eric <erbrun@bellatlantic.net>). +* fix some text in lynx.man and Lynx_user_guide.html. The man change includes + changes to "h" and "k" so they work whether or not vi keys are on - DK +* workaround for inconsistency between slang ports to DOS and other platforms + by suppressing test of SLtt_Use_Ansi_Colors. This fixes a problem where + colors change in the slang DOS port when the forms_based option menu is + accepted - DK 1998-09-28 (2.8.1pre.4) * tentative fix for HPUX sed problems (reported by jones.peter@uqam.ca) - TD * update lynx.man and lynx.hlp to reflect new command-line options - TD -* add PARTIAL_MIN_LINES switch in lynx.cfg to customize incremental rendering - with smaller chunks (requested by Eric <erbrun@bellatlantic.net>) - LP -* minor documentation fix - LP +* add PARTIAL_MIN_LINES switch in lynx.cfg to customize incremental rendering + with smaller chunks (requested by Eric <erbrun@bellatlantic.net>) - LP +* minor documentation fix - LP * miscellaneous fixes for build on VMS (reported by Tony Bolton) - TD -* tweak 'const' assignment for VMS (in LYReadCFG.c and LYPrint.c) - LP +* tweak 'const' assignment for VMS (in LYReadCFG.c and LYPrint.c) - LP * clarify discussion of download in Lynx user's guide (Al Gilman). * trim trailing newline from lines read from cookie file so that Lynx does not send embedded newlines in the cookie list - BJP diff --git a/INSTALLATION b/INSTALLATION index b775a452..9e7f9418 100644 --- a/INSTALLATION +++ b/INSTALLATION @@ -367,8 +367,7 @@ II. Compile instructions -- UNIX setenv RESOLVLIB -lbind #!/bin/csh -f - setenv CPPFLAGS "-DSYSLOG_REQUESTED_URLS -I$HOME/slang \ - -I$HOME/.usr/include" + setenv CPPFLAGS "-I$HOME/slang -I$HOME/.usr/include" setenv LIBS "-L$HOME/.slang/lib -L$HOME/.usr/lib" ./configure --exec-prefix=$HOME --bindir=$HOME/.lynx \ --mandir=$HOME/.usr/man --libdir=$HOME/.usr/lib \ @@ -378,16 +377,14 @@ II. Compile instructions -- UNIX use the libbind.a resolver library, not libresolv.a. Setting RESOLVLIB to -lbind defines this environment variable for `make', and thus must be set in the same shell that `make' will be run. CPPFLAGS in this example - predefines SYSLOG_REQUESTED_URLS for the configure script, since it is not - defined by default, and has no option switch (see "docs/README.defines"). - CPPFLAGS also defines the full path to the slang and zlib header files, - which are not kept in standard directories. Likewise, LIBS defines the - nonstandard locations of libslang.a and libz.a. Setting the option - --bindir tells the configure script where I want to install the lynx - binary; setting --mandir tells it where to put the lynx.1 man page, and - setting --libdir tells it (while at the same time defining LYNX_CFG_FILE) - where to put the configuration file "lynx.cfg", when I type "make install". - The --with-screen=slang and --with-zlib options are explained above. + defines the full path to the slang and zlib header files, which are not + kept in standard directories. Likewise, LIBS defines the nonstandard + locations of libslang.a and libz.a. Setting the option --bindir tells + the configure script where I want to install the lynx binary; setting + --mandir tells it where to put the lynx.1 man page, and setting --libdir + tells it (while at the same time defining LYNX_CFG_FILE) where to put the + configuration file "lynx.cfg", when I type "make install". The + --with-screen=slang and --with-zlib options are explained above. 2. Manual compile If auto-configure does not work for you, or you prefer to compile @@ -563,7 +560,7 @@ V. Compile instructions -- 386 DOS In addition to the files in the Lynx distribution, you will need a curses package and a TCP package. You can use PDCurses (available at "http://www.lightlink.com/hessling/") and the DJGPP port of WATTCP - (available in two different versions at "ftp://neonatal.sm.ic.ac.uk/" + (available in two different versions at "ftp://neonatal.sm.med.ic.ac.uk/" and in "http://www.fdisk.com/doslynx/wlynx/source/djgpp.zip"). You can also use slang ("ftp://space.mit.edu/pub/davis/slang") as your curses library. You need to compile these before you go any further. @@ -697,8 +694,7 @@ VI. General installation instructions need to do is type "make install-help." If you are installing manually, copy the files "COPYHEADER" and "COPYING" into the lynx_help directory BEFORE moving the lynx_help tree to its final location. These files are - referenced hypertextually from help documents. Find tips for installing - the help files at "http://www.irm.nara.kindai.ac.jp/lynxdev/README.help". + referenced hypertextually from help documents. If you have old, pre-existing bookmark files from earlier versions of Lynx, those files may have to be updated. Conversion may just consist diff --git a/WWW/Library/Implementation/CommonMakefile b/WWW/Library/Implementation/CommonMakefile index 53091228..af0d200c 100644 --- a/WWW/Library/Implementation/CommonMakefile +++ b/WWW/Library/Implementation/CommonMakefile @@ -375,6 +375,9 @@ $(LOB)/HTAccess.o : $(OE) $(CMN)HTAccess.c $(CMN)HTUtils.h $(LOB)/HTParse.o : $(OE) $(CMN)HTParse.c $(CMN)HTUtils.h $(COMPILE) $(CMN)HTParse.c +$(LOB)/HTVMS_WaisUI.o : $(OE) $(CMN)HTVMS_WaisUI.c $(CMN)HTUtils.h + $(COMPILE) $(CMN)HTVMS_WaisUI.c + $(LOB)/HTDOS.o : $(OE) $(CMN)HTDOS.c $(CMN)HTUtils.h $(COMPILE) $(CMN)HTDOS.c diff --git a/WWW/Library/Implementation/HTDOS.c b/WWW/Library/Implementation/HTDOS.c index 9f0bf60a..2004f97b 100644 --- a/WWW/Library/Implementation/HTDOS.c +++ b/WWW/Library/Implementation/HTDOS.c @@ -81,14 +81,18 @@ char * HTDOS_name(char *wwwname) printf("\n\n%s = i%\n\n",cp_url,strlen(cp_url)); sleep(5); #endif + CTRACE(tfp, "HTDOS_name changed `%s' to `%s'\n", + wwwname, cp_url); strcpy(wwwname, cp_url); - return(wwwname); /* return(cp_url); */ + return(wwwname); /* return(cp_url); */ } else { #if 0 printf("\n\n%s = %i\n\n",cp_url+1,strlen(cp_url)); sleep(5); #endif + CTRACE(tfp, "HTDOS_name changed `%s' to `%s'\n", + wwwname, cp_url+1); strcpy(wwwname, cp_url+1); - return(wwwname); /* return(cp_url+1); */ + return(wwwname); /* return(cp_url+1); */ } } diff --git a/WWW/Library/Implementation/HTFile.c b/WWW/Library/Implementation/HTFile.c index 9d8c8efa..70936cf3 100644 --- a/WWW/Library/Implementation/HTFile.c +++ b/WWW/Library/Implementation/HTFile.c @@ -584,7 +584,6 @@ PUBLIC char * HTnameOfFile_WWW ARGS3( CTRACE(tfp, "Node `%s' means path `%s'\n", name, path); #ifdef DOSPATH StrAllocCopy(result, HTDOS_name(path)); - CTRACE(tfp, "HTDOS_name changed `%s' to `%s'\n", path, result); #else #ifdef __EMX__ if (path[0] == '/' diff --git a/WWW/Library/Implementation/HTFormat.c b/WWW/Library/Implementation/HTFormat.c index 0a920e0e..859934e8 100644 --- a/WWW/Library/Implementation/HTFormat.c +++ b/WWW/Library/Implementation/HTFormat.c @@ -495,7 +495,7 @@ PRIVATE void HTDisplayPartial NOARGS ** Otherwise HTMainText holds info from the previous document ** and we may repaint it instead of the new one: ** prev doc scrolled to the first line (=Newline_partial) - ** is not good looking :-) 23 Aug 1998 Leonid Pauzner + ** is not good looking :-) 23 Aug 1998 Leonid Pauzner ** ** So repaint the page only when necessary: */ @@ -503,16 +503,13 @@ PRIVATE void HTDisplayPartial NOARGS /* new hypertext document available */ && ((Newline_partial + display_lines) > NumOfLines_partial) /* current page not complete... */ - && ((Newline_partial + - ((min_lines_partial < 1) ? - display_lines : min_lines_partial)) - < HText_getNumOfLines())) { - /* - * and we MAY display certain amount of lines (from lynx.cfg) - * - * By default, wait for complete screen: - * incremental rendering of the first screen reported annoying - * on slow network connection. + && (partial_threshold > 0 ? ((Newline_partial + partial_threshold) < HText_getNumOfLines()) : + ((Newline_partial + display_lines) < HText_getNumOfLines()))) { + /* + * Originally we rendered by increments of 2 lines, + * but that got annoying on slow network connections. + * Then we switched to full-pages. Now it's configurable. + * If partial_threshold < 0, then it's a full page */ NumOfLines_partial = HText_getNumOfLines(); HText_pageDisplay(Newline_partial, ""); diff --git a/WWW/Library/Implementation/HTUtils.h b/WWW/Library/Implementation/HTUtils.h index 2649bc62..16fc0eb2 100644 --- a/WWW/Library/Implementation/HTUtils.h +++ b/WWW/Library/Implementation/HTUtils.h @@ -321,7 +321,7 @@ Sucess (>=0) and failure (<0) codes #include <HTString.h> /* String utilities */ #ifndef va_arg -#ifdef __STDC__ +#if defined(__STDC__) || defined(VMS) #include <stdarg.h> #define LYva_start(ap,format) va_start(ap,format) #else diff --git a/WWW/Library/Implementation/HTVMS_WaisUI.c b/WWW/Library/Implementation/HTVMS_WaisUI.c index fda6ef14..2301cbd6 100644 --- a/WWW/Library/Implementation/HTVMS_WaisUI.c +++ b/WWW/Library/Implementation/HTVMS_WaisUI.c @@ -58,18 +58,13 @@ log_write(char *s GCC_UNUSED) if it overflows, then NULL is returned */ char * -generate_search_apdu(buff, - buff_len, - seed_words, - database_name, - docobjs, - maxDocsRetrieved) -char* buff; /* buffer to hold the apdu */ -long *buff_len; /* length of the buffer changed to reflect new data written */ -char *seed_words; /* string of the seed words */ -char *database_name; -DocObj** docobjs; -long maxDocsRetrieved; +generate_search_apdu( +char* buff, /* buffer to hold the apdu */ +long *buff_len, /* length of the buffer changed to reflect new data written */ +char *seed_words, /* string of the seed words */ +char *database_name, +DocObj** docobjs, +long maxDocsRetrieved) { /* local variables */ @@ -116,22 +111,15 @@ long maxDocsRetrieved; */ char * -generate_retrieval_apdu(buff, - buff_len, - docID, - chunk_type, - start, - end, - type, - database_name) -char *buff; -long *buff_len; /* length of the buffer changed to reflect new data written */ -any *docID; -long chunk_type; -long start; -long end; -char *type; -char *database_name; +generate_retrieval_apdu( +char *buff, +long *buff_len, /* length of the buffer changed to reflect new data written */ +any *docID, +long chunk_type, +long start, +long end, +char *type, +char *database_name) { SearchAPDU *search; char *end_ptr; @@ -381,8 +369,7 @@ static __const void *__const ctype_dummy[] = { &_ctype_, &ctype_dummy }; #endif /* VMS && __GNUC__ */ /* returns a pointer to a string with good stuff */ -char *trim_junk(headline) -char *headline; +char *trim_junk(char *headline) { long length = strlen(headline) + 1; /* include the trailing null */ size_t i; @@ -430,34 +417,21 @@ char *headline; /*----------------------------------------------------------------------*/ InitResponseAPDU* -makeInitResponseAPDU(result, - search, - present, - deleteIt, - accessControl, - resourceControl, - prefSize, - maxMsgSize, - auth, - id, - name, - version, - refID, - userInfo) -boolean result; -boolean search; -boolean present; -boolean deleteIt; -boolean accessControl; -boolean resourceControl; -long prefSize; -long maxMsgSize; -char* auth; -char* id; -char* name; -char* version; -any* refID; -void* userInfo; +makeInitResponseAPDU( +boolean result, +boolean search, +boolean present, +boolean deleteIt, +boolean accessControl, +boolean resourceControl, +long prefSize, +long maxMsgSize, +char* auth, +char* id, +char* name, +char* version, +any* refID, +void* userInfo) /* build an initResponse APDU with user specified information */ { InitResponseAPDU* init = (InitResponseAPDU*)s_malloc((size_t)sizeof(InitResponseAPDU)); @@ -484,8 +458,7 @@ void* userInfo; /*----------------------------------------------------------------------*/ void -freeInitResponseAPDU(init) -InitResponseAPDU* init; +freeInitResponseAPDU(InitResponseAPDU* init) /* free an initAPDU */ { s_free(init->IDAuthentication); @@ -499,10 +472,7 @@ InitResponseAPDU* init; /*----------------------------------------------------------------------*/ char* -writeInitResponseAPDU(init,buffer,len) -InitResponseAPDU* init; -char* buffer; -long* len; +writeInitResponseAPDU(InitResponseAPDU* init, char* buffer, long* len) /* write the initResponse to a buffer, adding system information */ { char* buf = buffer + HEADER_LEN; /* leave room for the header-length-indicator */ @@ -543,9 +513,7 @@ long* len; /*----------------------------------------------------------------------*/ char* -readInitResponseAPDU(init,buffer) -InitResponseAPDU** init; -char* buffer; +readInitResponseAPDU(InitResponseAPDU** init, char* buffer) { char* buf = buffer; boolean search,present,delete,accessControl,resourceControl; @@ -641,10 +609,7 @@ char* buffer; /*----------------------------------------------------------------------*/ InitResponseAPDU* -replyToInitAPDU(init,result,userInfo) -InitAPDU* init; -boolean result; -void* userInfo; +replyToInitAPDU(InitAPDU* init, boolean result, void* userInfo) /* respond to an init message in the default way - echoing back the init info */ @@ -663,26 +628,17 @@ void* userInfo; /*----------------------------------------------------------------------*/ SearchAPDU* -makeSearchAPDU(small, - large, - medium, - replace, - name, - databases, - type, - elements, - refID, - queryInfo) -long small; -long large; -long medium; -boolean replace; -char* name; -char** databases; -char* type; -char** elements; -any* refID; -void* queryInfo; +makeSearchAPDU( +long small, +long large, +long medium, +boolean replace, +char* name, +char** databases, +char* type, +char** elements, +any* refID, +void* queryInfo) { char* ptr = NULL; long i; @@ -726,8 +682,7 @@ void* queryInfo; /*----------------------------------------------------------------------*/ void -freeSearchAPDU(query) -SearchAPDU* query; +freeSearchAPDU(SearchAPDU* query) { s_free(query->ResultSetName); s_free(query->QueryType); @@ -746,10 +701,7 @@ SearchAPDU* query; #define ES_DELIMITER_2 "\036" /* hex 1E separates <db,es> groups from one another */ char* -writeSearchAPDU(query,buffer,len) -SearchAPDU* query; -char* buffer; -long* len; +writeSearchAPDU(SearchAPDU* query, char* buffer, long* len) { char* buf = buffer + HEADER_LEN; /* leave room for the header-length-indicator */ long size,i; @@ -827,16 +779,15 @@ long* len; /*----------------------------------------------------------------------*/ SearchResponseAPDU* -makeSearchResponseAPDU(result,count,recordsReturned,nextPos,resultStatus, - presentStatus,refID,records) -long result; -long count; -long recordsReturned; -long nextPos; -long resultStatus; -long presentStatus; -any* refID; -void* records; +makeSearchResponseAPDU( +long result, +long count, +long recordsReturned, +long nextPos, +long resultStatus, +long presentStatus, +any* refID, +void* records) { SearchResponseAPDU* query = (SearchResponseAPDU*)s_malloc((size_t)sizeof(SearchResponseAPDU)); query->PDUType = searchResponseAPDU; @@ -854,8 +805,7 @@ void* records; /*----------------------------------------------------------------------*/ void -freeSearchResponseAPDU(queryResponse) -SearchResponseAPDU* queryResponse; +freeSearchResponseAPDU(SearchResponseAPDU* queryResponse) { freeAny(queryResponse->ReferenceID); s_free(queryResponse); @@ -864,10 +814,7 @@ SearchResponseAPDU* queryResponse; /*----------------------------------------------------------------------*/ char* -writeSearchResponseAPDU(queryResponse,buffer,len) -SearchResponseAPDU* queryResponse; -char* buffer; -long* len; +writeSearchResponseAPDU(SearchResponseAPDU* queryResponse, char* buffer, long* len) { char* buf = buffer + HEADER_LEN; /* leave room for the header-length-indicator */ long size; @@ -897,9 +844,7 @@ long* len; /*----------------------------------------------------------------------*/ char* -readSearchResponseAPDU(queryResponse,buffer) -SearchResponseAPDU** queryResponse; -char* buffer; +readSearchResponseAPDU(SearchResponseAPDU** queryResponse, char* buffer) { char* buf = buffer; long size; @@ -991,10 +936,7 @@ char* readErrorPosition = NULL; /* pos where buf stoped making sense */ /*----------------------------------------------------------------------*/ diagnosticRecord* -makeDiag(surrogate,code,addInfo) -boolean surrogate; -char* code; -char* addInfo; +makeDiag(boolean surrogate, char* code, char* addInfo) { diagnosticRecord* diag = (diagnosticRecord*)s_malloc((size_t)sizeof(diagnosticRecord)); @@ -1009,8 +951,7 @@ char* addInfo; /*----------------------------------------------------------------------*/ void -freeDiag(diag) -diagnosticRecord* diag; +freeDiag(diagnosticRecord* diag) { if (diag != NULL) { if (diag->ADDINFO != NULL) @@ -1024,10 +965,7 @@ diagnosticRecord* diag; #define END_OF_RECORD 0x1D char* -writeDiag(diag,buffer,len) -diagnosticRecord* diag; -char* buffer; -long* len; +writeDiag(diagnosticRecord* diag, char* buffer, long* len) /* diagnostics (as per Appendix D) have a very weird format - this changes in SR-1 */ @@ -1080,9 +1018,7 @@ long* len; /*----------------------------------------------------------------------*/ char* -readDiag(diag,buffer) -diagnosticRecord** diag; -char* buffer; +readDiag(diagnosticRecord** diag, char* buffer) { char* buf = buffer; diagnosticRecord* d @@ -1120,10 +1056,7 @@ char* buffer; #define dataBits 7 char* -writeCompressedInteger(num,buf,len) -unsigned long num; -char* buf; -long* len; +writeCompressedInteger(unsigned long num, char* buf, long* len) /* write a binary integer in the format described on p. 40. this might be sped up */ @@ -1149,9 +1082,7 @@ long* len; /*----------------------------------------------------------------------*/ char* -readCompressedInteger(num,buf) -unsigned long *num; -char* buf; +readCompressedInteger(unsigned long *num, char* buf) /* read a binary integer in the format described on p. 40. this might be sped up */ @@ -1176,11 +1107,11 @@ char* buf; #define pad 128 /* high bit is set */ char* -writeCompressedIntWithPadding(num,size,buffer,len) -unsigned long num; -unsigned long size; -char* buffer; -long* len; +writeCompressedIntWithPadding( +unsigned long num, +unsigned long size, +char* buffer, +long* len) /* Like writeCompressedInteger, except writes padding (128) to make sure that size bytes are used. This can be read correctly by readCompressedInteger() @@ -1208,8 +1139,7 @@ long* len; /*----------------------------------------------------------------------*/ unsigned long -writtenCompressedIntSize(num) -unsigned long num; +writtenCompressedIntSize(unsigned long num) /* return the number of bytes needed to represnet the value num in compressed format. curently limited to 4 bytes */ @@ -1227,10 +1157,7 @@ unsigned long num; /*----------------------------------------------------------------------*/ char* -writeTag(tag,buf,len) -data_tag tag; -char* buf; -long* len; +writeTag(data_tag tag, char* buf, long* len) /* write out a data tag */ { return(writeCompressedInteger(tag,buf,len)); @@ -1239,9 +1166,7 @@ long* len; /*----------------------------------------------------------------------*/ char* -readTag(tag,buf) -data_tag* tag; -char* buf; +readTag(data_tag* tag, char* buf) /* read a data tag */ { return(readCompressedInteger(tag,buf)); @@ -1250,8 +1175,7 @@ char* buf; /*----------------------------------------------------------------------*/ unsigned long -writtenTagSize(tag) -data_tag tag; +writtenTagSize(data_tag tag) { return(writtenCompressedIntSize(tag)); } @@ -1259,8 +1183,7 @@ data_tag tag; /*----------------------------------------------------------------------*/ data_tag -peekTag(buf) -char* buf; +peekTag(char* buf) /* read a data tag without advancing the buffer */ { data_tag tag; @@ -1271,9 +1194,7 @@ char* buf; /*----------------------------------------------------------------------*/ any* -makeAny(size,data) -unsigned long size; -char* data; +makeAny(unsigned long size, char* data) { any* a = (any*)s_malloc((size_t)sizeof(any)); a->size = size; @@ -1284,8 +1205,7 @@ char* data; /*----------------------------------------------------------------------*/ void -freeAny(a) -any* a; +freeAny(any* a) /* destroy an any and its associated data. Assumes a->bytes was allocated using the s_malloc family of libraries */ @@ -1300,8 +1220,7 @@ any* a; /*----------------------------------------------------------------------*/ any* -duplicateAny(a) -any* a; +duplicateAny(any* a) { any* copy = NULL; @@ -1322,11 +1241,7 @@ any* a; /*----------------------------------------------------------------------*/ char* -writeAny(a,tag,buffer,len) -any* a; -data_tag tag; -char* buffer; -long* len; +writeAny(any* a, data_tag tag, char* buffer, long* len) /* write an any + tag and size info */ { char* buf = buffer; @@ -1348,9 +1263,7 @@ long* len; /*----------------------------------------------------------------------*/ -char *readAny(anAny,buffer) -any** anAny; -char* buffer; +char *readAny(any** anAny, char* buffer) /* read an any + tag and size info */ { char *buf; @@ -1378,9 +1291,7 @@ a=(any*)s_malloc((size_t)sizeof(any)); /*----------------------------------------------------------------------*/ unsigned long -writtenAnySize(tag,a) -data_tag tag; -any* a; +writtenAnySize(data_tag tag, any* a) { unsigned long size; @@ -1396,8 +1307,7 @@ any* a; /*----------------------------------------------------------------------*/ any* -stringToAny(s) -char* s; +stringToAny(char* s) { any* a = NULL; @@ -1414,8 +1324,7 @@ char* s; /*----------------------------------------------------------------------*/ char* -anyToString(a) -any* a; +anyToString(any* a) { char* s = NULL; @@ -1431,11 +1340,7 @@ any* a; /*----------------------------------------------------------------------*/ char* -writeString(s,tag,buffer,len) -char* s; -data_tag tag; -char* buffer; -long* len; +writeString(char* s, data_tag tag, char* buffer, long* len) /* Write a C style string. The terminating null is not written. This function is not part of the Z39.50 spec. It is provided for the convienience of those wishing to pass C strings in @@ -1457,9 +1362,7 @@ long* len; /*----------------------------------------------------------------------*/ char* -readString(s ,buffer) -char** s ; -char* buffer; +readString(char** s, char* buffer) /* Read an any and convert it into a C style string. This function is not part of the Z39.50 spec. It is provided for the convienience of those wishing to pass C strings in @@ -1476,9 +1379,7 @@ char* buffer; /*----------------------------------------------------------------------*/ unsigned long -writtenStringSize(tag,s) -data_tag tag; -char* s; +writtenStringSize(data_tag tag, char* s) { unsigned long size; @@ -1494,8 +1395,7 @@ char* s; /*----------------------------------------------------------------------*/ any* -longToAny(num) -long num; +longToAny(long num) /* a convienience function */ { char s[40]; @@ -1508,8 +1408,7 @@ long num; /*----------------------------------------------------------------------*/ long -anyToLong(a) -any* a; +anyToLong(any* a) /* a convienience function */ { long num; @@ -1530,7 +1429,7 @@ makeBitMap(unsigned long numBits, ...) /* construct and return a bitmap with numBits elements */ { va_list ap; - long i,j; + unsigned long i,j; bit_map* bm = NULL; LYva_start(ap,numBits); @@ -1562,8 +1461,7 @@ makeBitMap(unsigned long numBits, ...) /*----------------------------------------------------------------------*/ void -freeBitMap(bm) -bit_map* bm; +freeBitMap(bit_map* bm) /* destroy a bit map created by makeBitMap() */ { s_free(bm->bytes); @@ -1578,9 +1476,7 @@ bit_map* bm; */ boolean -bitAtPos(pos,bm) -long pos; -bit_map* bm; +bitAtPos(unsigned long pos, bit_map* bm) { if (pos > bm->size*bitsPerByte) return false; @@ -1593,11 +1489,7 @@ bit_map* bm; /*----------------------------------------------------------------------*/ char* -writeBitMap(bm,tag,buffer,len) -bit_map* bm; -data_tag tag; -char* buffer; -long* len; +writeBitMap(bit_map* bm, data_tag tag, char* buffer, long* len) /* write a bitmap + type and size info */ { return(writeAny((any*)bm,tag,buffer,len)); @@ -1606,27 +1498,18 @@ long* len; /*----------------------------------------------------------------------*/ char* -readBitMap(bm,buffer) -bit_map** bm; -char* buffer; +readBitMap(bit_map** bm, char* buffer) /* read a bitmap + type and size info */ { - char *c; - - - -c=readAny((any**)bm,buffer); - - return(c); + char *c; + c = readAny((any**)bm,buffer); + return(c); } /*----------------------------------------------------------------------*/ char* -writeByte(byte,buf,len) -unsigned long byte; -char* buf; -long* len; +writeByte(unsigned long byte, char* buf, long* len) { CHECK_FOR_SPACE_LEFT(1,len); buf[0] = byte & 0xFF; /* we really only want the first byte */ @@ -1636,9 +1519,7 @@ long* len; /*----------------------------------------------------------------------*/ char* -readByte(byte,buf) -unsigned char* byte; -char* buf; +readByte(unsigned char* byte, char* buf) { *byte = buf[0]; return(buf + 1); @@ -1647,10 +1528,7 @@ char* buf; /*----------------------------------------------------------------------*/ char* -writeBoolean(flag,buf,len) -boolean flag; -char* buf; -long* len; +writeBoolean(boolean flag, char* buf, long* len) { return(writeByte(flag,buf,len)); } @@ -1658,9 +1536,7 @@ long* len; /*----------------------------------------------------------------------*/ char* -readBoolean(flag,buffer) -boolean* flag; -char* buffer; +readBoolean(boolean* flag, char* buffer) { unsigned char byte; char* buf = readByte(&byte,buffer); @@ -1671,10 +1547,7 @@ char* buffer; /*----------------------------------------------------------------------*/ char* -writePDUType(pduType,buf,len) -pdu_type pduType; -char* buf; -long* len; +writePDUType(pdu_type pduType, char* buf, long* len) /* PDUType is a single byte */ { return(writeBinaryInteger((long)pduType,(unsigned long)1,buf,len)); @@ -1683,9 +1556,7 @@ long* len; /*----------------------------------------------------------------------*/ char* -readPDUType(pduType,buf) -pdu_type* pduType; -char* buf; +readPDUType(pdu_type* pduType, char* buf) /* PDUType is a single byte */ { return(readBinaryInteger((long*)pduType,(unsigned long)1,buf)); @@ -1694,8 +1565,7 @@ char* buf; /*----------------------------------------------------------------------*/ pdu_type -peekPDUType(buf) -char* buf; +peekPDUType(char* buf) /* read the next pdu without advancing the buffer, Note that this function is to be used on a buffer that is known to contain an APDU. The pdu_type is written HEADER_LEN bytes into the buffer @@ -1711,11 +1581,7 @@ char* buf; #define BINARY_INTEGER_BYTES sizeof(long) /* the number of bytes used by a "binary integer" */ char* -writeBinaryInteger(num,size,buf,len) -long num; -unsigned long size; -char* buf; -long* len; +writeBinaryInteger(long num, unsigned long size, char* buf, long* len) /* write out first size bytes of num - no type info XXX should this take unsigned longs instead ??? */ { @@ -1739,14 +1605,11 @@ long* len; /*----------------------------------------------------------------------*/ char* -readBinaryInteger(num,size,buf) -long* num; -unsigned long size; -char* buf; +readBinaryInteger(long* num, unsigned long size, char* buf) /* read in first size bytes of num - no type info XXX this should take unsigned longs instead !!! */ { - long i; + unsigned long i; unsigned char byte; if (size < 1 || size > BINARY_INTEGER_BYTES) @@ -1765,8 +1628,7 @@ char* buf; /*----------------------------------------------------------------------*/ unsigned long -writtenCompressedBinIntSize(num) -long num; +writtenCompressedBinIntSize(long num) /* return the number of bytes needed to represent the value num. currently limited to max of 4 bytes Only compresses for positive nums - negatives get whole 4 bytes @@ -1787,11 +1649,7 @@ long num; /*----------------------------------------------------------------------*/ char* -writeNum(num,tag,buffer,len) -long num; -data_tag tag; -char* buffer; -long* len; +writeNum(long num, data_tag tag, char* buffer, long* len) /* write a binary integer + size and tag info */ { char* buf = buffer; @@ -1809,9 +1667,7 @@ long* len; /*----------------------------------------------------------------------*/ char* -readNum(num,buffer) -long* num; -char* buffer; +readNum(long* num, char* buffer) /* read a binary integer + size and tag info */ { char* buf = buffer; @@ -1829,9 +1685,7 @@ char* buffer; /*----------------------------------------------------------------------*/ unsigned long -writtenNumSize(tag,num) -data_tag tag; -long num; +writtenNumSize(data_tag tag, long num) { long dataSize = writtenCompressedBinIntSize(num); long size; @@ -1848,9 +1702,7 @@ long num; typedef void (voidfunc)(void *); void -doList(list,func) -void** list; -voidfunc *func; +doList(void** list, voidfunc *func) /* call func on each element of the NULL terminated list of pointers */ { register long i; @@ -1864,9 +1716,7 @@ voidfunc *func; /*----------------------------------------------------------------------*/ char* -writeProtocolVersion(buf,len) -char* buf; -long* len; +writeProtocolVersion(char* buf, long* len) /* write a bitmap describing the protocols available */ { static bit_map* version = NULL; @@ -1881,7 +1731,7 @@ long* len; /*----------------------------------------------------------------------*/ char* -defaultImplementationID() +defaultImplementationID(void) { static char ImplementationID[] = "TMC"; return(ImplementationID); @@ -1890,7 +1740,7 @@ defaultImplementationID() /*----------------------------------------------------------------------*/ char* -defaultImplementationName() +defaultImplementationName(void) { static char ImplementationName[] = "Thinking Machines Corporation Z39.50"; return(ImplementationName); @@ -1899,7 +1749,7 @@ defaultImplementationName() /*----------------------------------------------------------------------*/ char* -defaultImplementationVersion() +defaultImplementationVersion(void) { static char ImplementationVersion[] = "2.0A"; return(ImplementationVersion); @@ -1922,20 +1772,14 @@ defaultImplementationVersion() /*----------------------------------------------------------------------*/ query_term* -makeAttributeTerm(use, - relation, - position, - structure, - truncation, - completeness, - term) -char* use; -char* relation; -char* position; -char* structure; -char* truncation; -char* completeness; -any* term; +makeAttributeTerm( +char* use, +char* relation, +char* position, +char* structure, +char* truncation, +char* completeness, +any* term) { query_term* qt = (query_term*)s_malloc((size_t)sizeof(query_term)); @@ -1959,8 +1803,7 @@ any* term; /*----------------------------------------------------------------------*/ query_term* -makeResultSetTerm(resultSet) -any* resultSet; +makeResultSetTerm(any* resultSet) { query_term* qt = (query_term*)s_malloc((size_t)sizeof(query_term)); @@ -1976,8 +1819,7 @@ any* resultSet; /*----------------------------------------------------------------------*/ query_term* -makeOperatorTerm(operatorCode) -char* operatorCode; +makeOperatorTerm(char* operatorCode) { query_term* qt = (query_term*)s_malloc((size_t)sizeof(query_term)); @@ -1994,8 +1836,7 @@ char* operatorCode; /*----------------------------------------------------------------------*/ void -freeTerm(param) -void* param; +freeTerm(void* param) { query_term* qt = (query_term*)param; switch (qt->TermType) @@ -2022,10 +1863,7 @@ void* param; #define AT_DELIMITER " " char* -writeQueryTerm(qt,buffer,len) -query_term* qt; -char* buffer; -long* len; +writeQueryTerm(query_term* qt, char* buffer, long* len) { char* buf = buffer; char attributes[ATTRIBUTE_LIST_SIZE]; @@ -2064,9 +1902,7 @@ long* len; /*----------------------------------------------------------------------*/ char* -readQueryTerm(qt,buffer) -query_term** qt; -char* buffer; +readQueryTerm(query_term** qt, char* buffer) { char* buf = buffer; char *attributeList = NULL; @@ -2122,8 +1958,7 @@ char* buffer; static unsigned long getQueryTermSize PARAMS((query_term* qt)); static unsigned long -getQueryTermSize(qt) -query_term* qt; +getQueryTermSize(query_term* qt) /* figure out how many bytes it will take to write this query */ { unsigned long size = 0; @@ -2158,8 +1993,7 @@ query_term* qt; the user information field. */ any* -writeQuery(terms) -query_term** terms; +writeQuery(query_term** terms) { any* info = NULL; char* writePos = NULL; @@ -2192,8 +2026,7 @@ query_term** terms; /*----------------------------------------------------------------------*/ query_term** -readQuery(info) -any *info; +readQuery(any *info) { char* readPos = info->bytes; query_term** terms = NULL; @@ -2292,8 +2125,7 @@ panic(char *format, ...) /*----------------------------------------------------------------------*/ void -fs_checkPtr(ptr) -void* ptr; +fs_checkPtr(void* ptr) /* If the ptr is NULL, give an error */ { if (ptr == NULL) @@ -2303,8 +2135,7 @@ void* ptr; /*----------------------------------------------------------------------*/ void* -fs_malloc(size) -size_t size; +fs_malloc(size_t size) /* does safety checks and optional accounting */ { register void* ptr = NULL; @@ -2318,9 +2149,7 @@ size_t size; /*----------------------------------------------------------------------*/ void* -fs_realloc(ptr,size) -void* ptr; -size_t size; +fs_realloc(void* ptr, size_t size) /* does safety checks and optional accounting note - we don't know how big ptr's memory is, so we can't ensure that any new memory allocated is NULLed! @@ -2340,8 +2169,7 @@ size_t size; /*----------------------------------------------------------------------*/ void -fs_free(ptr) -void* ptr; +fs_free(void* ptr) /* does safety checks and optional accounting */ { if (ptr != NULL) /* some non-ansi compilers/os's cant handle freeing null */ @@ -2354,8 +2182,7 @@ void* ptr; /*----------------------------------------------------------------------*/ char* -s_strdup(s) -char* s; +s_strdup(char* s) /* return a copy of s. This is identical to the standard library routine strdup(), except that it is safe. If s == NULL or malloc fails, @@ -2377,11 +2204,7 @@ char* s; /*----------------------------------------------------------------------*/ char* -fs_strncat(dst,src,maxToAdd,maxTotal) -char* dst; - char* src; - size_t maxToAdd; - size_t maxTotal; +fs_strncat(char* dst, char* src, size_t maxToAdd, size_t maxTotal) /* like strncat, except the fourth argument limits the maximum total length of the resulting string @@ -2405,16 +2228,14 @@ char* dst; /*----------------------------------------------------------------------*/ -char char_downcase(long_ch) -unsigned long long_ch; +char char_downcase(unsigned long long_ch) { unsigned char ch = long_ch & 0xFF; /* just want one byte */ /* when ansi is the way of the world, this can be tolower */ return (((ch >= 'A') && (ch <= 'Z')) ? (ch + 'a' -'A') : ch); } -char *string_downcase(word) -char *word; +char *string_downcase(char *word) { long i = 0; while(word[i] != '\0'){ diff --git a/WWW/Library/Implementation/HTVMS_WaisUI.h b/WWW/Library/Implementation/HTVMS_WaisUI.h index fbb9278f..caa5d892 100644 --- a/WWW/Library/Implementation/HTVMS_WaisUI.h +++ b/WWW/Library/Implementation/HTVMS_WaisUI.h @@ -315,7 +315,7 @@ char* readString PARAMS((char** s,char* buffer)); bit_map* makeBitMap (unsigned long numBits,...); void freeBitMap PARAMS((bit_map* bm)); -boolean bitAtPos PARAMS((long pos,bit_map* bm)); +boolean bitAtPos PARAMS((unsigned long pos,bit_map* bm)); char* writeBitMap PARAMS((bit_map* bm,data_tag tag,char* buffer,long* len)); char* readBitMap PARAMS((bit_map** bm,char* buffer)); @@ -392,6 +392,10 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html # Display partial pages while downloading #PARTIAL:TRUE +# Set the threshold # of lines Lynx must render before it +# redraws the screen. Anything < 0 implies use the screen +# size. +#PARTIAL_THRES:-1 # Minimum lines amount for first redisplay in PARTIAL mode # (0 - wait for complete screen by default). @@ -47,10 +47,10 @@ Lynx can be used to build systems isolated within a single LAN. .SH OPTIONS -At start up, \fILynx\fR will load any local +At start up, \fILynx\fR will load any local file or remote URL specified at the command line. For help with URLs, press \fB"?"\fR -or \fB"h"\fR while running \fILynx\fR. +or \fB"H"\fR while running \fILynx\fR. Then follow the link titled, "Help on URLs." .PP .TP @@ -144,7 +144,7 @@ set the display variable for X rexec-ed programs. .TP .B -dump dumps the formatted output of the default document or one -specified on the command line to standard out. +specified on the command line to standard out. This can be used in the following way: .sp lynx -dump http://www.crl.com/~subir/lynx.html. @@ -166,7 +166,7 @@ define a file where Lynx will report HTTP access codes. .B -exec enable local program execution (normally not configured). .TP -.B -fileversions +.B -fileversions include all versions of files in local VMS directory listings. .TP .B -force_html @@ -178,7 +178,7 @@ toggles forcing of the secure flag for SSL cookies. .B -from toggles transmissions of From headers. .TP -.B -ftp +.B -ftp disable ftp access. .TP .B -get_data @@ -292,9 +292,8 @@ disable the retrieval status messages. .B -number_links force numbering of links. .TP -.B -partial -display partial pages while downloading. -.TP +.B -partial +display partial pages while downloading. .TP .B -pauth\fR=\fIID\fR:\fIPASSWD set authorization ID and password for a protected proxy @@ -334,12 +333,12 @@ allows a list of services to be disabled selectively. The following list is printed if no options are specified. -.I all +.I all - restricts all options. -.I bookmark -- disallow changing the location of the bookmark -file. +.I bookmark +- disallow changing the location of the bookmark +file. .I bookmark_exec - disallow execution links via the bookmark file. @@ -349,57 +348,57 @@ file. (but still allow it for directories) when local file management is enabled. -.I default -- same as command line option -anonymous. -Disables default services for anonymous users. -Currently set to all restricted except for: -inside_telnet, outside_telnet, inside_news, +.I default +- same as command line option -anonymous. +Disables default services for anonymous users. +Currently set to all restricted except for: +inside_telnet, outside_telnet, inside_news, inside_ftp, outside_ftp, inside_rlogin, -outside_rlogin, jump, mail and goto. Defaults +outside_rlogin, jump, mail and goto. Defaults are setable within userdefs.h. .I dired_support - disallow local file management. -.I disk_save +.I disk_save - disallow saving to disk in the download and print menus. .I download - disallow downloaders in the download menu. -.I editor +.I editor - disallow editing. -.I exec +.I exec - disable execution scripts. .I exec_frozen -- disallow the user from changing the local +- disallow the user from changing the local execution option. -.I file_url +.I file_url - disallow using G)oto, served links or bookmarks for file: URLs. -.I goto -- disable the 'g' (goto) command. +.I goto +- disable the 'g' (goto) command. .I inside_ftp - disallow ftps for people coming from inside your domain (utmp required for selectivity). .I inside_news -- disallow USENET news posting for people coming +- disallow USENET news posting for people coming from inside your domain (utmp required for selectivity). .I inside_rlogin - disallow rlogins for people coming from inside your domain (utmp required for selectivity). -.I inside_telnet -- disallow telnets for people coming from inside -your domain (utmp required for selectivity). +.I inside_telnet +- disallow telnets for people coming from inside +your domain (utmp required for selectivity). .I jump - disable the 'j' (jump) command. @@ -413,7 +412,7 @@ your domain (utmp required for selectivity). .I news_post - disallow USENET News posting. -.I options_save +.I options_save - disallow saving options in .lynxrc. .I outside_ftp @@ -421,24 +420,24 @@ your domain (utmp required for selectivity). domain (utmp required for selectivity). .I outside_news -- disallow USENET news posting for people coming +- disallow USENET news posting for people coming from outside your domain (utmp required for selectivity). .I outside_rlogin - disallow rlogins for people coming from outside your domain (utmp required for selectivity). -.I outside_telnet -- disallow telnets for people coming from -outside your domain (utmp required for selectivity). +.I outside_telnet +- disallow telnets for people coming from +outside your domain (utmp required for selectivity). -.I print -- disallow most print options. +.I print +- disallow most print options. -.I shell +.I shell - disallow shell escapes and lynxexec or lynxprog G)oto's. -.I suspend +.I suspend - disallow Unix Control-Z suspends with escape to shell. .I telnet_port @@ -522,9 +521,9 @@ set alternate Lynx User-Agent header. .B -validate accept only http URLs (for validation). Complete security restrictions also are implemented. -.TP -.B -verbose -taggles [LINK], [IMAGE] and [INLINE] comments with filenames of these images. +.TP +.B -verbose +taggles [LINK], [IMAGE] and [INLINE] comments with filenames of these images. .TP .B -version print version information. @@ -541,10 +540,10 @@ o \fBRight arrow\fR or \fBReturn\fR will follow a highlighted hypertext link. .br o \fBLeft Arrow\fR will retreat from a link. .br -o Type \fB"h"\fR or \fB"?"\fR for online help and descriptions +o Type \fB"H"\fR or \fB"?"\fR for online help and descriptions of key-stroke commands. .br -o Type \fB"k"\fR for a complete list of the current key-stroke +o Type \fB"K"\fR for a complete list of the current key-stroke command mappings. .SH NOTES This is the Lynx v2.8 Release @@ -564,10 +563,10 @@ Do not send the unsubscribe message to the lynx-dev list, itself. Lynx has incorporated code from a variety of sources along the way. The earliest versions of Lynx included code from Earl Fogel of Computing Services at the University of Saskatchewan, who implemented HYPERREZ -in the Unix environment. HYPERREZ was developed by Niel Larson of +in the Unix environment. HYPERREZ was developed by Niel Larson of Think.com and served as the model for the early versions of Lynx. Those versions also incorporated libraries from the Unix Gopher clients -developed at the University of Minnesota, and the later versions of +developed at the University of Minnesota, and the later versions of Lynx rely on the WWW client library code developed by Tim Berners-Lee and the WWW community. Also a special thanks to Foteos Macrides who ported much of Lynx to VMS and did or organized most of its development since the diff --git a/lynx_help/Lynx_users_guide.html b/lynx_help/Lynx_users_guide.html index b91b6c86..2c96106e 100644 --- a/lynx_help/Lynx_users_guide.html +++ b/lynx_help/Lynx_users_guide.html @@ -386,10 +386,10 @@ may be defined in addition to this default in the <em>lynx.cfg</em> file. Using the <em>Save to disk</em> option under the PRINT command after viewing the source of an HTML with the VIEW SOURCE (<em>\</em>) command will result in a file which -differs from the original source in various ways such as tab +differs from the original source in various ways such as tab characters expanded to spaces. Lynx formats the source presentation in this mode. On the other hand, if the DOWNLOAD command is used, -the only change will be that Lynx optionally puts +the only change will be that Lynx optionally puts <blockquote> <!--X-URL: http://www.site.foo/path/to/file.html --><BR> <BASE href="http://www.site.foo/path/to/file.html"> @@ -474,7 +474,7 @@ to the net.bio.net WAIS server. [<A HREF="#ToC-Search">ToC</A>] The Lynx <em>Options Menu</em> may be accessed by pressing the '<em>o</em>' key. The current Options Menu allows you to change options which are useful at runtime. Most of these are read/saved from your .lynxrc file. -Other options are stored in the lynx.cfg file. +Other options are stored in the <A HREF="#lynx.cfg">lynx.cfg</A> file. <p>Lynx supports two styles of options menu. The new style shown below is an HTML file generated at runtime: @@ -482,9 +482,9 @@ file generated at runtime: <pre> Options Menu (Lynx Version 2.8.1pre.2) - + Accept Changes - Reset Changes Left Arrow cancels changes HELP! - + Save options to disk: [_] Personal Preferences @@ -528,7 +528,7 @@ file generated at runtime: <p>The old style of options menu is a fixed form. Normally this will be compiled into Lynx, and is accessed by setting FORMS_OPTIONS true in your -lynx.cfg file. +<A HREF="#lynx.cfg">lynx.cfg</A> file. <pre> Options Menu @@ -924,7 +924,7 @@ scheme will allow you to enter your message. using the simple line mode input scheme, type a '<em>.</em>' (period) on a line by itself. You will be asked a final time whether to send the message. If you press '<em>y</em>', you will be prompted whether to -append your signature file if one was defined in +append your signature file if one was defined in <A HREF="#lynx.cfg">lynx.cfg</A> and is accessible, and then the message will be sent, whereas if you press '<em>n</em>' the message will be deleted. Entering Control-G in response to any prompts @@ -1890,7 +1890,14 @@ configuration files, and that default setting can be toggled via the <em>-cookies</em> command line switch. The SET_COOKIES symbol can be further modified by the ACCEPT_ALL_COOKIES mode. If ACCEPT_ALL_COOKIES is set TRUE, and SET_COOKIES is TRUE, Lynx will accept -all cookies. +all cookies. Additionally, the cookies that are automatically accepted or +rejected by Lynx can be further modified with the COOKIE_ACCEPT_DOMAINS and +COOKIE_REJECT_DOMAINS options in your .lynxrc file, each of which is a +comma-separated list of domains to perform the desired action. The domain +listed in these options must be identical to the domain the cookie comes +from, there is no wildcard matching. If a domain is specific in both +COOKIE_ACCEPT_DOMAINS and COOKIE_REJECT_DOMAINS, rejection will take +precedence. <p>When cookie support is enabled, <em>Set-Cookie</em> MIME headers received from an http server invoke confirmation prompts with possible @@ -1903,9 +1910,7 @@ prompts, or ne'<em>V</em>'er to never allow cookies from that MIME headers). All unexpired cookies are held in a hypothetical <em>Cookie Jar</em> which can be examined via the COOKIE_JAR keystroke command, normally mapped to <em>Ctrl-K</em>, for invoking the <a -href="keystrokes/cookie_help.html">Cookie Jar Page</a>. The -<em>Cookie Jar</em>, and any '<em>A</em>'lways or ne'<em>V</em>'er -'allow' settings, do not presently outlast the Lynx session. +href="keystrokes/cookie_help.html">Cookie Jar Page</a>. <p>A common use of cookies by http servers is simply to track the documents visited by individual users. Though this can be useful to the diff --git a/src/HTAlert.c b/src/HTAlert.c index 85ba07a8..017354a4 100644 --- a/src/HTAlert.c +++ b/src/HTAlert.c @@ -42,7 +42,7 @@ PUBLIC void HTInfoMsg ARGS1( { _statusline(Msg); if (Msg && *Msg) { - CTRACE(tfp, "Info: %s\n", Msg); + CTRACE(tfp, "Info message: %s\n", Msg); sleep(InfoSecs); } } @@ -55,18 +55,20 @@ PUBLIC void HTUserMsg ARGS1( { _statusline(Msg); if (Msg && *Msg) { - CTRACE(tfp, "User: %s\n", Msg); + CTRACE(tfp, "User message: %s\n", Msg); sleep(MessageSecs); } } PUBLIC void HTUserMsg2 ARGS2( - CONST char *, Msg, + CONST char *, Msg2, CONST char *, Arg) { - _user_message(Msg, Arg); - if (Msg && *Msg) { - CTRACE(tfp, "User: %s (%s)\n", Msg, Arg); + _user_message(Msg2, Arg); + if (Msg2 && *Msg2) { + CTRACE(tfp, "User message: "); + CTRACE(tfp, Msg2, Arg); + CTRACE(tfp, "\n"); sleep(MessageSecs); } } diff --git a/src/LYCharUtils.c b/src/LYCharUtils.c index f372471e..5b962a93 100644 --- a/src/LYCharUtils.c +++ b/src/LYCharUtils.c @@ -340,6 +340,17 @@ PUBLIC void LYFillLocalFileURL ARGS2( } } +#if defined(DOSPATH) || defined(__EMX__) + if (*(*href+1) == ':') { + /* + * If it's a local DOS path beginning with drive letter, + * add file://localhost/ prefix and go ahead. + */ + StrAllocCopy(temp, *href); + LYLocalFileToURL (href, temp); + } +#endif /* DOSPATH */ + /* * No path in a file://localhost URL means a * directory listing for the current default. - FM @@ -355,11 +366,7 @@ PUBLIC void LYFillLocalFileURL ARGS2( #else getwd (curdir); #endif /* NO_GETCWD */ -#ifdef DOSPATH - temp2 = HTDOS_wwwName(curdir); -#else - temp2 = curdir; -#endif /* DOSPATH */ + temp2 = wwwName(curdir); #endif /* VMS */ LYAddHtmlSep(href); /* diff --git a/src/LYCurses.c b/src/LYCurses.c index 0935182c..cea1ae42 100644 --- a/src/LYCurses.c +++ b/src/LYCurses.c @@ -1707,7 +1707,9 @@ PUBLIC void lynx_start_link_color ARGS2( /* start_bold(); */ start_reverse(); #if defined(USE_SLANG) +#ifndef __DJGPP__ if (SLtt_Use_Ansi_Colors) +#endif /* !__DJGPP__ */ start_underline (); #endif /* USE_SLANG */ #if defined(FANCY_CURSES) && defined(COLOR_CURSES) @@ -1735,7 +1737,9 @@ PUBLIC void lynx_stop_link_color ARGS2( if (flag) { stop_reverse(); #if defined(USE_SLANG) +#ifndef __DJGPP__ if (SLtt_Use_Ansi_Colors) +#endif /* !__DJGPP__ */ stop_underline (); #endif /* USE_SLANG */ #if defined(FANCY_CURSES) && defined(COLOR_CURSES) diff --git a/src/LYGlobalDefs.h b/src/LYGlobalDefs.h index 75a24be2..263ca075 100644 --- a/src/LYGlobalDefs.h +++ b/src/LYGlobalDefs.h @@ -261,9 +261,9 @@ extern BOOLEAN no_url_redirection; /* Don't follow URL redirections */ extern BOOLEAN display_partial; /* Display document during download */ extern int Newline_partial; /* -//- "current" newline position */ extern int NumOfLines_partial; /* -//- "current" number of lines */ +extern int partial_threshold; extern BOOLEAN debug_display_partial; /* show with MessageSecs delay */ extern BOOLEAN detected_forms_input_partial; /* trimHightext temp fix */ -extern int min_lines_partial; /* incremental rendering minimum */ #endif extern char *form_post_data; /* User data for post form */ extern char *form_get_data; /* User data for get form */ diff --git a/src/LYMain.c b/src/LYMain.c index 9747cb11..e8c98418 100644 --- a/src/LYMain.c +++ b/src/LYMain.c @@ -48,6 +48,12 @@ #include <LYexit.h> #include <LYLeaks.h> +#ifdef FNAMES_8_3 +#define COOKIE_FILE "cookies" +#else +#define COOKIE_FILE ".lynx_cookies" +#endif /* FNAMES_8_3 */ + /* ahhhhhhhhhh!! Global variables :-< */ #ifdef SOCKS PUBLIC BOOLEAN socks_flag=TRUE; @@ -360,7 +366,7 @@ PUBLIC BOOLEAN LYQuitDefaultYes = QUIT_DEFAULT_YES; PUBLIC BOOLEAN display_partial = TRUE; /* Display document during download */ PUBLIC BOOLEAN debug_display_partial = FALSE; /* Show with MessageSecs delay */ PUBLIC BOOLEAN detected_forms_input_partial = FALSE; /* trimHightext temp fix */ -PUBLIC int min_lines_partial = 0; /* default: wait for complete screen */ +PUBLIC int partial_threshold = -1; /* # of lines to be d/l'ed until we repaint */ #endif /* These are declared in cutil.h for current freeWAIS libraries. - FM */ @@ -1478,7 +1484,7 @@ PUBLIC int main ARGS2( * cookies file, probably. - RP */ if(LYCookieFile == NULL) { - LYAddPathToHome(LYCookieFile = malloc(LY_MAXPATH), LY_MAXPATH, "cookies"); + LYAddPathToHome(LYCookieFile = malloc(LY_MAXPATH), LY_MAXPATH, COOKIE_FILE); } else { if ((cp = strchr(LYCookieFile, '~'))) { temp = NULL; @@ -2771,6 +2777,11 @@ keys (may be incompatible with some curses packages)" "partial", TOGGLE_ARG, &display_partial, "display partial pages while downloading" ), + PARSE_INT( + "partial_thres", IGNORE_ARG|INT_ARG, partial_threshold, + "[=NUMBER]\nnumber of lines to render before repainting display\n\ +with partial-display logic" + ), #endif PARSE_FUN( "pauth", NEED_FUNCTION_ARG, pauth_fun, diff --git a/src/LYReadCFG.c b/src/LYReadCFG.c index 23f9b5e6..d1a48146 100644 --- a/src/LYReadCFG.c +++ b/src/LYReadCFG.c @@ -903,7 +903,7 @@ static Config_Type Config_Table [] = PARSE_FUN("outgoing_mail_charset", CONF_FUN, outgoing_mail_charset_fun), #ifdef DISP_PARTIAL PARSE_SET("partial", CONF_BOOL, display_partial), - PARSE_SET("partial_min_lines", CONF_INT, min_lines_partial), + PARSE_INT("partial_thres", CONF_INT, partial_threshold), #endif PARSE_STR("personal_mailcap", CONF_STR, personal_type_map), PARSE_STR("personal_extension_map", CONF_STR, personal_extension_map), @@ -994,6 +994,7 @@ PUBLIC void read_cfg ARGS4( FILE *, fp0) { FILE *fp; + char mypath[LY_MAXPATH]; char buffer[MAX_LINE_BUFFER_LEN]; CTRACE(tfp, "Loading cfg file '%s'.\n", cfg_filename); @@ -1017,6 +1018,11 @@ PUBLIC void read_cfg ARGS4( CTRACE(tfp,"No filename following -cfg switch!\n"); return; } + if (!strncmp(cfg_filename, "~/", 2)) { + strcpy(mypath, Home_Dir()); + strcat(mypath, cfg_filename+1); + cfg_filename = mypath; + } if ((fp = fopen(cfg_filename,"r")) == 0) { CTRACE(tfp,"lynx.cfg file not found as %s\n",cfg_filename); return; @@ -1130,9 +1136,9 @@ PUBLIC void read_cfg ARGS4( case CONF_ENV2: if (tbl->type == CONF_ENV) - LYLowerCase(name); + LYLowerCase(name); else - LYUpperCase(name); + LYUpperCase(name); if (getenv (name) == 0) { #ifdef VMS diff --git a/src/LYUtils.c b/src/LYUtils.c index ac6055f6..d14b0b48 100644 --- a/src/LYUtils.c +++ b/src/LYUtils.c @@ -2997,11 +2997,7 @@ PUBLIC void change_sug_filename ARGS1( * Rename any temporary files. */ temp = (char *)calloc(1, (strlen(lynx_temp_space) + 60)); -#if defined(FNAMES_8_3) && defined(DOSPATH) - cp = HTDOS_wwwName(lynx_temp_space); -#else - cp = lynx_temp_space; -#endif + cp = wwwName(lynx_temp_space); if (LYIsHtmlSep(*cp)) { sprintf(temp, "file://localhost%s%d", cp, (int)getpid()); } else { @@ -3862,7 +3858,7 @@ have_VMS_URL: */ char curdir[DIRNAMESIZE]; getcwd (curdir, DIRNAMESIZE); - StrAllocCopy(temp, HTDOS_wwwName(curdir)); + StrAllocCopy(temp, wwwName(curdir)); StrAllocCat(*AllocatedString, temp); FREE(temp); CTRACE(tfp, "Converted '%s' to '%s'\n", @@ -5561,7 +5557,7 @@ PUBLIC FILE *LYNewTxtFile ARGS1(char *, name) #if defined(__DJGPP__) || defined(_WINDOWS) _fmode = O_BINARY; -#endif /* __DJGPP__ or _WINDOWS */ +#endif /* __DJGPP__ or _WINDOWS */ #endif return fp; @@ -5583,7 +5579,7 @@ PUBLIC FILE *LYAppendToTxtFile ARGS1(char *, name) #if defined(__DJGPP__) || defined(_WINDOWS) _fmode = O_BINARY; -#endif /* __DJGPP__ or _WINDOWS */ +#endif /* __DJGPP__ or _WINDOWS */ #endif return fp; } diff --git a/src/LYrcFile.c b/src/LYrcFile.c index ef66d6dc..c3968a31 100644 --- a/src/LYrcFile.c +++ b/src/LYrcFile.c @@ -509,6 +509,20 @@ PUBLIC void read_rc NOPARAMS else local_exec = FALSE; +#ifdef DISP_PARTIAL + /* + * Partial display logic--set the threshold # of lines before + * Lynx redraws the screen + */ + } else if ((cp = LYstrstr(line_buffer, "partial_thres")) != NULL && + cp-line_buffer < number_sign) { + if ((cp2 = (char *)strchr(cp, '=')) != NULL) + cp = cp2 + 1; + cp = LYSkipBlanks(cp); + if (atoi(cp) != 0) + partial_threshold = atoi(cp); +#endif /* DISP_PARTIAL */ + /* * Local execution mode - only links in local files. */ @@ -836,6 +850,19 @@ PUBLIC int save_rc NOPARAMS ((keypad_mode == LINKS_ARE_NUMBERED) ? "LINKS_ARE_NUMBERED" : "LINKS_AND_FORM_FIELDS_ARE_NUMBERED"))); +#ifdef DISP_PARTIAL + /* + * Partial display threshold + */ + fprintf(fp, "\ +# partial_thres specifies the number of lines Lynx should download and render +# before we redraw the screen in Partial Display logic +# e.g. partial_thres=2 +# would have Lynx redraw every 2 lines that it renders +# partial_thres=-1 would use the entire screensize\n"); + fprintf(fp, "partial_thres=%d\n\n", partial_threshold); +#endif /* DISP_PARTIAL */ + /* * Lineedit mode. */ @@ -1216,12 +1216,12 @@ * the version definition with the Project Version on checkout. Just * ignore it. - kw */ /* $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$ */ -#define LYNX_VERSION "2.8.1pre.4" +#define LYNX_VERSION "2.8.1pre.5" #define LYNX_WWW_HOME "http://lynx.browser.org/" #define LYNX_WWW_DIST "http://www.slcc.edu/lynx/current/" #define LYNX_RELEASE FALSE /* $Format: "#define LYNX_DATE \"$ProjectDate$\""$ */ -#define LYNX_DATE "Mon, 28 Sep 1998 03:15:11 -0600" +#define LYNX_DATE "Wed, 30 Sep 1998 15:06:48 -0600" #define LYNX_DATE_OFF 5 /* truncate the automatically-generated date */ #define LYNX_DATE_LEN 11 /* truncate the automatically-generated date */ #define LYNX_RELEASE_DATE "1998" |