CUBRID Engine  latest
esql_scanner_support.h File Reference
#include "esql_misc.h"
Include dependency graph for esql_scanner_support.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  scanner_mode_record
 
struct  keyword_rec
 
struct  keyword_table
 

Macros

#define CHECK_LINENO
 

Typedefs

typedef struct scanner_mode_record SCANNER_MODE_RECORD
 
typedef struct keyword_rec KEYWORD_REC
 
typedef struct keyword_table KEYWORD_TABLE
 

Enumerations

enum  scansup_msg { MSG_EMPTY_STACK = 1, MSG_NOT_PERMITTED = 2 }
 
enum  {
  MSG_DONT_KNOW = 1, MSG_CHECK_CORRECTNESS, MSG_USING_NOT_PERMITTED, MSG_CURSOR_UNDEFINED,
  MSG_PTR_TO_DESCR, MSG_PTR_TO_DB_OBJECT, MSG_CHAR_STRING, MSG_INDICATOR_NOT_ALLOWED,
  MSG_NOT_DECLARED, MSG_MUST_BE_SHORT, MSG_INCOMPLETE_DEF, MSG_NOT_VALID,
  MSG_TYPE_NOT_ACCEPTABLE, MSG_UNKNOWN_HV_TYPE, MSG_BAD_ADDRESS, MSG_DEREF_NOT_ALLOWED,
  MSG_NOT_POINTER, MSG_NOT_POINTER_TO_STRUCT, MSG_NOT_STRUCT, MSG_NO_FIELD,
  ESQL_MSG_STD_ERR = 52, ESQL_MSG_LEX_ERROR = 53, ESQL_MSG_SYNTAX_ERR1 = 54, ESQL_MSG_SYNTAX_ERR2 = 55
}
 

Functions

int check_c_identifier (char *name)
 
int check_identifier (KEYWORD_TABLE *keywords, char *name)
 

Variables

static SCANNER_MODE_RECORDmode_stack
 
static enum scanner_mode mode
 
static bool recognize_keywords
 
static bool suppress_echo = false
 

Macro Definition Documentation

#define CHECK_LINENO
Value:
do { \
if (need_line_directive) \
} while (0)
if(extra_options)
Definition: dynamic_load.c:958
void emit_line_directive(void)

Definition at line 32 of file esql_scanner_support.h.

Typedef Documentation

typedef struct keyword_rec KEYWORD_REC

Definition at line 40 of file esql_scanner_support.h.

typedef struct keyword_table KEYWORD_TABLE

Definition at line 39 of file esql_scanner_support.h.

Enumeration Type Documentation

anonymous enum
Enumerator
MSG_DONT_KNOW 
MSG_CHECK_CORRECTNESS 
MSG_USING_NOT_PERMITTED 
MSG_CURSOR_UNDEFINED 
MSG_PTR_TO_DESCR 
MSG_PTR_TO_DB_OBJECT 
MSG_CHAR_STRING 
MSG_INDICATOR_NOT_ALLOWED 
MSG_NOT_DECLARED 
MSG_MUST_BE_SHORT 
MSG_INCOMPLETE_DEF 
MSG_NOT_VALID 
MSG_TYPE_NOT_ACCEPTABLE 
MSG_UNKNOWN_HV_TYPE 
MSG_BAD_ADDRESS 
MSG_DEREF_NOT_ALLOWED 
MSG_NOT_POINTER 
MSG_NOT_POINTER_TO_STRUCT 
MSG_NOT_STRUCT 
MSG_NO_FIELD 
ESQL_MSG_STD_ERR 
ESQL_MSG_LEX_ERROR 
ESQL_MSG_SYNTAX_ERR1 
ESQL_MSG_SYNTAX_ERR2 

Definition at line 56 of file esql_scanner_support.h.

Enumerator
MSG_EMPTY_STACK 
MSG_NOT_PERMITTED 

Definition at line 50 of file esql_scanner_support.h.

Function Documentation

int check_c_identifier ( char *  name)
int check_identifier ( KEYWORD_TABLE keywords,
char *  name 
)

Variable Documentation

SCANNER_MODE_RECORD* mode_stack
static

Definition at line 99 of file esql_scanner_support.h.

bool recognize_keywords
static

Definition at line 101 of file esql_scanner_support.h.

bool suppress_echo = false
static

Definition at line 102 of file esql_scanner_support.h.