
Controlling the Preprocessor
2-24
You can use the names listed in Table 2
2 the same manner as any other de-
fined name. For example:
printf ( ”%s %s” , _ _TIME _ _ , _ _ DATE _ _);
translates to a line such as:
printf (”%s %s” , ”Jan 14 1988”, ”13:58:17”);
2.5.2 The Search Path for #include Files
The #include preprocessor directive tells the compiler to read source state-
ments from another file. When specifying the file, you can enclose the filename
in double quotes or in angle brackets. The filename can be a complete path-
name, partial path information, or a filename with no path information.
-
If you enclose the filename in double quotes (” ”), the compiler searches
for the file in the following directories in this order:
1) The directory that contains the current source file. The current source
file refers to the file that is being compiled when the compiler encoun-
ters the #include directive.
2) Directories named with the
−
i compiler
3) Directories set with the C_DIR environment variable
-
If you enclose the filename in angle brackets (< >), the compiler searches
for the file in the following directories in this order:
1) Directories named with the
−
i option
2) Directories set with the C_DIR environment variable
Changing the Include File Search Path with the
−
i Option
,
on page 2-25 for information on using the
−
i option. For information on how
to use the C_DIR environment variable, see the
TMS320C1x/C2x/C2xx/C5x
Code Generation Tools Getting Started Guide
.
Содержание TMS320C2x
Страница 8: ...viii...
Страница 69: ...2 47 C Compiler Description...
Страница 159: ...6 36...
Страница 226: ...8 6...
Страница 250: ...Index Index 14 Z z shell option 2 2 2 4 2 14 overriding with c option 4 5 overriding with n option 2 13...