Subject: Re: KNF & using _ or __ as func. name prefix
To: None <cgd@netbsd.org>
From: Ian Dall <Ian.Dall@dsto.defence.gov.au>
List: current-users
Date: 11/04/1998 13:37:43
cgd@netbsd.org (Chris G. Demetriou) writes:

  > 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 are quite right of course. I was thinking in terms of the static function
polluting the name space of other code rather than in terms of the static
function compiling and working correctly in the first place.

Ian