This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Is GDB using reserved TYPEDEF identifiers? [REPOST]
- To: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Subject: Re: Is GDB using reserved TYPEDEF identifiers? [REPOST]
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Mon, 25 Jun 2001 15:05:35 +0300 (IDT)
- cc: gdb at sources dot redhat dot com, jskallal at home dot com
On Sat, 23 Jun 2001, Michael Elizabeth Chastain wrote:
> John Kallal writes:
>
> > I think that POSIX reserves all identifiers defined with a typedef statement
> > that that end with the characters "_t" for use within the POSIX header files.
>
> The C standard (ISO/IEC 9899:1999) does not reserve these names,
> but the Single Unix Specification does reserve all names with the
> suffix "_t". Here's the reference:
>
> http://www.opengroup.org/onlinepubs/7908799/xsh/compilation.html
Note that Posix (at least the draft I have) does not explicitly say that
the names with the suffix _t are reserved. It just says that all Posix
headers use such names, which therefore might conflict with the
application. By contrast, the above Single unix Spec _does_ in fact say
such names are reserved.
> My opinion is that we should do nothing until someone demonstrates
> an actual problem on a specific configuration (specific host system,
> specific Ansi C compiler, specific host triple, specific target triple).
I agree.