macros.h

Go to the documentation of this file.
00001 #define DB_RETURN_ERR return(db_get_error_code());
00002 #define DB_START_PROCEDURE_CALL(x) \
00003         {if(db__start_procedure_call(x)!=DB_OK) DB_RETURN_ERR}
00004 #define DB_RECV_RETURN_CODE(x) \
00005         {if(db__recv_return_code(x)!=DB_OK) DB_RETURN_ERR}
00006 
00007 #define DB_SEND_SUCCESS() \
00008         {if(db__send_success()!=DB_OK) DB_RETURN_ERR}
00009 #define DB_SEND_FAILURE() \
00010         {if(db__send_failure()!=DB_OK) DB_RETURN_ERR}
00011 
00012 #define DB_SEND_STRING(x) \
00013         {if(db__send_string(x)!=DB_OK) DB_RETURN_ERR}
00014 #define DB_SEND_STRING_ARRAY(x,n) \
00015         {if(db__send_string_array(x,n)!=DB_OK) DB_RETURN_ERR}
00016 #define DB_SEND_C_STRING(x) \
00017         {if(db__send_Cstring(x)!=DB_OK) DB_RETURN_ERR}
00018 #define DB_RECV_STRING(x) \
00019         {if(db__recv_string(x)!=DB_OK) DB_RETURN_ERR}
00020 #define DB_RECV_STRING_ARRAY(x,n) \
00021         {if(db__recv_string_array(x,n)!=DB_OK) DB_RETURN_ERR}
00022 
00023 #define DB_SEND_CHAR(x) \
00024         {if(db__send_char(x)!=DB_OK) DB_RETURN_ERR}
00025 #define DB_RECV_CHAR(x) \
00026         {if(db__recv_char(x)!=DB_OK) DB_RETURN_ERR}
00027 
00028 #define DB_SEND_SHORT(x) \
00029         {if(db__send_short(x)!=DB_OK) DB_RETURN_ERR}
00030 #define DB_RECV_SHORT(x) \
00031         {if(db__recv_short(x)!=DB_OK) DB_RETURN_ERR}
00032 #define DB_SEND_SHORT_ARRAY(x,n) \
00033         {if(db__send_short_array(x,n)!=DB_OK) DB_RETURN_ERR}
00034 #define DB_RECV_SHORT_ARRAY(x,n) \
00035         {if(db__recv_short_array(x,n)!=DB_OK) DB_RETURN_ERR}
00036 
00037 #define DB_SEND_INT(x) \
00038         {if(db__send_int(x)!=DB_OK) DB_RETURN_ERR}
00039 #define DB_RECV_INT(x) \
00040         {if(db__recv_int(x)!=DB_OK) DB_RETURN_ERR}
00041 
00042 #define DB_SEND_FLOAT(x) \
00043         {if(db__send_float(x)!=DB_OK) DB_RETURN_ERR}
00044 #define DB_RECV_FLOAT(x) \
00045         {if(db__recv_float(x)!=DB_OK) DB_RETURN_ERR}
00046 
00047 #define DB_SEND_DOUBLE(x) \
00048         {if(db__send_double(x)!=DB_OK) DB_RETURN_ERR}
00049 #define DB_RECV_DOUBLE(x) \
00050         {if(db__recv_double(x)!=DB_OK) DB_RETURN_ERR}
00051 
00052 #define DB_SEND_DATETIME(x) \
00053         {if(db__send_datetime(x)!=DB_OK) DB_RETURN_ERR}
00054 #define DB_RECV_DATETIME(x) \
00055         {if(db__recv_datetime(x)!=DB_OK) DB_RETURN_ERR}
00056 
00057 #define DB_SEND_HANDLE(x) \
00058         {if(db__send_handle(x)!=DB_OK) DB_RETURN_ERR}
00059 #define DB_RECV_HANDLE(x) \
00060         {if(db__recv_handle(x)!=DB_OK) DB_RETURN_ERR}
00061 
00062 #define DB_SEND_TABLE_DEFINITION(x) \
00063         {if(db__send_table_definition(x)!=DB_OK) DB_RETURN_ERR}
00064 #define DB_RECV_TABLE_DEFINITION(x) \
00065         {if(db__recv_table_definition(x)!=DB_OK) DB_RETURN_ERR}
00066 
00067 #define DB_SEND_TABLE_DATA(x) \
00068         {if(db__send_table_data(x)!=DB_OK) DB_RETURN_ERR}
00069 #define DB_RECV_TABLE_DATA(x) \
00070         {if(db__recv_table_data(x)!=DB_OK) DB_RETURN_ERR}
00071 
00072 #define DB_SEND_TABLE_PRIV(x) \
00073         {if(db__send_table_priv(x)!=DB_OK) DB_RETURN_ERR}
00074 #define DB_RECV_TABLE_PRIV(x) \
00075         {if(db__recv_table_priv(x)!=DB_OK) DB_RETURN_ERR}
00076 
00077 #define DB_SEND_COLUMN_PRIVS(x) \
00078         {if(db__send_column_privs(x)!=DB_OK) DB_RETURN_ERR}
00079 #define DB_RECV_COLUMN_PRIVS(x) \
00080         {if(db__recv_column_privs(x)!=DB_OK) DB_RETURN_ERR}
00081 
00082 #define DB_SEND_COLUMN_DEFINITION(x) \
00083         {if(db__send_column_definition(x)!=DB_OK) DB_RETURN_ERR}
00084 #define DB_RECV_COLUMN_DEFINITION(x) \
00085         {if(db__recv_column_definition(x)!=DB_OK) DB_RETURN_ERR}
00086 
00087 #define DB_SEND_COLUMN_VALUE(x) \
00088         {if(db__send_column_value(x)!=DB_OK) DB_RETURN_ERR}
00089 #define DB_RECV_COLUMN_VALUE(x) \
00090         {if(db__recv_column_value(x)!=DB_OK) DB_RETURN_ERR}
00091 
00092 #define DB_SEND_COLUMN_DEFAULT_VALUE(x) \
00093         {if(db__send_column_default_value(x)!=DB_OK) DB_RETURN_ERR}
00094 #define DB_RECV_COLUMN_DEFAULT_VALUE(x) \
00095         {if(db__recv_column_default_value(x)!=DB_OK) DB_RETURN_ERR}
00096 
00097 #define DB_SEND_TOKEN(x) \
00098         {if(db__send_token(x)!=DB_OK) DB_RETURN_ERR}
00099 #define DB_RECV_TOKEN(x) \
00100         {if(db__recv_token(x)!=DB_OK) DB_RETURN_ERR}
00101 
00102 #define DB_SEND_INDEX(x) \
00103         {if(db__send_index(x)!=DB_OK) DB_RETURN_ERR}
00104 #define DB_SEND_INDEX_ARRAY(x,n) \
00105         {if(db__send_index_array(x,n)!=DB_OK) DB_RETURN_ERR}
00106 #define DB_RECV_INDEX(x) \
00107         {if(db__recv_index(x)!=DB_OK) DB_RETURN_ERR}
00108 #define DB_RECV_INDEX_ARRAY(x,n) \
00109         {if(db__recv_index_array(x,n)!=DB_OK) DB_RETURN_ERR}
00110 
00111 #define DB_SEND_FK(x) \
00112         {if(db__send_fk(x)!=DB_OK) DB_RETURN_ERR}
00113 #define DB_SEND_FK_ARRAY(x,n) \
00114         {if(db__send_fk_array(x,n)!=DB_OK) DB_RETURN_ERR}
00115 #define DB_RECV_FK(x) \
00116         {if(db__recv_fk(x)!=DB_OK) DB_RETURN_ERR}
00117 #define DB_RECV_FK_ARRAY(x,n) \
00118         {if(db__recv_fk_array(x,n)!=DB_OK) DB_RETURN_ERR}

Generated on Sun Apr 6 17:31:38 2008 for GRASS by  doxygen 1.5.5