HP aC++ A.03.85 Release Notes

HP aC++ Release Notes
New Features in Version A.03.33
Chapter 1 45
+O[no]inline=list Option
The list form is now available. It can contain the names of extern C functions or they must be
mangled names.
-I- Option Enhanced to Perform prefixinclude Search
The -I- option has been enhanced to do a prefixinclude search. The -I- option, by itself, is
not sufficient to handle the case involving a quoted include from a parent file which is not
directly on the quoted or bracketed search paths. Prefixinclude search provides additional
support for the case where, due to use of directory prefixes in #include directives in parent
including files, the directory of the including file is no longer directly on the include search
list.
In the non -I- case, use of directory prefixes in parent #include directives causes the
compiler to look in some directory offset from the directory of the top-level source file.
Analogously, in the -I- case, use of directory prefixes in parent include files in effect define an
offset relative to the directories on the search list. This is equivalent to explicitly specifying
the directory prefix explicitly in the child #include “...” directive. In fact, modifying the
source #include directive in this way would allow the intended included file to be found
without requiring prefixinclude support in the preprocessor.
Here’s an example of the problem:
$ ls
a.c incl/ mk
$ ls incl
f.h x.h y.h
$ cat a.c
#include “incl/f.h”
$ cat incl/f.h
#include “incl/y.h”
#include “x.h”
$ cat incl/x.h
int x;
$ cat incl/y.h
int y;
$ aCC -c -I. a.c