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-Thread: 103376,74bc23dcb20218db X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!feeder.erje.net!nuzba.szn.dk!pnx.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn?= Persson Newsgroups: comp.lang.ada Subject: Re: How to access this package written in C? Followup-To: comp.lang.ada Date: Thu, 22 Apr 2010 22:12:12 +0200 Message-ID: <83bostFr0eU1@mid.individual.net> References: <4e9d2aaf-c0a6-4798-b838-8f5b7c4a39d1@k33g2000yqc.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8Bit X-Trace: individual.net rXfoDOezBnz+Odtm9hxQRwk/AnUxVyvbe+m4T5du9rB0X8E2NT Cancel-Lock: sha1:ob7uyyf7zLIBhoQwnNVqF3HOiEg= User-Agent: KNode/4.4.2 Xref: g2news2.google.com comp.lang.ada:11112 Date: 2010-04-22T22:12:12+02:00 List-Id: resander wrote: > void getproduct ( PRODUCT * pout , int * resultout ) > { > *resultout = guidb ( 0 , (int)pout ) ; > } Who is forcing you to cast pointers to int? I recommend applying a clue-by- four to that person's head. That code is broken on 64-bit GNU/Linux. Good luck porting that program to Windows if what you have shown is representative of its quality. Before you write the Ada binding you should fix the interface so that it's sane according to the C standard. -- Bj�rn Persson PGP key A88682FD