[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev Mixed bag of patches for 2.8.1dev.13
From: |
Leonid Pauzner |
Subject: |
Re: lynx-dev Mixed bag of patches for 2.8.1dev.13 |
Date: |
Sat, 16 Jan 1999 21:33:38 +0300 (MSK) |
14-Jan-99 18:11 Klaus Weide wrote:
> * Make "Alert" statusline prefix localizable.
How about "Alert" message in HTAletr() ?
> * Changed LYCheckForProxyURL to act more like it appears to
> have been indended, and clarify comment. Minor change in
> is_url.
see DOSPATH code below:
> *** lynx2-8-2.old/src/LYUtils.c Sun Jan 3 05:36:34 1999
> --- lynx2-8-2/src/LYUtils.c Thu Jan 14 08:55:42 1999
> ***************
> *** 1922,1928 ****
> #else
> /* draw the status bar in the STATUS style */
> {
> ! int a=(strncmp(buffer, "Alert", 5) || !hashStyles[s_alert].name
> ? s_status : s_alert);
> LynxChangeStyle (a, ABS_ON, 1);
> addstr(buffer);
> wbkgdset(stdscr,
> --- 1922,1929 ----
> #else
> /* draw the status bar in the STATUS style */
> {
> ! int a=(strncmp(buffer, ALERT_FORMAT, ALERT_PREFIX_LEN) ||
> ! !hashStyles[s_alert].name ? s_status : s_alert);
> LynxChangeStyle (a, ABS_ON, 1);
> addstr(buffer);
> wbkgdset(stdscr,
> ***************
> *** 2407,2419 ****
> return(PROXY_URL_TYPE);
> }
> FREE(cp2);
> cp1++;
> ! if (isdigit((unsigned char)*cp1)) {
> while (*cp1 && isdigit((unsigned char)*cp1))
> cp1++;
> if (*cp1 && !LYIsHtmlSep(*cp1))
> return(UNKNOWN_URL_TYPE);
> ! }
> }
> return(0);
> --- 2408,2428 ----
> return(PROXY_URL_TYPE);
> }
> FREE(cp2);
> + #if defined (DOSPATH)
> + if (cp[1] == ':')
> + return(0); /* could be drive letter? - kw */
> + #endif
Apparently couldn't, all DOSPATH local files have already stored with
file://localhost prefix from LYFillLocalURL() [just when they first appears]
so is_url() should not worry about.
> cp1++;
> ! if (!*cp) {
> ! return(0);
> ! } else if (isdigit((unsigned char)*cp1)) {
> while (*cp1 && isdigit((unsigned char)*cp1))
> cp1++;
> if (*cp1 && !LYIsHtmlSep(*cp1))
> return(UNKNOWN_URL_TYPE);
> ! } else {
> ! return(UNKNOWN_URL_TYPE);
> ! }
> }
> return(0);