Added charsmax() define, as a less typo-prone utility for sizeof(array)-1.

Added any: syntax to all variable args that need it, added proper {Float,_}: tags to some that didn't have it but should have.
This commit is contained in:
Steve Dudenhoeffer
2007-05-18 15:20:34 +00:00
parent 65748001f0
commit 66feed1d2b
7 changed files with 14 additions and 12 deletions

View File

@@ -53,13 +53,13 @@ native Sql:dbi_connect(_host[], _user[], _pass[], _dbname[], _error[]="", _maxle
* If greater than zero, make sure to call dbi_free_result() on it!
* The return is a handle to the result set
*/
native Result:dbi_query(Sql:_sql, _query[], {Float,_}:...);
native Result:dbi_query(Sql:_sql, _query[], any:...);
/* Has the same usage as dbi_query, but this native returns by
* reference the number of rows affected in the query. If the
* query fails rows will be equal to -1.
*/
native Result:dbi_query2(Sql:_sql, &rows, _query[], {Float,_}:...);
native Result:dbi_query2(Sql:_sql, &rows, _query[], any:...);
/* Returns 0 on failure or End of Results.
* Advances result pointer by one row.