comp.lang.ada
 help / color / mirror / Atom feed
* Ada and X Windows programming.
@ 1995-02-10 16:58 Jim Burns
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Burns @ 1995-02-10 16:58 UTC (permalink / raw)


We are working with X and have been trying to pass callback procedures to a c
interface we've built to XView. We've got this working with Alsys, but the 
GNAT compiler barfs at the call in pragma.

Does anyone know a way round this? 
When will the GNAT compiler support the export pragma?

Thanks.
-Jim:) 
-- 
Jim Burns---3rd Year Software Engineering---University of Glasgow
+
+                        burns@dcs.gla.ac.uk



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Ada and X Windows programming.
       [not found] <3idmv1$6d6@goanna.cs.rmit.edu.au>
@ 1995-02-23 15:05 ` Cyrille Comar
  0 siblings, 0 replies; 2+ messages in thread
From: Cyrille Comar @ 1995-02-23 15:05 UTC (permalink / raw)


dale@rmit.edu.au (Dale Stanbrough) writes:

: How do you provide for package initialisation in this scheme?
: 

This is probably not the final solution but right now you can use
'gnatbind -n my_package.ali' it will generate the elaboration procedure
that you need to call from your 'C' code before using elements defined
in the package (although, I would recommend to use pre-elaborable
packages whenever possible to avoid all this fuss with defining and
calling the elab routine at the right moment)
By the way "pragma Export" is now implemented and will be in 2.04
 
-- 
------------------------------------------------------------------------
Cyrille Comar,                                  E-mail: comar@cs.nyu.edu
Gnat Project                                    US phone: (212) 998-3489




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-02-23 15:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3idmv1$6d6@goanna.cs.rmit.edu.au>
1995-02-23 15:05 ` Ada and X Windows programming Cyrille Comar
1995-02-10 16:58 Jim Burns

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