lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev REUSE_TEMPFILES problem (more)


From: Leonid Pauzner
Subject: Re: lynx-dev REUSE_TEMPFILES problem (more)
Date: Fri, 16 Jul 1999 16:42:46 +0400 (MSD)

16-Jul-99 06:49 Klaus Weide wrote:
> On Fri, 16 Jul 1999, Leonid Pauzner wrote:
>> 16-Jul-99 14:26 I wrote:
>> > I just check dev.4 DJGPP build with REUSE_TEMPFILES:TRUE in lynx.cfg:
>> > unfortunately, it doesn't work as intended.
>>
>> ///////////////////
>> getfile: getting LYNXOPTIONS:/
>>
>> HTParse: aName:`LYNXOPTIONS:/'
>>    relatedName:`'
>> HTParse:      result:
>> LYOpenTempRewrite(c:\add\tmp\17088.htm,.htm,w)
>> ...used before.
>> ...is NOT our file.
>> LYOpenTemp(,.htm,w)
>> -> 'c:\add\tmp\27088.htm'
>> ... LYOpenTemp(c:\add\tmp\27088.htm)
>> LYCloseTempFP
>> ...LYCloseTempFP(c:\add\tmp\27088.htm)
>>
>> Why NOT our file?
>> DJGPP port compiled with NOUSERS (and NO_GROUPS is only defined in HTFile.c
>> before HTEditable(), so not defined in LYUtils.c)

> Good question...

> I didn't realize that NO_GROUPS was only set privately in HTFile.c.
> It has to be defined for DOS in LYUtils.c, too.  Should the #define's
> move from HTFile.c to some .h, or do I need to change the
> LYOpenTempRewrite() logic?

Both. I move all the whole NO_GROUPS chunk from HTFile.c to HTFile.h
and rebuilt LYUtils.c. Now we got "our file" but the page not rewritten
but APPENDED (without any notice in the trace log) - I just see the options
menu incremented by 8Kb in size each time (same for Info Page, etc.).

>    Klaus


diff -u old/htfile.c ./htfile.c
--- old/htfile.c        Wed Jul 14 09:25:26 1999
+++ ./htfile.c  Fri Jul 16 16:20:12 1999
@@ -1123,30 +1123,6 @@
 **     1.      No code for non-unix systems.
 **     2.      Isn't there a quicker way?
 */
-
-#if defined(HAVE_CONFIG_H)
-
-#ifndef HAVE_GETGROUPS
-#define NO_GROUPS
-#endif
-
-#else
-
-#ifdef VMS
-#define NO_GROUPS
-#endif /* VMS */
-#ifdef NO_UNIX_IO
-#define NO_GROUPS
-#endif /* NO_UNIX_IO */
-#ifdef PCNFS
-#define NO_GROUPS
-#endif /* PCNFS */
-#ifdef NOUSERS
-#define NO_GROUPS
-#endif /* PCNFS */
-
-#endif /* HAVE_CONFIG_H */
-
 PUBLIC BOOL HTEditable ARGS1(
        CONST char *,   filename)
 {
diff -u old/htfile.h ./htfile.h
--- old/htfile.h        Tue Jun 29 05:50:02 1999
+++ ./htfile.h  Fri Jul 16 16:21:20 1999
@@ -175,6 +175,30 @@
 **
 **   Isn't there a quicker way?
 */
+
+#if defined(HAVE_CONFIG_H)
+
+#ifndef HAVE_GETGROUPS
+#define NO_GROUPS
+#endif
+
+#else
+
+#ifdef VMS
+#define NO_GROUPS
+#endif /* VMS */
+#ifdef NO_UNIX_IO
+#define NO_GROUPS
+#endif /* NO_UNIX_IO */
+#ifdef PCNFS
+#define NO_GROUPS
+#endif /* PCNFS */
+#ifdef NOUSERS
+#define NO_GROUPS
+#endif /* PCNFS */
+
+#endif /* HAVE_CONFIG_H */
+
 extern BOOL HTEditable PARAMS((CONST char * filename));

 /*     Make a save stream.




reply via email to

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