all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Cosmin Truta <cosmin@cs.toronto.edu>
Cc: emacs-devel@gnu.org
Subject: Re: [Zlib-devel] Avoiding WIN* macros in GNU code [was Re: [Jim Meyering] Re: [Bug-gnulib] strftime merge from Emacs]
Date: Thu, 12 Jun 2003 01:52:16 -0400	[thread overview]
Message-ID: <Pine.GSO.4.44.0306120133470.12867-100000@qew.cs> (raw)
In-Reply-To: <3EE4F7DA.1060103@ximbiot.com>


On Mon, 9 Jun 2003, Derek Robert Price wrote:

> Richard Stallman wrote:
>
> >    I haven't seen WINDOWSNT used before.
> >    Here are some of the window-related macros I have seen:
> >
> >      _WIN32 WIN32 __WIN32__ __MSDOS__ WINDOWS32
> >
> >WINDOWSNT is what Emacs uses.  It is a GNU convention that we do not
> >use the abbreviation "WIN" to refer to Windows.  Are those names
> >used in any GNU packages?

The abbreviation is not WIN, but it is WIN32. I think WINDOWSNT is a
misnomer, because Windows 95/98/ME is not at all NT, and the newer
versions are not named "NT" anymore (even if they are based on the NT
kernel). The term "Win32" is used consistently in all versions, and it
really means "32-bit Windows", whether NT or not.


> CVS was using it.  I just changed that, aside from a reference in
> lib/system.h to set WOE32 when it found WIN32 defined.

I cannot recall a particular piece of software, but I saw lots of
WIN32 and _WIN32 symbols, and I used to read plenty of GNU source code.
I admit this was some time ago.


> I did notice that gzip/zlib appears to be switching on WIN32
> extensively, at least as of 1.1.4.  I've cc'd the zlib-devel mailing list.

The Win32 support appeared before 1.1.4, but it doesn't affect the
functionality on other platforms. We try hard to keep it this way ;)


By the way, what is the problem with using WIN32? Is there any danger to
clash with something else? The point is that WIN32 is something easy to
rely on:

  #if !defined(WIN32) && (defined(_WIN32) || defined(__WIN32__))
  #define WIN32
  #endif

Plenty of software use this or something related, and it's pretty much
failproof. Why add and maintain yet another nonstandard symbol?


Best regards,
Cosmin

  reply	other threads:[~2003-06-12  5:52 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-06 10:32 [Jim Meyering] Re: [Bug-gnulib] strftime merge from Emacs Dave Love
2003-06-06 13:24 ` Jason Rumney
2003-06-09 22:53   ` [Jim Meyering] " Andrew Innes
2003-06-10 22:36     ` Dave Love
2003-06-10 22:34   ` Dave Love
2003-06-10 22:51     ` [Jim Meyering] Re: [Bug-gnulib] " Jason Rumney
2003-06-11 10:14       ` Bruno Haible
2003-06-11 10:29         ` Jason Rumney
2003-06-11 17:29           ` [Jim Meyering] " Paul Eggert
2003-06-11 18:38             ` Eli Zaretskii
2003-06-11 18:52               ` [Jim Meyering] Re: [Bug-gnulib] " Paul Eggert
2003-06-11 19:26             ` Bruno Haible
2003-06-12 22:42       ` [Jim Meyering] " Dave Love
2003-06-13 14:53         ` Paul Eggert
2003-06-16 22:15           ` [Jim Meyering] Re: [Bug-gnulib] " Dave Love
2003-06-17  4:15             ` Paul Eggert
2003-06-17 11:10               ` Stephen J. Turnbull
2003-06-07 10:22 ` [Jim Meyering] " Richard Stallman
2003-06-07 15:28   ` Jim Meyering
2003-06-07 15:50     ` [Jim Meyering] Re: [Bug-gnulib] " Eli Zaretskii
2003-06-07 17:03       ` Bruno Haible
2003-06-07 18:46         ` [Jim Meyering] " Eli Zaretskii
2003-06-09  0:21         ` [Jim Meyering] Re: [Bug-gnulib] " Richard Stallman
2003-06-09 21:10   ` Avoiding WIN* macros in GNU code [was Re: [Jim Meyering] Re: [Bug-gnulib] strftime merge from Emacs] Derek Robert Price
2003-06-12  5:52     ` Cosmin Truta [this message]
2003-06-12  6:31       ` [Zlib-devel] " Miles Bader
2003-06-12 20:55       ` Richard Stallman
2003-06-12 22:07         ` [Zlib-devel] Avoiding WIN* macros in GNU code Cosmin Truta
2003-06-13 10:03           ` Jason Rumney
2003-06-15 15:59           ` Richard Stallman
2003-06-10 22:33   ` [Jim Meyering] Re: [Bug-gnulib] strftime merge from Emacs Dave Love
2003-06-12 14:06     ` Richard Stallman
2003-06-12 16:11       ` [Jim Meyering] " Benjamin Riefenstahl
2003-06-12 17:59       ` Jason Rumney
2003-06-12 18:43         ` Eli Zaretskii
2003-06-13 22:03         ` Richard Stallman
2003-06-16 21:55       ` Dave Love

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.44.0306120133470.12867-100000@qew.cs \
    --to=cosmin@cs.toronto.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.