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,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3ed9aea76d58b2ba X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-13 09:07:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: Duncan Sands Newsgroups: comp.lang.ada Subject: Re: IEEE arithmetic Date: Fri, 13 Sep 2002 18:06:10 +0200 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: avanie.enst.fr 1031933222 10505 137.194.161.2 (13 Sep 2002 16:07:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 13 Sep 2002 16:07:02 +0000 (UTC) Return-Path: User-Agent: KMail/1.4.3 In-Reply-To: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:28943 Date: 2002-09-13T18:06:10+02:00 > If you use the version SofCheck's AdaMagic that generates C, > you can call C macros from Ada using pragma Import. > Most compilers don't allow that, however. > > Another way to call a macro is to write a C function that calls the > macro. Then use pragma Import to call the C function from Ada. That's > kind of annoying if the reason it's a macro is to get inline code. But > that's probably not your case -- you probably don't want to set the mode > repeatedly in a tight loop. I did consider (and still am considering) writing such a C function. My only objection to it is... that it is ugly! Thanks for helping, Duncan.