comp.lang.ada
 help / color / mirror / Atom feed
From: pfpearson.net@gmail.com
Subject: Re: Questions on using prgma Import (C, foo)
Date: Mon, 25 Feb 2008 11:48:57 -0800 (PST)
Date: 2008-02-25T11:48:57-08:00	[thread overview]
Message-ID: <f26aef4f-4741-44f0-aeb3-5406684075b0@c33g2000hsd.googlegroups.com> (raw)
In-Reply-To: 47C316E1.9010009@obry.net

On Feb 25, 1:28 pm, Pascal Obry <pas...@obry.net> wrote:
> pfpearson....@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.

That's what I suspected.  Thanks.

Once I've gotten this done, is anyone interested in using this?  Lua
really is a neat embedded langauge.  I hope to use it at work to
handle reading in init data, and possibly to script some of the
program's behavior.



  reply	other threads:[~2008-02-25 19:48 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
2008-02-25 19:48   ` pfpearson.net [this message]
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