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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!newsread.com!news-xfer.newsread.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!newsfeed.frii.net!newsfeed.frii.net!195.114.231.41.MISMATCH!feeder.news-service.com!post.news-service.com!news1.surfino.com!not-for-mail Message-Id: <1813978.LCQ6DLdGpx@linux1.krischik.com> From: Martin Krischik Subject: Re: interfaces.C - Import struct Newsgroups: comp.lang.ada Reply-To: martin@krischik.com Date: Sun, 13 Mar 2005 18:27:19 +0100 References: <1315747.Nh4vHchO3h@linux1.krischik.com> Organization: None User-Agent: KNode/0.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@surfino.com NNTP-Posting-Host: 83.169.175.19 (83.169.175.19) NNTP-Posting-Date: Sun, 13 Mar 2005 19:00:17 +0100 X-Trace: 2135a42347fb1f60c0ab602855 Xref: g2news1.google.com comp.lang.ada:9324 Date: 2005-03-13T18:27:19+01:00 List-Id: Simon Wright wrote: > 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. 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