pcsc-lite 1.9.9
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_flex_debug   tp_flex_debug
 
#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 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   5
 
#define YY_FLEX_SUBMINOR_VERSION   35
 
#define FLEX_BETA
 
#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 yyconst
 
#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   tprestart(tpin )
 
#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 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   tp_flush_buffer(YY_CURRENT_BUFFER )
 
#define yy_new_buffer   tp_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(n)   1
 
#define YY_SKIP_YYWRAP
 
#define yytext_ptr   tptext
 
#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   fwrite( tptext, tpleng, 1, tpout )
 
#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 tplex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   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 unsigned char YY_CHAR
 
typedef int yy_state_type
 

Functions

void tprestart (FILE *input_file)
 Immediately switch to a different input stream.
 
void tp_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 Switch to a different input buffer.
 
YY_BUFFER_STATE tp_create_buffer (FILE *file, int size)
 Allocate and initialize an input buffer state.
 
void tp_delete_buffer (YY_BUFFER_STATE b)
 Destroy the buffer.
 
void tp_flush_buffer (YY_BUFFER_STATE b)
 Discard all buffered characters.
 
void tppush_buffer_state (YY_BUFFER_STATE new_buffer)
 Pushes the new state onto the stack.
 
void tppop_buffer_state (void)
 Removes and deletes the top of the stack, if present.
 
static void tpensure_buffer_stack (void)
 
static void tp_load_buffer_state (void)
 
static void tp_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
YY_BUFFER_STATE tp_scan_buffer (char *base, yy_size_t size)
 Setup the input buffer state to scan directly from a user-specified character buffer.
 
YY_BUFFER_STATE tp_scan_string (yyconst char *yystr)
 Setup the input buffer state to scan a string.
 
YY_BUFFER_STATE tp_scan_bytes (yyconst char *yybytes, yy_size_t _yybytes_len)
 Setup the input buffer state to scan the given bytes.
 
voidtpalloc (yy_size_t)
 
voidtprealloc (void *, yy_size_t)
 
