src/sql/dmllex.cxx File Reference

#include <stdio.h>
#include <unistd.h>
#include "dmlyacc.h"
#include <stdlib.h>
#include <string.h>

Include dependency graph for dmllex.cxx:

Go to the source code of this file.

Data Structures

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 YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   17
#define YY_END_OF_BUFFER   18
#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 YYLMAX   8192
#define INITIAL   0
#define ECHO   { if(echo_on) printf("%s",yytext); }
#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 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   int yylex YY_PROTO(( void ))
#define YY_BREAK   break;
#define YY_RULE_SETUP   YY_USER_ACTION
#define YY_EXIT_FAILURE   2
#define yyless(n)

Typedefs

typedef 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))
static void yy_flex_strncpy YY_PROTO ((char *, yyconst char *, int))

Variables

int yyleng
FILE * yyin
FILE * yyout
static YY_BUFFER_STATE yy_current_buffer = 0
static char yy_hold_char
static int yy_n_chars
int yyleng
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
FILE * yyin = (FILE *) 0
FILE * yyout = (FILE *) 0
char yytext []
static yyconst short int yy_accept [64]
static yyconst int yy_ec [256]
static yyconst int yy_meta [22]
static yyconst short int yy_base [73]
static yyconst short int yy_def [73]
static yyconst short int yy_nxt [152]
static yyconst short int yy_chk [152]
static yy_state_type yy_last_accepting_state
static char * yy_last_accepting_cpos
char * yytext_ptr
int echo_on = 0
int lexEof = 0
char * lexInput
register char * yy_bp
int size
FILE * file
yy_size_t size
int len
yyconst char * s2
int n
yy_size_t size


Define Documentation

#define BEGIN   yy_start = 1 + 2 *

Definition at line 79 of file dmllex.cxx.

#define ECHO   { if(echo_on) printf("%s",yytext); }

Definition at line 449 of file dmllex.cxx.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 104 of file dmllex.cxx.

#define EOB_ACT_END_OF_FILE   1

Definition at line 105 of file dmllex.cxx.

#define EOB_ACT_LAST_MATCH   2

Definition at line 106 of file dmllex.cxx.

#define FLEX_SCANNER

Definition at line 7 of file dmllex.cxx.

#define INITIAL   0

Definition at line 423 of file dmllex.cxx.

#define REJECT   reject_used_but_not_detected

Definition at line 412 of file dmllex.cxx.

#define unput (  )     yyunput( c, yytext_ptr )

Definition at line 135 of file dmllex.cxx.

 
#define YY_AT_BOL (  )     (yy_current_buffer->yy_at_bol)

Definition at line 262 of file dmllex.cxx.

#define YY_BREAK   break;

Definition at line 592 of file dmllex.cxx.

#define YY_BUF_SIZE   16384

Definition at line 97 of file dmllex.cxx.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 198 of file dmllex.cxx.

#define YY_BUFFER_NEW   0

Definition at line 186 of file dmllex.cxx.

#define YY_BUFFER_NORMAL   1

Definition at line 187 of file dmllex.cxx.

#define YY_CURRENT_BUFFER   yy_current_buffer

Definition at line 207 of file dmllex.cxx.

#define YY_DECL   int yylex YY_PROTO(( void ))

Definition at line 580 of file dmllex.cxx.

#define YY_DO_BEFORE_ACTION

Value:

yytext_ptr = yy_bp; \
        yyleng = (int) (yy_cp - yy_bp); \
        yy_hold_char = *yy_cp; \
        *yy_cp = '\0'; \
        if ( yyleng >= YYLMAX ) \
                YY_FATAL_ERROR( "token too large, exceeds YYLMAX" ); \
        yy_flex_strncpy( yytext, yytext_ptr, yyleng + 1 ); \
        yy_c_buf_p = yy_cp;

Definition at line 278 of file dmllex.cxx.

#define YY_END_OF_BUFFER   18

Definition at line 289 of file dmllex.cxx.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 94 of file dmllex.cxx.

#define YY_EXIT_FAILURE   2

#define YY_FATAL_ERROR ( msg   )     yy_fatal_error( msg )

Definition at line 573 of file dmllex.cxx.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 8 of file dmllex.cxx.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 9 of file dmllex.cxx.

#define YY_FLUSH_BUFFER   yy_flush_buffer( yy_current_buffer )

Definition at line 236 of file dmllex.cxx.

#define YY_INPUT ( buf,
result,
max_size   ) 

Value:

if ( yy_current_buffer->yy_is_interactive ) \
                { \
                int c = '*', 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 if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
                  && ferror( yyin ) ) \
                YY_FATAL_ERROR( "input in flex scanner failed" );

Definition at line 540 of file dmllex.cxx.

#define YY_MORE_ADJ   0

Definition at line 414 of file dmllex.cxx.

#define yy_new_buffer   yy_create_buffer

Definition at line 246 of file dmllex.cxx.

#define YY_NEW_FILE   yyrestart( yyin )

Definition at line 92 of file dmllex.cxx.

#define YY_NO_POP_STATE   1

Definition at line 503 of file dmllex.cxx.

#define YY_NO_PUSH_STATE   1

Definition at line 502 of file dmllex.cxx.

#define YY_NO_TOP_STATE   1

Definition at line 504 of file dmllex.cxx.

#define YY_NULL   0

Definition at line 66 of file dmllex.cxx.

#define YY_NUM_RULES   17

Definition at line 288 of file dmllex.cxx.

#define YY_PROTO ( proto   )     ()

Definition at line 62 of file dmllex.cxx.

#define YY_READ_BUF_SIZE   8192

Definition at line 524 of file dmllex.cxx.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 415 of file dmllex.cxx.

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 595 of file dmllex.cxx.

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

Definition at line 73 of file dmllex.cxx.

#define yy_set_bol ( at_bol   ) 

Value:

Definition at line 255 of file dmllex.cxx.

#define yy_set_interactive ( is_interactive   ) 

Value:

Definition at line 248 of file dmllex.cxx.

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

Definition at line 85 of file dmllex.cxx.

#define YY_START_STACK_INCR   25

Definition at line 568 of file dmllex.cxx.

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

Definition at line 89 of file dmllex.cxx.

#define yyconst

Definition at line 55 of file dmllex.cxx.

#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 124 of file dmllex.cxx.

#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 124 of file dmllex.cxx.

#define YYLMAX   8192

Definition at line 417 of file dmllex.cxx.

 
#define yymore (  )     yymore_used_but_not_detected

Definition at line 413 of file dmllex.cxx.

#define YYSTATE   YY_START

Definition at line 86 of file dmllex.cxx.

 
#define yyterminate (  )     return YY_NULL

Definition at line 563 of file dmllex.cxx.


Typedef Documentation

typedef struct yy_buffer_state* YY_BUFFER_STATE

Definition at line 99 of file dmllex.cxx.

typedef unsigned char YY_CHAR

Definition at line 264 of file dmllex.cxx.

typedef unsigned int yy_size_t

Definition at line 141 of file dmllex.cxx.

typedef int yy_state_type

Definition at line 266 of file dmllex.cxx.


Function Documentation

static void yy_flex_strncpy YY_PROTO ( (char *, yyconst char *, int)   )  [static]

static void yyunput YY_PROTO ( (int c, char *buf_ptr)   )  [static]

static void yy_fatal_error YY_PROTO ( (yyconst char msg[])   )  [static]

static yy_state_type yy_try_NUL_trans YY_PROTO ( (yy_state_type current_state)   )  [static]

static void yy_flex_free YY_PROTO ( (void *)   )  [static]

