From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2c79e691a3b59744 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-11-01 12:10:14 PST Newsgroups: comp.lang.ada Path: nntp.gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!news.dfn.de!Germany.EU.net!wizard.pn.com!satisfied.elf.com!news.mathworks.com!europa.eng.gtefsd.com!howland.reston.ans.net!news.sprintlink.net!crash!telesoft!east.alsys.com!falis From: falis@east.alsys.com (Ed Falis) Subject: Re: Command line package for Alsys Ada Compiler Message-ID: Sender: news@alsys.com Organization: Alsys Inc, Burlington, MA, USA References: Date: Tue, 1 Nov 1994 17:10:45 GMT Date: 1994-11-01T17:10:45+00:00 List-Id: In 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