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-27 06:04:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada References: Subject: Re: Binding to C X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: Date: Sun, 27 Jul 2003 13:04:15 GMT NNTP-Posting-Host: 65.110.133.134 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.pas.earthlink.net 1059311055 65.110.133.134 (Sun, 27 Jul 2003 06:04:15 PDT) NNTP-Posting-Date: Sun, 27 Jul 2003 06:04:15 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:40861 Date: 2003-07-27T13:04:15+00:00 List-Id: "chris" wrote in message news:MxXSa.2290$l63.28380@newsfep4-glfd.server.ntli.net... > > I came across the following in libjpeg... what should I map it to? > > const char* const* jpeg_message_table This is a pointer to a constant array, comprising pointers to constant strings. You could use the types in Interfaces.C.*. Here's another way to do it: type char_array is array (Natural) of aliased Character; pragma Convention (C, char_array); pragma Suppress (Index_Check, On => char_array); type const_char_ptr is access constant char_array; for const_char'Storage_Size use 0; pragma Convention (C, const_char_ptr); type string_array is array (Natural) of aliased const_char_ptr; pragma Convention (C, string_array); pragma Suppress (Index_Check, On => string_array); type const_string_ptr is access constant string_array; for const_string_ptr'Storage_Size use 0; pragma Convention (C, const_string_ptr); JPEG_Message_Table : const_string_ptr; -- voila! -Matt