comp.lang.ada
 help / color / mirror / Atom feed
* Variable arguments magic in Ada to C code
@ 2002-08-05 23:47 Andreas Almroth
       [not found] ` <slrnakv5v0.p2.lutz@taranis.iks-jena.de>
  0 siblings, 1 reply; 10+ messages in thread
From: Andreas Almroth @ 2002-08-05 23:47 UTC (permalink / raw)


G'day netfolks,

I'm this close <--> declaring my self dummy in Ada, which could very well be
true... ;-)

I'm trying to create a variable argument list in my Ada code, to a piece of
C code. The C code works fine on several platforms, so I'm quite sure I'm 
the one doing wrong... :-(

I searched google and found a few quite valuable replies to this question,
but I have found that my implementation is still not working. I'm developing
on Sun SPARC with Solaris 8, and just can't get my code to work.
The first argument passed works just fine, but the rest are not interpreted
very well by the C code. An 32/64 bits issue?

I have checked the GNAT source code, and I have tried to do the same thing
as they do there, but can't get it to work. I also need to transfer pointers 
to other types than strings (assuming this might prove harder than I thought).

Well, before publishing my code to further scrutiny and laughter, I thought
I would ask this kind newsgroup to pointers of information, or even better, to
working examples (other than GNAT source)...

Kind regards,
Andreas

--
Remove -nntp to mail directly








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

end of thread, other threads:[~2002-08-18 22:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-05 23:47 Variable arguments magic in Ada to C code Andreas Almroth
     [not found] ` <slrnakv5v0.p2.lutz@taranis.iks-jena.de>
     [not found]   ` <87ptww7yj6.fsf@almroth.com>
     [not found]     ` <slrnal1l8s.pj.lutz@taranis.iks-jena.de>
     [not found]       ` <dstanbro-CDC252.20502007082002@news-server.bigpond.net.au>
2002-08-14  9:05         ` Lutz Donnerhacke
     [not found]       ` <87vg6nj8jd.fsf@almroth.com>
2002-08-16 19:41         ` David Thompson
2002-08-14 10:01   ` Florian Weimer
2002-08-14 11:34     ` Lutz Donnerhacke
2002-08-14 13:13       ` Dale Stanbrough
2002-08-14 13:59       ` Florian Weimer
2002-08-14 14:02         ` Lutz Donnerhacke
2002-08-15 10:09           ` Florian Weimer
2002-08-18 22:43             ` David Thompson

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