comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: OS/2 COM Ports with Gnat 2.03
Date: 11 Mar 1995 22:39:19 -0500
Date: 1995-03-11T22:39:19-05:00	[thread overview]
Message-ID: <3jtqd7$6cc@gnat.cs.nyu.edu> (raw)
In-Reply-To: 3jpn32$b1p@newsflash.concordia.ca

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.




      reply	other threads:[~1995-03-12  3:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-10 14:18 OS/2 COM Ports with Gnat 2.03 Chris O'Regan
1995-03-12  3:39 ` Robert Dewar [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox