GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-5c00b4e944
macros.h File Reference

Go to the source code of this file.

Macros

#define DB_RETURN_ERR   return(db_get_error_code());
 
#define DB_START_PROCEDURE_CALL(x)    {if(db__start_procedure_call(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_RETURN_CODE(x)    {if(db__recv_return_code(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_SUCCESS()    {if(db__send_success()!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_FAILURE()    {if(db__send_failure()!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_STRING(x)    {if(db__send_string(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_STRING_ARRAY(x, n)    {if(db__send_string_array(x,n)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_C_STRING(x)    {if(db__send_Cstring(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_STRING(x)    {if(db__recv_string(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_STRING_ARRAY(x, n)    {if(db__recv_string_array(x,n)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_CHAR(x)    {if(db__send_char(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_CHAR(x)    {if(db__recv_char(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_SHORT(x)    {if(db__send_short(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_SHORT(x)    {if(db__recv_short(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_SHORT_ARRAY(x, n)    {if(db__send_short_array(x,n)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_SHORT_ARRAY(x, n)    {if(db__recv_short_array(x,n)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_INT(x)    {if(db__send_int(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_INT(x)    {if(db__recv_int(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_FLOAT(x)    {if(db__send_float(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_FLOAT(x)    {if(db__recv_float(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_DOUBLE(x)    {if(db__send_double(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_DOUBLE(x)    {if(db__recv_double(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_DATETIME(x)    {if(db__send_datetime(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_DATETIME(x)    {if(db__recv_datetime(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_HANDLE(x)    {if(db__send_handle(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_HANDLE(x)    {if(db__recv_handle(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_TABLE_DEFINITION(x)    {if(db__send_table_definition(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_TABLE_DEFINITION(x)    {if(db__recv_table_definition(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_TABLE_DATA(x)    {if(db__send_table_data(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_TABLE_DATA(x)    {if(db__recv_table_data(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_TABLE_PRIV(x)    {if(db__send_table_priv(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_TABLE_PRIV(x)    {if(db__recv_table_priv(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_COLUMN_PRIVS(x)    {if(db__send_column_privs(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_COLUMN_PRIVS(x)    {if(db__recv_column_privs(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_COLUMN_DEFINITION(x)    {if(db__send_column_definition(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_COLUMN_DEFINITION(x)    {if(db__recv_column_definition(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_COLUMN_VALUE(x)    {if(db__send_column_value(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_COLUMN_VALUE(x)    {if(db__recv_column_value(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_COLUMN_DEFAULT_VALUE(x)    {if(db__send_column_default_value(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_COLUMN_DEFAULT_VALUE(x)    {if(db__recv_column_default_value(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_TOKEN(x)    {if(db__send_token(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_TOKEN(x)    {if(db__recv_token(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_INDEX(x)    {if(db__send_index(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_INDEX_ARRAY(x, n)    {if(db__send_index_array(x,n)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_INDEX(x)    {if(db__recv_index(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_INDEX_ARRAY(x, n)    {if(db__recv_index_array(x,n)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_FK(x)    {if(db__send_fk(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_SEND_FK_ARRAY(x, n)    {if(db__send_fk_array(x,n)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_FK(x)    {if(db__recv_fk(x)!=DB_OK) DB_RETURN_ERR}
 
#define DB_RECV_FK_ARRAY(x, n)    {if(db__recv_fk_array(x,n)!=DB_OK) DB_RETURN_ERR}
 

Macro Definition Documentation

◆ DB_RECV_CHAR

#define DB_RECV_CHAR (   x)     {if(db__recv_char(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 25 of file macros.h.

◆ DB_RECV_COLUMN_DEFAULT_VALUE

#define DB_RECV_COLUMN_DEFAULT_VALUE (   x)     {if(db__recv_column_default_value(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 94 of file macros.h.

◆ DB_RECV_COLUMN_DEFINITION

#define DB_RECV_COLUMN_DEFINITION (   x)     {if(db__recv_column_definition(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 84 of file macros.h.

◆ DB_RECV_COLUMN_PRIVS

