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
.
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...