Re: [Lynx-dev] Adding $SOCKS5_PROXY support, changing command line option

2020-08-07 Thread Mouse
>>> + socks5_proxy =3D (char*)-1; >> Don=E2=80=99t do that, that is not portable. > Really?? This i do not understand. Casting an integer, other than a compile-time constant expression with value 0, to a pointer? That is never portable. (char *)-1 could do anything from trapping immediately

Re: [Lynx-dev] Adding $SOCKS5_PROXY support, changing command line option

2020-08-07 Thread Thorsten Glaser
Steffen Nurpmeso dixit: >Really?? This i do not understand. You’re only allowed to take pointers to actual objects. It should probably be possible to use NULL somewhere, but you can use &hostname as magic pointer. Using (char *)-1 can cause traps on some platforms, or the compiler to replace th

Re: [Lynx-dev] Adding $SOCKS5_PROXY support, changing command line option

2020-08-07 Thread Steffen Nurpmeso
!#!@!!! Thorsten Glaser wrote in : |Steffen Nurpmeso dixit: | ||+ socks5_proxy = (char*)-1; | |Don’t do that, that is not portable. Really?? This i do not understand. || cleanup: ||-if (socks5_proxy != NULL) { ||+if (socks5_proxy != (char*)-1) { || FREE(socks5_new_url);

Re: [Lynx-dev] Adding $SOCKS5_PROXY support, changing command line option

2020-08-07 Thread Thorsten Glaser
Steffen Nurpmeso dixit: |+ socks5_proxy = (char*)-1; Don’t do that, that is not portable. | cleanup: |-if (socks5_proxy != NULL) { |+if (socks5_proxy != (char*)-1) { | FREE(socks5_new_url); | FREE(socks5_protocol); | FREE(socks5_host); If this is just for freeing… free(3

Re: [Lynx-dev] Adding $SOCKS5_PROXY support, changing command line option

2020-08-07 Thread Steffen Nurpmeso
Hello. In April i sent a message saying Steffen Nurpmeso wrote in <20200421152638.pl92s%stef...@sdaoden.eu>: |Please find attached an extension to the -socks5-proxy patch that |made it in. On FreeBSD, they have started adding support for |a $SOCKS5_PROXY environment variable, see for example

Re: [Lynx-dev] Any Chance of a "reader mode" in LYNX?

2020-08-07 Thread Thomas Dickey
- Original Message - | From: "Chime Hart" | To: "lynx-dev" | Sent: Friday, August 7, 2020 4:10:33 PM | Subject: [Lynx-dev] Any Chance of a "reader mode" in LYNX? | Hi All: Well, now that it seems an `extreme number of sites have their | printer friendly articles hidden in some sort of ja

[Lynx-dev] Any Chance of a "reader mode" in LYNX?

2020-08-07 Thread Chime Hart
Hi All: Well, now that it seems an `extreme number of sites have their printer friendly articles hidden in some sort of javascript, a good friend imformed me that Safari has a reader mode which strips all clutter, including toolbars. Wondering if something like that would be possible in Lynx? A