diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2002-08-11 22:22:28 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-08-11 22:22:28 +0000 |
commit | 76c3e73e325f8452a05e8912d15740b1a5fb7ed9 (patch) | |
tree | 4c8881ce4db4d58b891519d0bd6b159033e51ada /gcc/cpplib.h | |
parent | e0c32c62d5c47790333bb557ed2d89a3806246d0 (diff) | |
download | gcc-76c3e73e325f8452a05e8912d15740b1a5fb7ed9.zip gcc-76c3e73e325f8452a05e8912d15740b1a5fb7ed9.tar.gz gcc-76c3e73e325f8452a05e8912d15740b1a5fb7ed9.tar.bz2 |
c-common.c (c_common_init): Call preprocess_file instead.
* c-common.c (c_common_init): Call preprocess_file instead.
(c_common_finish): Move to c-opts.c.
* c-common.h (preprocess_file): new.
* c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
check_deps_environment_vars, c_common_finish): New.
(c_common_decode_option): Update for out_fname and dependencies.
* cppinit.c (init_dependency_output, output_deps): Remove.
(cpp_destroy): Update prototype.
(cpp_add_dependency_target): New.
(cpp_read_main_file): Don't overlay a buffer.
(cpp_finish): Take a deps output stream and write deps to it.
Return the error count.
(cpp_post_options): Don't canonicalize out_fname, or do anything
with dependencies.
* cpplib.h (struct cpp_options): Remove out_fname and
preprocess_only.
(cpp_add_dependency_target): New.
(cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
* cppmain.c (cpp_preprocess_file): Update prototype. Don't
set preprocess_only. Don't handle the output stream directly.
From-SVN: r56214
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 75a9d92..b6a75cf 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -223,7 +223,6 @@ struct cpp_options { /* Name of input and output files. */ const char *in_fname; - const char *out_fname; /* Characters between tab stops. */ unsigned int tabstop; @@ -398,9 +397,6 @@ struct cpp_options /* True for traditional preprocessing. */ unsigned char traditional; - /* True if only preprocessing and not compiling. */ - unsigned char preprocess_only; - /* Target-specific features set by the front end or client. */ /* Precision for target CPP arithmetic, target characters, target @@ -508,6 +504,14 @@ extern cpp_reader *cpp_create_reader PARAMS ((enum c_lang)); command line options). */ extern void cpp_set_lang PARAMS ((cpp_reader *, enum c_lang)); +/* Add a dependency TARGET. Quote it for "make" if QUOTE. Can be + called any number of times before cpp_read_main_file(). If no + targets have been added before cpp_read_main_file(), then the + default target is used. */ +extern void cpp_add_dependency_target PARAMS ((cpp_reader *, + const char * target, + int quote)); + /* Call these to get pointers to the options and callback structures for a given reader. These pointers are good until you call cpp_finish on that reader. You can either edit the callbacks @@ -553,7 +557,7 @@ extern void cpp_finish_options PARAMS ((cpp_reader *)); /* Call this to release the handle at the end of preprocessing. Any use of the handle after this function returns is invalid. Returns cpp_errors (pfile). */ -extern int cpp_destroy PARAMS ((cpp_reader *)); +extern void cpp_destroy PARAMS ((cpp_reader *)); /* Error count. */ extern unsigned int cpp_errors PARAMS ((cpp_reader *)); @@ -567,7 +571,7 @@ extern void cpp_register_pragma PARAMS ((cpp_reader *, const char *, const char *, void (*) PARAMS ((cpp_reader *)))); -extern void cpp_finish PARAMS ((cpp_reader *)); +extern int cpp_finish PARAMS ((cpp_reader *, FILE *)); extern int cpp_avoid_paste PARAMS ((cpp_reader *, const cpp_token *, const cpp_token *)); extern const cpp_token *cpp_get_token PARAMS ((cpp_reader *)); @@ -722,7 +726,7 @@ extern int cpp_included PARAMS ((cpp_reader *, const char *)); extern void cpp_make_system_header PARAMS ((cpp_reader *, int, int)); /* In cppmain.c */ -extern void cpp_preprocess_file PARAMS ((cpp_reader *)); +extern void cpp_preprocess_file PARAMS ((cpp_reader *, FILE *)); #ifdef __cplusplus } |