tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Definitions of types also as macros



On Thu, Nov 08, 2018 at 09:08:04AM +0000, David Holland wrote:
> On Tue, Nov 06, 2018 at 03:07:16PM +0000, coypu%sdf.org@localhost wrote:
>  > I wanna do this, looks good?
> 
> It should probably use double wings:
> 
>  > -#ifndef	int8_t
>  > +#ifndef	_BSD_INT8_T_
> 
>    +#ifndef	__BSD_INT8_T__

In terms of namespace consumption, the single leading underscore
followed by an uppercase letter as used here is sufficient.


- Klaus


Home | Main Index | Thread Index | Old Index