From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,57a1144bacb793b9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-11 12:02:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.telusplanet.net!rip!c03.atl99!news.webusenet.com!pc01.webusenet.com!fe03.atl2.webusenet.com.POSTED!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada References: <20030511004621.63e7fbd9.david@realityrift.com> Subject: Re: C binding issue MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <0_wva.62776$Wq.28657@fe03.atl2.webusenet.com> X-Complaints-To: abuse@usenetserver.com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly. NNTP-Posting-Date: Sun, 11 May 2003 14:52:44 EDT Date: Sun, 11 May 2003 14:01:55 -0500 Xref: archiver1.google.com comp.lang.ada:37190 Date: 2003-05-11T14:01:55-05:00 List-Id: "Sergey Koshcheyev" wrote in message news:b9lolp$1mnf$1@ns.felk.cvut.cz... > > "David Holm" wrote in message > news:20030511004621.63e7fbd9.david@realityrift.com... > > Something like this if I'm not mistaken (been a while since I used > callbacks in Ada): > > > > type size_t_ptr is access all Interfaces.C.size_t; > > type Lua_Chunkreader_Proc is access function > > (L : Lua_State_Type; Ptr : System.Address; Sz : size_t_ptr) return > > Interfaces.C.Strings.chars_ptr; > > > > > > //David Holm > > I think it is possible to just use an out parameter of type size_t, instead > of complicating matters with pointers. Or is there some subtle problem with > this approach? Out mode parameters are not allowed for functions. > > Sergey. > > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > >