comp.lang.ada
 help / color / mirror / Atom feed
From: falis@east.alsys.com (Ed Falis)
Subject: Re: Command line package for Alsys Ada Compiler
Date: Tue, 1 Nov 1994 17:10:45 GMT
Date: 1994-11-01T17:10:45+00:00	[thread overview]
Message-ID: <CyLMDy.J51@alsys.com> (raw)
In-Reply-To: CyHwxD.82r@oodis01.hill.af.mil

In <CyHwxD.82r@oodis01.hill.af.mil> nelsonb@oodis01.hill.af.mil (Contractor Bert Nelson) writes:

>Does the Alsys Ada compiler have a package that will allow programs
>to use command line arguments?

>What is it called?

>Does someone have an example using this Alsys package?


>On one project the government is considering moving from the current
>AT&T Unix box with a Verdix compiler to an HP9000 with an Alsys compiler.
>Throughout the programs the Verdix package COMMAND_LINE has been used and
>would have to be changed to use the Alsys package that handles command
>line arguments or call another package that has the same functionality.

>Bert Nelson


The recommended (though not only) technique is to use the POSIX 1103.5 binding
supplied with the product (See Host Specific Manuals, Posix Ada User's Guide).

The routine you want to use is function Argument_List in package 
POSIX_Process_Environment.  This routine returns a POSIX_String_List.
Routines to manipulate the return type are provided in package POSIX.


A nice side effect is that you won't have to rewrite the command line 
handling when moving to the next Ada compiler, provided it supports the 
POSIX binding.

- Ed Falis, Alsys

>nelsonb@oodis01.hill.af.mil



  reply	other threads:[~1994-11-01 17:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-30 17:08 Command line package for Alsys Ada Compiler Contractor Bert Nelson
1994-11-01 17:10 ` Ed Falis [this message]
1994-11-01 17:12 ` David Kehs
1994-11-03 14:02 ` Wuyts Jan
1994-11-10  3:10 ` jgs0132
1994-11-10 10:14   ` Paul Warren
1994-11-14  2:20     ` jgs0132
1994-11-15  8:51       ` Paul Warren
1994-11-16 13:46         ` Robert Dewar
1994-11-17 16:18           ` Michael Feldman
1994-11-18 21:29             ` Pascal Martin @lone
1994-11-19 23:34               ` Robert Dewar
1994-11-10 13:44   ` Ed Falis
replies disabled

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