Home GnuPG

Fix duplicate definition of TRUE and FALSE in grammar file.
ab3fe5dccd5bUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix duplicate definition of TRUE and FALSE in grammar file.

* src/asn1-parse.y (YYPRINT): Define.
(%token-table): Define.
(TRUE,FALSE,BOOLEAN): Prefix these tokens with "ksba_" to avoid name
conflicts.
(key_word, key_word_token): Remove arrays.
(%token): Add literal strings to almost all tokens.
(yylex): Use yytname array for keyword lookup.

On AIX header file <sys/types.h> defines TRUE and FALSE when
_ALL_SOURCE is defined, leading to a macro redefinition error.

The fix for this problem is straightforward. To make future changes
easier I also remove the duplicate definition of the keywords. It is
much easier to use the list of keywords already known to Bison.

Details

Provenance
wernerAuthored on Oct 22 2013, 2:26 PM
Parents
rK7b9662f2bf28: Improve parsing of the GIT revision number.
Branches
Unknown
Tags
Unknown