void tpfree (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 yy_fatal_error (yyconst 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 tplex_destroy (void)
 
int tpget_debug (void)
 
void tpset_debug (int debug_flag)
 
YY_EXTRA_TYPE tpget_extra (void)
 
void tpset_extra (YY_EXTRA_TYPE user_defined)
 
FILEtpget_in (void)
 Get the input stream.
 
void tpset_in (FILE *in_str)
 Set the input stream.
 
FILEtpget_out (void)
 Get the output stream.
 
void tpset_out (FILE *out_str)
 
yy_size_t tpget_leng (void)
 Get the length of the current token.
 
chartpget_text (void)
 Get the current token.
 
int tpget_lineno (void)
 Get the current line number.
 
void tpset_lineno (int line_number)
 Set the current line number.
 
int tplex (void)
 
 if (!(yy_init))
 
 while (1)
 
int isatty (int)
 
static void yy_fatal_error (yyconst char *msg)
 
int LTPBundleFindValueWithKey (list_t *l, const char *key, list_t **values)
 Find an optional key in a configuration file No error is logged if the key is not found.
 
int bundleParse (const char *fileName, list_t *l)
 Parse a Info.plist file and file a list.
 
void bundleRelease (list_t *l)
 Free the list created by bundleParse()
 

Variables

yy_size_t tpleng
 
FILEtpin = (FILE *) 0
 
FILEtpout = (FILE *) 0
 
static size_t yy_buffer_stack_top = 0
 index of top of stack.
 
static size_t yy_buffer_stack_max = 0
 capacity of stack.
 
static YY_BUFFER_STATEyy_buffer_stack = 0
 Stack as an array.
 
static char yy_hold_char
 
static yy_size_t yy_n_chars
 
static charyy_c_buf_p = (char *) 0
 
static int yy_init = 0
 
static int yy_start = 0
 
static int yy_did_buffer_switch_on_eof
 
int tplineno = 1
 
chartptext
 
static yyconst flex_int16_t yy_accept [39]
 
static yyconst flex_int32_t yy_ec [256]
 
static yyconst flex_int32_t yy_meta [20]
 
static yyconst flex_int16_t yy_base [43]
 
static yyconst flex_int16_t yy_def [43]
 
static yyconst flex_int16_t yy_nxt [75]
 
static yyconst flex_int16_t yy_chk [75]
 
static yy_state_type yy_last_accepting_state
 
static charyy_last_accepting_cpos
 
int tp_flex_debug = 0
 
static list_tListKeys
 
static list_tListValues
 
 YY_DECL
 The main scanner function which does all the work.
 
register charyy_cp
 
register charyy_bp
 
register int yy_act
 

Detailed Description

provides parsing functions for Info.plist files platforms

Definition in file tokenparser.c.

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 144 of file tokenparser.c.

◆ ECHO

#define ECHO   fwrite( tptext, tpleng, 1, tpout )

Definition at line 645 of file tokenparser.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 184 of file tokenparser.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 185 of file tokenparser.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 186 of file tokenparser.c.

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 32 of file tokenparser.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 27 of file tokenparser.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 48 of file tokenparser.c.

◆ INITIAL

#define INITIAL   0

Definition at line 560 of file tokenparser.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 92 of file tokenparser.c.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 83 of file tokenparser.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 95 of file tokenparser.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 86 of file tokenparser.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 89 of file tokenparser.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 80 of file tokenparser.c.

◆ NDEBUG

#define NDEBUG

Definition at line 542 of file tokenparser.c.

◆ REJECT

Definition at line 491 of file tokenparser.c.

◆ tpwrap

#define tpwrap (   n)    1

Definition at line 354 of file tokenparser.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 101 of file tokenparser.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 104 of file tokenparser.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 98 of file tokenparser.c.

◆ unput

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

Definition at line 204 of file tokenparser.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 350 of file tokenparser.c.

◆ YY_BREAK

#define YY_BREAK   break;

Definition at line 724 of file tokenparser.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 163 of file tokenparser.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 266 of file tokenparser.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 254 of file tokenparser.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 255 of file tokenparser.c.

◆ yy_create_buffer

#define yy_create_buffer   tp_create_buffer

Definition at line 8 of file tokenparser.c.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
: NULL)
@ POWER_STATE_POWERED
powered
Definition pcscd.h:64
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
static size_t yy_buffer_stack_top
index of top of stack.

Definition at line 282 of file tokenparser.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 289 of file tokenparser.c.

◆ YY_DECL

#define YY_DECL   int tplex (void)

Definition at line 712 of file tokenparser.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 708 of file tokenparser.c.

◆ yy_delete_buffer

#define yy_delete_buffer   tp_delete_buffer

Definition at line 9 of file tokenparser.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
(yytext_ptr) = yy_bp; \
tpleng = (yy_size_t) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;

Definition at line 378 of file tokenparser.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   8

Definition at line 386 of file tokenparser.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 159 of file tokenparser.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

Definition at line 1616 of file tokenparser.c.

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 571 of file tokenparser.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 699 of file tokenparser.c.

◆ yy_flex_debug

int yy_flex_debug   tp_flex_debug

Definition at line 10 of file tokenparser.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 28 of file tokenparser.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   5

Definition at line 29 of file tokenparser.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 30 of file tokenparser.c.

◆ yy_flush_buffer

#define yy_flush_buffer   tp_flush_buffer

Definition at line 12 of file tokenparser.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   tp_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 318 of file tokenparser.c.

◆ yy_init_buffer

#define yy_init_buffer   tp_init_buffer

Definition at line 11 of file tokenparser.c.

◆ YY_INPUT

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

Definition at line 652 of file tokenparser.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 4 of file tokenparser.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 188 of file tokenparser.c.

◆ yy_load_buffer_state

#define yy_load_buffer_state (   void)    tp_load_buffer_state

Definition at line 13 of file tokenparser.c.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 493 of file tokenparser.c.

◆ yy_new_buffer

#define yy_new_buffer   tp_create_buffer

Definition at line 328 of file tokenparser.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   tprestart(tpin )

Definition at line 157 of file tokenparser.c.

◆ YY_NO_INPUT

#define YY_NO_INPUT   1

Definition at line 557 of file tokenparser.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 131 of file tokenparser.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   7

Definition at line 385 of file tokenparser.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 637 of file tokenparser.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 494 of file tokenparser.c.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP    YY_USER_ACTION

Definition at line 727 of file tokenparser.c.

◆ YY_SC_TO_UI

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

Definition at line 138 of file tokenparser.c.

◆ yy_set_bol

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

Definition at line 340 of file tokenparser.c.

◆ yy_set_interactive

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

Definition at line 330 of file tokenparser.c.

◆ YY_SKIP_YYWRAP

#define YY_SKIP_YYWRAP

Definition at line 355 of file tokenparser.c.

◆ YY_START

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

Definition at line 150 of file tokenparser.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 694 of file tokenparser.c.

◆ YY_STATE_BUF_SIZE

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 168 of file tokenparser.c.

◆ YY_STATE_EOF

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 154 of file tokenparser.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 207 of file tokenparser.c.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   tp_switch_to_buffer

Definition at line 14 of file tokenparser.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 171 of file tokenparser.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 176 of file tokenparser.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 719 of file tokenparser.c.

◆ yyalloc

#define yyalloc   tpalloc

Definition at line 23 of file tokenparser.c.

◆ yyconst

#define yyconst

Definition at line 127 of file tokenparser.c.

◆ yyfree

#define yyfree   tpfree

Definition at line 25 of file tokenparser.c.

◆ yyin

FILE * yyin   tpin

Definition at line 15 of file tokenparser.c.

◆ yyleng

yy_size_t yyleng   tpleng

Definition at line 16 of file tokenparser.c.

◆ yyless [1/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up tptext. */ \
int yyless_macro_arg = (n); \
*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 tptext again */ \
} \
while ( 0 )

Definition at line 191 of file tokenparser.c.

◆ yyless [2/2]

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

Definition at line 191 of file tokenparser.c.

◆ yylex

#define yylex (   void)    tplex

Definition at line 17 of file tokenparser.c.

◆ yylineno

int yylineno   tplineno

Definition at line 18 of file tokenparser.c.

◆ yymore

Definition at line 492 of file tokenparser.c.

◆ yyout

FILE * yyout   tpout

Definition at line 19 of file tokenparser.c.

◆ yyrealloc

#define yyrealloc   tprealloc

Definition at line 24 of file tokenparser.c.

◆ yyrestart

#define yyrestart   tprestart

Definition at line 20 of file tokenparser.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 151 of file tokenparser.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

Definition at line 1818 of file tokenparser.c.

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 689 of file tokenparser.c.

◆ yytext

char * yytext   tptext

Definition at line 21 of file tokenparser.c.

◆ yytext_ptr

#define yytext_ptr   tptext

Definition at line 368 of file tokenparser.c.

◆ yywrap

#define yywrap   tpwrap

Definition at line 22 of file tokenparser.c.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 71 of file tokenparser.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 72 of file tokenparser.c.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 70 of file tokenparser.c.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 74 of file tokenparser.c.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 75 of file tokenparser.c.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 73 of file tokenparser.c.

◆ YY_BUFFER_STATE

Definition at line 172 of file tokenparser.c.

◆ YY_CHAR

Definition at line 357 of file tokenparser.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 177 of file tokenparser.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 361 of file tokenparser.c.

Function Documentation

◆ bundleParse()

int bundleParse ( const char fileName,
list_t l 
)

Parse a Info.plist file and file a list.

Parameters
fileNamefile name
llist containing the results
Return values
-1configuration file not found
0OK

Definition at line 1948 of file tokenparser.c.

◆ bundleRelease()

void bundleRelease ( list_t l)

Free the list created by bundleParse()

Parameters
llist containing the results

Definition at line 2006 of file tokenparser.c.

◆ eval_key()

static void eval_key ( char pcToken,
list_t list_key 
)
static

Definition at line 1825 of file tokenparser.c.

◆ eval_value()

static void eval_value ( char pcToken,
list_t list_values 
)
static

Definition at line 1858 of file tokenparser.c.

◆ if()

if ( yy_init)

Definition at line 743 of file tokenparser.c.

◆ LTPBundleFindValueWithKey()

int LTPBundleFindValueWithKey ( list_t l,
const char key,
list_t **  values 
)

Find an optional key in a configuration file No error is logged if the key is not found.

Parameters
llist generated by bundleParse()
keysearched key
[out]valueslist of token value (if key found)
Return values
0OK
1key not found

Definition at line 1917 of file tokenparser.c.

◆ tp_create_buffer()

YY_BUFFER_STATE tp_create_buffer ( FILE file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 1330 of file tokenparser.c.

◆ tp_delete_buffer()

void tp_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with tp_create_buffer()

Definition at line 1358 of file tokenparser.c.

◆ tp_flush_buffer()

void tp_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters.

On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 1409 of file tokenparser.c.

◆ tp_init_buffer()

static void tp_init_buffer ( YY_BUFFER_STATE  b,
FILE file 
)
static

Definition at line 1381 of file tokenparser.c.

◆ tp_load_buffer_state()

static void tp_load_buffer_state ( void  )
static

Definition at line 1316 of file tokenparser.c.

◆ tp_scan_buffer()

YY_BUFFER_STATE tp_scan_buffer ( char base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 1536 of file tokenparser.c.

◆ tp_scan_bytes()

YY_BUFFER_STATE tp_scan_bytes ( yyconst char yybytes,
yy_size_t  _yybytes_len 
)

Setup the input buffer state to scan the given bytes.

The next call to tplex() will scan from a copy of bytes.

Parameters
bytesthe byte buffer to scan
lenthe number of bytes in the buffer pointed to by bytes.
Returns
the newly allocated buffer state object.

Definition at line 1586 of file tokenparser.c.

◆ tp_scan_string()

YY_BUFFER_STATE tp_scan_string ( yyconst char yystr)

Setup the input buffer state to scan a string.

The next call to tplex() will scan from a copy of str.

Parameters
yystra NUL-terminated string to scan
Returns
the newly allocated buffer state object.
Note
If you want to scan bytes that may contain NUL values, then use tp_scan_bytes() instead.

Definition at line 1573 of file tokenparser.c.

◆ tp_switch_to_buffer()

void tp_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1285 of file tokenparser.c.

◆ tpalloc()

void * tpalloc ( yy_size_t  size)

Definition at line 1796 of file tokenparser.c.

◆ tpensure_buffer_stack()

static void tpensure_buffer_stack ( void  )
static

Definition at line 1487 of file tokenparser.c.

◆ tperrorCheck()

void tperrorCheck ( char pcToken_error)

Definition at line 1902 of file tokenparser.c.

◆ tpfree()

void tpfree ( void ptr)

Definition at line 1813 of file tokenparser.c.

◆ tpget_debug()

int tpget_debug ( void  )

Definition at line 1712 of file tokenparser.c.

◆ tpget_in()

FILE * tpget_in ( void  )

Get the input stream.

Definition at line 1656 of file tokenparser.c.

◆ tpget_leng()

yy_size_t tpget_leng ( void  )

Get the length of the current token.

Definition at line 1672 of file tokenparser.c.

◆ tpget_lineno()

int tpget_lineno ( void  )

Get the current line number.

Definition at line 1647 of file tokenparser.c.

◆ tpget_out()

FILE * tpget_out ( void  )

Get the output stream.

Definition at line 1664 of file tokenparser.c.

◆ tpget_text()

char * tpget_text ( void  )

Get the current token.

Definition at line 1681 of file tokenparser.c.

◆ tplex_destroy()

int tplex_destroy ( void  )

Definition at line 1751 of file tokenparser.c.

◆ tppop_buffer_state()

void tppop_buffer_state ( void  )

Removes and deletes the top of the stack, if present.

The next element becomes the new top.

Definition at line 1468 of file tokenparser.c.

◆ tppush_buffer_state()

void tppush_buffer_state ( YY_BUFFER_STATE  new_buffer)

Pushes the new state onto the stack.

The new state becomes the current state. This function will allocate the stack if necessary.

Parameters
new_bufferThe new state.

Definition at line 1438 of file tokenparser.c.

◆ tprealloc()

void * tprealloc ( void ptr,
yy_size_t  size 
)

Definition at line 1801 of file tokenparser.c.

◆ tprestart()

void tprestart ( FILE input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 1268 of file tokenparser.c.

◆ tpset_debug()

void tpset_debug ( int  debug_flag)

Definition at line 1717 of file tokenparser.c.

◆ tpset_in()

void tpset_in ( FILE in_str)

Set the input stream.

This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
tp_switch_to_buffer

Definition at line 1702 of file tokenparser.c.

◆ tpset_lineno()

void tpset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 1690 of file tokenparser.c.

◆ tpset_out()

void tpset_out ( FILE out_str)

Definition at line 1707 of file tokenparser.c.

◆ while()

while ( )

Definition at line 769 of file tokenparser.c.

◆ yy_fatal_error()

static void yy_fatal_error ( yyconst char msg)
static

Definition at line 1619 of file tokenparser.c.

◆ yy_get_next_buffer()

static int yy_get_next_buffer ( void  )
static

Definition at line 1000 of file tokenparser.c.

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( void  )
static

Definition at line 1134 of file tokenparser.c.

◆ yy_init_globals()

static int yy_init_globals ( void  )
static

Definition at line 1722 of file tokenparser.c.

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

Definition at line 1166 of file tokenparser.c.

Variable Documentation

◆ ListKeys

list_t* ListKeys
static

Definition at line 554 of file tokenparser.c.

◆ ListValues

list_t* ListValues
static

Definition at line 555 of file tokenparser.c.

◆ tp_flex_debug

int tp_flex_debug = 0

Definition at line 486 of file tokenparser.c.

◆ tpin

FILE * tpin = (FILE *) 0

Definition at line 359 of file tokenparser.c.

◆ tpleng

yy_size_t tpleng

Definition at line 294 of file tokenparser.c.

◆ tplineno

int tplineno = 1

Definition at line 365 of file tokenparser.c.

◆ tpout

FILE * tpout = (FILE *) 0

Definition at line 182 of file tokenparser.c.

◆ tptext

char * tptext

Definition at line 495 of file tokenparser.c.

◆ yy_accept

yyconst 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 394 of file tokenparser.c.

◆ yy_act

register int yy_act

Definition at line 736 of file tokenparser.c.

◆ yy_base

yyconst flex_int16_t yy_base[43]
static
Initial value:
=
{ 0,
0, 6, 54, 55, 55, 55, 0, 0, 0, 42,
34, 32, 34, 41, 35, 0, 32, 39, 33, 39,
35, 28, 0, 30, 33, 20, 11, 30, 4, 55,
5, 8, 12, 13, 15, 22, 19, 55, 30, 33,
3, 35
}

Definition at line 440 of file tokenparser.c.

◆ yy_bp

register char * yy_bp

Definition at line 735 of file tokenparser.c.

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = 0
static

Stack as an array.

Definition at line 274 of file tokenparser.c.

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 273 of file tokenparser.c.

◆ yy_buffer_stack_top

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 272 of file tokenparser.c.

◆ yy_c_buf_p

char* yy_c_buf_p = (char *) 0
static

Definition at line 297 of file tokenparser.c.

◆ yy_chk

yyconst flex_int16_t yy_chk[75]
static
Initial value:
=
{ 0,
0, 1, 1, 1, 41, 0, 1, 2, 2, 2,
29, 31, 2, 8, 32, 27, 8, 27, 33, 34,
29, 35, 31, 32, 33, 37, 35, 34, 36, 36,
39, 39, 39, 40, 40, 42, 42, 28, 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
}

Definition at line 470 of file tokenparser.c.

◆ yy_cp

register char* yy_cp

Definition at line 735 of file tokenparser.c.

◆ YY_DECL

YY_DECL
Initial value:
{
register yy_state_type yy_current_state

The main scanner function which does all the work.

Definition at line 732 of file tokenparser.c.

◆ yy_def

yyconst 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, 42, 38, 42, 38,
42, 42, 42, 42, 42, 42, 42, 0, 38, 38,
38, 38
}

Definition at line 449 of file tokenparser.c.

◆ yy_did_buffer_switch_on_eof

int yy_did_buffer_switch_on_eof
static

Definition at line 304 of file tokenparser.c.

◆ yy_ec

yyconst flex_int32_t yy_ec[256]
static

Definition at line 402 of file tokenparser.c.

◆ yy_hold_char

char yy_hold_char
static

Definition at line 292 of file tokenparser.c.

◆ yy_init

int yy_init = 0
static

Definition at line 298 of file tokenparser.c.

◆ yy_last_accepting_cpos

char* yy_last_accepting_cpos
static

Definition at line 483 of file tokenparser.c.

◆ yy_last_accepting_state

yy_state_type yy_last_accepting_state
static

Definition at line 482 of file tokenparser.c.

◆ yy_meta

yyconst flex_int32_t yy_meta[20]
static
Initial value:
=
{ 0,
1, 2, 3, 1, 1, 2, 1, 1, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2
}

Definition at line 434 of file tokenparser.c.

◆ yy_n_chars

yy_size_t yy_n_chars
static

Definition at line 293 of file tokenparser.c.

◆ yy_nxt

yyconst flex_int16_t yy_nxt[75]
static
Initial value:
=
{ 0,
38, 5, 6, 7, 18, 38, 8, 5, 6, 7,
27, 27, 8, 10, 27, 29, 11, 27, 27, 27,
31, 27, 32, 33, 34, 27, 36, 35, 27, 37,
4, 4, 4, 9, 9, 25, 25, 30, 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
}

Definition at line 458 of file tokenparser.c.

◆ yy_start

int yy_start = 0
static

Definition at line 299 of file tokenparser.c.