lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev Problems of DOS port (dev12) [PATCH]


From: Leonid Pauzner
Subject: Re: lynx-dev Problems of DOS port (dev12) [PATCH]
Date: Thu, 21 Oct 1999 11:45:20 +0400 (MSD)

20-Oct-99 23:31 Doug Kaufman wrote:
> This was a problem with integrating the WIN_EX changes. In LYPrint.c,
> a DOSPATH ifdef was changed to WIN_EX, leaving the DOS port out in
> the cold. A new binary with this change works to email from a print
> screen. I'll get a new binary with the fix available for distribution
> soon.
>                            Doug

You are wrong with your patch:
apparently, `mail_is_blat' will not be defined
without SH_EX (more proper #ifdef'ing required).
Try doing diff LYPrint.c between versions 2.8.2rel and 2.8.3dev.12
to figure out the changes. It was ifdef'ed with DOSPATH
so _WINDOWS users should also benefit (whether WIN_EX defined or not).

It seems you build with SH_EX which may be not suitable
for general binary distribution now (Klaus was right,
that part of changes represent the very personal preferences
of their author so we need more testing to make
a knowledgeable selection).


> --- lynx2-8-3/src/LYPrint.c   Wed Sep 29 04:40:40 1999
> +++ lynx2-8-3/src/LYPrint.c.new       Wed Oct 20 22:37:00 1999
> @@ -770,6 +770,7 @@
>      if (keypad_mode)
>       printlist(outfile_fp, FALSE);

> +#if defined(WIN_EX) || defined(__DJGPP__)
>  #if defined(WIN_EX)  /* 1998/08/17 (Mon) 16:29:49 */
>      buffer = NULL;
>      if (mail_is_blat)
> @@ -778,6 +779,11 @@
>      else
>       HTSprintf0(&buffer, "%s -t \"%s\" -F %s",
>                       system_mail, user_response, my_temp);
> +#endif /* WIN_EX */
> +#ifdef __DJGPP__
> +     HTSprintf0(&buffer, "%s -t \"%s\" -F %s",
> +                     system_mail, user_response, my_temp);
> +#endif /* __DJGPP__ */
>      LYCloseTempFP(outfile_fp);       /* Close the tmpfile. */

>      stop_curses();
> @@ -789,9 +795,9 @@
>      SetOutputMode( O_BINARY );

>      LYRemoveTemp(my_temp); /* Delete the tmpfile. */
> -#else /* !WIN_EX */
> +#else /* !WIN_EX && !__DJGPP__ */
>      pclose(outfile_fp);
> -#endif
> +#endif /* WIN_EX || __DJGPP__ */
>  #endif /* VMS */

>  done:        /* send_file_to_mail() */

> __
> Doug Kaufman
> Internet: address@hidden





reply via email to

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