grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

d_error.c File Reference

DBMI Library (driver) - error reporting. More...

#include <string.h>
#include <grass/dbmi.h>
#include <grass/glocale.h>
Include dependency graph for d_error.c:

Go to the source code of this file.


struct  error_state


static void init ()
void db_d_init_error (const char *name)
 Init error message for DB driver. More...
void db_d_append_error (const char *fmt,...)
 Append error message for DB driver. More...
void db_d_report_error (void)
 Report error message for DB driver. More...


static struct error_state state
static struct error_statest = &state

Detailed Description

DBMI Library (driver) - error reporting.

Taken from DB drivers.

(C) 1999-2008, 2012 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Joel Jones (CERL/UIUC)
Radim Blazek
Adopted for DBMI by Martin Landa

Definition in file d_error.c.

Function Documentation

◆ db_d_append_error()

void db_d_append_error ( const char *  fmt,

Append error message for DB driver.

fmtformatted message

Definition at line 66 of file d_error.c.

References count, db_append_string(), error_state::errMsg, G_free(), NULL, and st.

Referenced by init().

◆ db_d_init_error()

void db_d_init_error ( const char *  name)

Init error message for DB driver.

Initialize prefix

namedriver name (eg. "SQLite"))

Definition at line 47 of file d_error.c.

References db_init_string(), error_state::driver_name, error_state::errMsg, G_debug(), init(), name, and st.

◆ db_d_report_error()

void db_d_report_error ( void  )

Report error message for DB driver.

Definition at line 90 of file d_error.c.

References db_append_string(), db_error(), db_get_string(), error_state::errMsg, init(), and st.

◆ init()

static void init ( void  )

Variable Documentation

◆ st

◆ state

struct error_state state

Definition at line 29 of file d_error.c.