This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Preprocessor] small cleanups


On 8/29/19 3:57 AM, Bernhard Reutner-Fischer wrote:
On Wed, 28 Aug 2019 14:42:57 -0400
Nathan Sidwell <nathan@acm.org> wrote:

    /* If opened with #import or contains #pragma once.  */
-  bool once_only;
+  bool once_only : 1;

I'm curious why you have them as bool and not unsigned?

because they're true/false values and this is C++.

nathan

--
Nathan Sidwell


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]