#define DB_RECV_COLUMN_PRIVS (   x)     {if(db__recv_column_privs(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 79 of file macros.h.

◆ DB_RECV_COLUMN_VALUE

#define DB_RECV_COLUMN_VALUE (   x)     {if(db__recv_column_value(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 89 of file macros.h.

◆ DB_RECV_DATETIME

#define DB_RECV_DATETIME (   x)     {if(db__recv_datetime(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 54 of file macros.h.

◆ DB_RECV_DOUBLE

#define DB_RECV_DOUBLE (   x)     {if(db__recv_double(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 49 of file macros.h.

◆ DB_RECV_FK

#define DB_RECV_FK (   x)     {if(db__recv_fk(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 115 of file macros.h.

◆ DB_RECV_FK_ARRAY

#define DB_RECV_FK_ARRAY (   x,
 
)     {if(db__recv_fk_array(x,n)!=DB_OK) DB_RETURN_ERR}

Definition at line 117 of file macros.h.

◆ DB_RECV_FLOAT

#define DB_RECV_FLOAT (   x)     {if(db__recv_float(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 44 of file macros.h.

◆ DB_RECV_HANDLE

#define DB_RECV_HANDLE (   x)     {if(db__recv_handle(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 59 of file macros.h.

◆ DB_RECV_INDEX

#define DB_RECV_INDEX (   x)     {if(db__recv_index(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 106 of file macros.h.

◆ DB_RECV_INDEX_ARRAY

#define DB_RECV_INDEX_ARRAY (   x,
 
)     {if(db__recv_index_array(x,n)!=DB_OK) DB_RETURN_ERR}

Definition at line 108 of file macros.h.

◆ DB_RECV_INT

#define DB_RECV_INT (   x)     {if(db__recv_int(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 39 of file macros.h.

◆ DB_RECV_RETURN_CODE

#define DB_RECV_RETURN_CODE (   x)     {if(db__recv_return_code(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 4 of file macros.h.

◆ DB_RECV_SHORT

#define DB_RECV_SHORT (   x)     {if(db__recv_short(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 30 of file macros.h.

◆ DB_RECV_SHORT_ARRAY

#define DB_RECV_SHORT_ARRAY (   x,
 
)     {if(db__recv_short_array(x,n)!=DB_OK) DB_RETURN_ERR}

Definition at line 34 of file macros.h.

◆ DB_RECV_STRING

#define DB_RECV_STRING (   x)     {if(db__recv_string(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 18 of file macros.h.

◆ DB_RECV_STRING_ARRAY

#define DB_RECV_STRING_ARRAY (   x,
 
)     {if(db__recv_string_array(x,n)!=DB_OK) DB_RETURN_ERR}

Definition at line 20 of file macros.h.

◆ DB_RECV_TABLE_DATA

#define DB_RECV_TABLE_DATA (   x)     {if(db__recv_table_data(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 69 of file macros.h.

◆ DB_RECV_TABLE_DEFINITION

#define DB_RECV_TABLE_DEFINITION (   x)     {if(db__recv_table_definition(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 64 of file macros.h.

◆ DB_RECV_TABLE_PRIV

#define DB_RECV_TABLE_PRIV (   x)     {if(db__recv_table_priv(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 74 of file macros.h.

◆ DB_RECV_TOKEN

#define DB_RECV_TOKEN (   x)     {if(db__recv_token(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 99 of file macros.h.

◆ DB_RETURN_ERR

#define DB_RETURN_ERR   return(db_get_error_code());

Definition at line 1 of file macros.h.

◆ DB_SEND_C_STRING

#define DB_SEND_C_STRING (   x)     {if(db__send_Cstring(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 16 of file macros.h.

◆ DB_SEND_CHAR

#define DB_SEND_CHAR (   x)     {if(db__send_char(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 23 of file macros.h.

◆ DB_SEND_COLUMN_DEFAULT_VALUE

#define DB_SEND_COLUMN_DEFAULT_VALUE (   x)     {if(db__send_column_default_value(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 92 of file macros.h.

