![]() |
|
|
Bdb packages | Design docs | Source docs | Guidelines | Recent releases |
|
Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members /BdbIndexing/BdbSqlScaner.h File Reference
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
Compounds
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 26 #define YY_END_OF_BUFFER 27 #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 YY_INPUT(buf, result, max_size) #define ALLOC(x, s, t) #define BCOPY(from, to, size) memcpy(to, from, size) #define NEWSTR(from, to) #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_BREAK break; #define YY_RULE_SETUP YY_USER_ACTION #define YY_EXIT_FAILURE 2 #define yyless(n) Typedefs
typedef yy_buffer_state * YY_BUFFER_STATE typedef unsigned int yy_size_t typedef unsigned char YY_CHAR typedef int yy_state_type Functions
void yyrestart () void yy_switch_to_buffer () void yy_load_buffer_state () YY_BUFFER_STATE yy_create_buffer () void yy_delete_buffer () void yy_init_buffer () void yy_flush_buffer () YY_BUFFER_STATE yy_scan_buffer () YY_BUFFER_STATE yy_scan_string () YY_BUFFER_STATE yy_scan_bytes () void * yy_flex_alloc () void * yy_flex_realloc () void yy_flex_free () yy_state_type yy_get_previous_state () yy_state_type yy_try_NUL_trans () int yy_get_next_buffer () void yy_fatal_error () void init_sql_string (char *string) int yywrap () void yyunput () int input () int yylex () yy_state_type yy_try_NUL_trans (yy_current_state) yy_state_type yy_current_state void yy_init_buffer (b, file) YY_BUFFER_STATE b Variables
int yyleng FILE * yyin = (FILE *) 0 FILE * yyout = (FILE *) 0 YY_BUFFER_STATE yy_current_buffer = 0 char yy_hold_char int yy_n_chars char * yy_c_buf_p = (char *) 0 int yy_init = 1 int yy_start = 0 int yy_did_buffer_switch_on_eof char * yytext short int yy_accept [81] int yy_ec [256] int yy_meta [34] short int yy_base [82] short int yy_def [82] short int yy_nxt [133] short int yy_chk [133] yy_state_type yy_last_accepting_state char * yy_last_accepting_cpos char * sql_string int sql_string_next register char * yy_bp int size FILE * file int len Define Documentation
#define ALLOC ( x, s, t )
Value:
Memory allocation and strings manipulation macros.do { \ x = (t) calloc(1, (s)) ; \ if ( x == (t) 0 ) { \ fprintf(stderr, "SQL_SCANER: calloc() failed.\n"); \ exit(1) ; \ } \ } while(0)Definition at line 455 of file BdbSqlScaner.h.
#define BCOPY ( from, to, size ) memcpy(to, from, size)
Definition at line 467 of file BdbSqlScaner.h.
#define BEGIN yy_start = 1 + 2 *
Definition at line 79 of file BdbSqlScaner.h.
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
Definition at line 557 of file BdbSqlScaner.h.
Referenced by yylex().
#define EOB_ACT_CONTINUE_SCAN 0
Definition at line 104 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer(), and yylex().
#define EOB_ACT_END_OF_FILE 1
Definition at line 105 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer(), and yylex().
#define EOB_ACT_LAST_MATCH 2
Definition at line 106 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer(), and yylex().
#define FLEX_SCANNER
Definition at line 7 of file BdbSqlScaner.h.
#define INITIAL 0
Definition at line 415 of file BdbSqlScaner.h.
Referenced by yylex().
#define NEWSTR ( from, to )
Value:
do { \ int len = strlen(from) ; \ ALLOC(to, len+1, unsigned char*) ; \ BCOPY(from, to, len+1) ; \ } while(0)Definition at line 470 of file BdbSqlScaner.h.
Referenced by yylex().
#define REJECT reject_used_but_not_detected
Definition at line 409 of file BdbSqlScaner.h.
#define unput ( c ) yyunput( c, yytext_ptr )
Definition at line 135 of file BdbSqlScaner.h.
#define YY_AT_BOL ( ) (yy_current_buffer->yy_at_bol)
Definition at line 262 of file BdbSqlScaner.h.
#define YY_BREAK break;
Definition at line 616 of file BdbSqlScaner.h.
Referenced by yylex().
#define YY_BUF_SIZE 16384
Definition at line 97 of file BdbSqlScaner.h.
Referenced by yylex().
#define YY_BUFFER_EOF_PENDING 2
Definition at line 198 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer().
#define YY_BUFFER_NEW 0
Definition at line 186 of file BdbSqlScaner.h.
Referenced by yylex().
#define YY_BUFFER_NORMAL 1
Definition at line 187 of file BdbSqlScaner.h.
Referenced by yylex().
#define YY_CURRENT_BUFFER yy_current_buffer
Definition at line 207 of file BdbSqlScaner.h.
#define YY_DECL int yylex YY_PROTO(( void ))
Definition at line 604 of file BdbSqlScaner.h.
Referenced by yylex().
#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 278 of file BdbSqlScaner.h.
Referenced by yylex().
#define YY_END_OF_BUFFER 27
Definition at line 286 of file BdbSqlScaner.h.
Referenced by yylex().
#define YY_END_OF_BUFFER_CHAR 0
Definition at line 94 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer().
#define YY_EXIT_FAILURE 2
#define YY_FATAL_ERROR ( msg ) yy_fatal_error( msg )
Definition at line 597 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer(), and yylex().
#define YY_FLEX_MAJOR_VERSION 2
Definition at line 8 of file BdbSqlScaner.h.
#define YY_FLEX_MINOR_VERSION 5
Definition at line 9 of file BdbSqlScaner.h.
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
Definition at line 236 of file BdbSqlScaner.h.
#define YY_INPUT ( buf, result, max_size )
Value:
Take scaner's input from the string.{ \ int c = sql_string[sql_string_next++] ; \ if ( ! c ) { \ result = YY_NULL ; \ } else { \ result = 1 ; \ buf[0] = c ; \ } \ }Definition at line 440 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer().
#define YY_MORE_ADJ 0
Definition at line 411 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer(), yy_get_previous_state(), and yylex().
#define yy_new_buffer yy_create_buffer
Definition at line 246 of file BdbSqlScaner.h.
#define YY_NEW_FILE yyrestart( yyin )
Definition at line 92 of file BdbSqlScaner.h.
Referenced by yylex().
#define YY_NO_POP_STATE 1
Definition at line 527 of file BdbSqlScaner.h.
#define YY_NO_PUSH_STATE 1
Definition at line 526 of file BdbSqlScaner.h.
#define YY_NO_TOP_STATE 1
Definition at line 528 of file BdbSqlScaner.h.
#define YY_NULL 0
Definition at line 66 of file BdbSqlScaner.h.
#define YY_NUM_RULES 26
Definition at line 285 of file BdbSqlScaner.h.
#define YY_PROTO ( proto ) ()
Definition at line 62 of file BdbSqlScaner.h.
#define YY_READ_BUF_SIZE 8192
Definition at line 548 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer().
#define YY_RESTORE_YY_MORE_OFFSET
Definition at line 412 of file BdbSqlScaner.h.
Referenced by yylex().
#define YY_RULE_SETUP YY_USER_ACTION
Definition at line 619 of file BdbSqlScaner.h.
Referenced by yylex().
#define YY_SC_TO_UI ( c ) ((unsigned int) (unsigned char) c)
Definition at line 73 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
#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 255 of file BdbSqlScaner.h.
#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 248 of file BdbSqlScaner.h.
#define YY_START ((yy_start - 1) / 2)
Definition at line 85 of file BdbSqlScaner.h.
Referenced by yylex().
#define YY_START_STACK_INCR 25
Definition at line 592 of file BdbSqlScaner.h.
#define YY_STATE_EOF ( state ) (YY_END_OF_BUFFER + state + 1)
Definition at line 89 of file BdbSqlScaner.h.
Referenced by yylex().
#define yyconst
Definition at line 55 of file BdbSqlScaner.h.
#define yyless ( n )
Value:
do \ { \ \ 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 BdbSqlScaner.h.
#define yyless ( n )
Value:
do \ { \ \ *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; \ } \ while ( 0 )Definition at line 124 of file BdbSqlScaner.h.
#define yymore ( ) yymore_used_but_not_detected
Definition at line 410 of file BdbSqlScaner.h.
#define YYSTATE YY_START
Definition at line 86 of file BdbSqlScaner.h.
#define yyterminate ( ) return YY_NULL
Definition at line 587 of file BdbSqlScaner.h.
Referenced by yylex().
#define yytext_ptr yytext
Definition at line 268 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer(), yy_get_previous_state(), and yylex().
Typedef Documentation
typedef struct yy_buffer_state* YY_BUFFER_STATE
Definition at line 99 of file BdbSqlScaner.h.
typedef unsigned char YY_CHAR
Definition at line 264 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
typedef unsigned int yy_size_t
Definition at line 141 of file BdbSqlScaner.h.
typedef int yy_state_type
Definition at line 266 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
Function Documentation
void init_sql_string ( char * string )
Initialize the scaner's input string.
Definition at line 429 of file BdbSqlScaner.h.
References sql_string, and sql_string_next.
int input ( ) [static]
Referenced by BdbCmdBootNameMgmt::confirm(), BdbCmdDbIdAllocation::confirm(), and confirm().
YY_BUFFER_STATE yy_create_buffer ( )
Referenced by yylex().
void yy_delete_buffer ( )
void yy_fatal_error ( ) [static]
void* yy_flex_alloc ( ) [static]
void yy_flex_free ( ) [static]
void* yy_flex_realloc ( ) [static]
Referenced by yy_get_next_buffer().
void yy_flush_buffer ( )
int yy_get_next_buffer ( ) [static]
yy_state_type yy_get_previous_state ( ) [static]
Definition at line 1153 of file BdbSqlScaner.h.
References yy_accept, yy_base, yy_c_buf_p, YY_CHAR, yy_chk, yy_def, yy_ec, yy_last_accepting_cpos, yy_last_accepting_state, yy_meta, YY_MORE_ADJ, yy_nxt, YY_SC_TO_UI, yy_start, yy_state_type, and yytext_ptr.
Referenced by yylex().
void yy_init_buffer ( b , file )
void yy_init_buffer ( )
void yy_load_buffer_state ( )
Referenced by yylex().
YY_BUFFER_STATE yy_scan_buffer ( )
YY_BUFFER_STATE yy_scan_bytes ( )
YY_BUFFER_STATE yy_scan_string ( )
void yy_switch_to_buffer ( )
yy_state_type yy_try_NUL_trans ( yy_current_state ) [static]
yy_state_type yy_try_NUL_trans ( ) [static]
Referenced by yylex().
int yylex ( )
void yyrestart ( )
Referenced by yy_get_next_buffer().
void yyunput ( ) [static]
int yywrap ( )
Referenced by yylex().
Variable Documentation
FILE* file
int len
yy_size_t size
char* sql_string [static]
Definition at line 421 of file BdbSqlScaner.h.
Referenced by init_sql_string().
int sql_string_next [static]
Definition at line 422 of file BdbSqlScaner.h.
Referenced by init_sql_string().
short int yy_accept[81] [static]
Initial value:
{ 0, 0, 0, 27, 26, 21, 11, 19, 20, 26, 25, 22, 17, 14, 15, 25, 25, 25, 25, 25, 25, 25, 25, 25, 13, 9, 21, 0, 0, 22, 25, 23, 24, 18, 16, 25, 25, 25, 25, 25, 25, 12, 25, 25, 23, 23, 10, 25, 25, 25, 25, 8, 25, 25, 25, 25, 6, 5, 25, 25, 25, 25, 25, 7, 25, 25, 1, 25, 2, 25, 0, 0, 0, 0, 0, 0, 0, 4, 0, 3, 0 }Definition at line 287 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
short int yy_base[82] [static]
Initial value:
{ 0, 0, 0, 98, 99, 95, 99, 99, 99, 28, 88, 30, 85, 99, 84, 70, 0, 12, 66, 68, 66, 63, 72, 69, 99, 99, 84, 34, 77, 37, 0, 76, 75, 99, 99, 67, 53, 64, 55, 50, 49, 0, 55, 59, 66, 65, 0, 53, 57, 48, 45, 0, 52, 41, 44, 36, 0, 0, 50, 47, 50, 33, 32, 0, 31, 42, 0, 41, 0, 50, 29, 26, 24, 31, 32, 29, 35, 99, 28, 99, 99, 45 }Definition at line 339 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
register char* yy_bp
Definition at line 1222 of file BdbSqlScaner.h.
Referenced by yylex().
char* yy_c_buf_p = (char *) 0 [static]
Definition at line 219 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer(), yy_get_previous_state(), and yylex().
short int yy_chk[133] [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, 1, 1, 1, 1, 9, 9, 9, 11, 11, 17, 27, 27, 27, 17, 29, 29, 70, 81, 78, 76, 75, 74, 73, 72, 70, 71, 69, 67, 65, 64, 62, 61, 60, 59, 58, 55, 54, 53, 52, 50, 49, 48, 47, 45, 44, 43, 42, 40, 39, 38, 37, 36, 35, 32, 31, 28, 26, 23, 22, 21, 20, 19, 18, 15, 14, 12, 10, 5, 3, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80 }Definition at line 384 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
YY_BUFFER_STATE yy_current_buffer = 0 [static]
Definition at line 201 of file BdbSqlScaner.h.
short int yy_def[82] [static]
Initial value:
{ 0, 80, 1, 80, 80, 80, 80, 80, 80, 80, 81, 80, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 80, 80, 80, 80, 80, 80, 81, 81, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 80, 80, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 0, 80 }Definition at line 352 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
int yy_did_buffer_switch_on_eof [static]
Definition at line 226 of file BdbSqlScaner.h.
Referenced by yylex().
int yy_ec[256] [static]
Definition at line 299 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
char yy_hold_char [static]
Definition at line 211 of file BdbSqlScaner.h.
Referenced by yylex().
int yy_init = 1 [static]
Definition at line 220 of file BdbSqlScaner.h.
Referenced by yylex().
char* yy_last_accepting_cpos [static]
Definition at line 404 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
yy_state_type yy_last_accepting_state [static]
Definition at line 403 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
int yy_meta[34] [static]
Initial value:
{ 0, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1 }Definition at line 331 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
int yy_n_chars [static]
Definition at line 213 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer(), and yylex().
short int yy_nxt[133] [static]
Initial value:
{ 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 16, 17, 18, 16, 19, 16, 16, 16, 20, 21, 16, 16, 22, 16, 16, 23, 16, 24, 25, 27, 28, 29, 32, 29, 36, 27, 28, 29, 37, 32, 29, 71, 30, 79, 78, 77, 76, 75, 74, 72, 73, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 45, 44, 53, 52, 51, 50, 49, 48, 47, 46, 45, 31, 44, 26, 43, 42, 41, 40, 39, 38, 35, 34, 33, 31, 26, 80, 3, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80 }Definition at line 365 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
int yy_start = 0 [static]
Definition at line 221 of file BdbSqlScaner.h.
Referenced by yy_get_previous_state(), and yylex().
FILE * yyin = (FILE *) 0
Definition at line 265 of file BdbSqlScaner.h.
Referenced by yy_get_next_buffer(), and yylex().
int yyleng
Definition at line 216 of file BdbSqlScaner.h.
FILE * yyout = (FILE *) 0
Definition at line 265 of file BdbSqlScaner.h.
Referenced by yylex().
char * yytext
Definition at line 413 of file BdbSqlScaner.h.
Referenced by yylex().
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002