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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,adb9c1625b28a830,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-22 19:48:24 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!ams-newsfeed.speedport.net!newsfeed.speedport.net!news1.ebone.net!news.ebone.net!newsfeed.sunet.se!news01.sunet.se!nntp01.fccn.pt!newshub.ip.pt!newsserver.ip.pt.POSTED!not-for-mail From: Antonio Vargas Subject: Function returning "Boolean" in a binding Newsgroups: comp.lang.ada Reply-To: antonio.vargas@clix.pt User-Agent: KNode/0.4beta3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Organization: (none given) Message-ID: <977543301.615948@cachalote.ip.pt> Cache-Post-Path: cachalote.ip.pt!unknown@195-23-222-46.nr.ip.pt X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Date: Sat, 23 Dec 2000 02:47:27 +0000 NNTP-Posting-Host: 195.23.135.21 X-Trace: newsserver.ip.pt 977543301 195.23.135.21 (Sat, 23 Dec 2000 03:48:21 WET) NNTP-Posting-Date: Sat, 23 Dec 2000 03:48:21 WET Xref: supernews.google.com comp.lang.ada:3379 Date: 2000-12-23T02:47:27+00:00 List-Id: Hi (Sorry about the bad English :-) ) I'm making a public binding to the SDL graphics library and I'm studying other bindings in other to make things right. In the process of testing adabindx-0.7.1 under Gnat 3.13p I've found this problem. With Gnat I can't compile this code, accusing an internal bug: type Xt_Work_Proc is access function (Client_Data : in Xt_Pointer) return Boolean; pragma Convention (C, Xt_Work_Proc); But if I change the return type form "Boolean" to "Interfaces.C.Int" it compiles. Shouldn't the compiler make an automatic conversion from Boolean(Ada side) to C.int (C side) ?. Is it just a gnat bug or a bug and non-standard coding, since I can't find nothing related to that in the ARM or Gnat docs? Thanks in advance. Antonio Vargas