diff options
author | Nathan Sidwell <nathan@acm.org> | 2019-08-28 18:43:37 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2019-08-28 18:43:37 +0000 |
commit | a0be978a8216b58562c8eff71df977aca7d78387 (patch) | |
tree | 434fe4e0a9b38aaa633dacf3381e0bd4c8049022 /libcpp/files.c | |
parent | fc4f90f0c8eca75fb90c736476360584f68d7ef9 (diff) | |
download | gcc-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/files.c')
-rw-r--r-- | libcpp/files.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcpp/files.c b/libcpp/files.c index 6ef6d07..30c0cf2 100644 --- a/libcpp/files.c +++ b/libcpp/files.c @@ -98,19 +98,19 @@ struct _cpp_file unsigned short stack_count; /* If opened with #import or contains #pragma once. */ - bool once_only; + bool once_only : 1; /* If read() failed before. */ - bool dont_read; + bool dont_read : 1; /* If this file is the main file. */ - bool main_file; + bool main_file : 1; /* If BUFFER above contains the true contents of the file. */ - bool buffer_valid; + bool buffer_valid : 1; /* If this file is implicitly preincluded. */ - bool implicit_preinclude; + bool implicit_preinclude : 1; }; /* A singly-linked list for all searches for a given file name, with |