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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e289b5ceae0f39c3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-23 08:13:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!west.cox.net!east.cox.net!peer01.cox.net!cox.net!news-hub.cableinet.net!blueyonder!btnet-peer!btnet-peer0!btnet-peer1!btnet!newsfeed.lhr.globix.net!nella.toplink-plannet.de!feed.news.toplink-plannet.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Binding to C Date: Wed, 23 Jul 2003 15:47:50 +0200 Organization: AdaCL Message-ID: <4668801.HL59EWmU46@linux1.krischik.com> References: <13934627.ulbWRIerNL@linux1.krischik.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1058973093 07 7046 FqFFVGuSStYQ0E 030723 15:11:33 X-Complaints-To: usenet-abuse@t-online.de X-ID: VS92jaZ1geTbesm+7shub7KaSc-EJjxcAzSIaGRtNThle9lVWrUZ68 User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:40711 Date: 2003-07-23T15:47:50+02:00 List-Id: chris wrote: > Martin Krischik wrote: >> chris wrote: >> >> >>>Hi, >>> >>>I came across the following in libjpeg... what should I map it to? >>> >>>const char* const* jpeg_message_table >> >> >> const works to the left unless it comes first. So: >> >> (const char) (* const)* jpeg_message_table > > Yuck! I thought it was > > (const char *) (const *) jpeg_message_table; The difference is only that the last * is not constant. But for a parameter to a function this makes no difference to the user of the function. > which is (iirc) > > type jpeg_message_table is access constant CStrings.chars_ptr; > I hate C! Met too. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com