Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
asn1_compiler.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <linux/asn1_ber_bytecode.h>

Go to the source code of this file.

Data Structures

struct  action
 
struct  token
 
struct  element
 
struct  type
 

Macros

#define _(X)   [DIRECTIVE_##X] = #X
 
#define ELEMENT_IMPLICIT   0x0001
 
#define ELEMENT_EXPLICIT   0x0002
 
#define ELEMENT_MARKED   0x0004
 
#define ELEMENT_RENDERED   0x0008
 
#define ELEMENT_SKIPPABLE   0x0010
 
#define ELEMENT_CONDITIONAL   0x0020
 
#define TYPE_STOP_MARKER   0x0001
 
#define TYPE_BEGIN   0x0002
 

Enumerations

enum  token_type {
  DIRECTIVE_ABSENT, DIRECTIVE_ALL, DIRECTIVE_ANY, DIRECTIVE_APPLICATION,
  DIRECTIVE_AUTOMATIC, DIRECTIVE_BEGIN, DIRECTIVE_BIT, DIRECTIVE_BMPString,
  DIRECTIVE_BOOLEAN, DIRECTIVE_BY, DIRECTIVE_CHARACTER, DIRECTIVE_CHOICE,
  DIRECTIVE_CLASS, DIRECTIVE_COMPONENT, DIRECTIVE_COMPONENTS, DIRECTIVE_CONSTRAINED,
  DIRECTIVE_CONTAINING, DIRECTIVE_DEFAULT, DIRECTIVE_DEFINED, DIRECTIVE_DEFINITIONS,
  DIRECTIVE_EMBEDDED, DIRECTIVE_ENCODED, DIRECTIVE_ENCODING_CONTROL, DIRECTIVE_END,
  DIRECTIVE_ENUMERATED, DIRECTIVE_EXCEPT, DIRECTIVE_EXPLICIT, DIRECTIVE_EXPORTS,
  DIRECTIVE_EXTENSIBILITY, DIRECTIVE_EXTERNAL, DIRECTIVE_FALSE, DIRECTIVE_FROM,
  DIRECTIVE_GeneralString, DIRECTIVE_GeneralizedTime, DIRECTIVE_GraphicString, DIRECTIVE_IA5String,
  DIRECTIVE_IDENTIFIER, DIRECTIVE_IMPLICIT, DIRECTIVE_IMPLIED, DIRECTIVE_IMPORTS,
  DIRECTIVE_INCLUDES, DIRECTIVE_INSTANCE, DIRECTIVE_INSTRUCTIONS, DIRECTIVE_INTEGER,
  DIRECTIVE_INTERSECTION, DIRECTIVE_ISO646String, DIRECTIVE_MAX, DIRECTIVE_MIN,
  DIRECTIVE_MINUS_INFINITY, DIRECTIVE_NULL, DIRECTIVE_NumericString, DIRECTIVE_OBJECT,
  DIRECTIVE_OCTET, DIRECTIVE_OF, DIRECTIVE_OPTIONAL, DIRECTIVE_ObjectDescriptor,
  DIRECTIVE_PATTERN, DIRECTIVE_PDV, DIRECTIVE_PLUS_INFINITY, DIRECTIVE_PRESENT,
  DIRECTIVE_PRIVATE, DIRECTIVE_PrintableString, DIRECTIVE_REAL, DIRECTIVE_RELATIVE_OID,
  DIRECTIVE_SEQUENCE, DIRECTIVE_SET, DIRECTIVE_SIZE, DIRECTIVE_STRING,
  DIRECTIVE_SYNTAX, DIRECTIVE_T61String, DIRECTIVE_TAGS, DIRECTIVE_TRUE,
  DIRECTIVE_TeletexString, DIRECTIVE_UNION, DIRECTIVE_UNIQUE, DIRECTIVE_UNIVERSAL,
  DIRECTIVE_UTCTime, DIRECTIVE_UTF8String, DIRECTIVE_UniversalString, DIRECTIVE_VideotexString,
  DIRECTIVE_VisibleString, DIRECTIVE_WITH, NR__DIRECTIVES, TOKEN_ASSIGNMENT = NR__DIRECTIVES,
  TOKEN_OPEN_CURLY, TOKEN_CLOSE_CURLY, TOKEN_OPEN_SQUARE, TOKEN_CLOSE_SQUARE,
  TOKEN_OPEN_ACTION, TOKEN_CLOSE_ACTION, TOKEN_COMMA, TOKEN_NUMBER,
  TOKEN_TYPE_NAME, TOKEN_ELEMENT_NAME, NR__TOKENS
}
 
enum  compound {
  NOT_COMPOUND, SET, SET_OF, SEQUENCE,
  SEQUENCE_OF, CHOICE, ANY, TYPE_REF,
  TAG_OVERRIDE
}
 

Functions

int main (int argc, char **argv)
 
 __attribute__ ((format(printf, 2, 3)))
 

Macro Definition Documentation

#define _ (   X)    [DIRECTIVE_##X] = #X
#define ELEMENT_CONDITIONAL   0x0020

Definition at line 664 of file asn1_compiler.c.

#define ELEMENT_EXPLICIT   0x0002

