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,e3e1871d8f3c3967,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!not-for-mail Date: Thu, 07 Sep 2006 15:52:46 +0200 From: Poul-Erik Andreasen User-Agent: Thunderbird 1.5.0.5 (X11/20060812) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Binding problem Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4500241e$0$199$edfadb0f@dread11.news.tele.dk> Organization: TDC Totalloesninger NNTP-Posting-Host: 80.166.145.174 X-Trace: 1157637150 dread11.news.tele.dk 199 80.166.145.174:16044 X-Complaints-To: abuse@post.tele.dk Xref: g2news2.google.com comp.lang.ada:6499 Date: 2006-09-07T15:52:46+02:00 List-Id: Hey I am trying to write a binding to the FANN libery. There i have a function who look like this FANN_EXTERNAL fann_type *FANN_API fann_run(struct fann * ann, fann_type * input) The problem is the fann_type * input. Orcording to the manual this can be ether a integer a float or a double, depending on whitch headerfile there have been included, this is also visible in the c-code where som of the execution is controlled by some ifdef statement. I want to split i up in 3 function but how can i from ada simulate that one or another Headerfile are included. Poul-Erik Andreasen