Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Functions | Variables
crlgen_lex.c File Reference
#include <stdio.h>
#include <unistd.h>
#include "crlgen.h"
#include "prlock.h"

Go to the source code of this file.

Classes

struct  yy_buffer_state

Defines

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define yyconst
#define YY_PROTO(proto)   ()
#define YY_NULL   0
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
#define BEGIN   yy_start = 1 + 2 *
#define YY_START   ((yy_start - 1) / 2)
#define YYSTATE   YY_START
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
#define YY_NEW_FILE   yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR   0
#define YY_BUF_SIZE   16384
#define EOB_ACT_CONTINUE_SCAN   0
#define EOB_ACT_END_OF_FILE   1
#define EOB_ACT_LAST_MATCH   2
#define yyless(n)
#define unput(c)   yyunput( c, yytext_ptr )
#define YY_BUFFER_NEW   0
#define YY_BUFFER_NORMAL   1
#define YY_BUFFER_EOF_PENDING   2
#define YY_CURRENT_BUFFER   yy_current_buffer
#define YY_FLUSH_BUFFER   yy_flush_buffer( yy_current_buffer )
#define yy_new_buffer   yy_create_buffer
#define yy_set_interactive(is_interactive)
#define yy_set_bol(at_bol)
#define YY_AT_BOL()   (yy_current_buffer->yy_at_bol)
#define yytext_ptr   yytext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   17
#define YY_END_OF_BUFFER   18
#define REJECT   reject_used_but_not_detected
#define yymore()   (yy_more_flag = 1)
#define YY_MORE_ADJ   yy_more_len
#define YY_RESTORE_YY_MORE_OFFSET
#define INITIAL   0
#define YY_INPUT(buf, result, max_size)
#define YY_NO_PUSH_STATE   1
#define YY_NO_POP_STATE   1
#define YY_NO_TOP_STATE   1
#define YY_READ_BUF_SIZE   8192
#define ECHO   (void) fwrite( yytext, yyleng, 1, yyout )
#define yyterminate()   return YY_NULL
#define YY_START_STACK_INCR   25
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
#define YY_DECL   int yylex YY_PROTO(( void ))
#define YY_USER_ACTION
#define YY_BREAK   break;
#define YY_RULE_SETUP
#define YY_EXIT_FAILURE   2
#define yyless(n)

Typedefs

typedef struct yy_buffer_stateYY_BUFFER_STATE
typedef unsigned int yy_size_t
typedef unsigned char YY_CHAR
typedef int yy_state_type

Functions

void yyrestart YY_PROTO ((FILE *input_file))
void yy_switch_to_buffer YY_PROTO ((YY_BUFFER_STATE new_buffer))
void yy_load_buffer_state YY_PROTO ((void))
YY_BUFFER_STATE yy_create_buffer YY_PROTO ((FILE *file, int size))
void yy_delete_buffer YY_PROTO ((YY_BUFFER_STATE b))
void yy_init_buffer YY_PROTO ((YY_BUFFER_STATE b, FILE *file))
YY_BUFFER_STATE yy_scan_buffer YY_PROTO ((char *base, yy_size_t size))
YY_BUFFER_STATE yy_scan_string YY_PROTO ((yyconst char *yy_str))
YY_BUFFER_STATE yy_scan_bytes YY_PROTO ((yyconst char *bytes, int len))
static void *yy_flex_alloc YY_PROTO ((yy_size_t))
static void *yy_flex_realloc YY_PROTO ((void *, yy_size_t))
static void yy_flex_free YY_PROTO ((void *))
static yy_state_type
yy_try_NUL_trans 
YY_PROTO ((yy_state_type current_state))
static void yy_fatal_error YY_PROTO ((yyconst char msg[]))
static void yyunput YY_PROTO ((int c, char *buf_ptr))
void CRLGEN_InitCrlGenParserLock ()
void CRLGEN_DestroyCrlGenParserLock ()
SECStatus CRLGEN_StartCrlGen (CRLGENGeneratorData *parserCtlData)
int yywrap ()

