diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2022-02-03 21:12:21 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2022-02-03 21:14:10 +0100 |
commit | 7eef766dc5a8abda2ca2cf8d535cdf160f40b50c (patch) | |
tree | f85ed9010c56dc8f250d7cba5761b4eae58f2a42 /libcpp/include | |
parent | 5199ecb8519c4c5f92160365cefe8e0aa1ca3873 (diff) | |
parent | ff7aeceb6b3a476c3bac66a7f39a5ef4240206fc (diff) | |
download | gcc-7eef766dc5a8abda2ca2cf8d535cdf160f40b50c.zip gcc-7eef766dc5a8abda2ca2cf8d535cdf160f40b50c.tar.gz gcc-7eef766dc5a8abda2ca2cf8d535cdf160f40b50c.tar.bz2 |
Merge commit 'ff7aeceb6b3a476c3bac66a7f39a5ef4240206fc' [#247, #906]
Diffstat (limited to 'libcpp/include')
-rw-r--r-- | libcpp/include/cpplib.h | 22 | ||||
-rw-r--r-- | libcpp/include/line-map.h | 6 | ||||
-rw-r--r-- | libcpp/include/mkdeps.h | 2 |
3 files changed, 15 insertions, 15 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h index ebf6fcc..940c79f 100644 --- a/libcpp/include/cpplib.h +++ b/libcpp/include/cpplib.h @@ -46,7 +46,7 @@ struct _cpp_file; '='. The lexer needs operators ending in '=', like ">>=", to be in the same order as their counterparts without the '=', like ">>". - See the cpp_operator table optab in expr.c if you change the order or + See the cpp_operator table optab in expr.cc if you change the order or add or remove anything in the first group. */ #define TTYPE_TABLE \ @@ -192,7 +192,7 @@ struct GTY(()) cpp_string { comment. */ #define BOL (1 << 6) /* Token at beginning of line. */ #define PURE_ZERO (1 << 7) /* Single 0 digit, used by the C++ frontend, - set in c-lex.c. */ + set in c-lex.cc. */ #define SP_DIGRAPH (1 << 8) /* # or ## token was a digraph. */ #define SP_PREV_WHITE (1 << 9) /* If whitespace before a ## operator, or before this token @@ -1195,7 +1195,7 @@ extern int cpp_defined (cpp_reader *, const unsigned char *, int); the double integer are set to zero. */ /* This type has to be equal to unsigned HOST_WIDE_INT, see - gcc/c-family/c-lex.c. */ + gcc/c-family/c-lex.cc. */ typedef uint64_t cpp_num_part; typedef struct cpp_num cpp_num; struct cpp_num @@ -1333,7 +1333,7 @@ extern bool cpp_error_at (cpp_reader * pfile, enum cpp_diagnostic_level, rich_location *richloc, const char *msgid, ...) ATTRIBUTE_PRINTF_4; -/* In lex.c */ +/* In lex.cc */ extern int cpp_ideq (const cpp_token *, const char *); extern void cpp_output_line (cpp_reader *, FILE *); extern unsigned char *cpp_output_line_to_string (cpp_reader *, @@ -1390,7 +1390,7 @@ extern cpp_hashnode *cpp_lookup (cpp_reader *, const unsigned char *, typedef int (*cpp_cb) (cpp_reader *, cpp_hashnode *, void *); extern void cpp_forall_identifiers (cpp_reader *, cpp_cb, void *); -/* In macro.c */ +/* In macro.cc */ extern void cpp_scan_nooutput (cpp_reader *); extern int cpp_sys_macro_p (cpp_reader *); extern unsigned char *cpp_quote_string (unsigned char *, const unsigned char *, @@ -1398,7 +1398,7 @@ extern unsigned char *cpp_quote_string (unsigned char *, const unsigned char *, extern bool cpp_compare_macros (const cpp_macro *macro1, const cpp_macro *macro2); -/* In files.c */ +/* In files.cc */ extern bool cpp_included (cpp_reader *, const char *); extern bool cpp_included_before (cpp_reader *, const char *, location_t); extern void cpp_make_system_header (cpp_reader *, int, int); @@ -1426,7 +1426,7 @@ struct cpp_converted_source cpp_converted_source cpp_get_converted_source (const char *fname, const char *input_charset); -/* In pch.c */ +/* In pch.cc */ struct save_macro_data; extern int cpp_save_state (cpp_reader *, FILE *); extern int cpp_write_pch_deps (cpp_reader *, FILE *); @@ -1436,7 +1436,7 @@ extern void cpp_prepare_state (cpp_reader *, struct save_macro_data **); extern int cpp_read_state (cpp_reader *, const char *, FILE *, struct save_macro_data *); -/* In lex.c */ +/* In lex.cc */ extern void cpp_force_token_locations (cpp_reader *, location_t); extern void cpp_stop_forcing_token_locations (cpp_reader *); enum CPP_DO_task @@ -1452,7 +1452,7 @@ extern void cpp_directive_only_process (cpp_reader *pfile, CPP_DO_task, void *data, ...)); -/* In expr.c */ +/* In expr.cc */ extern enum cpp_ttype cpp_userdef_string_remove_type (enum cpp_ttype type); extern enum cpp_ttype cpp_userdef_string_add_type @@ -1468,7 +1468,7 @@ extern bool cpp_userdef_char_p extern const char * cpp_get_userdef_suffix (const cpp_token *); -/* In charset.c */ +/* In charset.cc */ /* The result of attempting to decode a run of UTF-8 bytes. */ @@ -1486,7 +1486,7 @@ struct cpp_decoded_char This is a tabstop value, along with a callback for getting the widths of characters. Normally this callback is cpp_wcwidth, but we support other schemes for escaping non-ASCII unicode as a series of - ASCII chars when printing the user's source code in diagnostic-show-locus.c + ASCII chars when printing the user's source code in diagnostic-show-locus.cc For example, consider: - the Unicode character U+03C0 "GREEK SMALL LETTER PI" (UTF-8: 0xCF 0x80) diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h index 3053ec0..3f39eb4 100644 --- a/libcpp/include/line-map.h +++ b/libcpp/include/line-map.h @@ -83,7 +83,7 @@ enum lc_reason This key only has meaning in relation to a line_maps instance. Within gcc there is a single line_maps instance: "line_table", declared in - gcc/input.h and defined in gcc/input.c. + gcc/input.h and defined in gcc/input.cc. The values of the keys are intended to be internal to libcpp, but for ease-of-understanding the implementation, they are currently @@ -2106,8 +2106,8 @@ enum location_aspect /* The rich_location class requires a way to expand location_t instances. We would directly use expand_location_to_spelling_point, which is - implemented in gcc/input.c, but we also need to use it for rich_location - within genmatch.c. + implemented in gcc/input.cc, but we also need to use it for rich_location + within genmatch.cc. Hence we require client code of libcpp to implement the following symbol. */ extern expanded_location diff --git a/libcpp/include/mkdeps.h b/libcpp/include/mkdeps.h index e8a633c..96d6464 100644 --- a/libcpp/include/mkdeps.h +++ b/libcpp/include/mkdeps.h @@ -25,7 +25,7 @@ along with this program; see the file COPYING3. If not see #include "cpplib.h" -/* This is the data structure used by all the functions in mkdeps.c. +/* This is the data structure used by all the functions in mkdeps.cc. It's quite straightforward, but should be treated as opaque. */ class mkdeps; |