comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.net>
To: pfpearson.net@gmail.com
Subject: Re: Questions on using prgma Import (C, foo)
Date: Mon, 25 Feb 2008 20:28:33 +0100
Date: 2008-02-25T20:28:35+01:00	[thread overview]
Message-ID: <47C316E1.9010009@obry.net> (raw)
In-Reply-To: <487a5f28-32d3-4bf6-921c-72c40c40b76e@41g2000hsc.googlegroups.com>

pfpearson.net@gmail.com a �crit :
> However, it only took me a minute to realize that this won't work.
> I see two options:
> 1. function lua_tolstring (...) return System.Adddress;
> 2. use the types declared in Interfaces.C.Strings.

2 is better I think:

    function lua_tolstring
     (L     : lua_State_ptr;
      index : inteter;
      len   : size_t_ptr) return Interfaces.C.Strings.chars_ptr;

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



  reply	other threads:[~2008-02-25 19:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-25 19:22 Questions on using prgma Import (C, foo) pfpearson.net
2008-02-25 19:28 ` Pascal Obry [this message]
2008-02-25 19:48   ` pfpearson.net
2008-02-26 12:15     ` Jeffrey Creem
2008-02-26 13:50     ` Stephen Leake
2008-02-26 19:59       ` pfpearson.net
2008-02-26 10:51 ` Jean-Pierre Rosen
2008-02-26 20:01   ` pfpearson.net
2008-03-10 20:29     ` Alexey Veselovsky
replies disabled

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