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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b98c6267042b1e47 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!e25g2000prg.googlegroups.com!not-for-mail From: axtens Newsgroups: comp.lang.ada Subject: Re: Variable list parameters Date: Wed, 28 Nov 2007 00:48:44 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <9e4ce016-d6ab-49de-b6f7-e46c59e047b1@t47g2000hsc.googlegroups.com> NNTP-Posting-Host: 165.228.152.196 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1196239725 4868 127.0.0.1 (28 Nov 2007 08:48:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 28 Nov 2007 08:48:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e25g2000prg.googlegroups.com; posting-host=165.228.152.196; posting-account=1W9SuAoAAAApKJ8N7QNszANYOyWIVzjG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9,gzip(gfe),gzip(gfe) Content-Disposition: inline Xref: g2news1.google.com comp.lang.ada:18656 Date: 2007-11-28T00:48:44-08:00 List-Id: Newbie says, "What about Stdarg.Impl?" -- $Source: /user/cp_source/ObjectAda/rts/bindings/win32ada/stdarg/ impl.ads,v $ -- $Revision: 1.1 $ $Date: 2001/01/09 19:05:19 $ $Author: shancher $ with Interfaces.C.Pointers; package Stdarg.Impl is -- ******************************************************* -- Getting arguments out of lists, for use by implementers -- of variable-parameter functions -- ******************************************************* subtype Int is Interfaces.C.Int; type Param_Access is private; function Address_of_First_Arg (Args: ArgList) return Param_Access; function Address_of_Vararg_List (Args: ArgList) return Param_Access; function ArgCount (Args: ArgList) return Int; function "&" (Left, Right: ArgList) return ArgList; procedure Do_Varargs (Proc : in System.Address; Nb_Args : Int; Arg_Addr : Param_Access); function F_Varargs (Func : in System.Address; Nb_Args : Int; Arg_Addr : Param_Access) return Stdarg.C_Param; -- debugging -- procedure Dump(Addr: Param_Access; Nb_Args : Stdarg.Int); -- pragma Import(C, Dump, "dump"); private package Arith is new Interfaces.C.Pointers( Integer, C_Param, Stdarg.ArgVector, 0); type Param_Access is new Arith.Pointer; pragma Import(C, Do_Varargs, "do_varargs"); pragma Import(C, F_Varargs, "do_varargs"); ------------------------------------------------------------------------------- -- -- THIS FILE AND ANY ASSOCIATED DOCUMENTATION IS FURNISHED "AS IS" WITHOUT -- WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -- TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR -- PURPOSE. The user assumes the entire risk as to the accuracy and the -- use of this file. -- -- Copyright (c) Intermetrics, Inc. 1995 -- Royalty-free, unlimited, worldwide, non-exclusive use, modification, -- reproduction and further distribution of this file is permitted. -- ------------------------------------------------------------------------------- end Stdarg.Impl; Kind regards, Bruce.