icedb
version 0.5.1
Snow particle scattering database API
|
#include "../icedb/defs.h"
#include "../icedb/util.h"
#include <string.h>
#include <stdlib.h>
#include "../icedb/error_context.h"
Go to the source code of this file.
Functions | |
struct ICEDB_error_context * | error_context_create_impl (int code, const char *file, int line, const char *fsig) |
struct ICEDB_error_context * | error_context_copy (const struct ICEDB_error_context *c) |
void | error_context_append (struct ICEDB_error_context *c, size_t sz, const char *data) |
void | error_context_append_str (struct ICEDB_error_context *c, const char *data) |
void | error_context_add_string (struct ICEDB_error_context *c, size_t var_sz, const char *var_name, size_t val_sz, const char *var_val) |
void | error_context_add_string2 (struct ICEDB_error_context *c, const char *var_name, const char *var_val) |
void | error_context_widen (struct ICEDB_error_context *c, size_t numNewSpaces) |
void error_context_add_string | ( | struct ICEDB_error_context * | c, |
size_t | var_sz, | ||
const char * | var_name, | ||
size_t | val_sz, | ||
const char * | var_val | ||
) |
Definition at line 87 of file error_context.cpp.
References ICEDB_COMPAT_strdup_s(), ICEDB_error_context_widen, ICEDB_error_context::max_num_var_fields, ICEDB_error_context::num_var_fields, ICEDB_error_context_var_val::val, ICEDB_error_context::var_vals, and ICEDB_error_context_var_val::varname.
void error_context_add_string2 | ( | struct ICEDB_error_context * | c, |
const char * | var_name, | ||
const char * | var_val | ||
) |
Definition at line 97 of file error_context.cpp.
References ICEDB_error_context_add_string.
void error_context_append | ( | struct ICEDB_error_context * | c, |
size_t | sz, | ||
const char * | data | ||
) |
Definition at line 57 of file error_context.cpp.
References ICEDB_COMPAT_strncpy_s(), ICEDB_COMPAT_strnlen_s, ICEDB_free(), ICEDB_malloc(), ICEDB_error_context::message_size, ICEDB_error_context::message_size_alloced, and ICEDB_error_context::message_text.
void error_context_append_str | ( | struct ICEDB_error_context * | c, |
const char * | data | ||
) |
struct ICEDB_error_context* error_context_copy | ( | const struct ICEDB_error_context * | c | ) |
Definition at line 40 of file error_context.cpp.
References ICEDB_error_context::code, ICEDB_COMPAT_strncpy_s(), ICEDB_error_context_add_string2, ICEDB_error_context_create, ICEDB_malloc(), ICEDB_error_context::message_size, ICEDB_error_context::message_size_alloced, ICEDB_error_context::message_text, ICEDB_error_context::num_var_fields, ICEDB_error_context_var_val::val, ICEDB_error_context::var_vals, and ICEDB_error_context_var_val::varname.
struct ICEDB_error_context* error_context_create_impl | ( | int | code, |
const char * | file, | ||
int | line, | ||
const char * | fsig | ||
) |
Definition at line 10 of file error_context.cpp.
References __ICEDB_LOCAL_THREAD_error_context, ICEDB_error_context::code, ICEDB_COMPAT_strncpy_s(), ICEDB_COMPAT_strnlen_s, ICEDB_DEBUG_RAISE_EXCEPTION, ICEDB_error_context_add_string2, ICEDB_error_context_widen, ICEDB_ERRORCODES_MAP, ICEDB_free(), ICEDB_malloc(), ICEDB_error_context::max_num_var_fields, ICEDB_error_context::message_size, ICEDB_error_context::message_size_alloced, ICEDB_error_context::message_text, ICEDB_error_context::num_var_fields, and ICEDB_error_context::var_vals.
void error_context_widen | ( | struct ICEDB_error_context * | c, |
size_t | numNewSpaces | ||
) |
Definition at line 107 of file error_context.cpp.
References ICEDB_COMPAT_strncpy_s(), ICEDB_free(), ICEDB_malloc(), ICEDB_error_context::max_num_var_fields, ICEDB_error_context_var_val::val, ICEDB_error_context::var_vals, and ICEDB_error_context_var_val::varname.