svn commit: r206687 - head/usr.bin/indent

Colin Percival cperciva at freebsd.org
Fri Apr 16 11:34:23 UTC 2010


Bruce Evans wrote:
> On Thu, 15 Apr 2010, Andriy Gapon wrote:
>>  It seems that identifier "_t" is sometimes used as a variable name,
>>  even in our tree. [...]
> 
> Funny.  POSIX reserves "_t" as a suffix in header files, so unless it
> also requires a non-null prefix, "_t" is reserved in POSIX.

I think you must be reading a different version of POSIX to me.  My version says
that symbols ending with "_t" may be defined in any header; but not that they
cannot be used in non-headers.

If one wished to write code which was guaranteed to work on any conforming POSIX
system, one would naturally wish to avoid symbols which might legitimately be
defined in headers; but as long as we're concerned with one specific system
which happens to not define the symbol "_t" in any header, this is a non-issue.

-- 
Colin Percival
Security Officer, FreeBSD | freebsd.org | The power to serve
Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid


More information about the svn-src-head mailing list