comp.lang.ada
 help / color / mirror / Atom feed
From: James Alan Farrell <jfarrell@nospam.com>
Subject: Re: ASIS question
Date: Fri, 16 Sep 2005 12:12:30 -0400
Date: 2005-09-16T12:12:30-04:00	[thread overview]
Message-ID: <432aef10$1_1@newsfeed.slurp.net> (raw)
In-Reply-To: <1cvdgd.g98.ln@hunter.axlog.fr>

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

Jean-Pierre Rosen wrote:
> James Alan Farrell a �crit :
> 
>> Given a declaration, is there an easy way to get a list of pragmas 
>> relating to that declaration?
>>
>> ie:
>>
>> procedure Foo;
>> pragma Export(C, Foo, "foo");
>>
>> where Foo is declared in a long list of declarations.  I have the decl 
>> list and the declaration of Foo.  Is there any way I can get the 
>> pragma directly from Foo, rather than searching the long list of 
>> declarations and seeing if any pragma relates to Foo?
>>
> Asis.Elements.Corresponding_Pragmas
> 
Ah, I should have been more clear - apologies.  In ASIS for gnat 3.15p, 
Asis.Elements.Corresponding_Pragmas raises an exception "unimplemented."

Given that situation, is there a reasonably elegant way to do this?
Will this function be implemented in the future?

Thank you for your reply,
JAF

[-- Attachment #2: jfarrell.vcf --]
[-- Type: text/x-vcard, Size: 88 bytes --]

begin:vcard
fn:James Alan Farrell
n:Farrell;James
org:GrammaTech
version:2.1
end:vcard


  reply	other threads:[~2005-09-16 16:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-15 16:02 ASIS question James Alan Farrell
2005-09-16  8:22 ` Jean-Pierre Rosen
2005-09-16 16:12   ` James Alan Farrell [this message]
2005-09-19 16:15     ` Jean-Pierre Rosen
  -- strict thread matches above, loose matches on Subject: below --
2000-03-27  0:00 Andy Askey
2000-03-28  0:00 ` Samuel T. Harris
replies disabled

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