da2ac8c26f
2007-09-26 Emmanuel Briot <briot@adacore.com> * g-comlin.ads, g-comlin.adb (Command_Line_Configuration, Command_Line): New types (Define_Alias, Define_Prefix, Free): New subprograms. These provide support for defining how switches can be grouped on a command line (as is the case for -gnatw... for GNAT), and how simple switches can be used as aliases for more complex switches (-gnatwa is same as -gnatwbcef...) (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram (Start, Current_*): New subprograms Added support for parsing an array of strings in addition to the real command line. (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to be moved from the body to the private part of the spec. (*): All subprograms now have an extra parameter with default value to specify which parser should be used. For backward compatibility, it defaults to parsing the command line of the application. They were also modified to properly handle cases where each of the argument does not start at index 1 (which is always true for Ada.Command_Line, but not when processing any Argument_List). (Free): New subprogram (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch, Argument): New subprograms (Switch_Parameter_Type): New enum, which clarifies the code. The extra special characters like ':', '=',... are now handled in a single place, which makes the code more extensible eventually. (Getopt, Full_Switch): When the switch was returned as part of the special character '*', make sure it is prepended by the switch character ('-' in general), so that the application knows whether "foo" or "-foo" was specified on the command line. From-SVN: r128791 |
||
---|---|---|
boehm-gc | ||
config | ||
contrib | ||
fixincludes | ||
gcc | ||
gnattools | ||
include | ||
INSTALL | ||
intl | ||
libada | ||
libcpp | ||
libdecnumber | ||
libffi | ||
libgcc | ||
libgfortran | ||
libgomp | ||
libiberty | ||
libjava | ||
libmudflap | ||
libobjc | ||
libssp | ||
libstdc++-v3 | ||
maintainer-scripts | ||
zlib | ||
ABOUT-NLS | ||
ChangeLog | ||
ChangeLog.tree-ssa | ||
compile | ||
config-ml.in | ||
config.guess | ||
config.rpath | ||
config.sub | ||
configure | ||
configure.ac | ||
COPYING | ||
COPYING3 | ||
COPYING3.LIB | ||
COPYING.LIB | ||
depcomp | ||
install-sh | ||
libtool-ldflags | ||
libtool.m4 | ||
lt~obsolete.m4 | ||
ltgcc.m4 | ||
ltmain.sh | ||
ltoptions.m4 | ||
ltsugar.m4 | ||
ltversion.m4 | ||
MAINTAINERS | ||
Makefile.def | ||
Makefile.in | ||
Makefile.tpl | ||
missing | ||
mkdep | ||
mkinstalldirs | ||
move-if-change | ||
README | ||
README.SCO | ||
symlink-tree | ||
ylwrap |
This directory contains the GNU Compiler Collection (GCC). The GNU Compiler Collection is free software. See the file COPYING for copying permission. The manuals, and some of the runtime libraries, are under different terms; see the individual source files for details. The directory INSTALL contains copies of the installation information as HTML and plain text. The source of this information is gcc/doc/install.texi. The installation information includes details of what is included in the GCC sources and what files GCC installs. See the file gcc/doc/gcc.texi (together with other files that it includes) for usage and porting information. An online readable version of the manual is in the files gcc/doc/gcc.info*. See http://gcc.gnu.org/bugs.html for how to report bugs usefully.