return rc;
}
-static inline void
+static void
mdb_txn_reset0(MDB_txn *txn);
/** Common code for #mdb_txn_begin() and #mdb_txn_renew().
* fail for read-only transactions, and then only if the
* reader table is full.
*/
-static inline int
+static int
mdb_txn_renew0(MDB_txn *txn)
{
MDB_env *env = txn->mt_env;
/** Common code for #mdb_txn_reset() and #mdb_txn_abort().
* @param[in] txn the transaction handle to reset
*/
-static inline void
+static void
mdb_txn_reset0(MDB_txn *txn)
{
MDB_env *env = txn->mt_env;
* NOTE: To use the recommended 64 bit FNV-1a hash, use MDB_HASH_INIT as the
* hval arg on the first call.
*/
-static inline mdb_hash_t
+static mdb_hash_t
mdb_hash_str(char *str, mdb_hash_t hval)
{
unsigned char *s = (unsigned char *)str; /* unsigned string */
#define SWAP(a,b) { itmp=(a); (a)=(b); (b)=itmp; }
void
-mdb_midl_sort( ID *ids )
+mdb_midl_sort( IDL ids )
{
/* Max possible depth of int-indexed tree * 2 items/level */
int istack[sizeof(int)*CHAR_BIT * 2];
/** Append an ID onto an IDL.
* @param[in,out] idp Address of the IDL to append to.
* @param[in] id The ID to append.
- * @return 0 on success, -2 if the IDL is too large.
+ * @return 0 on success, -1 if the IDL is too large.
*/
int mdb_midl_append( IDL *idp, ID id );