Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Functions | Variables
lex.Pk11Install_yy.c File Reference
#include <stdio.h>
#include <string.h>
#include "install-ds.h"
#include "installparse.h"
#include <prprf.h>

Go to the source code of this file.

Classes

struct  yy_buffer_state

Defines

#define yy_create_buffer   Pk11Install_yy_create_buffer
#define yy_delete_buffer   Pk11Install_yy_delete_buffer
#define yy_scan_buffer   Pk11Install_yy_scan_buffer
#define yy_scan_string   Pk11Install_yy_scan_string
#define yy_scan_bytes   Pk11Install_yy_scan_bytes
#define yy_flex_debug   Pk11Install_yy_flex_debug
#define yy_init_buffer   Pk11Install_yy_init_buffer
#define yy_flush_buffer   Pk11Install_yy_flush_buffer
#define yy_load_buffer_state   Pk11Install_yy_load_buffer_state
#define yy_switch_to_buffer   Pk11Install_yy_switch_to_buffer
#define yyin   Pk11Install_yyin
#define yyleng   Pk11Install_yyleng
#define yylex   Pk11Install_yylex
#define yyout   Pk11Install_yyout
#define yyrestart   Pk11Install_yyrestart
#define yytext   Pk11Install_yytext
#define yywrap   Pk11Install_yywrap
#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   8
#define YY_END_OF_BUFFER   9
#define REJECT   reject_used_but_not_detected
#define yymore()   yymore_used_but_not_detected
#define YY_MORE_ADJ   0
#define YY_RESTORE_YY_MORE_OFFSET
#define INITIAL   0
#define malloc   PR_Malloc
#define realloc   PR_Realloc
#define free   PR_Free
#define YY_NEVER_INTERACTIVE   1
#define yyunput   Pkcs11Install_yyunput
#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   YY_USER_ACTION
#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 char * putSimpleString (char *)
static char * putComplexString (char *)
void Pk11Install_yyerror (char *)
static void yyunput YY_PROTO ((int c, char *buf_ptr))
int Pk11Install_yywrap (void)

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 [16]
static yyconst int yy_ec [256]
static yyconst int yy_meta [9]
static yyconst short int yy_base [19]
static yyconst short int yy_def [19]
static yyconst short int yy_nxt [30]
static yyconst short int yy_chk [30]
static yy_state_type yy_last_accepting_state
static char * yy_last_accepting_cpos
int Pk11Install_yylinenum = 1
static char * err
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 134 of file lex.Pk11Install_yy.c.

Definition at line 552 of file lex.Pk11Install_yy.c.

Definition at line 159 of file lex.Pk11Install_yy.c.

Definition at line 160 of file lex.Pk11Install_yy.c.

Definition at line 161 of file lex.Pk11Install_yy.c.

Definition at line 62 of file lex.Pk11Install_yy.c.

Definition at line 441 of file lex.Pk11Install_yy.c.

#define INITIAL   0

Definition at line 423 of file lex.Pk11Install_yy.c.

Definition at line 439 of file lex.Pk11Install_yy.c.

Definition at line 440 of file lex.Pk11Install_yy.c.

#define REJECT   reject_used_but_not_detected

Definition at line 417 of file lex.Pk11Install_yy.c.

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

Definition at line 190 of file lex.Pk11Install_yy.c.

#define YY_AT_BOL ( )    (yy_current_buffer->yy_at_bol)

Definition at line 317 of file lex.Pk11Install_yy.c.

Definition at line 611 of file lex.Pk11Install_yy.c.

#define YY_BUF_SIZE   16384

Definition at line 152 of file lex.Pk11Install_yy.c.

Definition at line 253 of file lex.Pk11Install_yy.c.

Definition at line 241 of file lex.Pk11Install_yy.c.

Definition at line 242 of file lex.Pk11Install_yy.c.

#define yy_create_buffer   Pk11Install_yy_create_buffer

Definition at line 37 of file lex.Pk11Install_yy.c.

Definition at line 262 of file lex.Pk11Install_yy.c.

Definition at line 599 of file lex.Pk11Install_yy.c.

#define yy_delete_buffer   Pk11Install_yy_delete_buffer

Definition at line 38 of file lex.Pk11Install_yy.c.

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

Definition at line 333 of file lex.Pk11Install_yy.c.

Definition at line 341 of file lex.Pk11Install_yy.c.

Definition at line 149 of file lex.Pk11Install_yy.c.

Definition at line 592 of file lex.Pk11Install_yy.c.

#define yy_flex_debug   Pk11Install_yy_flex_debug

Definition at line 42 of file lex.Pk11Install_yy.c.

Definition at line 63 of file lex.Pk11Install_yy.c.

Definition at line 64 of file lex.Pk11Install_yy.c.

#define yy_flush_buffer   Pk11Install_yy_flush_buffer

Definition at line 44 of file lex.Pk11Install_yy.c.

Definition at line 291 of file lex.Pk11Install_yy.c.

#define yy_init_buffer   Pk11Install_yy_init_buffer

Definition at line 43 of file lex.Pk11Install_yy.c.

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( yy_current_buffer->yy_is_interactive ) { \
              char c; \
		int n; \
              for ( n = 0; n < max_size && \
                PR_Read(Pk11Install_FD, &c, 1)==1 && c != '\n'; ++n ) { \
			buf[n] = c; \
              } \
        if ( c == '\n' ) { \
            buf[n++] = c; \
              } \
        result = n; \
       } else { \
		result = PR_Read(Pk11Install_FD, buf, max_size); \
       }

Definition at line 450 of file lex.Pk11Install_yy.c.

#define yy_load_buffer_state   Pk11Install_yy_load_buffer_state

Definition at line 45 of file lex.Pk11Install_yy.c.

Definition at line 419 of file lex.Pk11Install_yy.c.

Definition at line 446 of file lex.Pk11Install_yy.c.

Definition at line 301 of file lex.Pk11Install_yy.c.

Definition at line 147 of file lex.Pk11Install_yy.c.

Definition at line 522 of file lex.Pk11Install_yy.c.

Definition at line 521 of file lex.Pk11Install_yy.c.

Definition at line 523 of file lex.Pk11Install_yy.c.

#define YY_NULL   0

Definition at line 121 of file lex.Pk11Install_yy.c.

Definition at line 340 of file lex.Pk11Install_yy.c.

#define YY_PROTO (   proto)    ()

Definition at line 117 of file lex.Pk11Install_yy.c.

Definition at line 543 of file lex.Pk11Install_yy.c.

Definition at line 420 of file lex.Pk11Install_yy.c.

Definition at line 614 of file lex.Pk11Install_yy.c.

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

Definition at line 128 of file lex.Pk11Install_yy.c.

#define yy_scan_buffer   Pk11Install_yy_scan_buffer

Definition at line 39 of file lex.Pk11Install_yy.c.

#define yy_scan_bytes   Pk11Install_yy_scan_bytes

Definition at line 41 of file lex.Pk11Install_yy.c.

#define yy_scan_string   Pk11Install_yy_scan_string

Definition at line 40 of file lex.Pk11Install_yy.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 310 of file lex.Pk11Install_yy.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 303 of file lex.Pk11Install_yy.c.

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

Definition at line 140 of file lex.Pk11Install_yy.c.

Definition at line 587 of file lex.Pk11Install_yy.c.

Definition at line 144 of file lex.Pk11Install_yy.c.

#define yy_switch_to_buffer   Pk11Install_yy_switch_to_buffer

Definition at line 46 of file lex.Pk11Install_yy.c.

Definition at line 606 of file lex.Pk11Install_yy.c.

Definition at line 110 of file lex.Pk11Install_yy.c.

#define yyin   Pk11Install_yyin

Definition at line 47 of file lex.Pk11Install_yy.c.

#define yyleng   Pk11Install_yyleng

Definition at line 48 of file lex.Pk11Install_yy.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 179 of file lex.Pk11Install_yy.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 179 of file lex.Pk11Install_yy.c.

Definition at line 49 of file lex.Pk11Install_yy.c.

#define yymore ( )    yymore_used_but_not_detected

Definition at line 418 of file lex.Pk11Install_yy.c.

#define yyout   Pk11Install_yyout

Definition at line 50 of file lex.Pk11Install_yy.c.

#define yyrestart   Pk11Install_yyrestart

Definition at line 51 of file lex.Pk11Install_yy.c.

Definition at line 141 of file lex.Pk11Install_yy.c.

Definition at line 582 of file lex.Pk11Install_yy.c.

Definition at line 52 of file lex.Pk11Install_yy.c.

Definition at line 323 of file lex.Pk11Install_yy.c.

#define yyunput   Pkcs11Install_yyunput

Definition at line 447 of file lex.Pk11Install_yy.c.

Definition at line 53 of file lex.Pk11Install_yy.c.


Typedef Documentation

Definition at line 154 of file lex.Pk11Install_yy.c.

typedef unsigned char YY_CHAR

Definition at line 319 of file lex.Pk11Install_yy.c.

typedef unsigned int yy_size_t

Definition at line 196 of file lex.Pk11Install_yy.c.

typedef int yy_state_type

Definition at line 321 of file lex.Pk11Install_yy.c.


Function Documentation

void Pk11Install_yyerror ( char *  )

Definition at line 178 of file installparse.c.

{
       char *tmp;
       if(Pk11Install_yyerrstr) {
              tmp=PR_smprintf("%sline %d: %s\n", Pk11Install_yyerrstr,
                     Pk11Install_yylinenum, message);
              PR_smprintf_free(Pk11Install_yyerrstr);
       } else {
              tmp = PR_smprintf("line %d: %s\n", Pk11Install_yylinenum, message);
       }
       Pk11Install_yyerrstr=tmp;
}

Definition at line 1651 of file lex.Pk11Install_yy.c.

{ return 1;}
static char * putComplexString ( char *  str) [static]

Definition at line 1668 of file lex.Pk11Install_yy.c.

{
       int size, i,j;
       char *tmp;

       if(!str) {
              return NULL;
       }
       size = strlen(str);

       /* Allocate the new space.  This string will actually be too big, 
              since quotes and backslashes will be stripped out.  But that's ok. */
       tmp = (char*) PR_Malloc(size+1);

       /* Copy it over */
       for(i=0, j=0; i < size; i++) {
              if(str[i]=='\"') {
                     continue;  /* skip un-escaped quotes */
              } else if(str[i]=='\\') {
                     ++i;       /* escaped character. skip the backslash */
              }
              tmp[j++] = str[i];
       }
       tmp[j] = '\0';

       return tmp;
}
static char * putSimpleString ( char *  str) [static]

Definition at line 1656 of file lex.Pk11Install_yy.c.

{
       char *tmp = (char*) PR_Malloc(strlen(str)+1);
       strcpy(tmp, str);
       return tmp;
}
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]

Variable Documentation

char* err [static]

Definition at line 444 of file lex.Pk11Install_yy.c.

Definition at line 1305 of file lex.Pk11Install_yy.c.

Definition at line 1427 of file lex.Pk11Install_yy.c.

Definition at line 443 of file lex.Pk11Install_yy.c.

Definition at line 1216 of file lex.Pk11Install_yy.c.

yyconst short int yy_accept[16] [static]
Initial value:
    {   0,
        0,    0,    9,    3,    6,    5,    7,    1,    2,    3,
        6,    0,    0,    4,    0
    }

Definition at line 342 of file lex.Pk11Install_yy.c.

yyconst short int yy_base[19] [static]
Initial value:
    {   0,
        0,    0,   19,    0,    0,   21,   12,   21,   21,    0,
        0,    4,    6,   21,   21,   13,   11,   15
    }

Definition at line 385 of file lex.Pk11Install_yy.c.

register char* yy_bp

Definition at line 1069 of file lex.Pk11Install_yy.c.

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

Definition at line 274 of file lex.Pk11Install_yy.c.

yyconst short int yy_chk[30] [static]
Initial value:
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,   12,   12,
       13,   13,   17,   16,   17,   18,   18,    7,    3,   18,
       15,   15,   15,   15,   15,   15,   15,   15,   15
    }

Definition at line 404 of file lex.Pk11Install_yy.c.

Definition at line 256 of file lex.Pk11Install_yy.c.

yyconst short int yy_def[19] [static]
Initial value:
    {   0,
       15,    1,   15,   16,   17,   15,   18,   15,   15,   16,
       17,   18,   15,   15,    0,   15,   15,   15
    }

Definition at line 391 of file lex.Pk11Install_yy.c.

Definition at line 281 of file lex.Pk11Install_yy.c.

yyconst int yy_ec[256] [static]

Definition at line 348 of file lex.Pk11Install_yy.c.

char yy_hold_char [static]

Definition at line 266 of file lex.Pk11Install_yy.c.

int yy_init = 1 [static]

Definition at line 275 of file lex.Pk11Install_yy.c.

char* yy_last_accepting_cpos [static]

Definition at line 412 of file lex.Pk11Install_yy.c.

Definition at line 411 of file lex.Pk11Install_yy.c.

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

Definition at line 380 of file lex.Pk11Install_yy.c.

int yy_n_chars [static]

Definition at line 268 of file lex.Pk11Install_yy.c.

yyconst short int yy_nxt[30] [static]
Initial value:
    {   0,
        4,    5,    6,    5,    7,    4,    8,    9,   14,   13,
       12,   12,   11,   10,   11,   12,   12,   13,   15,   12,
        3,   15,   15,   15,   15,   15,   15,   15,   15
    }

Definition at line 397 of file lex.Pk11Install_yy.c.

int yy_start = 0 [static]

Definition at line 276 of file lex.Pk11Install_yy.c.

FILE* yyin = (FILE *) 0

Definition at line 320 of file lex.Pk11Install_yy.c.

Definition at line 271 of file lex.Pk11Install_yy.c.

FILE * yyout = (FILE *) 0

Definition at line 320 of file lex.Pk11Install_yy.c.

char* yytext

Definition at line 421 of file lex.Pk11Install_yy.c.