This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Is GDB using reserved TYPEDEF identifiers? [REPOST]


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

> I note that the GDB source code uses a lot a such identifiers.
> Should we change to another suffix such as "_td" and document that
> requirement in the GDB coding rules within file 'gdbint.texinfo'?

That's up to the head maintainer.

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).

It's a triage problem.  There's plenty of other work that yields
more benefit for less effort.

Michael Elizabeth Chastain
<chastain@redhat.com>
"love without fear"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]