static void* yy_flex_realloc YY_PROTO ( (void *, yy_size_t  )  [static]

static void* yy_flex_alloc YY_PROTO ( (yy_size_t  )  [static]

YY_BUFFER_STATE yy_scan_bytes YY_PROTO ( (yyconst char *bytes, int len  ) 

YY_BUFFER_STATE yy_scan_string YY_PROTO ( (yyconst char *yy_str)   ) 

YY_BUFFER_STATE yy_scan_buffer YY_PROTO ( (char *base, yy_size_t size  ) 

void yy_init_buffer YY_PROTO ( (YY_BUFFER_STATE b, FILE *file  ) 

void yy_flush_buffer YY_PROTO ( (YY_BUFFER_STATE b)   ) 

YY_BUFFER_STATE yy_create_buffer YY_PROTO ( (FILE *file, int size  ) 

static int input YY_PROTO ( (void)   ) 

void yy_switch_to_buffer YY_PROTO ( (YY_BUFFER_STATE new_buffer)   ) 

void yyrestart YY_PROTO ( (FILE *input_file)   ) 


Variable Documentation

int echo_on = 0

Definition at line 444 of file dmllex.cxx.

FILE* file

Definition at line 1426 of file dmllex.cxx.

Referenced by main(), and Logger::startLogger().

int len

Definition at line 1543 of file dmllex.cxx.

Referenced by UDPClient::connect(), TCPClient::connect(), SqlOdbcConnection::connect(), UDPClient::receive(), and TCPClient::receive().

int lexEof = 0

Definition at line 445 of file dmllex.cxx.

Referenced by yyerror().

char* lexInput

Definition at line 24 of file SqlStatement.cxx.

Referenced by SqlStatement::prepare().

int n

Definition at line 1688 of file dmllex.cxx.

yyconst char* s2

Definition at line 1654 of file dmllex.cxx.

yy_size_t size

Definition at line 1718 of file dmllex.cxx.

yy_size_t size

Definition at line 1474 of file dmllex.cxx.

int size

Definition at line 1337 of file dmllex.cxx.

Referenced by CSqlOdbcDescList::freeAllDesc(), and DatabaseManagerImpl::openDatabase().

yyconst short int yy_accept[64] [static]

Initial value:

    {   0,
        0,    0,   18,   16,   11,   11,   16,   16,   12,   16,
        9,   16,   16,    5,   16,    6,    1,    1,    1,   10,
        5,    5,   11,    1,    0,    4,   12,    0,    3,    0,
        6,   14,    5,    5,    0,   13,    7,    6,    8,    8,
        5,    0,    2,    7,    0,   14,    5,    0,    0,    0,
       13,    7,    0,    7,    7,    5,    0,    0,   15,    0,
        0,   15,    0
    }

Definition at line 290 of file dmllex.cxx.

yyconst short int yy_base[73] [static]

Initial value:

    {   0,
        0,    0,  129,  130,   20,   22,  112,  122,    0,  118,
      130,   14,   18,  111,   18,   21,   20,  130,  103,  130,
       22,    0,   36,  130,  106,  130,    0,   96,   42,   86,
       34,    0,    0,   33,   42,    0,   38,    0,   42,   53,
       45,   57,  130,   51,   64,    0,   66,   86,   70,   72,
        0,   68,   80,   70,   72,   56,   78,   83,  130,   84,
       56,   55,  130,   97,  101,  104,   45,   38,  108,  112,
      116,  120
    }

Definition at line 340 of file dmllex.cxx.

register char* yy_bp

Definition at line 1189 of file dmllex.cxx.

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

Definition at line 219 of file dmllex.cxx.

yyconst short int yy_chk[152] [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,    5,    5,    6,    6,   12,   15,   12,   13,   13,
       15,   13,   16,   21,   16,   17,   17,   23,   23,   16,
       16,   68,   21,   29,   29,   31,   34,   31,   67,   29,
       35,   37,   34,   31,   35,   39,   41,   37,   42,   42,
       39,   39,   40,   40,   44,   41,   40,   62,   61,   56,
       44,   40,   40,   45,   45,   47,   47,   45,   49,   47,
       50,   52,   49,   54,   50,   55,   57,   52,   54,   54,
       57,   58,   60,   53,   48,   58,   60,   64,   64,   30,

       64,   65,   65,   28,   65,   66,   66,   66,   69,   69,
       25,   69,   70,   70,   70,   70,   71,   71,   19,   71,
       72,   72,   72,   72,   14,   10,    8,    7,    3,   63,
       63,   63,   63,   63,   63,   63,   63,   63,   63,   63,
       63,   63,   63,   63,   63,   63,   63,   63,   63,   63,
       63
    }

Definition at line 385 of file dmllex.cxx.

YY_BUFFER_STATE yy_current_buffer = 0 [static]

Definition at line 201 of file dmllex.cxx.

yyconst short int yy_def[73] [static]

Initial value:

    {   0,
       63,    1,   63,   63,   63,   63,   63,   64,   65,   66,
       63,   63,   63,   67,   63,   63,   63,   63,   63,   63,
       68,   67,   63,   63,   64,   63,   65,   66,   63,   63,
       63,   69,   67,   67,   70,   71,   63,   16,   63,   63,
       68,   63,   63,   63,   63,   69,   67,   70,   72,   70,
       71,   63,   63,   63,   63,   67,   70,   70,   63,   70,
       63,   63,    0,   63,   63,   63,   63,   63,   63,   63,
       63,   63
    }

Definition at line 352 of file dmllex.cxx.

int yy_did_buffer_switch_on_eof [static]

Definition at line 226 of file dmllex.cxx.

yyconst int yy_ec[256] [static]

Definition at line 301 of file dmllex.cxx.

char yy_hold_char [static]

Definition at line 211 of file dmllex.cxx.

int yy_init = 1 [static]

Definition at line 220 of file dmllex.cxx.

char* yy_last_accepting_cpos [static]

Definition at line 407 of file dmllex.cxx.

yy_state_type yy_last_accepting_state [static]

Definition at line 406 of file dmllex.cxx.

yyconst int yy_meta[22] [static]

Initial value:

    {   0,
        1,    2,    3,    2,    2,    2,    2,    2,    2,    2,
        2,    4,    2,    4,    2,    2,    2,    2,    4,    4,
        4
    }

Definition at line 333 of file dmllex.cxx.

int yy_n_chars [static]

Definition at line 213 of file dmllex.cxx.

yyconst short int yy_nxt[152] [static]

Initial value:

    {   0,
        4,    5,    6,    7,    8,    9,    4,   10,   11,   12,
       13,   14,   15,   16,   17,   18,   19,   20,   21,   21,
       22,   23,   23,   23,   23,   30,   35,   31,   32,   30,
       36,   31,   37,   33,   38,   24,   24,   23,   23,   39,
       40,   41,   33,   42,   43,   37,   34,   31,   33,   28,
       49,   52,   47,   45,   50,   39,   33,   45,   42,   43,
       39,   39,   53,   53,   44,   33,   54,   57,   57,   56,
       45,   39,   39,   53,   53,   53,   53,   55,   58,   56,
       49,   52,   59,   54,   60,   55,   49,   45,   39,   39,
       61,   49,   49,   55,   49,   62,   60,   25,   25,   44,

       25,   27,   27,   29,   27,   28,   28,   28,   46,   46,
       26,   46,   48,   48,   48,   48,   51,   51,   24,   51,
       57,   57,   57,   57,   34,   29,   26,   24,   63,    3,
       63,   63,   63,   63,   63,   63,   63,   63,   63,   63,
       63,   63,   63,   63,   63,   63,   63,   63,   63,   63,
       63
    }

Definition at line 364 of file dmllex.cxx.

int yy_start = 0 [static]

Definition at line 221 of file dmllex.cxx.

FILE* yyin = (FILE *) 0

Definition at line 265 of file dmllex.cxx.

FILE* yyin

Definition at line 265 of file dmllex.cxx.

int yyleng

Definition at line 216 of file dmllex.cxx.

int yyleng

Definition at line 216 of file dmllex.cxx.

FILE * yyout = (FILE *) 0

Definition at line 265 of file dmllex.cxx.

FILE * yyout

Definition at line 265 of file dmllex.cxx.

char yytext[YYLMAX]

Definition at line 420 of file dmllex.cxx.

char* yytext_ptr

Definition at line 421 of file dmllex.cxx.


Generated on Mon Jun 9 22:42:02 2008 for csql by  doxygen 1.4.7