comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <martin@krischik.com>
Subject: Re: interfaces.C - Import struct
Date: Sun, 13 Mar 2005 18:27:19 +0100
Date: 2005-03-13T18:27:19+01:00	[thread overview]
Message-ID: <1813978.LCQ6DLdGpx@linux1.krischik.com> (raw)
In-Reply-To: x7v7jkbvi9v.fsf@smaug.pushface.org

Simon Wright wrote:

> Martin Krischik <martin@krischik.com> writes:
> 
>> BTW: do you know about:
>> 
>> typedef void driver_setpixel_type (int, int, int);
>> 
>> Looks much nicer then the (*xxxx) stuff - It is also easer to type:
>> just copy the original prototype and replace extern/static with
>> typedef - done.  And the code would become symetic to the Ada code
>> making maintance easier.
> 
> Thanks a lot for that!
> 
> Personally I would go for
> 
>   typedef void driver_setpixel_type (int a, int b, int c);
> 
> being a believer in descriptive names for parameters ... of course I
> would never actually use a, b, c, that's obviously silly.

Me too, in this case I just copied the example from the OP.

Martin
-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com




      reply	other threads:[~2005-03-13 17:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-13  7:53 interfaces.C - Import struct Jean-Baptiste CAMPESATO
2005-03-13  9:05 ` Martin Krischik
2005-03-13 11:06   ` Jean-Baptiste CAMPESATO
2005-03-13 12:31   ` Simon Wright
2005-03-13 17:27     ` Martin Krischik [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox