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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,33e0d9492ad16708 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-03-11 21:29:11 PST Path: bga.com!news.sprintlink.net!cs.utexas.edu!swrinde!gatech!news-feed-1.peachnet.edu!usenet.eel.ufl.edu!news.mathworks.com!zombie.ncsc.mil!admii!cmcl2!thecourier.cims.nyu.edu!thecourier.cims.nyu.edu!nobody From: dewar@cs.nyu.edu (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: OS/2 COM Ports with Gnat 2.03 Date: 11 Mar 1995 22:39:19 -0500 Organization: Courant Institute of Mathematical Sciences Message-ID: <3jtqd7$6cc@gnat.cs.nyu.edu> References: <3jpn32$b1p@newsflash.concordia.ca> NNTP-Posting-Host: gnat.cs.nyu.edu Date: 1995-03-11T22:39:19-05:00 List-Id: Chris O'Regan asks: " Does Gnat 2.03 for OS/2 have routines for programming the COM ports, or should I do this in C and use the pragma interface? Also, is there documentation for the libraries in the gnatlib directory?" No specific routines are supplied, and indeed the most reasonable thing is to call the appropriate operating system services (in OS/2, you do not typically fiddle directly with the COM ports, you use the system driver). And to interface to these routines, use pragma Import, not Interface. GNAT does implement Interface for backwards compatibility, but pragma Interface is not part of Ada 95, and its use should be discouraged.