From: awdorrin <awdorrin@gmail.com>
Subject: Re: Calling Ada Procedure from C - how to handle a char ptr/array
Date: Fri, 18 Nov 2011 12:19:55 -0800 (PST)
Date: 2011-11-18T12:19:55-08:00 [thread overview]
Message-ID: <dd5d2bbf-fcca-47a7-b7ed-5b9f19413d27@o14g2000yqh.googlegroups.com> (raw)
In-Reply-To: ja6dc0$qj7$1@tornado.tornevall.net
Ok - so the warnings are just a reminder that both sides needs to know
how big the char_array will be, that makes sense.
I changed the Interface.C.To_C call to:
Interfaces.C_To(C(Label, s, Count, True);
and that worked without the Constraint error.
After looking at the source code in i-c.adb and reading your comments
I know understand why the Constraint Error was being raised.
Yea, I am much more a 'C Guy' than an 'Ada Guy' :)
Thanks!
next prev parent reply other threads:[~2011-11-18 20:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-18 19:40 Calling Ada Procedure from C - how to handle a char ptr/array awdorrin
2011-11-18 19:56 ` Jeffrey Carter
2011-11-18 20:19 ` awdorrin [this message]
2011-11-18 20:41 ` awdorrin
2011-11-18 21:38 ` Adam Beneschan
2011-11-18 22:32 ` Georg Bauhaus
2011-11-19 2:16 ` Adam Beneschan
2011-11-21 16:33 ` awdorrin
2011-11-22 13:20 ` awdorrin
2011-11-22 13:28 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox