summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-05-28 12:23:53 +0200
committerSimon Josefsson <simon@josefsson.org>2009-05-28 12:23:53 +0200
commita94f97f41ebf83c8cab4baddf0cb419f5548fb1a (patch)
treeefa9f593032d3a822aac38367493a7c875c28090 /lib
parenta2f01b333bf66c87b1cd775d3a741e125d623693 (diff)
downloadlibtasn1-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.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ASN1.y b/lib/ASN1.y
index 6dbc2b7..38c7659 100644
--- a/lib/ASN1.y
+++ b/lib/ASN1.y
@@ -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};