Subject: Re: KNF & using _ or __ as func. name prefix
To: Ian Dall <Ian.Dall@dsto.defence.gov.au>
From: Chris G. Demetriou <cgd@netbsd.org>
List: current-users
Date: 11/01/1998 22:50:49
Ian Dall <Ian.Dall@dsto.defence.gov.au> writes:
>   >> 1. _foo is used for something internal to code in question - such
>   >> as locally used static function
> 
> A static function has no scope outside the file in question so you can
> use whatever you like, but there seems no point in using a name in a
> reserved name space.

No, you can't really use whatever name you like, if you want to be
sure your code will work.

You might, for instance, use _foo, but if you include a standard header,
what's to stop the implementation from defining _foo...  Sure,
unlikely, but if you want to be sure your code'll work...





cgd
-- 
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.