Variables

int yyleng
FILEyyin = (FILE *) 0
FILEyyout = (FILE *) 0
static YY_BUFFER_STATE yy_current_buffer = 0
static char yy_hold_char
static int yy_n_chars
static char * yy_c_buf_p = (char *) 0
static int yy_init = 1
static int yy_start = 0
static int yy_did_buffer_switch_on_eof
char * yytext
static yyconst short int yy_accept [67]
static yyconst int yy_ec [256]
static yyconst int yy_meta [30]
static yyconst short int yy_base [72]
static yyconst short int yy_def [72]
static yyconst short int yy_nxt [235]
static yyconst short int yy_chk [235]
static yy_state_type yy_last_accepting_state
static char * yy_last_accepting_cpos
static int yy_more_flag = 0
static int yy_more_len = 0
static SECStatus parserStatus = SECSuccess
static CRLGENGeneratorData * parserData
static PRFileDescsrc
register char * yy_bp
int size
FILEfile
int len

Class Documentation

struct yy_buffer_state

Definition at line 238 of file icalsslexer.c.

Collaboration diagram for yy_buffer_state:
Class Members
int yy_at_bol
char * yy_buf_pos
yy_size_t yy_buf_size
int yy_buffer_status
char * yy_ch_buf
int yy_fill_buffer
FILE * yy_input_file
int yy_is_interactive
int yy_is_our_buffer
int yy_n_chars

Define Documentation

#define BEGIN   yy_start = 1 + 2 *

Definition at line 81 of file crlgen_lex.c.

Definition at line 534 of file crlgen_lex.c.

Definition at line 106 of file crlgen_lex.c.

Definition at line 107 of file crlgen_lex.c.

Definition at line 108 of file crlgen_lex.c.

Definition at line 7 of file crlgen_lex.c.

#define INITIAL   0

Definition at line 438 of file crlgen_lex.c.

#define REJECT   reject_used_but_not_detected

Definition at line 430 of file crlgen_lex.c.

#define unput (   c)    yyunput( c, yytext_ptr )

Definition at line 137 of file crlgen_lex.c.

#define YY_AT_BOL ( )    (yy_current_buffer->yy_at_bol)

Definition at line 264 of file crlgen_lex.c.

Definition at line 593 of file crlgen_lex.c.

#define YY_BUF_SIZE   16384

Definition at line 99 of file crlgen_lex.c.

Definition at line 200 of file crlgen_lex.c.

Definition at line 188 of file crlgen_lex.c.

Definition at line 189 of file crlgen_lex.c.

Definition at line 209 of file crlgen_lex.c.

Definition at line 581 of file crlgen_lex.c.

Value:
yytext_ptr = yy_bp; \
       yytext_ptr -= yy_more_len; \
       yyleng = (int) (yy_cp - yytext_ptr); \
       yy_hold_char = *yy_cp; \
       *yy_cp = '\0'; \
       yy_c_buf_p = yy_cp;

Definition at line 280 of file crlgen_lex.c.

Definition at line 289 of file crlgen_lex.c.

Definition at line 96 of file crlgen_lex.c.

Definition at line 574 of file crlgen_lex.c.

Definition at line 8 of file crlgen_lex.c.

Definition at line 9 of file crlgen_lex.c.

Definition at line 238 of file crlgen_lex.c.

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( parserStatus != SECFailure) { \
        if (((result = PR_Read(src, buf, max_size)) == 0) && \
            ferror( yyin )) \
          return SECFailure; \
    } else  { return SECFailure; }

Definition at line 447 of file crlgen_lex.c.

Definition at line 434 of file crlgen_lex.c.

Definition at line 248 of file crlgen_lex.c.

Definition at line 94 of file crlgen_lex.c.

Definition at line 504 of file crlgen_lex.c.

Definition at line 503 of file crlgen_lex.c.

