aboutsummaryrefslogtreecommitdiff
path: root/libcpp/directives.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2019-08-28 18:43:37 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2019-08-28 18:43:37 +0000
commita0be978a8216b58562c8eff71df977aca7d78387 (patch)
tree434fe4e0a9b38aaa633dacf3381e0bd4c8049022 /libcpp/directives.c
parentfc4f90f0c8eca75fb90c736476360584f68d7ef9 (diff)
downloadgcc-a0be978a8216b58562c8eff71df977aca7d78387.zip
gcc-a0be978a8216b58562c8eff71df977aca7d78387.tar.gz
gcc-a0be978a8216b58562c8eff71df977aca7d78387.tar.bz2
[Preprocessor] small cleanups
https://gcc.gnu.org/ml/gcc-patches/2019-08/msg01904.html * directives-only.c (_cpp_preprocess_dir_only): Use false, not zero for _cpp_handle_directive call. * directives.c (_cpp_handle_directive): Indented is bool. * files.c (struct _cpp_file): Make bools 1 bit bitfields. * internal.h (enum include_type): Reformat and comment. (struct cpp_buffer): Make flags 1 bit bitfields. (_cpp_handle_directive): Indented is bool. From-SVN: r274999
Diffstat (limited to 'libcpp/directives.c')
-rw-r--r--libcpp/directives.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpp/directives.c b/libcpp/directives.c
index ddf8979..48271e1 100644
--- a/libcpp/directives.c
+++ b/libcpp/directives.c
@@ -406,13 +406,13 @@ directive_diagnostics (cpp_reader *pfile, const directive *dir, int indented)
}
}
-/* Check if we have a known directive. INDENTED is nonzero if the
+/* Check if we have a known directive. INDENTED is true if the
'#' of the directive was indented. This function is in this file
to save unnecessarily exporting dtable etc. to lex.c. Returns
nonzero if the line of tokens has been handled, zero if we should
continue processing the line. */
int
-_cpp_handle_directive (cpp_reader *pfile, int indented)
+_cpp_handle_directive (cpp_reader *pfile, bool indented)
{
const directive *dir = 0;
const cpp_token *dname;