[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev Re: pre4 (patch) SOURCE CACHE & LYK_SOURCE tiny charset
From: |
Leonid Pauzner |
Subject: |
Re: lynx-dev Re: pre4 (patch) SOURCE CACHE & LYK_SOURCE tiny charset fix |
Date: |
Thu, 20 May 1999 15:14:50 +0400 (MSD) |
20-May-99 13:06 I wrote:
> * LYK_SOURCE & HTreparse_document(): when using SOURCE_CACHE_MEMORY
> fix tiny charset problem when switching to the source mode
> and the original document have its charset specified.
> Now aligned with SOURCE_CACHE_NONE and SOURCE_CACHE_FILE.
> More LYK_SOURCE fixes that might affect next coming document in come cases
> (mainly Info page and Options menu, which now show correct charset
> information).
Oops:
> diff -u old/lymainlo.c ./lymainlo.c
> --- old/lymainlo.c Tue May 18 09:58:06 1999
> +++ ./lymainlo.c Thu May 20 12:14:58 1999
> @@ -1861,30 +1857,25 @@
> break;
> }
> -
> -#ifndef USE_PSRC
> - if (HTisDocumentSource()) {
> - HTOutputFormat = WWW_PRESENT;
> - } else {
> - if (HText_getOwner())
> - StrAllocCopy(ownerS_address, HText_getOwner());
> - LYUCPushAssumed(HTMainAnchor);
> - HTOutputFormat = WWW_SOURCE;
> - }
> -#else
> if (HTisDocumentSource()) {
> HTOutputFormat = WWW_PRESENT;
> +#ifdef USE_PSRC
> psrc_view = FALSE;
> +#endif
> } else {
> if (HText_getOwner())
> StrAllocCopy(ownerS_address, HText_getOwner());
> LYUCPushAssumed(HTMainAnchor);
> +#ifdef USE_PSRC
> if (LYpsrc)
> psrc_view = TRUE;
> else
> HTOutputFormat = WWW_SOURCE;
------> }
> +#else
> + HTOutputFormat = WWW_SOURCE;
> #endif
this bracket should be after #endif, otherwise we got unclosed bracket
if build without USE_PSRC.
Sorry.
> +
> #ifdef SOURCE_CACHE
> if (HTreparse_document()) {
> /*
...