diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-05-28 12:23:53 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-05-28 12:23:53 +0200 |
commit | a94f97f41ebf83c8cab4baddf0cb419f5548fb1a (patch) | |
tree | efa9f593032d3a822aac38367493a7c875c28090 /lib | |
parent | a2f01b333bf66c87b1cd775d3a741e125d623693 (diff) | |
download | libtasn1-a94f97f41ebf83c8cab4baddf0cb419f5548fb1a.tar.gz libtasn1-a94f97f41ebf83c8cab4baddf0cb419f5548fb1a.tar.bz2 libtasn1-a94f97f41ebf83c8cab4baddf0cb419f5548fb1a.zip |
Replace TRUE/FALSE with ASN1_TRUE/ASN1_FALSE to work around problem on Tru64.
Reported by Didier Godefroy <dg@ulysium.net> in
<http://permalink.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/3581>.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ASN1.y | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -84,8 +84,8 @@ static int _asn1_yylex(void); %token OBJECT %token STR_IDENTIFIER %token BOOLEAN -%token TRUE -%token FALSE +%token ASN1_TRUE +%token ASN1_FALSE %token TOKEN_NULL %token ANY %token DEFINED @@ -194,8 +194,8 @@ tag : tag_type {$$=$1;} default : DEFAULT pos_neg_identifier {$$=_asn1_add_node(TYPE_DEFAULT); _asn1_set_value($$,$2,strlen($2)+1);} - | DEFAULT TRUE {$$=_asn1_add_node(TYPE_DEFAULT|CONST_TRUE);} - | DEFAULT FALSE {$$=_asn1_add_node(TYPE_DEFAULT|CONST_FALSE);} + | DEFAULT ASN1_TRUE {$$=_asn1_add_node(TYPE_DEFAULT|CONST_TRUE);} + | DEFAULT ASN1_FALSE {$$=_asn1_add_node(TYPE_DEFAULT|CONST_FALSE);} ; @@ -414,7 +414,7 @@ static const int key_word_token[] = { ASSIG,OPTIONAL,INTEGER,SIZE,OCTET,STRING ,SEQUENCE,BIT,UNIVERSAL,PRIVATE,OPTIONAL ,DEFAULT,CHOICE,OF,OBJECT,STR_IDENTIFIER - ,BOOLEAN,TRUE,FALSE,APPLICATION,ANY,DEFINED + ,BOOLEAN,ASN1_TRUE,ASN1_FALSE,APPLICATION,ANY,DEFINED ,SET,BY,EXPLICIT,IMPLICIT,DEFINITIONS,TAGS ,BEGIN,END,UTCTime,GeneralizedTime ,GeneralString,FROM,IMPORTS,TOKEN_NULL,ENUMERATED}; |