* Re: _WIN32?
@ 2001-04-19 0:12 Eli Zaretskii
0 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2001-04-19 0:12 UTC (permalink / raw)
To: gdb
[I'm resending this because qmail rejected my original message for some
obscure reason.]
On 17 Apr 2001, DJ Delorie wrote:
> > __GO32__ djgpp I think
>
> DJGPP V1, also defined by DJGPP V2 for backwards compatibility.
> __DJGPP__ is the current recommended symbol.
I don't like changing code just for the sake of changing, that's why I
consistently left the old __GO32__ symbol unless I had a good reason
for changing it into __DJGPP__ (e.g., if DJGPP v1.x behaved
differently from the current DJGPP versions). You can never know:
someone, somewhere could still use ye olde v1.x of DJGPP.
> > __MSDOS__
>
> DJGPP, Borland C, older MSC's, and other dos-hosted compilers. This
> is (was?) the canonical way of detecting any dos-hosted compiler
> (compiler-independent filesystem issues, for example)
In some code I contributed, __MSDOS__ is used instead of __DJGPP__
where the underlying issue is not specific to DJGPP, but rather is
common to all MS-DOS-based compilers. An example is some problem with
limitations of a 8+3 DOS filesystem, e.g. that file names like
`.gdbinit' are not allowed.
By contrast, I use __DJGPP__ for code that won't (or shouldn't) work
with anything but DJGPP. An example is a snippet in
mant.c:maintenance_dump_me which uses SIGABRT instead of SIGQUIT, for
the reason explained in a comment there.
^ permalink raw reply [flat|nested] 9+ messages in thread
* _WIN32?
@ 2001-04-17 14:50 Andrew Cagney
2001-04-17 14:59 ` _WIN32? Mo DeJong
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Andrew Cagney @ 2001-04-17 14:50 UTC (permalink / raw)
To: GDB Discussion
Hello,
utils.c contains:
#if !defined (MPW) && !defined (_WIN32)
/* No termcap under MPW, although might be cool to do something
by looking at worksheet or console window sizes. */
/* Initialize the screen height and width from termcap. */
Given the ``!defined (MPW)'' bit is about to go, I'm wondering if the
!defined(_WIN32) is needed?
Hmm, actually, I'm puzzled. Can anyone fill in the gaps?
__GO32__ djgpp I think
__CYGWIN__ ok - cygwin
__CYGWIN32__ ok - old __CYGWIN__
_WIN32
_WIN32_WCE
__MSDOS__
enjoy,
Andrew
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: _WIN32?
2001-04-17 14:50 _WIN32? Andrew Cagney
@ 2001-04-17 14:59 ` Mo DeJong
2001-04-17 15:06 ` _WIN32? Christopher Faylor
2001-04-17 17:45 ` _WIN32? DJ Delorie
2 siblings, 0 replies; 9+ messages in thread
From: Mo DeJong @ 2001-04-17 14:59 UTC (permalink / raw)
To: gdb
On Tue, 17 Apr 2001, Andrew Cagney wrote:
> Hello,
>
> utils.c contains:
>
> #if !defined (MPW) && !defined (_WIN32)
> /* No termcap under MPW, although might be cool to do something
> by looking at worksheet or console window sizes. */
> /* Initialize the screen height and width from termcap. */
>
> Given the ``!defined (MPW)'' bit is about to go, I'm wondering if the
> !defined(_WIN32) is needed?
>
> Hmm, actually, I'm puzzled. Can anyone fill in the gaps?
>
> __GO32__ djgpp I think
> __CYGWIN__ ok - cygwin
> __CYGWIN32__ ok - old __CYGWIN__
> _WIN32
> _WIN32_WCE
> __MSDOS__
>
> enjoy,
> Andrew
I think that -D_WIN32 is passed in the CFLAGS for the Windows
port of Tcl. If this is a file used in gdbtk, that might
explain where the _WIN32 define came from. The windows
build of Tcl also uses -DWIN32 if that helps.
Mo DeJong
Red Hat Inc
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: _WIN32?
2001-04-17 14:50 _WIN32? Andrew Cagney
2001-04-17 14:59 ` _WIN32? Mo DeJong
@ 2001-04-17 15:06 ` Christopher Faylor
2001-04-30 10:05 ` _WIN32? Andrew Cagney
2001-04-17 17:45 ` _WIN32? DJ Delorie
2 siblings, 1 reply; 9+ messages in thread
From: Christopher Faylor @ 2001-04-17 15:06 UTC (permalink / raw)
To: GDB Discussion
On Tue, Apr 17, 2001 at 05:49:41PM -0400, Andrew Cagney wrote:
>utils.c contains:
>
>#if !defined (MPW) && !defined (_WIN32)
> /* No termcap under MPW, although might be cool to do something
> by looking at worksheet or console window sizes. */
> /* Initialize the screen height and width from termcap. */
>
>Given the ``!defined (MPW)'' bit is about to go, I'm wondering if the
>!defined(_WIN32) is needed?
>
>Hmm, actually, I'm puzzled. Can anyone fill in the gaps?
>
__GO32__ djgpp I think
__CYGWIN__ ok - cygwin
__CYGWIN32__ ok - old __CYGWIN__
_WIN32 Pure WIN32 support 'gcc -mno-cygwin' --
don't know if it even builds. _WIN32 is
now no longer defined by gcc.
_WIN32_WCE Windows CE
__MSDOS__ Dunno
cgf
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: _WIN32?
2001-04-17 15:06 ` _WIN32? Christopher Faylor
@ 2001-04-30 10:05 ` Andrew Cagney
2001-04-30 10:15 ` _WIN32? Christopher Faylor
0 siblings, 1 reply; 9+ messages in thread
From: Andrew Cagney @ 2001-04-30 10:05 UTC (permalink / raw)
To: Christopher Faylor; +Cc: GDB Discussion
Christopher Faylor wrote:
> _WIN32 Pure WIN32 support 'gcc -mno-cygwin' --
> don't know if it even builds. _WIN32 is
> now no longer defined by gcc.
So, can I delete this one? :-)
Andrew
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: _WIN32?
2001-04-30 10:05 ` _WIN32? Andrew Cagney
@ 2001-04-30 10:15 ` Christopher Faylor
2001-04-30 18:00 ` _WIN32? Andrew Cagney
0 siblings, 1 reply; 9+ messages in thread
From: Christopher Faylor @ 2001-04-30 10:15 UTC (permalink / raw)
To: Andrew Cagney; +Cc: GDB Discussion, mingw-users
On Mon, Apr 30, 2001 at 01:05:17PM -0400, Andrew Cagney wrote:
>Christopher Faylor wrote:
>
>> _WIN32 Pure WIN32 support 'gcc -mno-cygwin' --
>> don't know if it even builds. _WIN32 is
>> now no longer defined by gcc.
>
>So, can I delete this one? :-)
I don't know. Someone used to maintain a non-cygwin Windows version of
gdb. I don't know if it even builds, like I said. I'm not even sure
how to configure it.
Perhaps the people at mingw-users@lists.sourceforge.net know the answer
to this? I've Cc'ed them.
cgf
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: _WIN32?
2001-04-30 10:15 ` _WIN32? Christopher Faylor
@ 2001-04-30 18:00 ` Andrew Cagney
0 siblings, 0 replies; 9+ messages in thread
From: Andrew Cagney @ 2001-04-30 18:00 UTC (permalink / raw)
To: Christopher Faylor; +Cc: GDB Discussion, mingw-users
Christopher Faylor wrote:
>
> On Mon, Apr 30, 2001 at 01:05:17PM -0400, Andrew Cagney wrote:
> >Christopher Faylor wrote:
> >
> >> _WIN32 Pure WIN32 support 'gcc -mno-cygwin' --
> >> don't know if it even builds. _WIN32 is
> >> now no longer defined by gcc.
> >
> >So, can I delete this one? :-)
>
> I don't know. Someone used to maintain a non-cygwin Windows version of
> gdb. I don't know if it even builds, like I said. I'm not even sure
> how to configure it.
Was there ever anything beyond the ledgendary wingdb (a long deleted
version of GDB that compiled and ran using the windows environment).
> Perhaps the people at mingw-users@lists.sourceforge.net know the answer
> to this? I've Cc'ed them.
Hope so. I wouldn't mind adding this cleanup to the 5.2 release
criteria.
Andrew
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: _WIN32?
2001-04-17 14:50 _WIN32? Andrew Cagney
2001-04-17 14:59 ` _WIN32? Mo DeJong
2001-04-17 15:06 ` _WIN32? Christopher Faylor
@ 2001-04-17 17:45 ` DJ Delorie
2001-04-18 2:17 ` _WIN32? Eli Zaretskii
2 siblings, 1 reply; 9+ messages in thread
From: DJ Delorie @ 2001-04-17 17:45 UTC (permalink / raw)
To: gdb
Andrew Cagney <ac131313@cygnus.com> writes:
> __GO32__ djgpp I think
DJGPP V1, also defined by DJGPP V2 for backwards compatibility.
__DJGPP__ is the current recommended symbol.
> _WIN32
These are the 'canonical' way of detecting a Windows native compiler
(MSVC, MinGW, cygwin with -mno-cygwin).
> __MSDOS__
DJGPP, Borland C, older MSC's, and other dos-hosted compilers. This
is (was?) the canonical way of detecting any dos-hosted compiler
(compiler-independent filesystem issues, for example)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: _WIN32?
2001-04-17 17:45 ` _WIN32? DJ Delorie
@ 2001-04-18 2:17 ` Eli Zaretskii
0 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2001-04-18 2:17 UTC (permalink / raw)
To: Andrew Cagney; +Cc: gdb
On 17 Apr 2001, DJ Delorie wrote:
> > __GO32__ djgpp I think
>
> DJGPP V1, also defined by DJGPP V2 for backwards compatibility.
> __DJGPP__ is the current recommended symbol.
I don't like changing code just for the sake of changing, that's why I
consistently left the old __GO32__ symbol unless I had a good reason
for changing it into __DJGPP__ (e.g., if DJGPP v1.x behaved
differently from the current DJGPP versions). You can never know:
someone, somewhere could still use ye olde v1.x of DJGPP.
> > __MSDOS__
>
> DJGPP, Borland C, older MSC's, and other dos-hosted compilers. This
> is (was?) the canonical way of detecting any dos-hosted compiler
> (compiler-independent filesystem issues, for example)
In some code I contributed, __MSDOS__ is used instead of __DJGPP__
where the underlying issue is not specific to DJGPP, but rather is
common to all MS-DOS-based compilers. An example is some problem with
limitations of a 8+3 DOS filesystem, e.g. that file names like
`.gdbinit' are not allowed.
By contrast, I use __DJGPP__ for code that won't (or shouldn't) work
with anything but DJGPP. An example is a snippet in
mant.c:maintenance_dump_me which uses SIGABRT instead of SIGQUIT, for
the reason explained in a comment there.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2001-04-30 18:00 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-19 0:12 _WIN32? Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2001-04-17 14:50 _WIN32? Andrew Cagney
2001-04-17 14:59 ` _WIN32? Mo DeJong
2001-04-17 15:06 ` _WIN32? Christopher Faylor
2001-04-30 10:05 ` _WIN32? Andrew Cagney
2001-04-30 10:15 ` _WIN32? Christopher Faylor
2001-04-30 18:00 ` _WIN32? Andrew Cagney
2001-04-17 17:45 ` _WIN32? DJ Delorie
2001-04-18 2:17 ` _WIN32? Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox