From a108d84f883df77c5c32ae8875406f669d7fe38d Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 27 Jan 2019 19:54:05 +0100 Subject: [PATCH] style: beware of collisions on status * src/symtab.h (status): Rename as... (declaration_status): this, to avoid colliding with status, the argument of 'usage'. 'status' seems a tad too general to be used only here. --- src/symtab.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/symtab.h b/src/symtab.h index c2281126..8f4f5a1a 100644 --- a/src/symtab.h +++ b/src/symtab.h @@ -72,7 +72,7 @@ typedef enum needed, /** Defined with %type or %token (good). */ declared, - } status; + } declaration_status; enum code_props_type { @@ -144,7 +144,7 @@ struct sym_content int user_token_number; symbol_class class; - status status; + declaration_status status; }; /** Undefined user number. */ @@ -321,7 +321,7 @@ typedef struct { /** Its status : "undeclared", "used" or "declared". It cannot be "needed". */ - status status; + declaration_status status; /** Any \c %destructor and %printer declared for this semantic type. */