diff options
Diffstat (limited to 'libcpp/include')
-rw-r--r-- | libcpp/include/cpplib.h | 14 | ||||
-rw-r--r-- | libcpp/include/line-map.h | 4 | ||||
-rw-r--r-- | libcpp/include/symtab.h | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h index b4ff6a9..f2ed087 100644 --- a/libcpp/include/cpplib.h +++ b/libcpp/include/cpplib.h @@ -266,7 +266,7 @@ struct GTY(()) cpp_token { { /* An identifier. */ struct cpp_identifier GTY ((tag ("CPP_TOKEN_FLD_NODE"))) node; - + /* Inherit padding from this token. */ cpp_token * GTY ((tag ("CPP_TOKEN_FLD_SOURCE"))) source; @@ -325,7 +325,7 @@ enum cpp_normalize_level { normalized_none }; -enum cpp_main_search +enum cpp_main_search { CMS_none, /* A regular source file. */ CMS_header, /* Is a directly-specified header file (eg PCH or @@ -477,7 +477,7 @@ struct cpp_options /* Nonzero means we're looking at already preprocessed code, so don't bother trying to do macro expansion and whatnot. */ unsigned char preprocessed; - + /* Nonzero means we are going to emit debugging logs during preprocessing. */ unsigned char debug; @@ -874,7 +874,7 @@ struct cpp_dir /* Is this a user-supplied directory? */ bool user_supplied_p; - /* The canonicalized NAME as determined by lrealpath. This field + /* The canonicalized NAME as determined by lrealpath. This field is only used by hosts that lack reliable inode numbers. */ char *canonical_name; @@ -904,7 +904,7 @@ enum cpp_macro_kind { /* Each macro definition is recorded in a cpp_macro structure. Variadic macros cannot occur with traditional cpp. */ struct GTY(()) cpp_macro { - union cpp_parm_u + union cpp_parm_u { /* Parameters, if any. If parameter names use extended identifiers, the original spelling of those identifiers, not the canonical @@ -1245,7 +1245,7 @@ inline location_t cpp_macro_definition_location (cpp_hashnode *node) return macro ? macro->line : 0; } /* Return an idempotent time stamp (possibly from SOURCE_DATE_EPOCH). */ -enum class CPP_time_kind +enum class CPP_time_kind { FIXED = -1, /* Fixed time via source epoch. */ DYNAMIC = -2, /* Dynamic via time(2). */ @@ -1280,7 +1280,7 @@ extern cppchar_t cpp_host_to_exec_charset (cpp_reader *, cppchar_t); The text is the same as the command line argument. */ extern void cpp_define (cpp_reader *, const char *); extern void cpp_define_unused (cpp_reader *, const char *); -extern void cpp_define_formatted (cpp_reader *pfile, +extern void cpp_define_formatted (cpp_reader *pfile, const char *fmt, ...) ATTRIBUTE_PRINTF_2; extern void cpp_define_formatted_unused (cpp_reader *pfile, const char *fmt, diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h index e6e2b08..732ec5e 100644 --- a/libcpp/include/line-map.h +++ b/libcpp/include/line-map.h @@ -392,7 +392,7 @@ struct GTY((tag ("0"), desc ("MAP_ORDINARY_P (&%h) ? 1 : 2"))) line_map { /* An ordinary line map encodes physical source locations. Those physical source locations are called "spelling locations". - + Physical source file TO_FILE at line TO_LINE at column 0 is represented by the logical START_LOCATION. TO_LINE+L at column C is represented by START_LOCATION+(L*(1<<m_column_and_range_bits))+(C*1<<m_range_bits), as @@ -457,7 +457,7 @@ struct cpp_hashnode; /* A macro line map encodes location of tokens coming from a macro expansion. - + The offset from START_LOCATION is used to index into MACRO_LOCATIONS; this holds the original location of the token. */ struct GTY((tag ("2"))) line_map_macro : public line_map { diff --git a/libcpp/include/symtab.h b/libcpp/include/symtab.h index 16c0edf..67aced8 100644 --- a/libcpp/include/symtab.h +++ b/libcpp/include/symtab.h @@ -52,7 +52,7 @@ struct ht hashnode *entries; /* Call back, allocate a node. */ hashnode (*alloc_node) (cpp_hash_table *); - /* Call back, allocate something that hangs off a node like a cpp_macro. + /* Call back, allocate something that hangs off a node like a cpp_macro. NULL means use the usual allocator. */ void * (*alloc_subobject) (size_t); |