29 static struct error_state
state;
30 static struct error_state *
st = &
state;
54 G_debug(1,
"db_d_init_error(): %s", name);
56 st->driver_name =
G_malloc(strlen(name) + 1);
57 strcpy(st->driver_name, name);
74 if ((fp = tmpfile())) {
75 count = vfprintf(fp, fmt, ap);
76 if (count >= 0 && (work =
G_calloc(count + 1, 1))) {
78 fread(work, 1, count, fp);
void db_init_string(dbString *)
Initialize dbString.
char * db_get_string(const dbString *)
Get string.
void G_free(void *)
Free allocated memory.
int db_set_string(dbString *, const char *)
Inserts string to dbString (enlarge string)
void db_d_append_error(const char *fmt,...)
Append error message for DB driver.
int db_append_string(dbString *, const char *)
Append string to dbString.
void db_error(const char *)
Report error message.
void db_d_report_error(void)
Report error message for DB driver.
int G_debug(int, const char *,...) __attribute__((format(printf
void db_d_init_error(const char *name)
Init error message for DB driver.