Definition at line 505 of file crlgen_lex.c.

#define YY_NULL   0

Definition at line 68 of file crlgen_lex.c.

#define YY_NUM_RULES   17

Definition at line 288 of file crlgen_lex.c.

#define YY_PROTO (   proto)    ()

Definition at line 64 of file crlgen_lex.c.

Definition at line 525 of file crlgen_lex.c.

Definition at line 435 of file crlgen_lex.c.

Value:
if ( yyleng > 0 ) \
              yy_current_buffer->yy_at_bol = \
                            (yytext[yyleng - 1] == '\n'); \
       YY_USER_ACTION

Definition at line 596 of file crlgen_lex.c.

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)

Definition at line 75 of file crlgen_lex.c.

#define yy_set_bol (   at_bol)
Value:
{ \
       if ( ! yy_current_buffer ) \
              yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
       yy_current_buffer->yy_at_bol = at_bol; \
       }

Definition at line 257 of file crlgen_lex.c.

#define yy_set_interactive (   is_interactive)
Value:
{ \
       if ( ! yy_current_buffer ) \
              yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
       yy_current_buffer->yy_is_interactive = is_interactive; \
       }

Definition at line 250 of file crlgen_lex.c.

#define YY_START   ((yy_start - 1) / 2)

Definition at line 87 of file crlgen_lex.c.

Definition at line 569 of file crlgen_lex.c.

Definition at line 91 of file crlgen_lex.c.

Definition at line 588 of file crlgen_lex.c.

Definition at line 57 of file crlgen_lex.c.

#define yyless (   n)
Value:
do \
              { \
              /* Undo effects of setting up yytext. */ \
              *yy_cp = yy_hold_char; \
              YY_RESTORE_YY_MORE_OFFSET \
              yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
              YY_DO_BEFORE_ACTION; /* set up yytext again */ \
              } \
       while ( 0 )

Definition at line 126 of file crlgen_lex.c.

#define yyless (   n)
Value:
do \
              { \
              /* Undo effects of setting up yytext. */ \
              yytext[yyleng] = yy_hold_char; \
              yy_c_buf_p = yytext + n; \
              yy_hold_char = *yy_c_buf_p; \
              *yy_c_buf_p = '\0'; \
              yyleng = n; \
              } \
       while ( 0 )

Definition at line 126 of file crlgen_lex.c.

#define yymore ( )    (yy_more_flag = 1)

Definition at line 433 of file crlgen_lex.c.

Definition at line 88 of file crlgen_lex.c.

Definition at line 564 of file crlgen_lex.c.

Definition at line 270 of file crlgen_lex.c.


Typedef Documentation

Definition at line 101 of file crlgen_lex.c.

typedef unsigned char YY_CHAR

Definition at line 266 of file crlgen_lex.c.

typedef unsigned int yy_size_t

Definition at line 143 of file crlgen_lex.c.

typedef int yy_state_type

Definition at line 268 of file crlgen_lex.c.


Function Documentation

Definition at line 1760 of file crlgen_lex.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1755 of file crlgen_lex.c.

Here is the call graph for this function:

Here is the caller graph for this function:

SECStatus CRLGEN_StartCrlGen ( CRLGENGeneratorData *  parserCtlData)

Definition at line 1766 of file crlgen_lex.c.

{
    SECStatus rv;

    PR_Lock(parserInvocationLock);

    parserStatus = SECSuccess;
    parserData = parserCtlData;
    src = parserCtlData->src;

    rv = yylex();

    PR_Unlock(parserInvocationLock);

    return rv;
}

Here is the caller graph for this function:

