PostgreSQL Source Code git master
|
Go to the source code of this file.
Data Structures | |
struct | loc_chunk |
Macros | |
#define | LOC_CHUNK_OVERHEAD MAXALIGN(offsetof(loc_chunk, data)) |
#define | LOC_CHUNK_MIN_SIZE 8192 |
Typedefs | |
typedef struct loc_chunk | loc_chunk |
Functions | |
static void | vmmerror (int error_code, enum errortype type, const char *error, va_list ap) pg_attribute_printf(3 |
void | mmerror (int error_code, enum errortype type, const char *error,...) |
void | mmfatal (int error_code, const char *error,...) |
void * | mm_alloc (size_t size) |
char * | mm_strdup (const char *string) |
void * | loc_alloc (size_t size) |
char * | loc_strdup (const char *string) |
void | reclaim_local_storage (void) |
char * | cat2_str (const char *str1, const char *str2) |
char * | cat_str (int count,...) |
char * | make2_str (const char *str1, const char *str2) |
char * | make3_str (const char *str1, const char *str2, const char *str3) |
Variables | |
static loc_chunk * | loc_chunks = NULL |
char * cat2_str | ( | const char * | str1, |
const char * | str2 | ||
) |
Definition at line 205 of file util.c.
References loc_alloc().
Referenced by cat_str().
char * cat_str | ( | int | count, |
... | |||
) |
Definition at line 220 of file util.c.
References generate_unaccent_rules::args, cat2_str(), i, va_end(), and va_start().
void * loc_alloc | ( | size_t | size | ) |
Definition at line 138 of file util.c.
References loc_chunk::chunk_avail, loc_chunk::chunk_used, loc_chunk::data, data, LOC_CHUNK_MIN_SIZE, LOC_CHUNK_OVERHEAD, loc_chunks, Max, MAXALIGN, mm_alloc(), loc_chunk::next, and size.
Referenced by cat2_str(), hashline_number(), loc_strdup(), make2_str(), make3_str(), and sqlda_variable().
char * loc_strdup | ( | const char * | string | ) |
Definition at line 170 of file util.c.
References loc_alloc().
Referenced by base_yylex_location(), filtered_base_yylex(), process_integer_literal(), and sqlda_variable().
char * make2_str | ( | const char * | str1, |
const char * | str2 | ||
) |
Definition at line 243 of file util.c.
References loc_alloc().
char * make3_str | ( | const char * | str1, |
const char * | str2, | ||
const char * | str3 | ||
) |
Definition at line 256 of file util.c.
References loc_alloc().
Referenced by filtered_base_yylex().
void * mm_alloc | ( | size_t | size | ) |
Definition at line 85 of file util.c.
References malloc, mmfatal(), OUT_OF_MEMORY, and size.
Referenced by add_descriptor(), add_include_path(), add_preprocessor_define(), add_variable_to_head(), add_variable_to_tail(), ECPGdump_a_simple(), ECPGdump_a_struct(), ECPGmake_simple_type(), ECPGmake_struct_member(), isdefine(), isinformixdefine(), lex_init(), loc_alloc(), main(), new_variable(), parse_include(), and push_assignment().
char * mm_strdup | ( | const char * | string | ) |
Definition at line 97 of file util.c.
References mmfatal(), and OUT_OF_MEMORY.
Referenced by add_descriptor(), add_preprocessor_define(), dump_variables(), ECPGdump_a_type(), ECPGmake_simple_type(), ECPGmake_struct_member(), ECPGmake_struct_type(), isdefine(), isinformixdefine(), lookup_descriptor(), main(), new_variable(), output_get_descr(), output_set_descr(), parse_include(), and push_assignment().
void mmerror | ( | int | error_code, |
enum errortype | type, | ||
const char * | error, | ||
... | |||
) |
Definition at line 50 of file util.c.
References error(), type, va_end(), va_start(), and vmmerror().
void mmfatal | ( | int | error_code, |
const char * | error, | ||
... | |||
) |
Definition at line 61 of file util.c.
References _, base_yyin, base_yyout, error(), ET_ERROR, exit(), fprintf, output_filename, va_end(), va_start(), and vmmerror().
Referenced by mm_alloc(), and mm_strdup().
void reclaim_local_storage | ( | void | ) |
Definition at line 182 of file util.c.
References free, loc_chunks, and loc_chunk::next.
|
static |
Definition at line 16 of file util.c.
References _, base_yylineno, error(), ET_ERROR, ET_WARNING, fprintf, input_filename, ret_value, type, and vfprintf().
|
static |
Definition at line 130 of file util.c.
Referenced by loc_alloc(), and reclaim_local_storage().