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.
This commit is contained in:
Akim Demaille
2019-01-27 19:54:05 +01:00
parent 1e83dd2229
commit a108d84f88

View File

@@ -72,7 +72,7 @@ typedef enum
needed, needed,
/** Defined with %type or %token (good). */ /** Defined with %type or %token (good). */
declared, declared,
} status; } declaration_status;
enum code_props_type enum code_props_type
{ {
@@ -144,7 +144,7 @@ struct sym_content
int user_token_number; int user_token_number;
symbol_class class; symbol_class class;
status status; declaration_status status;
}; };
/** Undefined user number. */ /** Undefined user number. */
@@ -321,7 +321,7 @@ typedef struct {
/** Its status : "undeclared", "used" or "declared". /** Its status : "undeclared", "used" or "declared".
It cannot be "needed". */ It cannot be "needed". */
status status; declaration_status status;
/** Any \c %destructor and %printer declared for this /** Any \c %destructor and %printer declared for this
semantic type. */ semantic type. */