comp.lang.ada
 help / color / mirror / Atom feed
* OS/2 COM Ports with Gnat 2.03
@ 1995-03-10 14:18 Chris O'Regan
  1995-03-12  3:39 ` Robert Dewar
  0 siblings, 1 reply; 2+ messages in thread
From: Chris O'Regan @ 1995-03-10 14:18 UTC (permalink / raw)



   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?


Chris O'Regan
Computer Engineering,
Concordia University,
Montreal, Canada.


-- 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: OS/2 COM Ports with Gnat 2.03
  1995-03-10 14:18 OS/2 COM Ports with Gnat 2.03 Chris O'Regan
@ 1995-03-12  3:39 ` Robert Dewar
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Dewar @ 1995-03-12  3:39 UTC (permalink / raw)


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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-03-12  3:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-03-10 14:18 OS/2 COM Ports with Gnat 2.03 Chris O'Regan
1995-03-12  3:39 ` Robert Dewar

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