From a0be978a8216b58562c8eff71df977aca7d78387 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Wed, 28 Aug 2019 18:43:37 +0000 Subject: [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 --- libcpp/files.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libcpp/files.c') 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 -- cgit v1.1