return number;
}
-static IISQLDA *INGgetDescriptor(short numCols, const char *query)
+static inline IISQLDA *INGgetDescriptor(short numCols, const char *query)
{
EXEC SQL BEGIN DECLARE SECTION;
char *stmt;
sqlda = NULL;
}
-static int INGgetTypeSize(IISQLVAR *ingvar)
+static inline int INGgetTypeSize(IISQLVAR *ingvar)
{
int inglength = 0;
return inglength;
}
-static INGresult *INGgetINGresult(IISQLDA *sqlda)
+static inline INGresult *INGgetINGresult(IISQLDA *sqlda)
{
if (!sqlda) {
return NULL;
ing_res = NULL;
}
-static ING_ROW *INGgetRowSpace(INGresult *ing_res)
+static inline ING_ROW *INGgetRowSpace(INGresult *ing_res)
{
int i;
unsigned short len; /* used for VARCHAR type length */
return row;
}
-static void INGfreeRowSpace(ING_ROW *row, IISQLDA *sqlda)
+static inline void INGfreeRowSpace(ING_ROW *row, IISQLDA *sqlda)
{
int i;
free(row);
}
-static int INGfetchAll(const char *query, INGresult *ing_res)
+static inline int INGfetchAll(const char *query, INGresult *ing_res)
{
int linecount = 0;
ING_ROW *row;
return linecount;
}
-static ING_STATUS INGresultStatus(INGresult *res)
+static inline ING_STATUS INGresultStatus(INGresult *res)
{
- if (res == NULL) {return ING_NO_RESULT;}
- return res->status;
+ if (res == NULL) {
+ return ING_NO_RESULT;
+ } else {
+ return res->status;
+ }
}
static void INGrowSeek(INGresult *res, int row_number)