comp.lang.ada
 help / color / mirror / Atom feed
From: kst@sd.aonix.com (Keith Thompson)
Subject: Re: Need help re: System Calls
Date: 1997/04/09
Date: 1997-04-09T00:00:00+00:00	[thread overview]
Message-ID: <E8E5r5.ArC@thomsoft.com> (raw)
In-Reply-To: Pine.SGI.3.94.970406210904.4241A-100000@sandcast <860461839.15snx@jvdsys.nextjk.stuyts.nl


In <860461839.15snx@jvdsys.nextjk.stuyts.nl> jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk) writes:
[...]
> In this case you can take advantage of the fact that for GNAT
> Interfaces.C.int equals Integer.

How is this an advantage?  What's wrong with using Interfaces.C.int?

>                                  But, as you also need to convert the
> Ada string into a C-type zero terminated ascii character array, it is
> probably useful to put a wrapper around the C library call:
[code deleted]

As long as you're putting a wrapper around it, let the wrapper do the
conversion from Interfaces.C.int to Integer.

-- 
Keith Thompson (The_Other_Keith) kst@sd.aonix.com <http://www.aonix.com> <*>
TeleSo^H^H^H^H^H^H Alsy^H^H^H^H Thomson Softw^H^H^H^H^H^H^H^H^H^H^H^H^H Aonix
5040 Shoreham Place, San Diego, CA, USA, 92122-5989
"Humor is such a subjective thing." -- Cartagia




       reply	other threads:[~1997-04-09  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.SGI.3.94.970406210904.4241A-100000@sandcast <860461839.15snx@jvdsys.nextjk.stuyts.nl>
1997-04-09  0:00 ` Keith Thompson [this message]
1997-04-08  0:00 Need help re: System Calls Jerry van Dijk
  -- strict thread matches above, loose matches on Subject: below --
1997-04-07  0:00 Chris Morgan
1997-04-07  0:00 ` Robert Dewar
1997-04-10  0:00   ` Keith Thompson
1997-04-12  0:00     ` Robert Dewar
1997-04-12  0:00       ` Robert Dewar
1997-04-13  0:00     ` Larry Kilgallen
1997-04-13  0:00       ` Robert Dewar
1997-04-14  0:00       ` Keith Thompson
1997-04-06  0:00 Bill Roland
1997-04-07  0:00 ` Robert Dewar
replies disabled

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