comp.lang.ada
 help / color / mirror / Atom feed
From: Matt O'Hara <matthew.h.ohara@lmco.com>
Subject: Re: GNAT for NT Linking Problem
Date: 1996/09/25
Date: 1996-09-25T00:00:00+00:00	[thread overview]
Message-ID: <32499EE7.39D0@lmco.com> (raw)
In-Reply-To: 3246AB3C.4A17@ubs.com


> 
> Michael Feldman wrote:
>

Michael -

Sorry; I started this topic and then got pulled away from it.
 
> > Since you are porting to GNAT, why not take the opportunity to
> > Ada 95-ize your program and get away from using those C libraries.
> > For example, toupper, etc., are part of the Ada 95 standard libs,
> > in this case Ada.Characters.Handling.
> >

I have started to do this, although I have discovered a limitation with
Ada95 that I did not care for. See the next response...

> > And why use the C IO routines? Is there a problem with Ada.Text_IO?
> >
> > The only thing I can think of that would require the C libs is if
> > (possibly) those f* routines are unbuffered. Do you need unbuffered
> > input/output?
> >

We used the C IO routines because Ada 83 Text IO (which the original
code was based on) could not handle Japanese (Wide) characters, and we
needed to Internationalize our program. Since we were Solaris based, and
Solaris has all these nice, neat Wide libraries, we simply built our own
text_io replacement package which used our own wide_character types, and
interfaced to the Solaris C wide libraries.

Ada 95 does have wide_character functions, including I/O. Although I am
still playing around with converting this to Ada95, I have noticed that
its Wide_Io does not handle wide_character file/path names; they are
String only. This seems like an unnecessary restriction; the wide_io
package we developed allowed wide_character file names. Why should Ada
95 force non-English developers to use only English names?

> > Mike Feldman
> 
> 

-- 
Matthew H. O'Hara
Principal S/W Engineer
Lockheed Martin Tactical Defense Systems, Eagan, MN
612-456-3228               matthew.h.ohara@lmco.com




  parent reply	other threads:[~1996-09-25  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-09  0:00 GNAT for NT Linking Problem Matt O'Hara
1996-09-09  0:00 ` Tom Griest
1996-09-09  0:00 ` Jonas Nygren
1996-09-09  0:00   ` Michael Feldman
1996-09-23  0:00     ` Klaus Wyss
1996-09-23  0:00       ` Tom Griest
1996-09-24  0:00       ` Robert Dewar
1996-09-25  0:00       ` Matt O'Hara [this message]
1996-09-10  0:00 ` Bruce.Conroy
replies disabled

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