void yyrestart YY_PROTO ( (FILE *input_file)  )
static void* yy_flex_alloc YY_PROTO ( (yy_size_t ) [static]
static void* yy_flex_realloc YY_PROTO ( (void *, yy_size_t ) [static]
static void yy_flex_free YY_PROTO ( (void *)  ) [static]
static yy_state_type yy_try_NUL_trans YY_PROTO ( (yy_state_type current_state)  ) [static]
static void yy_fatal_error YY_PROTO ( (yyconst char msg[])  ) [static]
static void yyunput YY_PROTO ( (int c, char *buf_ptr)  ) [static]
int yywrap ( )

Definition at line 1783 of file crlgen_lex.c.

{return 1;}

Variable Documentation

Definition at line 1416 of file crlgen_lex.c.

Definition at line 1533 of file crlgen_lex.c.

CRLGENGeneratorData* parserData [static]

Definition at line 444 of file crlgen_lex.c.

Definition at line 443 of file crlgen_lex.c.

Definition at line 1327 of file crlgen_lex.c.

PRFileDesc* src [static]

Definition at line 445 of file crlgen_lex.c.

yyconst short int yy_accept[67] [static]
Initial value:
    {   0,
        0,    0,   18,   16,   14,   15,   16,   11,   12,    2,
       10,    9,    9,    9,    9,    9,   13,   14,   15,   11,
       12,    0,   12,    2,    9,    9,    9,    9,    9,   13,
        3,    4,    2,    9,    9,    9,    9,    2,    9,    9,
        9,    9,    2,    2,    9,    9,    8,    9,    2,    5,
        9,    6,    2,    9,    2,    9,    2,    9,    2,    7,
        2,    2,    2,    2,    1,    0
    }

Definition at line 290 of file crlgen_lex.c.

yyconst short int yy_base[72] [static]
Initial value:
    {   0,
        0,  149,  154,  205,  138,  205,  103,    0,    0,   23,
      205,   29,   30,   31,   32,   33,    0,   99,  205,    0,
        0,    0,   50,   55,   34,   61,   41,   63,   64,    0,
        0,    0,   79,   65,   68,   86,   66,   99,  105,   88,
      106,   90,  118,   76,  107,  110,   89,  125,   43,   91,
      127,  128,  138,  144,  113,  129,  154,  160,  160,  130,
      172,  166,  177,  144,    0,  205,  190,  192,  194,  199,
       76
    }

Definition at line 340 of file crlgen_lex.c.

register char* yy_bp

Definition at line 1178 of file crlgen_lex.c.

char* yy_c_buf_p = (char *) 0 [static]

Definition at line 221 of file crlgen_lex.c.

yyconst short int yy_chk[235] [static]
Initial value:
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,   10,
       10,   10,   10,   10,   10,   10,   12,   13,   14,   15,
       16,   25,   12,   13,   14,   15,   16,   25,   27,   15,
       14,   49,   49,   49,   27,   13,   16,   23,   23,   23,
       23,   23,   23,   24,   24,   24,   24,   24,   26,   27,
       28,   29,   34,   37,   26,   35,   28,   29,   34,   37,
       71,   35,   29,   37,   44,   28,   26,   33,   33,   33,
       33,   33,   34,   36,   35,   40,   47,   42,   50,   36,

       18,   40,   47,   42,   50,    7,   36,   38,   38,   38,
       38,   38,   39,   41,   45,   40,   42,   46,   39,   41,
       45,   55,   55,   46,   39,   41,   43,   43,   43,   43,
       43,   45,   48,   46,   51,   52,   56,   60,   48,    5,
       51,   52,   56,   60,   48,   51,   53,   53,   53,   53,
       53,   54,   64,    3,    2,   56,    0,   54,    0,    0,
       64,   54,   57,   57,   57,   57,   57,   58,   59,   59,
       59,   59,    0,   58,   62,   62,   62,   62,    0,   58,
       61,   61,   61,   61,   61,   63,   63,   63,   63,   63,
       67,   67,    0,   67,   67,   68,   68,   69,   69,   70,

        0,   70,   70,   70,   66,   66,   66,   66,   66,   66,
       66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
       66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
       66,   66,   66,   66
    }

Definition at line 394 of file crlgen_lex.c.

Definition at line 203 of file crlgen_lex.c.

yyconst short int yy_def[72] [static]
Initial value:
    {   0,
       66,    1,   66,   66,   66,   66,   66,   67,   68,   68,
       66,   69,   69,   69,   69,   69,   70,   66,   66,   67,
       68,   71,   68,   10,   69,   69,   69,   69,   69,   70,
       71,   23,   10,   69,   69,   69,   69,   10,   69,   69,
       69,   69,   10,   38,   69,   69,   69,   69,   38,   69,
       69,   69,   38,   69,   38,   69,   38,   69,   38,   69,
       38,   38,   38,   38,   68,    0,   66,   66,   66,   66,
       66
    }

Definition at line 352 of file crlgen_lex.c.

Definition at line 228 of file crlgen_lex.c.

yyconst int yy_ec[256] [static]

Definition at line 301 of file crlgen_lex.c.

char yy_hold_char [static]

Definition at line 213 of file crlgen_lex.c.

int yy_init = 1 [static]

Definition at line 222 of file crlgen_lex.c.

char* yy_last_accepting_cpos [static]

Definition at line 425 of file crlgen_lex.c.

Definition at line 424 of file crlgen_lex.c.

yyconst int yy_meta[30] [static]
Initial value:
    {   0,
        1,    1,    2,    1,    3,    1,    1,    4,    5,    5,
        5,    5,    5,    4,    1,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4
    }

Definition at line 333 of file crlgen_lex.c.

int yy_more_flag = 0 [static]

Definition at line 431 of file crlgen_lex.c.

int yy_more_len = 0 [static]

Definition at line 432 of file crlgen_lex.c.

int yy_n_chars [static]

Definition at line 215 of file crlgen_lex.c.

yyconst short int yy_nxt[235] [static]
Initial value:
    {   0,
        4,    5,    6,    7,    8,    4,    4,    9,   10,   10,
       10,   10,   10,    9,   11,   12,   12,   12,   12,   12,
       12,   13,   14,   12,   15,   12,   12,   16,   12,   22,
       23,   24,   24,   24,   24,   24,   21,   21,   21,   21,
       21,   21,   21,   21,   21,   21,   21,   21,   21,   28,
       27,   53,   53,   53,   21,   26,   29,   32,   32,   32,
       32,   32,   32,   33,   33,   33,   33,   33,   21,   35,
       21,   21,   21,   21,   21,   21,   21,   21,   21,   21,
       31,   21,   37,   42,   44,   36,   34,   38,   38,   38,
       38,   38,   39,   21,   40,   21,   21,   21,   21,   21,

       18,   21,   21,   21,   21,   19,   41,   43,   44,   44,
       44,   44,   21,   21,   21,   46,   48,   21,   21,   21,
       21,   57,   57,   21,   45,   47,   49,   49,   49,   49,
       49,   50,   21,   51,   21,   21,   21,   21,   21,   18,
       21,   21,   21,   21,   52,   54,   55,   55,   55,   55,
       55,   21,   44,   66,   17,   58,   66,   21,   66,   66,
       65,   56,   59,   59,   59,   59,   59,   21,   61,   61,
       61,   61,   66,   21,   63,   63,   63,   63,   66,   60,
       62,   62,   62,   62,   62,   64,   64,   64,   64,   64,
       20,   20,   66,   20,   20,   21,   21,   25,   25,   30,

       66,   30,   30,   30,    3,   66,   66,   66,   66,   66,
       66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
       66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
       66,   66,   66,   66
    }

Definition at line 364 of file crlgen_lex.c.

int yy_start = 0 [static]

Definition at line 223 of file crlgen_lex.c.

FILE* yyin = (FILE *) 0

Definition at line 267 of file crlgen_lex.c.

Definition at line 218 of file crlgen_lex.c.

FILE * yyout = (FILE *) 0

Definition at line 267 of file crlgen_lex.c.

char* yytext

Definition at line 436 of file crlgen_lex.c.