From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9d06e958bd4b5e53 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.maxwell.syr.edu!easynet-monga!easynet.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: interfaces.C - Import struct Date: 13 Mar 2005 12:31:56 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <1315747.Nh4vHchO3h@linux1.krischik.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1110717210 23083 62.49.19.209 (13 Mar 2005 12:33:30 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sun, 13 Mar 2005 12:33:30 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:9308 Date: 2005-03-13T12:31:56+00:00 List-Id: Martin Krischik 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.