◆ DB_SEND_COLUMN_DEFINITION

#define DB_SEND_COLUMN_DEFINITION (   x)     {if(db__send_column_definition(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 82 of file macros.h.

◆ DB_SEND_COLUMN_PRIVS

#define DB_SEND_COLUMN_PRIVS (   x)     {if(db__send_column_privs(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 77 of file macros.h.

◆ DB_SEND_COLUMN_VALUE

#define DB_SEND_COLUMN_VALUE (   x)     {if(db__send_column_value(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 87 of file macros.h.

◆ DB_SEND_DATETIME

#define DB_SEND_DATETIME (   x)     {if(db__send_datetime(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 52 of file macros.h.

◆ DB_SEND_DOUBLE

#define DB_SEND_DOUBLE (   x)     {if(db__send_double(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 47 of file macros.h.

◆ DB_SEND_FAILURE

#define DB_SEND_FAILURE ( )     {if(db__send_failure()!=DB_OK) DB_RETURN_ERR}

Definition at line 9 of file macros.h.

◆ DB_SEND_FK

#define DB_SEND_FK (   x)     {if(db__send_fk(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 111 of file macros.h.

◆ DB_SEND_FK_ARRAY

#define DB_SEND_FK_ARRAY (   x,
 
)     {if(db__send_fk_array(x,n)!=DB_OK) DB_RETURN_ERR}

Definition at line 113 of file macros.h.

◆ DB_SEND_FLOAT

#define DB_SEND_FLOAT (   x)     {if(db__send_float(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 42 of file macros.h.

◆ DB_SEND_HANDLE

#define DB_SEND_HANDLE (   x)     {if(db__send_handle(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 57 of file macros.h.

◆ DB_SEND_INDEX

#define DB_SEND_INDEX (   x)     {if(db__send_index(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 102 of file macros.h.

◆ DB_SEND_INDEX_ARRAY

#define DB_SEND_INDEX_ARRAY (   x,
 
)     {if(db__send_index_array(x,n)!=DB_OK) DB_RETURN_ERR}

Definition at line 104 of file macros.h.

◆ DB_SEND_INT

#define DB_SEND_INT (   x)     {if(db__send_int(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 37 of file macros.h.

◆ DB_SEND_SHORT

#define DB_SEND_SHORT (   x)     {if(db__send_short(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 28 of file macros.h.

◆ DB_SEND_SHORT_ARRAY

#define DB_SEND_SHORT_ARRAY (   x,
 
)     {if(db__send_short_array(x,n)!=DB_OK) DB_RETURN_ERR}

Definition at line 32 of file macros.h.

◆ DB_SEND_STRING

#define DB_SEND_STRING (   x)     {if(db__send_string(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 12 of file macros.h.

◆ DB_SEND_STRING_ARRAY

#define DB_SEND_STRING_ARRAY (   x,
 
)     {if(db__send_string_array(x,n)!=DB_OK) DB_RETURN_ERR}

Definition at line 14 of file macros.h.

◆ DB_SEND_SUCCESS

#define DB_SEND_SUCCESS ( )     {if(db__send_success()!=DB_OK) DB_RETURN_ERR}

Definition at line 7 of file macros.h.

◆ DB_SEND_TABLE_DATA

#define DB_SEND_TABLE_DATA (   x)     {if(db__send_table_data(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 67 of file macros.h.

◆ DB_SEND_TABLE_DEFINITION

#define DB_SEND_TABLE_DEFINITION (   x)     {if(db__send_table_definition(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 62 of file macros.h.

◆ DB_SEND_TABLE_PRIV

#define DB_SEND_TABLE_PRIV (   x)     {if(db__send_table_priv(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 72 of file macros.h.

◆ DB_SEND_TOKEN

#define DB_SEND_TOKEN (   x)     {if(db__send_token(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 97 of file macros.h.

◆ DB_START_PROCEDURE_CALL

#define DB_START_PROCEDURE_CALL (   x)     {if(db__start_procedure_call(x)!=DB_OK) DB_RETURN_ERR}

Definition at line 2 of file macros.h.