From: Christoph Mallon Date: Thu, 28 Aug 2008 11:22:34 +0000 (+0000) Subject: newtype is a bool. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=baea7e3645714583d198f06206fbcce30b2c20ad;p=cparser newtype is a bool. [r21533] --- diff --git a/parser.c b/parser.c index 56bad07..8a79feb 100644 --- a/parser.c +++ b/parser.c @@ -3053,7 +3053,7 @@ static void parse_declaration_specifiers(declaration_specifiers_t *specifiers) type_qualifiers_t qualifiers = TYPE_QUALIFIER_NONE; type_modifiers_t modifiers = TYPE_MODIFIER_NONE; unsigned type_specifiers = 0; - int newtype = 0; + bool newtype = false; specifiers->source_position = token.source_position; @@ -3398,7 +3398,7 @@ warn_about_long_long: type = allocate_type_zero(TYPE_ATOMIC, &builtin_source_position); type->atomic.akind = atomic_type; } - newtype = 1; + newtype = true; } else { if (type_specifiers != 0) { errorf(HERE, "multiple datatypes in declaration");