diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-11-06 10:31:07 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-11-06 10:31:07 +0100 |
commit | 927856fa3007e7b225a408878159f28968400cb4 (patch) | |
tree | 8f48bb86102e42d8bf1471360ec6ad8b205685e5 /lib/ASN1.c | |
parent | 4110f62d1ccce4a0b2cfc5ea304c69b5c14c4d8f (diff) | |
download | libtasn1-927856fa3007e7b225a408878159f28968400cb4.tar.gz libtasn1-927856fa3007e7b225a408878159f28968400cb4.tar.bz2 libtasn1-927856fa3007e7b225a408878159f28968400cb4.zip |
Generated.
Diffstat (limited to 'lib/ASN1.c')
-rw-r--r-- | lib/ASN1.c | 55 |
1 files changed, 21 insertions, 34 deletions
@@ -181,8 +181,8 @@ static char lastToken[ASN1_MAX_NAME_SIZE+1]; /* last token find in the file extern char _asn1_identifierMissing[]; static const char *fileName; /* file to parse */ -int _asn1_yyerror (char *); -int _asn1_yylex(void); +static int _asn1_yyerror (char *); +static int _asn1_yylex(void); @@ -2356,20 +2356,22 @@ yyreturn: -const char *key_word[]={"::=","OPTIONAL","INTEGER","SIZE","OCTET","STRING" - ,"SEQUENCE","BIT","UNIVERSAL","PRIVATE","OPTIONAL" - ,"DEFAULT","CHOICE","OF","OBJECT","IDENTIFIER" - ,"BOOLEAN","TRUE","FALSE","APPLICATION","ANY","DEFINED" - ,"SET","BY","EXPLICIT","IMPLICIT","DEFINITIONS","TAGS" - ,"BEGIN","END","UTCTime","GeneralizedTime" - ,"GeneralString","FROM","IMPORTS","NULL","ENUMERATED"}; -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 - ,SET,BY,EXPLICIT,IMPLICIT,DEFINITIONS,TAGS - ,BEGIN,END,UTCTime,GeneralizedTime - ,GeneralString,FROM,IMPORTS,TOKEN_NULL,ENUMERATED}; +static const char *key_word[] = { + "::=","OPTIONAL","INTEGER","SIZE","OCTET","STRING" + ,"SEQUENCE","BIT","UNIVERSAL","PRIVATE","OPTIONAL" + ,"DEFAULT","CHOICE","OF","OBJECT","IDENTIFIER" + ,"BOOLEAN","TRUE","FALSE","APPLICATION","ANY","DEFINED" + ,"SET","BY","EXPLICIT","IMPLICIT","DEFINITIONS","TAGS" + ,"BEGIN","END","UTCTime","GeneralizedTime" + ,"GeneralString","FROM","IMPORTS","NULL","ENUMERATED"}; +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 + ,SET,BY,EXPLICIT,IMPLICIT,DEFINITIONS,TAGS + ,BEGIN,END,UTCTime,GeneralizedTime + ,GeneralString,FROM,IMPORTS,TOKEN_NULL,ENUMERATED}; /*************************************************************/ /* Function: _asn1_yylex */ @@ -2377,7 +2379,7 @@ const int key_word_token[]={ASSIG,OPTIONAL,INTEGER,SIZE,OCTET,STRING /* Return: int */ /* Token identifier or ASCII code or 0(zero: End Of File) */ /*************************************************************/ -int +static int _asn1_yylex() { int c,counter=0,k,lastc; @@ -2467,7 +2469,7 @@ _asn1_yylex() /* errorDescription: string that will contain the */ /* description. */ /*************************************************************/ -void +static void _asn1_create_errorDescription(int error,char *errorDescription) { switch(error){ @@ -2736,7 +2738,7 @@ int asn1_parser2array(const char *inputFileName,const char *outputFileName, /* Return: int */ /* */ /*************************************************************/ -int _asn1_yyerror (char *s) +static int _asn1_yyerror (char *s) { /* Sends the error description to the std_out */ @@ -2751,18 +2753,3 @@ int _asn1_yyerror (char *s) return 0; } - - - - - - - - - - - - - - - |