From 1eb201800f5b063ab7bd9b86927ac37661b852e9 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 14 Mar 2025 00:11:35 +0800 Subject: [PATCH] Fix nullable usage again --- lmdb/cursor.ha | 2 +- lmdb/env.ha | 2 +- lmdb/txn.ha | 2 +- diff --git a/lmdb/cursor.ha b/lmdb/cursor.ha index 8328a95e180a7aa21ffa1aa47daf3efac72e41e7..f4d583f5ff3af37bab9201fd8db5fa8dc47dee06 100644 --- a/lmdb/cursor.ha +++ b/lmdb/cursor.ha @@ -17,7 +17,7 @@ // - txn: A transaction handle returned by [[txn_begin]] // - dbi: A database handle returned by [[dbi_open]] // - cursor: Address where the new [[cursor]] handle will be stored // - return: EINVAL on failure and 0 on success. -export @symbol("mdb_cursor_open") fn cursor_open(txn: *txn, dbi: *dbi, cursor: nullable **cursor) int; +export @symbol("mdb_cursor_open") fn cursor_open(txn: *txn, dbi: *dbi, cursor: *nullable *cursor) int; // Close a cursor handle. // diff --git a/lmdb/env.ha b/lmdb/env.ha index b68d2844ff5e19ad1f1c78c46294505a98f84f73..c236dd7d2d53291b0cf0e18ad6ead9fafd541e14 100644 --- a/lmdb/env.ha +++ b/lmdb/env.ha @@ -13,7 +13,7 @@ // Parameters: // - env: The address where the new handle will be stored // // Return value: A non-zero error value on failure and 0 on success. -export @symbol("mdb_env_create") fn env_create(env: nullable **env) int; +export @symbol("mdb_env_create") fn env_create(env: *nullable *env) int; // Open an environment handle. // diff --git a/lmdb/txn.ha b/lmdb/txn.ha index 01ef45811dcc21bff5aad93ff6d737685b4a4397..6310d83e1060b86ba482316390014a9cc0510fc3 100644 --- a/lmdb/txn.ha +++ b/lmdb/txn.ha @@ -34,7 +34,7 @@ // - See [[env_set_mapsize]]. // - [[READERS_FULL]] - a read-only transaction was requested and // - the reader lock table is full. See [[env_set_maxreaders]]. // - ENOMEM - out of memory. -export @symbol("mdb_txn_begin") fn txn_begin(env: *env, parent: *txn, flags: uint, txn: nullable **txn) int; +export @symbol("mdb_txn_begin") fn txn_begin(env: *env, parent: nullable *txn, flags: uint, txn: *nullable *txn) int; // Commit all the operations of a transaction into the database. // -- 2.48.1