Definition at line 660 of file asn1_compiler.c.

#define ELEMENT_IMPLICIT   0x0001

Definition at line 659 of file asn1_compiler.c.

#define ELEMENT_MARKED   0x0004

Definition at line 661 of file asn1_compiler.c.

#define ELEMENT_RENDERED   0x0008

Definition at line 662 of file asn1_compiler.c.

#define ELEMENT_SKIPPABLE   0x0010

Definition at line 663 of file asn1_compiler.c.

#define TYPE_BEGIN   0x0002

Definition at line 674 of file asn1_compiler.c.

#define TYPE_STOP_MARKER   0x0001

Definition at line 673 of file asn1_compiler.c.

Enumeration Type Documentation

enum compound
Enumerator:
NOT_COMPOUND 
SET 
SET_OF 
SEQUENCE 
SEQUENCE_OF 
CHOICE 
ANY 
TYPE_REF 
TAG_OVERRIDE 

Definition at line 631 of file asn1_compiler.c.

enum token_type
Enumerator:
DIRECTIVE_ABSENT 
DIRECTIVE_ALL 
DIRECTIVE_ANY 
DIRECTIVE_APPLICATION 
DIRECTIVE_AUTOMATIC 
DIRECTIVE_BEGIN 
DIRECTIVE_BIT 
DIRECTIVE_BMPString 
DIRECTIVE_BOOLEAN 
DIRECTIVE_BY 
DIRECTIVE_CHARACTER 
DIRECTIVE_CHOICE 
DIRECTIVE_CLASS 
DIRECTIVE_COMPONENT 
DIRECTIVE_COMPONENTS 
DIRECTIVE_CONSTRAINED 
DIRECTIVE_CONTAINING 
DIRECTIVE_DEFAULT 
DIRECTIVE_DEFINED 
DIRECTIVE_DEFINITIONS 
DIRECTIVE_EMBEDDED 
DIRECTIVE_ENCODED 
DIRECTIVE_ENCODING_CONTROL 
DIRECTIVE_END 
DIRECTIVE_ENUMERATED 
DIRECTIVE_EXCEPT 
DIRECTIVE_EXPLICIT 
DIRECTIVE_EXPORTS 
DIRECTIVE_EXTENSIBILITY 
DIRECTIVE_EXTERNAL 
DIRECTIVE_FALSE 
DIRECTIVE_FROM 
DIRECTIVE_GeneralString 
DIRECTIVE_GeneralizedTime 
DIRECTIVE_GraphicString 
DIRECTIVE_IA5String 
DIRECTIVE_IDENTIFIER 
DIRECTIVE_IMPLICIT 
DIRECTIVE_IMPLIED 
DIRECTIVE_IMPORTS 
DIRECTIVE_INCLUDES 
DIRECTIVE_INSTANCE 
DIRECTIVE_INSTRUCTIONS 
DIRECTIVE_INTEGER 
DIRECTIVE_INTERSECTION 
DIRECTIVE_ISO646String 
DIRECTIVE_MAX 
DIRECTIVE_MIN 
DIRECTIVE_MINUS_INFINITY 
DIRECTIVE_NULL 
DIRECTIVE_NumericString 
DIRECTIVE_OBJECT 
DIRECTIVE_OCTET 
DIRECTIVE_OF 
DIRECTIVE_OPTIONAL 
DIRECTIVE_ObjectDescriptor 
DIRECTIVE_PATTERN 
DIRECTIVE_PDV 
DIRECTIVE_PLUS_INFINITY 
DIRECTIVE_PRESENT 
DIRECTIVE_PRIVATE 
DIRECTIVE_PrintableString 
DIRECTIVE_REAL 
DIRECTIVE_RELATIVE_OID 
DIRECTIVE_SEQUENCE 
DIRECTIVE_SET 
DIRECTIVE_SIZE 
DIRECTIVE_STRING 
DIRECTIVE_SYNTAX 
DIRECTIVE_T61String 
DIRECTIVE_TAGS 
DIRECTIVE_TRUE 
DIRECTIVE_TeletexString 
DIRECTIVE_UNION 
DIRECTIVE_UNIQUE 
DIRECTIVE_UNIVERSAL 
DIRECTIVE_UTCTime 
DIRECTIVE_UTF8String 
DIRECTIVE_UniversalString 
DIRECTIVE_VideotexString 
DIRECTIVE_VisibleString 
DIRECTIVE_WITH 
NR__DIRECTIVES 
TOKEN_ASSIGNMENT 
TOKEN_OPEN_CURLY 
TOKEN_CLOSE_CURLY 
TOKEN_OPEN_SQUARE 
TOKEN_CLOSE_SQUARE 
TOKEN_OPEN_ACTION 
TOKEN_CLOSE_ACTION 
TOKEN_COMMA 
TOKEN_NUMBER 
TOKEN_TYPE_NAME 
TOKEN_ELEMENT_NAME 
NR__TOKENS 

Definition at line 23 of file asn1_compiler.c.

Function Documentation

__attribute__ ( (format(printf, 2, 3))  )

Definition at line 1193 of file asn1_compiler.c.

int main ( int  argc,
char **  argv 
)

Definition at line 539 of file asn1_compiler.c.