* GNAT pragma IMPORT and type conversions
@ 1994-10-05 18:42 mcnett michael david
1994-10-05 20:06 ` Tom Griest
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: mcnett michael david @ 1994-10-05 18:42 UTC (permalink / raw)
In my current project, I am using the GNAT Ada package and interfacing
(pragma IMPORT) with the C language. I can do the interfaces well and
send/receive variables, but I am not sure about how the language converts
from ada types (integer, array, access, etc.) to C types (unsigned long,
unsigned long long, pointers, etc.). Also, what about subtypes and
enumerated types. I imagine it looks at the base class in the conversion.
Are there any example programs out there that deal with this problem? If
so, where are they?
Thanks in advance,
______________________________________________________________
Michael McNett |
Graduate Student |
University of Illinois |
mmcnett@uiuc |
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNAT pragma IMPORT and type conversions
1994-10-05 18:42 GNAT pragma IMPORT and type conversions mcnett michael david
@ 1994-10-05 20:06 ` Tom Griest
1994-10-05 21:14 ` Robert Dewar
1994-10-05 21:15 ` Robert Dewar
2 siblings, 0 replies; 4+ messages in thread
From: Tom Griest @ 1994-10-05 20:06 UTC (permalink / raw)
In article <mmcnett.781382539@sparc53.cs.uiuc.edu> mmcnett@sparc53.cs.uiuc.edu (mcnett michael david) writes:
>
>In my current project, I am using the GNAT Ada package and interfacing
>(pragma IMPORT) with the C language. I can do the interfaces well and
>send/receive variables, but I am not sure about how the language converts
>from ada types (integer, array, access, etc.) to C types (unsigned long,
>unsigned long long, pointers, etc.). Also, what about subtypes and
>enumerated types. I imagine it looks at the base class in the conversion.
>
>Are there any example programs out there that deal with this problem? If
>so, where are they?
>
>Thanks in advance,
>
>______________________________________________________________
>Michael McNett |
>Graduate Student |
>University of Illinois |
>mmcnett@uiuc |
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNAT pragma IMPORT and type conversions
1994-10-05 18:42 GNAT pragma IMPORT and type conversions mcnett michael david
1994-10-05 20:06 ` Tom Griest
@ 1994-10-05 21:14 ` Robert Dewar
1994-10-05 21:15 ` Robert Dewar
2 siblings, 0 replies; 4+ messages in thread
From: Robert Dewar @ 1994-10-05 21:14 UTC (permalink / raw)
The conversion from Ada types to C types in the GNAT environment is
quite canonical. FOr example integer always corresponds to int, and
system.unsigned_types.unsigned always corresponds to the C unsigned type.
The GNAT documentation is certainly not very complete in this area, I will
try to have it updated a bit in this particular area for the next release.
Meanwhile, if you have specific questions, address them to gnat-report
as usual.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNAT pragma IMPORT and type conversions
1994-10-05 18:42 GNAT pragma IMPORT and type conversions mcnett michael david
1994-10-05 20:06 ` Tom Griest
1994-10-05 21:14 ` Robert Dewar
@ 1994-10-05 21:15 ` Robert Dewar
2 siblings, 0 replies; 4+ messages in thread
From: Robert Dewar @ 1994-10-05 21:15 UTC (permalink / raw)
please send questions to gnat-report, we will bne happy to help you out.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-10-05 21:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-10-05 18:42 GNAT pragma IMPORT and type conversions mcnett michael david
1994-10-05 20:06 ` Tom Griest
1994-10-05 21:14 ` Robert Dewar
1994-10-05 21:15 ` Robert Dewar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox