|
CUBRID Engine
latest
|

Go to the source code of this file.
Enumerations | |
| enum | { MSG_REDEFINITION = 1, MSG_STMT_TITLE = 2, MSG_TABLE_TITLE = 3 } |
Functions | |
| static void | pp_print_cursor (void *cp, void *fp) |
| CURSOR * | pp_new_cursor (char *name, char *static_stmt, int length, STMT *dynamic_stmt, HOST_LOD *host_refs) |
| void | pp_free_cursor (CURSOR *cursor) |
| CURSOR * | pp_lookup_cursor (char *name) |
| void | pp_cursor_init (void) |
| void | pp_cursor_finish (void) |
| void | pp_print_cursors (FILE *fp) |
| void | pp_remove_cursors_from_table (CURSOR *chain) |
| void | pp_discard_cursor_chain (CURSOR *chain) |
| STMT * | pp_new_stmt (char *name) |
| void | pp_free_stmt (STMT *stmt) |
Variables | |
| static HASH_TAB * | pp_cursor_table |
| static HASH_TAB * | pp_stmt_table |
| static int | next_cid = 0 |
| anonymous enum |
| Enumerator | |
|---|---|
| MSG_REDEFINITION | |
| MSG_STMT_TITLE | |
| MSG_TABLE_TITLE | |
Definition at line 32 of file esql_cursor.c.
| void pp_cursor_finish | ( | void | ) |
Definition at line 143 of file esql_cursor.c.
References hash_tab_s::free_table, NULL, pp_free_cursor(), and pp_free_stmt().
Referenced by pp_finish().

| void pp_cursor_init | ( | void | ) |
Definition at line 132 of file esql_cursor.c.
References es_ht_make_table(), pp_generic_case_cmp(), and pp_generic_case_hash().
Referenced by pp_startup().

| void pp_discard_cursor_chain | ( | CURSOR * | chain | ) |
Definition at line 239 of file esql_cursor.c.
References cursor::next, NULL, and pp_free_cursor().
Referenced by pp_pop_name_scope().

| void pp_free_cursor | ( | CURSOR * | cursor | ) |
Definition at line 90 of file esql_cursor.c.
References es_ht_free_symbol(), free_and_init, cursor::host_refs, cursor::name, pp_free_host_lod(), and cursor::static_stmt.
Referenced by pp_cursor_finish(), and pp_discard_cursor_chain().

| void pp_free_stmt | ( | STMT * | stmt | ) |
Definition at line 292 of file esql_cursor.c.
References es_ht_free_symbol(), free_and_init, stmt::name, and NULL.
Referenced by pp_cursor_finish().

| CURSOR* pp_lookup_cursor | ( | char * | name | ) |
Definition at line 118 of file esql_cursor.c.
References hash_tab_s::find_symbol, and cursor::name.
Referenced by pp_new_cursor().

| CURSOR* pp_new_cursor | ( | char * | name, |
| char * | static_stmt, | ||
| int | length, | ||
| STMT * | dynamic_stmt, | ||
| HOST_LOD * | host_refs | ||
| ) |
Definition at line 56 of file esql_cursor.c.
References hash_tab_s::add_symbol, cursor::cid, cursor::dynamic_stmt, es_ht_alloc_new_symbol(), esql_yyverror(), EX_CURSOR_SET, cursor::host_refs, cursor::level, MSG_REDEFINITION, cursor::name, cursor::next, next_cid, NULL, pp_add_cursor_to_scope(), pp_get_msg(), pp_lookup_cursor(), pp_nesting_level, cursor::static_stmt, cursor::stmtLength, and strdup().
| STMT* pp_new_stmt | ( | char * | name | ) |
Definition at line 261 of file esql_cursor.c.
References hash_tab_s::add_symbol, es_ht_alloc_new_symbol(), hash_tab_s::find_symbol, stmt::name, NULL, stmt::sid, and strdup().
|
static |
Definition at line 165 of file esql_cursor.c.
References cursor::cid, cursor::dynamic_stmt, EX_CURSOR_SET, cursor::host_refs, i, cursor::level, MSG_STMT_TITLE, host_lod::n_refs, cursor::name, stmt::name, pp_get_msg(), pp_print_host_ref(), host_lod::refs, and cursor::static_stmt.
Referenced by pp_print_cursors().

| void pp_print_cursors | ( | FILE * | fp | ) |
Definition at line 199 of file esql_cursor.c.
References EX_CURSOR_SET, hash_tab_s::get_symbol_count, MSG_TABLE_TITLE, pp_get_msg(), pp_print_cursor(), and hash_tab_s::print_table.
Referenced by pp_pop_name_scope().

| void pp_remove_cursors_from_table | ( | CURSOR * | chain | ) |
Definition at line 220 of file esql_cursor.c.
References cursor::next, NULL, and hash_tab_s::remove_symbol.
Referenced by pp_pop_name_scope().

|
static |
Definition at line 41 of file esql_cursor.c.
Referenced by pp_new_cursor().
|
static |
Definition at line 39 of file esql_cursor.c.
|
static |
Definition at line 40 of file esql_cursor.c.