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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e289b5ceae0f39c3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-22 11:07:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!newsfeed.vmunix.org!newspeer1-gui.server.ntli.net!ntli.net!newsfep4-glfd.server.ntli.net.POSTED!53ab2750!not-for-mail From: chris User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Binding to C References: <13934627.ulbWRIerNL@linux1.krischik.com> In-Reply-To: <13934627.ulbWRIerNL@linux1.krischik.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 22 Jul 2003 19:12:21 +0200 NNTP-Posting-Host: 81.98.236.164 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep4-glfd.server.ntli.net 1058897227 81.98.236.164 (Tue, 22 Jul 2003 19:07:07 BST) NNTP-Posting-Date: Tue, 22 Jul 2003 19:07:07 BST Organization: ntl Cablemodem News Service Xref: archiver1.google.com comp.lang.ada:40658 Date: 2003-07-22T19:12:21+02:00 List-Id: 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; which is (iirc) type jpeg_message_table is access constant CStrings.chars_ptr; I hate C!