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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8ebde0e81efb7e79 X-Google-Attributes: gid103376,public From: "David Botton" Subject: Re: Importing a Unix function call Date: 1998/12/04 Message-ID: <749jfj$1i8q$1@news.gate.net>#1/1 X-Deja-AN: 418742390 References: <36683FA3.2512DECF@ndirect.co.uk> <1998Dec4.154225.1@eisner> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Organization: CyberGate, Inc. Newsgroups: comp.lang.ada Date: 1998-12-04T00:00:00+00:00 List-Id: Do you have a piece of sample code to illustrate this? David Botton Larry Kilgallen wrote in message <1998Dec4.154225.1@eisner>... >In article <36683FA3.2512DECF@ndirect.co.uk>, Steve Crowe writes: > >> Using Ada to import a function is easy, but if the function parameter >> returns >> a value, how is the Ada error overcome. As I want the return value as >> well >> as the out parameter. Is there away round this using a pragma? > >Use IMPORT_VALUED_PROCEDURE in Gnat or DEC Ada. > >Your purpose is exactly why it exists. > >Larry Kilgallen