From: Martin Schaffner Date: Wed, 25 Jun 2003 21:01:10 +0000 (+0200) Subject: cppfiles.c: Clarify comments. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48c4721eacdd2215e4b0335b50b5379c72924fd8;p=gcc.git cppfiles.c: Clarify comments. * cppfiles.c: Clarify comments. * cpphash.h: Likewise. * cpplib.h: Likewise. * cppmacro.c: Likewise. * mkdeps.h: Likewise. From-SVN: r68496 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fdf4f96201c..e68b2b1f01e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2003-06-25 Martin Schaffner + + * cppfiles.c: Clarify comments. + * cpphash.h: Likewise. + * cpplib.h: Likewise. + * cppmacro.c: Likewise. + * mkdeps.h: Likewise. + 2003-06-25 Neil Booth * c-opts.c (complain_wrong_lang, write_langs): Remove. diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index cd6fd6cfef6..ceb64136969 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -741,7 +741,7 @@ _cpp_execute_include (cpp_reader *pfile, const char *fname, int angle_brackets, } /* Locate HEADER, and determine whether it is newer than the current - file. If it cannot be located or dated, return -1, if it is newer + file. If it cannot be located or dated, return -1, if it is newer, return 1, otherwise 0. */ int _cpp_compare_file_date (cpp_reader *pfile, const char *fname, diff --git a/gcc/cpphash.h b/gcc/cpphash.h index 388d5c87452..32fa1aaae1e 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -392,7 +392,7 @@ struct cpp_reader list of recognized pragmas. */ struct pragma_entry *pragmas; - /* Call backs. */ + /* Call backs to cpplib client. */ struct cpp_callbacks cb; /* Identifier hash table. */ diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 7e9c5d5510c..aad2841ac62 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -371,7 +371,7 @@ struct cpp_options unsigned char stdc_0_in_system_headers; }; -/* Call backs. */ +/* Call backs to cpplib client. */ struct cpp_callbacks { /* Called when a new line of preprocessed output is started. */ diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c index 893dd215b61..2b9c9b5f89b 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -1038,9 +1038,9 @@ _cpp_pop_context (cpp_reader *pfile) pfile->context = context->prev; } -/* Eternal routine to get a token. Also used nearly everywhere +/* External routine to get a token. Also used nearly everywhere internally, except for places where we know we can safely call - the lexer directly, such as lexing a directive name. + _cpp_lex_token directly, such as lexing a directive name. Macro expansions and directives are transparently handled, including entering included files. Thus tokens are post-macro diff --git a/gcc/mkdeps.h b/gcc/mkdeps.h index 2be8f81a99c..6054a56f137 100644 --- a/gcc/mkdeps.h +++ b/gcc/mkdeps.h @@ -39,7 +39,7 @@ extern void deps_free PARAMS ((struct deps *)); extern void deps_add_target PARAMS ((struct deps *, const char *, int)); /* Sets the default target if none has been given already. An empty - string as the default target in interpreted as stdin. */ + string as the default target is interpreted as stdin. */ extern void deps_add_default_target PARAMS ((struct deps *, const char *)); /* Add a dependency (appears on the right side of the colon) to the