Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Feb 2003 18:34:53 -0500 (EST)
From:      Daniel Eischen <eischen@pcnet1.pcnet.com>
To:        Mark Murray <mark@grondar.org>
Cc:        Julian Elischer <julian@elischer.org>, current@FreeBSD.ORG
Subject:   Re: Style fixups for proc.h 
Message-ID:  <Pine.GSO.4.10.10302011833130.8025-100000@pcnet1.pcnet.com>
In-Reply-To: <200302012315.h11NFVaX028348@grimreaper.grondar.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 1 Feb 2003, Mark Murray wrote:
> Julian Elischer writes:
> > I don't know about the protection with a '_'.
> > 
> > It's not standard and usually the name matches that used in the actual
> > function.
> 
> When the prototype parameter name matches a local variable, the C compiler
> (and lint) whine about clashes between names in local/global namespace.
> 
> 2 ways to fix this are to "protect" the prototype argument names with the
> "_", or to remove the argument name altogether.

I'd rather have the names removed altogether.

-- 
Dan Eischen


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10302011833130.8025-100000>