From: Simon Wright <simon@pushface.org>
Subject: Re: interfaces.C - Import struct
Date: 13 Mar 2005 12:31:56 +0000
Date: 2005-03-13T12:31:56+00:00 [thread overview]
Message-ID: <x7v7jkbvi9v.fsf@smaug.pushface.org> (raw)
In-Reply-To: 1315747.Nh4vHchO3h@linux1.krischik.com
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.
--
Simon Wright 100% Ada, no bugs.
next prev parent reply other threads:[~2005-03-13 12:31 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 [this message]
2005-03-13 17:27 ` Martin Krischik
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox