comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Binding to C
Date: Wed, 23 Jul 2003 15:47:50 +0200
Date: 2003-07-23T15:47:50+02:00	[thread overview]
Message-ID: <4668801.HL59EWmU46@linux1.krischik.com> (raw)
In-Reply-To: f3fTa.342$xe6.5412@newsfep4-glfd.server.ntli.net

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




  reply	other threads:[~2003-07-23 13:47 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-21 18:59 Binding to C chris
2003-07-21 20:02 ` Martin Krischik
2003-07-22 17:12   ` chris
2003-07-23 13:47     ` Martin Krischik [this message]
2003-07-27 13:11     ` Matthew Heaney
2003-07-27 13:07   ` Matthew Heaney
2003-07-21 21:07 ` tmoran
2003-07-21 21:57   ` chris
2003-07-27 13:04 ` Matthew Heaney
2003-07-28 20:52 ` Freejack
2003-07-29 19:21   ` chris
2003-08-09 11:29 ` Patrice Freydiere
2003-08-09 13:09   ` Jeffrey Creem
2003-08-09 13:54     ` Patrice Freydiere
2003-08-11 23:49   ` chris
2003-08-12  6:40     ` Patrice Freydiere
2003-08-12 11:58       ` chris
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox