pcsc-lite  1.8.26
Data Structures | Macros | Typedefs | Functions | Variables
tokenparser.c File Reference

provides parsing functions for Info.plist files platforms More...

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "config.h"
#include <assert.h>
#include "simclist.h"
#include "debuglog.h"
#include "parser.h"
#include <unistd.h>

Go to the source code of this file.

Data Structures

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define YY_INT_ALIGNED   short int
 
#define yy_create_buffer   tp_create_buffer
 
#define yy_delete_buffer   tp_delete_buffer
 
#define yy_scan_buffer   tp_scan_buffer
 
#define yy_scan_string   tp_scan_string
 
#define yy_scan_bytes   tp_scan_bytes
 
#define yy_init_buffer   tp_init_buffer
 
#define yy_flush_buffer   tp_flush_buffer
 
#define yy_load_buffer_state   tp_load_buffer_state
 
#define yy_switch_to_buffer   tp_switch_to_buffer
 
#define yypush_buffer_state   tppush_buffer_state
 
#define yypop_buffer_state   tppop_buffer_state
 
#define yyensure_buffer_stack   tpensure_buffer_stack
 
#define yy_flex_debug   tp_flex_debug
 
#define yyin   tpin
 
#define yyleng   tpleng
 
#define yylex   tplex
 
#define yylineno   tplineno
 
#define yyout   tpout
 
#define yyrestart   tprestart
 
#define yytext   tptext
 
#define yywrap   tpwrap
 
#define yyalloc   tpalloc
 
#define yyrealloc   tprealloc
 
#define yyfree   tpfree
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   6
 
#define YY_FLEX_SUBMINOR_VERSION   4
 
#define FLEX_BETA
 
#define tp_create_buffer_ALREADY_DEFINED
 
#define tp_delete_buffer_ALREADY_DEFINED
 
#define tp_scan_buffer_ALREADY_DEFINED
 
#define tp_scan_string_ALREADY_DEFINED
 
#define tp_scan_bytes_ALREADY_DEFINED
 
#define tp_init_buffer_ALREADY_DEFINED
 
#define tp_flush_buffer_ALREADY_DEFINED
 
#define tp_load_buffer_state_ALREADY_DEFINED
 
#define tp_switch_to_buffer_ALREADY_DEFINED
 
#define tppush_buffer_state_ALREADY_DEFINED
 
#define tppop_buffer_state_ALREADY_DEFINED
 
#define tpensure_buffer_stack_ALREADY_DEFINED
 
#define tplex_ALREADY_DEFINED
 
#define tprestart_ALREADY_DEFINED
 
#define yylex_init   tplex_init
 
#define yylex_init_extra   tplex_init_extra
 
#define yylex_destroy   tplex_destroy
 
#define yyget_debug   tpget_debug
 
#define yyset_debug   tpset_debug
 
#define yyget_extra   tpget_extra
 
#define yyset_extra   tpset_extra
 
#define yyget_in   tpget_in
 
#define yyset_in   tpset_in
 
#define yyget_out   tpget_out
 
#define yyset_out   tpset_out
 
#define yyget_leng   tpget_leng
 
#define yyget_text   tpget_text
 
#define yyget_lineno   tpget_lineno
 
#define yyset_lineno   tpset_lineno
 
#define tpwrap_ALREADY_DEFINED
 
#define tpalloc_ALREADY_DEFINED
 
#define tprealloc_ALREADY_DEFINED
 
#define tpfree_ALREADY_DEFINED
 
#define tptext_ALREADY_DEFINED
 
#define tpleng_ALREADY_DEFINED
 
#define tpin_ALREADY_DEFINED
 
#define tpout_ALREADY_DEFINED
 
#define tp_flex_debug_ALREADY_DEFINED
 
#define tplineno_ALREADY_DEFINED
 
#define FLEXINT_H
 
#define INT8_MIN   (-128)
 
#define INT16_MIN   (-32767-1)
 
#define INT32_MIN   (-2147483647-1)
 
#define INT8_MAX   (127)
 
#define INT16_MAX   (32767)
 
#define INT32_MAX   (2147483647)
 
#define UINT8_MAX   (255U)
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define SIZE_MAX   (~(size_t)0)
 
#define yyconst   const
 
#define yynoreturn
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((YY_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 YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define YY_LINENO_REWIND_TO(ptr)
 
#define yyless(n)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#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_LVALUE->yy_at_bol)
 
#define tpwrap()   (/*CONSTCOND*/1)
 
#define YY_SKIP_YYWRAP
 
#define yytext_ptr   yytext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   7
 
#define YY_END_OF_BUFFER   8
 
#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 NDEBUG
 
#define YY_NO_INPUT   1
 
#define INITIAL   0
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
 
#define YY_INPUT(buf, result, max_size)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int yylex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   /*LINTED*/break;
 
#define YY_RULE_SETUP   YY_USER_ACTION
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define YYTABLES_NAME   "yytables"
 

Typedefs

typedef signed char flex_int8_t
 
typedef short int flex_int16_t
 
typedef int flex_int32_t
 
typedef unsigned char flex_uint8_t
 
typedef unsigned short int flex_uint16_t
 
typedef unsigned int flex_uint32_t
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef flex_uint8_t YY_CHAR
 
typedef int yy_state_type
 

Functions

void yyrestart (FILE *input_file)
 
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
 
void yy_delete_buffer (YY_BUFFER_STATE b)
 
void yy_flush_buffer (YY_BUFFER_STATE b)
 
void yypush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void yypop_buffer_state (void)
 
static void yyensure_buffer_stack (void)
 
static void yy_load_buffer_state (void)
 
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE yy_scan_string (const char *yy_str)
 
YY_BUFFER_STATE yy_scan_bytes (const char *bytes, int len)
 
void * yyalloc (yy_size_t)
 
void * yyrealloc (void *, yy_size_t)
 
void yyfree (void *)
 
static yy_state_type yy_get_previous_state (void)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
static int yy_get_next_buffer (void)
 
static void yynoreturn yy_fatal_error (const char *msg)
 
static void eval_key (char *pcToken, list_t *list_key)
 
static void eval_value (char *pcToken, list_t *list_values)
 
void tperrorCheck (char *pcToken_error)
 
static int yy_init_globals (void)
 
int yylex_destroy (void)
 
int yyget_debug (void)
 
void yyset_debug (int debug_flag)
 
YY_EXTRA_TYPE yyget_extra (void)
 
void yyset_extra (YY_EXTRA_TYPE user_defined)
 
FILE * yyget_in (void)
 
void yyset_in (FILE *_in_str)
 
FILE * yyget_out (void)
 
void yyset_out (FILE *_out_str)
 
int yyget_leng (void)
 
char * yyget_text (void)
 
int yyget_lineno (void)
 
void yyset_lineno (int _line_number)
 
int yylex (void)
 
 if (!(yy_init))
 

Variables

int yyleng
 
FILE * yyin = NULL
 
FILE * yyout = NULL
 
static size_t yy_buffer_stack_top = 0
 index of top of stack. More...
 
static size_t yy_buffer_stack_max = 0
 capacity of stack. More...
 
static YY_BUFFER_STATEyy_buffer_stack = NULL
 Stack as an array. More...
 
static char yy_hold_char
 
static int yy_n_chars
 
static char * yy_c_buf_p = NULL
 
static int yy_init = 0
 
static int yy_start = 0
 
static int yy_did_buffer_switch_on_eof
 
int yylineno = 1
 
char * yytext
 
static const flex_int16_t yy_accept [39]
 
static const YY_CHAR yy_ec [256]
 
static const YY_CHAR yy_meta [21]
 
static const flex_int16_t yy_base [43]
 
static const flex_int16_t yy_def [43]
 
static const flex_int16_t yy_nxt [71]
 
static const flex_int16_t yy_chk [71]
 
static yy_state_type yy_last_accepting_state
 
static char * yy_last_accepting_cpos
 
int yy_flex_debug = 0
 
static list_tListKeys
 
static list_tListValues
 
 YY_DECL
 The main scanner function which does all the work. More...
 
char * yy_cp
 
char * yy_bp
 
int yy_act
 

Detailed Description

provides parsing functions for Info.plist files platforms

Definition in file tokenparser.c.

Macro Definition Documentation

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
: NULL)
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
Definition: tokenparser.c:510
static size_t yy_buffer_stack_top
index of top of stack.
Definition: tokenparser.c:508

Definition at line 518 of file tokenparser.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
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 610 of file tokenparser.c.

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
int n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}\
\

Definition at line 890 of file tokenparser.c.

◆ yy_set_bol

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

Definition at line 572 of file tokenparser.c.

◆ yy_set_interactive

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

Definition at line 563 of file tokenparser.c.

◆ yyless [1/2]

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

Definition at line 428 of file tokenparser.c.

◆ yyless [2/2]

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

Definition at line 428 of file tokenparser.c.

Variable Documentation

◆ yy_accept

const flex_int16_t yy_accept[39]
static
Initial value:
=
{ 0,
0, 0, 8, 6, 4, 2, 1, 6, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 3,
0, 0, 0, 0, 0, 0, 5, 0
}

Definition at line 625 of file tokenparser.c.

◆ yy_base

const flex_int16_t yy_base[43]
static
Initial value:
=
{ 0,
0, 7, 49, 50, 50, 50, 0, 1, 0, 36,
28, 26, 28, 35, 29, 0, 26, 33, 27, 33,
29, 22, 0, 24, 27, 14, 27, 23, 13, 50,
10, 9, 4, 1, 0, 2, 50, 50, 19, 23,
2, 26
}

Definition at line 671 of file tokenparser.c.

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = NULL
static

Stack as an array.

Definition at line 510 of file tokenparser.c.

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 509 of file tokenparser.c.

◆ yy_buffer_stack_top

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 508 of file tokenparser.c.

◆ yy_chk

const flex_int16_t yy_chk[71]
static
Initial value:
=
{ 0,
0, 1, 1, 41, 1, 0, 0, 1, 2, 2,
36, 2, 35, 0, 2, 8, 34, 33, 8, 39,
39, 39, 39, 40, 40, 32, 40, 42, 31, 42,
29, 28, 27, 26, 25, 24, 22, 21, 20, 19,
18, 17, 15, 14, 13, 12, 11, 10, 3, 38,
38, 38, 38, 38, 38, 38, 38, 38, 38, 38,
38, 38, 38, 38, 38, 38, 38, 38, 38, 38
}

Definition at line 700 of file tokenparser.c.

◆ YY_DECL

YY_DECL
Initial value:
{
yy_state_type yy_current_state

The main scanner function which does all the work.

Definition at line 971 of file tokenparser.c.

◆ yy_def

const flex_int16_t yy_def[43]
static
Initial value:
=
{ 0,
39, 39, 38, 38, 38, 38, 40, 38, 40, 38,
38, 38, 38, 38, 38, 41, 38, 41, 38, 38,
38, 38, 42, 38, 42, 38, 38, 38, 38, 38,
38, 38, 38, 38, 38, 38, 38, 0, 38, 38,
38, 38
}

Definition at line 680 of file tokenparser.c.

◆ yy_meta

const YY_CHAR yy_meta[21]
static
Initial value:
=
{ 0,
1, 2, 3, 4, 4, 4, 2, 1, 1, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2
}

Definition at line 665 of file tokenparser.c.

◆ yy_nxt

const flex_int16_t yy_nxt[71]
static
Initial value:
=
{ 0,
38, 5, 6, 18, 7, 38, 38, 8, 5, 6,
37, 7, 36, 38, 8, 10, 35, 34, 11, 4,
4, 4, 4, 9, 9, 33, 9, 25, 32, 25,
31, 30, 29, 28, 27, 26, 24, 23, 22, 21,
20, 19, 17, 16, 15, 14, 13, 12, 38, 3,
38, 38, 38, 38, 38, 38, 38, 38, 38, 38,
38, 38, 38, 38, 38, 38, 38, 38, 38, 38
}

Definition at line 689 of file tokenparser.c.