CUBRID Engine  latest
esql_misc.c File Reference
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include "chartype.h"
#include "util_func.h"
#include "misc_string.h"
#include "memory_alloc.h"
#include "intl_support.h"
#include "esql_misc.h"
#include "esql_translate.h"
Include dependency graph for esql_misc.c:

Go to the source code of this file.

Classes

struct  generic
 

Typedefs

typedef struct generic GENERIC
 

Functions

static void tr_prelude (void)
 
static void grow_ptr_vec (PTR_VEC *vec)
 
unsigned int pp_generic_case_hash (void *p)
 
unsigned int pp_generic_hash (void *p)
 
int pp_generic_case_cmp (void *p1, void *p2)
 
int pp_generic_cmp (void *p1, void *p2)
 
void pp_startup (void)
 
void pp_finish (void)
 
PTR_VECpp_new_ptr_vec (PTR_VEC *vec)
 
void pp_free_ptr_vec (PTR_VEC *vec)
 
PTR_VECpp_add_ptr (PTR_VEC *vec, void *new_elem)
 
int pp_ptr_vec_n_elems (PTR_VEC *vec)
 
void ** pp_ptr_vec_elems (PTR_VEC *vec)
 
void * pp_malloc (int n)
 
char * pp_strdup (const char *str)
 

Variables

FILE * esql_yyout
 
varstring pp_subscript_buf
 
varstring pp_host_var_buf
 

Typedef Documentation

typedef struct generic GENERIC

Definition at line 50 of file esql_misc.c.

Function Documentation

static void grow_ptr_vec ( PTR_VEC vec)
static

Definition at line 260 of file esql_misc.c.

References ptr_vec::chunk_size, ptr_vec::elems, esql_yyverror(), EX_MISC_SET, ptr_vec::inline_elems, ptr_vec::max_elems, MSG_OUT_OF_MEMORY, ptr_vec::n_elems, NULL, pp_get_msg(), and pp_malloc().

Referenced by pp_add_ptr().

Here is the caller graph for this function:

PTR_VEC* pp_add_ptr ( PTR_VEC vec,
void *  new_elem 
)

Definition at line 294 of file esql_misc.c.

References ptr_vec::elems, grow_ptr_vec(), ptr_vec::max_elems, ptr_vec::n_elems, and NULL.

void pp_finish ( void  )
void pp_free_ptr_vec ( PTR_VEC vec)
int pp_generic_case_cmp ( void *  p1,
void *  p2 
)

Definition at line 115 of file esql_misc.c.

References intl_mbs_casecmp(), and generic::name.

Referenced by pp_cursor_init().

Here is the caller graph for this function:

unsigned int pp_generic_case_hash ( void *  p)

Definition at line 70 of file esql_misc.c.

References char_tolower(), hashpjw(), i, and generic::name.

Referenced by pp_cursor_init().

Here is the caller graph for this function:

int pp_generic_cmp ( void *  p1,
void *  p2 
)

Definition at line 132 of file esql_misc.c.

References generic::name.

Referenced by pp_new_symtab().

Here is the caller graph for this function:

unsigned int pp_generic_hash ( void *  p)

Definition at line 99 of file esql_misc.c.

References hashpjw(), and generic::name.

Referenced by pp_new_symtab().

Here is the caller graph for this function:

void* pp_malloc ( int  n)
void** pp_ptr_vec_elems ( PTR_VEC vec)

Definition at line 335 of file esql_misc.c.

References ptr_vec::elems, ptr_vec::n_elems, and NULL.

int pp_ptr_vec_n_elems ( PTR_VEC vec)

Definition at line 316 of file esql_misc.c.

References ptr_vec::n_elems, and NULL.

char* pp_strdup ( const char *  str)

Definition at line 372 of file esql_misc.c.

References NULL, pp_malloc(), and strlen.

Referenced by es_write_log(), pp_check_type(), pp_clone_type(), and pp_new_pseudo_def().

Here is the caller graph for this function:

static void tr_prelude ( void  )
static

Definition at line 180 of file esql_misc.c.

References esql_yyout, pp_include_file, and pp_varchar2.

Referenced by pp_startup().

Here is the caller graph for this function:

Variable Documentation

FILE* esql_yyout

Referenced by pp_finish(), pp_startup(), and tr_prelude().

varstring pp_host_var_buf

Definition at line 58 of file esql_misc.c.

varstring pp_subscript_buf

Definition at line 57 of file esql_misc.c.