CUBRID Engine
latest
|
#include <sys/types.h>
Go to the source code of this file.
Classes | |
struct | varstring |
Functions | |
varstring * | vs_new (varstring *vstr) |
void | vs_free (varstring *vstr) |
void | vs_clear (varstring *vstr) |
int | vs_append (varstring *vstr, const char *suffix) |
int | vs_prepend (varstring *vstr, const char *prefix) |
int | vs_sprintf (varstring *vstr, const char *fmt,...) |
int | vs_strcat (varstring *vstr, const char *str) |
int | vs_strcatn (varstring *vstr, const char *str, int length) |
int | vs_strcpy (varstring *vstr, const char *str) |
int | vs_putc (varstring *vstr, int) |
char * | vs_str (varstring *vstr) |
int | vs_strlen (const varstring *vstr) |
Definition at line 295 of file variable_string.c.
References vs_strcat().
Referenced by pp_print_link().
void vs_clear | ( | varstring * | vstr | ) |
Definition at line 274 of file variable_string.c.
References varstring::base, varstring::end, varstring::limit, NULL, PREFIX_CUSHION, and varstring::start.
Referenced by pp_add_host_str(), pp_addr_expr(), pp_print_decl(), pp_print_link(), and vs_strcpy().
void vs_free | ( | varstring * | vstr | ) |
Definition at line 249 of file variable_string.c.
References varstring::base, varstring::heap_allocated, and NULL.
Referenced by pp_finish(), pp_free_host_ref(), pp_free_host_var(), pp_new_pseudo_def(), pp_print_decls(), pp_print_link(), and pp_print_specs().
Definition at line 217 of file variable_string.c.
References ARG_FILE_LINE, varstring::base, varstring::end, ER_ERROR_SEVERITY, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), varstring::heap_allocated, varstring::limit, NULL, and varstring::start.
Referenced by pp_get_addr_expr(), pp_get_expr(), pp_get_ind_addr_expr(), pp_get_ind_expr(), pp_get_input_size(), pp_get_output_size(), pp_get_precision(), pp_new_host_var(), pp_new_pseudo_def(), pp_print_decls(), pp_print_link(), pp_print_specs(), and pp_startup().
Definition at line 309 of file variable_string.c.
References varstring::base, CAST_STRLEN, varstring::end, ER_FAILED, FUDGE, NO_ERROR, NULL, PREFIX_CUSHION, varstring::start, strlen, vs_cannot_hold(), and vs_grow().
Referenced by pp_add_struct_field_refs(), pp_print_decl(), and pp_print_link().
int vs_putc | ( | varstring * | vstr, |
int | |||
) |
Definition at line 478 of file variable_string.c.
References varstring::end, ER_FAILED, FUDGE, NO_ERROR, NULL, vs_cannot_hold(), and vs_grow().
Referenced by pp_translate_string().
Definition at line 376 of file variable_string.c.
References ER_FAILED, NULL, and vs_do_sprintf().
Referenced by pp_addr_expr(), pp_get_input_size(), pp_get_output_size(), pp_get_precision(), pp_new_pseudo_def(), and pp_print_link().
char* vs_str | ( | varstring * | vstr | ) |
Definition at line 502 of file variable_string.c.
References varstring::base, EMPTY_STRING, varstring::end, FUDGE, NULL, varstring::start, vs_cannot_hold(), and vs_grow().
Referenced by pp_add_host_ref(), pp_add_struct_field_refs(), pp_addr_expr(), pp_check(), pp_expr(), pp_get_addr_expr(), pp_get_expr(), pp_get_ind_addr_expr(), pp_get_ind_expr(), pp_get_input_size(), pp_get_output_size(), pp_get_precision(), pp_new_pseudo_def(), pp_print_decls(), pp_print_link(), pp_print_specs(), pp_ptr_deref(), and pp_struct_deref().
Definition at line 400 of file variable_string.c.
References varstring::end, ER_FAILED, FUDGE, NO_ERROR, NULL, strlen, vs_cannot_hold(), and vs_grow().
Referenced by pp_new_host_var(), pp_print_link(), pp_translate_string(), vs_append(), vs_do_sprintf(), vs_itoa(), and vs_strcpy().
Definition at line 435 of file variable_string.c.
References varstring::end, ER_FAILED, FUDGE, NO_ERROR, NULL, vs_cannot_hold(), and vs_grow().
Definition at line 465 of file variable_string.c.
References vs_clear(), and vs_strcat().
Referenced by pp_get_addr_expr(), pp_get_expr(), pp_get_ind_addr_expr(), pp_get_ind_expr(), pp_get_input_size(), pp_get_precision(), pp_print_decl(), and pp_print_link().
Definition at line 530 of file variable_string.c.
References varstring::base, CAST_STRLEN, varstring::end, NULL, and varstring::start.