tech-kern archive

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

Re: Support for multi-position electro-mechanical keylocks



In message <7FA34163-C54B-435C-B147-DA2BBE06F848%msys.ch@localhost>, Marc 
Balmer writes:
>
>Am 03.08.2009 um 16:23 schrieb David Holland:
>
>> On Mon, Aug 03, 2009 at 03:45:34AM +0000, David Holland wrote:
>>> On Sun, Aug 02, 2009 at 11:54:09AM +0200, Marc Balmer wrote:
>>>> While preparing a hardware workshop and playing with multi-position
>>>> keylocks, [...]
>>>>
>>>> +       int                     __map[GPIOLOCK_MAXPINS];
>>
>> Er. That was supposed to say "why the underscores?"
>
>They are in the original code.  So why not?

As a general rule, you shouldn't prefix things with underscores in C.
(C9x 7.1.3:  "All identifiers that begin with an underscore and
either an uppercase letter or another underscore are always reserved
for any use.")

-s


Home | Main Index | Thread Index | Old Index