lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lynx-dev] "lynx -version" patch


From: Gisle Vanem
Subject: [Lynx-dev] "lynx -version" patch
Date: Thu, 23 Aug 2007 17:35:45 +0200

A lynx built w/o OpenSSL is missing the "libwww-FM" part when
entering "lynx -version". This is with Visual-C 6.0:

 Lynx Version 2.8.7dev.7 (02 Aug 2007), s-lang 2.0.6
 Built on VC/Win32 Aug  5 2007 20:15:02

A small work-around:

diff -u3 -Hb orig\src\LYMain.c src\LYMain.c
--- orig/src\LYMain.c   Thu Aug 02 22:24:27 2007
+++ src\LYMain.c        Thu Aug 23 17:20:19 2007
@@ -3142,10 +3142,13 @@
    HTSprintf0(&result, gettext("%s Version %s (%s)"),
              LYNX_NAME, LYNX_VERSION,
              LYVersionDate());
-#ifdef USE_SSL
+
    StrAllocCat(result, "\n");
+#ifdef USE_SSL
    HTSprintf(&result, "libwww-FM %s,", HTLibraryVersion);
    append_ssl_version(&result, " ");
+#else
+    HTSprintf(&result, "libwww-FM %s", HTLibraryVersion);
#endif /* USE_SSL */

#if defined(NCURSES) && defined(HAVE_CURSES_VERSION)

------------

I didn't really like the above #ifdef just to prevent a ",," printed
with no USE_SSL.
Secondly, I could see the need for #ifdef in HTString.c:

diff -u3 -Hb orig\WWW\Library\Implementation\HTString.c 
WWW\Library\Implementation\HTString.c
--- orig\WWW\Library\Implementation\HTString.c  Thu May 17 21:53:22 2007
+++ WWW\Library\Implementation\HTString.c       Thu Aug 23 17:07:54 2007
@@ -25,12 +25,7 @@
#define VC "2.14"
#endif /* !VC */

-#ifdef _WINDOWS
-const char *HTLibraryVersion = "2.14FM";       /* String for help screen etc */
-
-#else
const char *HTLibraryVersion = VC;     /* String for help screen etc */
-#endif

---------------

What does the trailing "FM" signify?

--gv





reply via email to

[Prev in Thread] Current Thread [Next in Thread]