mirror of
https://github.com/MariaDB/server.git
synced 2025-08-27 13:04:36 +03:00
storage/bdb/LICENSE: Import db-4.3.28 storage/bdb/btree/bt_compare.c: Import db-4.3.28 storage/bdb/btree/bt_conv.c: Import db-4.3.28 storage/bdb/btree/bt_curadj.c: Import db-4.3.28 storage/bdb/btree/bt_cursor.c: Import db-4.3.28 storage/bdb/btree/bt_delete.c: Import db-4.3.28 storage/bdb/btree/bt_method.c: Import db-4.3.28 storage/bdb/btree/bt_open.c: Import db-4.3.28 storage/bdb/btree/bt_put.c: Import db-4.3.28 storage/bdb/btree/bt_rec.c: Import db-4.3.28 storage/bdb/btree/bt_reclaim.c: Import db-4.3.28 storage/bdb/btree/bt_recno.c: Import db-4.3.28 storage/bdb/btree/bt_rsearch.c: Import db-4.3.28 storage/bdb/btree/bt_search.c: Import db-4.3.28 storage/bdb/btree/bt_split.c: Import db-4.3.28 storage/bdb/btree/bt_stat.c: Import db-4.3.28 storage/bdb/btree/bt_upgrade.c: Import db-4.3.28 storage/bdb/btree/bt_verify.c: Import db-4.3.28 storage/bdb/btree/btree.src: Import db-4.3.28 storage/bdb/build_win32/Berkeley_DB.dsw: Import db-4.3.28 storage/bdb/build_win32/app_dsp.src: Import db-4.3.28 storage/bdb/build_win32/db_test.src: Import db-4.3.28 storage/bdb/build_win32/dbkill.cpp: Import db-4.3.28 storage/bdb/build_win32/dynamic_dsp.src: Import db-4.3.28 storage/bdb/build_win32/java_dsp.src: Import db-4.3.28 storage/bdb/build_win32/libdb_tcl.def: Import db-4.3.28 storage/bdb/build_win32/libdbrc.src: Import db-4.3.28 storage/bdb/build_win32/static_dsp.src: Import db-4.3.28 storage/bdb/build_win32/tcl_dsp.src: Import db-4.3.28 storage/bdb/clib/getcwd.c: Import db-4.3.28 storage/bdb/clib/getopt.c: Import db-4.3.28 storage/bdb/clib/memcmp.c: Import db-4.3.28 storage/bdb/clib/memmove.c: Import db-4.3.28 storage/bdb/clib/raise.c: Import db-4.3.28 storage/bdb/clib/snprintf.c: Import db-4.3.28 storage/bdb/clib/strcasecmp.c: Import db-4.3.28 storage/bdb/clib/strdup.c: Import db-4.3.28 storage/bdb/clib/strerror.c: Import db-4.3.28 storage/bdb/common/db_byteorder.c: Import db-4.3.28 storage/bdb/common/db_err.c: Import db-4.3.28 storage/bdb/common/db_getlong.c: Import db-4.3.28 storage/bdb/common/db_idspace.c: Import db-4.3.28 storage/bdb/common/db_log2.c: Import db-4.3.28 storage/bdb/common/util_arg.c: Import db-4.3.28 storage/bdb/common/util_cache.c: Import db-4.3.28 storage/bdb/common/util_log.c: Import db-4.3.28 storage/bdb/common/util_sig.c: Import db-4.3.28 storage/bdb/cxx/cxx_db.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_dbc.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_dbt.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_env.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_except.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_lock.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_logc.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_mpool.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_txn.cpp: Import db-4.3.28 storage/bdb/db/crdel.src: Import db-4.3.28 storage/bdb/db/crdel_rec.c: Import db-4.3.28 storage/bdb/db/db.c: Import db-4.3.28 storage/bdb/db/db.src: Import db-4.3.28 storage/bdb/db/db_am.c: Import db-4.3.28 storage/bdb/db/db_cam.c: Import db-4.3.28 storage/bdb/db/db_conv.c: Import db-4.3.28 storage/bdb/db/db_dispatch.c: Import db-4.3.28 storage/bdb/db/db_dup.c: Import db-4.3.28 storage/bdb/db/db_iface.c: Import db-4.3.28 storage/bdb/db/db_join.c: Import db-4.3.28 storage/bdb/db/db_meta.c: Import db-4.3.28 storage/bdb/db/db_method.c: Import db-4.3.28 storage/bdb/db/db_open.c: Import db-4.3.28 storage/bdb/db/db_overflow.c: Import db-4.3.28 storage/bdb/db/db_pr.c: Import db-4.3.28 storage/bdb/db/db_rec.c: Import db-4.3.28 storage/bdb/db/db_reclaim.c: Import db-4.3.28 storage/bdb/db/db_remove.c: Import db-4.3.28 storage/bdb/db/db_rename.c: Import db-4.3.28 storage/bdb/db/db_ret.c: Import db-4.3.28 storage/bdb/db/db_truncate.c: Import db-4.3.28 storage/bdb/db/db_upg.c: Import db-4.3.28 storage/bdb/db/db_upg_opd.c: Import db-4.3.28 storage/bdb/db/db_vrfy.c: Import db-4.3.28 storage/bdb/db/db_vrfyutil.c: Import db-4.3.28 storage/bdb/db185/db185.c: Import db-4.3.28 storage/bdb/db185/db185_int.in: Import db-4.3.28 storage/bdb/db_archive/db_archive.c: Import db-4.3.28 storage/bdb/db_checkpoint/db_checkpoint.c: Import db-4.3.28 storage/bdb/db_deadlock/db_deadlock.c: Import db-4.3.28 storage/bdb/db_dump/db_dump.c: Import db-4.3.28 storage/bdb/db_dump185/db_dump185.c: Import db-4.3.28 storage/bdb/db_load/db_load.c: Import db-4.3.28 storage/bdb/db_printlog/README: Import db-4.3.28 storage/bdb/db_printlog/db_printlog.c: Import db-4.3.28 storage/bdb/db_printlog/dbname.awk: Import db-4.3.28 storage/bdb/db_printlog/rectype.awk: Import db-4.3.28 storage/bdb/db_printlog/status.awk: Import db-4.3.28 storage/bdb/db_recover/db_recover.c: Import db-4.3.28 storage/bdb/db_stat/db_stat.c: Import db-4.3.28 storage/bdb/db_upgrade/db_upgrade.c: Import db-4.3.28 storage/bdb/db_verify/db_verify.c: Import db-4.3.28 storage/bdb/dbinc/btree.h: Import db-4.3.28 storage/bdb/dbinc/crypto.h: Import db-4.3.28 storage/bdb/dbinc/cxx_int.h: Import db-4.3.28 storage/bdb/dbinc/db.in: Import db-4.3.28 storage/bdb/dbinc/db_185.in: Import db-4.3.28 storage/bdb/dbinc/db_am.h: Import db-4.3.28 storage/bdb/dbinc/db_cxx.in: Import db-4.3.28 storage/bdb/dbinc/db_dispatch.h: Import db-4.3.28 storage/bdb/dbinc/db_int.in: Import db-4.3.28 storage/bdb/dbinc/db_join.h: Import db-4.3.28 storage/bdb/dbinc/db_page.h: Import db-4.3.28 storage/bdb/dbinc/db_server_int.h: Import db-4.3.28 storage/bdb/dbinc/db_shash.h: Import db-4.3.28 storage/bdb/dbinc/db_swap.h: Import db-4.3.28 storage/bdb/dbinc/db_upgrade.h: Import db-4.3.28 storage/bdb/dbinc/db_verify.h: Import db-4.3.28 storage/bdb/dbinc/debug.h: Import db-4.3.28 storage/bdb/dbinc/fop.h: Import db-4.3.28 storage/bdb/dbinc/globals.h: Import db-4.3.28 storage/bdb/dbinc/hash.h: Import db-4.3.28 storage/bdb/dbinc/hmac.h: Import db-4.3.28 storage/bdb/dbinc/lock.h: Import db-4.3.28 storage/bdb/dbinc/log.h: Import db-4.3.28 storage/bdb/dbinc/mp.h: Import db-4.3.28 storage/bdb/dbinc/mutex.h: Import db-4.3.28 storage/bdb/dbinc/os.h: Import db-4.3.28 storage/bdb/dbinc/qam.h: Import db-4.3.28 storage/bdb/dbinc/queue.h: Import db-4.3.28 storage/bdb/dbinc/region.h: Import db-4.3.28 storage/bdb/dbinc/rep.h: Import db-4.3.28 storage/bdb/dbinc/shqueue.h: Import db-4.3.28 storage/bdb/dbinc/tcl_db.h: Import db-4.3.28 storage/bdb/dbinc/txn.h: Import db-4.3.28 storage/bdb/dbinc/xa.h: Import db-4.3.28 storage/bdb/dbm/dbm.c: Import db-4.3.28 storage/bdb/dbreg/dbreg.c: Import db-4.3.28 storage/bdb/dbreg/dbreg.src: Import db-4.3.28 storage/bdb/dbreg/dbreg_rec.c: Import db-4.3.28 storage/bdb/dbreg/dbreg_util.c: Import db-4.3.28 storage/bdb/dist/Makefile.in: Import db-4.3.28 storage/bdb/dist/RELEASE: Import db-4.3.28 storage/bdb/dist/aclocal/config.ac: Import db-4.3.28 storage/bdb/dist/aclocal/libtool.ac: Import db-4.3.28 storage/bdb/dist/aclocal/mutex.ac: Import db-4.3.28 storage/bdb/dist/aclocal/options.ac: Import db-4.3.28 storage/bdb/dist/aclocal/programs.ac: Import db-4.3.28 storage/bdb/dist/aclocal/sosuffix.ac: Import db-4.3.28 storage/bdb/dist/aclocal/tcl.ac: Import db-4.3.28 storage/bdb/dist/aclocal/types.ac: Import db-4.3.28 storage/bdb/dist/aclocal_java/ac_jni_include_dirs.ac: Import db-4.3.28 storage/bdb/dist/aclocal_java/ac_prog_java.ac: Import db-4.3.28 storage/bdb/dist/buildrel: Import db-4.3.28 storage/bdb/dist/configure.ac: Import db-4.3.28 storage/bdb/dist/gen_inc.awk: Import db-4.3.28 storage/bdb/dist/gen_rec.awk: Import db-4.3.28 storage/bdb/dist/gen_rpc.awk: Import db-4.3.28 storage/bdb/dist/ltmain.sh: Import db-4.3.28 storage/bdb/dist/pubdef.in: Import db-4.3.28 storage/bdb/dist/srcfiles.in: Import db-4.3.28 storage/bdb/dist/vx_2.0/BerkeleyDB.wpj: Import db-4.3.28 storage/bdb/dist/vx_2.0/wpj.in: Import db-4.3.28 storage/bdb/dist/vx_config.in: Import db-4.3.28 storage/bdb/dist/vx_setup/CONFIG.in: Import db-4.3.28 storage/bdb/dist/vx_setup/LICENSE.TXT: Import db-4.3.28 storage/bdb/dist/vx_setup/vx_allfile.in: Import db-4.3.28 storage/bdb/dist/vx_setup/vx_demofile.in: Import db-4.3.28 storage/bdb/dist/win_config.in: Import db-4.3.28 storage/bdb/dist/win_exports.in: Import db-4.3.28 storage/bdb/env/db_salloc.c: Import db-4.3.28 storage/bdb/env/db_shash.c: Import db-4.3.28 storage/bdb/env/env_file.c: Import db-4.3.28 storage/bdb/env/env_method.c: Import db-4.3.28 storage/bdb/env/env_open.c: Import db-4.3.28 storage/bdb/env/env_recover.c: Import db-4.3.28 storage/bdb/env/env_region.c: Import db-4.3.28 storage/bdb/fileops/fileops.src: Import db-4.3.28 storage/bdb/fileops/fop_basic.c: Import db-4.3.28 storage/bdb/fileops/fop_rec.c: Import db-4.3.28 storage/bdb/fileops/fop_util.c: Import db-4.3.28 storage/bdb/hash/hash.c: Import db-4.3.28 storage/bdb/hash/hash.src: Import db-4.3.28 storage/bdb/hash/hash_conv.c: Import db-4.3.28 storage/bdb/hash/hash_dup.c: Import db-4.3.28 storage/bdb/hash/hash_func.c: Import db-4.3.28 storage/bdb/hash/hash_meta.c: Import db-4.3.28 storage/bdb/hash/hash_method.c: Import db-4.3.28 storage/bdb/hash/hash_open.c: Import db-4.3.28 storage/bdb/hash/hash_page.c: Import db-4.3.28 storage/bdb/hash/hash_rec.c: Import db-4.3.28 storage/bdb/hash/hash_reclaim.c: Import db-4.3.28 storage/bdb/hash/hash_stat.c: Import db-4.3.28 storage/bdb/hash/hash_upgrade.c: Import db-4.3.28 storage/bdb/hash/hash_verify.c: Import db-4.3.28 storage/bdb/hmac/hmac.c: Import db-4.3.28 storage/bdb/hmac/sha1.c: Import db-4.3.28 storage/bdb/hsearch/hsearch.c: Import db-4.3.28 storage/bdb/lock/lock.c: Import db-4.3.28 storage/bdb/lock/lock_deadlock.c: Import db-4.3.28 storage/bdb/lock/lock_method.c: Import db-4.3.28 storage/bdb/lock/lock_region.c: Import db-4.3.28 storage/bdb/lock/lock_stat.c: Import db-4.3.28 storage/bdb/lock/lock_util.c: Import db-4.3.28 storage/bdb/log/log.c: Import db-4.3.28 storage/bdb/log/log_archive.c: Import db-4.3.28 storage/bdb/log/log_compare.c: Import db-4.3.28 storage/bdb/log/log_get.c: Import db-4.3.28 storage/bdb/log/log_method.c: Import db-4.3.28 storage/bdb/log/log_put.c: Import db-4.3.28 storage/bdb/mp/mp_alloc.c: Import db-4.3.28 storage/bdb/mp/mp_bh.c: Import db-4.3.28 storage/bdb/mp/mp_fget.c: Import db-4.3.28 storage/bdb/mp/mp_fopen.c: Import db-4.3.28 storage/bdb/mp/mp_fput.c: Import db-4.3.28 storage/bdb/mp/mp_fset.c: Import db-4.3.28 storage/bdb/mp/mp_method.c: Import db-4.3.28 storage/bdb/mp/mp_region.c: Import db-4.3.28 storage/bdb/mp/mp_register.c: Import db-4.3.28 storage/bdb/mp/mp_stat.c: Import db-4.3.28 storage/bdb/mp/mp_sync.c: Import db-4.3.28 storage/bdb/mp/mp_trickle.c: Import db-4.3.28 storage/bdb/mutex/mut_fcntl.c: Import db-4.3.28 storage/bdb/mutex/mut_pthread.c: Import db-4.3.28 storage/bdb/mutex/mut_tas.c: Import db-4.3.28 storage/bdb/mutex/mut_win32.c: Import db-4.3.28 storage/bdb/mutex/mutex.c: Import db-4.3.28 storage/bdb/mutex/tm.c: Import db-4.3.28 storage/bdb/mutex/uts4_cc.s: Import db-4.3.28 storage/bdb/os/os_abs.c: Import db-4.3.28 storage/bdb/os/os_alloc.c: Import db-4.3.28 storage/bdb/os/os_clock.c: Import db-4.3.28 storage/bdb/os/os_config.c: Import db-4.3.28 storage/bdb/os/os_dir.c: Import db-4.3.28 storage/bdb/os/os_errno.c: Import db-4.3.28 storage/bdb/os/os_fid.c: Import db-4.3.28 storage/bdb/os/os_fsync.c: Import db-4.3.28 storage/bdb/os/os_handle.c: Import db-4.3.28 storage/bdb/os/os_id.c: Import db-4.3.28 storage/bdb/os/os_map.c: Import db-4.3.28 storage/bdb/os/os_method.c: Import db-4.3.28 storage/bdb/os/os_oflags.c: Import db-4.3.28 storage/bdb/os/os_open.c: Import db-4.3.28 storage/bdb/os/os_region.c: Import db-4.3.28 storage/bdb/os/os_rename.c: Import db-4.3.28 storage/bdb/os/os_root.c: Import db-4.3.28 storage/bdb/os/os_rpath.c: Import db-4.3.28 storage/bdb/os/os_rw.c: Import db-4.3.28 storage/bdb/os/os_seek.c: Import db-4.3.28 storage/bdb/os/os_sleep.c: Import db-4.3.28 storage/bdb/os/os_spin.c: Import db-4.3.28 storage/bdb/os/os_stat.c: Import db-4.3.28 storage/bdb/os/os_tmpdir.c: Import db-4.3.28 storage/bdb/os/os_unlink.c: Import db-4.3.28 storage/bdb/os_vxworks/os_vx_abs.c: Import db-4.3.28 storage/bdb/os_vxworks/os_vx_config.c: Import db-4.3.28 storage/bdb/os_vxworks/os_vx_map.c: Import db-4.3.28 storage/bdb/os_win32/os_abs.c: Import db-4.3.28 storage/bdb/os_win32/os_clock.c: Import db-4.3.28 storage/bdb/os_win32/os_config.c: Import db-4.3.28 storage/bdb/os_win32/os_dir.c: Import db-4.3.28 storage/bdb/os_win32/os_errno.c: Import db-4.3.28 storage/bdb/os_win32/os_fid.c: Import db-4.3.28 storage/bdb/os_win32/os_fsync.c: Import db-4.3.28 storage/bdb/os_win32/os_handle.c: Import db-4.3.28 storage/bdb/os_win32/os_map.c: Import db-4.3.28 storage/bdb/os_win32/os_open.c: Import db-4.3.28 storage/bdb/os_win32/os_rename.c: Import db-4.3.28 storage/bdb/os_win32/os_rw.c: Import db-4.3.28 storage/bdb/os_win32/os_seek.c: Import db-4.3.28 storage/bdb/os_win32/os_sleep.c: Import db-4.3.28 storage/bdb/os_win32/os_spin.c: Import db-4.3.28 storage/bdb/os_win32/os_stat.c: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/BerkeleyDB.pm: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/BerkeleyDB.pod.P: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/BerkeleyDB.pod: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/BerkeleyDB.xs: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/Changes: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/MANIFEST: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/Makefile.PL: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/README: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/config.in: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/constants.h: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/mkconsts: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/patches/5.004: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/ppport.h: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/scan: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/btree.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/destroy.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/env.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/filter.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/hash.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/join.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/mldbm.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/queue.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/recno.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/strict.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/subdb.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/txn.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/util.pm: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/typemap: Import db-4.3.28 storage/bdb/perl/DB_File/Changes: Import db-4.3.28 storage/bdb/perl/DB_File/DB_File.pm: Import db-4.3.28 storage/bdb/perl/DB_File/DB_File.xs: Import db-4.3.28 storage/bdb/perl/DB_File/MANIFEST: Import db-4.3.28 storage/bdb/perl/DB_File/Makefile.PL: Import db-4.3.28 storage/bdb/perl/DB_File/README: Import db-4.3.28 storage/bdb/perl/DB_File/dbinfo: Import db-4.3.28 storage/bdb/perl/DB_File/patches/5.004: Import db-4.3.28 storage/bdb/perl/DB_File/ppport.h: Import db-4.3.28 storage/bdb/perl/DB_File/t/db-btree.t: Import db-4.3.28 storage/bdb/perl/DB_File/t/db-hash.t: Import db-4.3.28 storage/bdb/perl/DB_File/t/db-recno.t: Import db-4.3.28 storage/bdb/perl/DB_File/typemap: Import db-4.3.28 storage/bdb/qam/qam.c: Import db-4.3.28 storage/bdb/qam/qam.src: Import db-4.3.28 storage/bdb/qam/qam_conv.c: Import db-4.3.28 storage/bdb/qam/qam_files.c: Import db-4.3.28 storage/bdb/qam/qam_method.c: Import db-4.3.28 storage/bdb/qam/qam_open.c: Import db-4.3.28 storage/bdb/qam/qam_rec.c: Import db-4.3.28 storage/bdb/qam/qam_stat.c: Import db-4.3.28 storage/bdb/qam/qam_upgrade.c: Import db-4.3.28 storage/bdb/qam/qam_verify.c: Import db-4.3.28 storage/bdb/rep/rep_method.c: Import db-4.3.28 storage/bdb/rep/rep_record.c: Import db-4.3.28 storage/bdb/rep/rep_region.c: Import db-4.3.28 storage/bdb/rep/rep_util.c: Import db-4.3.28 storage/bdb/rpc_client/client.c: Import db-4.3.28 storage/bdb/rpc_client/gen_client_ret.c: Import db-4.3.28 storage/bdb/rpc_server/c/db_server_util.c: Import db-4.3.28 storage/bdb/rpc_server/cxx/db_server_cxxproc.cpp: Import db-4.3.28 storage/bdb/rpc_server/cxx/db_server_cxxutil.cpp: Import db-4.3.28 storage/bdb/rpc_server/java/FreeList.java: Import db-4.3.28 storage/bdb/rpc_server/java/LocalIterator.java: Import db-4.3.28 storage/bdb/rpc_server/java/README: Import db-4.3.28 storage/bdb/rpc_server/java/RpcDb.java: Import db-4.3.28 storage/bdb/rpc_server/java/RpcDbEnv.java: Import db-4.3.28 storage/bdb/rpc_server/java/RpcDbTxn.java: Import db-4.3.28 storage/bdb/rpc_server/java/RpcDbc.java: Import db-4.3.28 storage/bdb/rpc_server/java/Timer.java: Import db-4.3.28 storage/bdb/rpc_server/java/gen/__db_open_reply.java: Import db-4.3.28 storage/bdb/rpc_server/java/gen/__db_stat_msg.java: Import db-4.3.28 storage/bdb/rpc_server/java/gen/db_server.java: Import db-4.3.28 storage/bdb/rpc_server/java/s_jrpcgen: Import db-4.3.28 storage/bdb/rpc_server/rpc.src: Import db-4.3.28 storage/bdb/tcl/docs/db.html: Import db-4.3.28 storage/bdb/tcl/docs/env.html: Import db-4.3.28 storage/bdb/tcl/docs/historic.html: Import db-4.3.28 storage/bdb/tcl/docs/index.html: Import db-4.3.28 storage/bdb/tcl/docs/library.html: Import db-4.3.28 storage/bdb/tcl/docs/lock.html: Import db-4.3.28 storage/bdb/tcl/docs/log.html: Import db-4.3.28 storage/bdb/tcl/docs/mpool.html: Import db-4.3.28 storage/bdb/tcl/docs/rep.html: Import db-4.3.28 storage/bdb/tcl/docs/test.html: Import db-4.3.28 storage/bdb/tcl/docs/txn.html: Import db-4.3.28 storage/bdb/tcl/tcl_compat.c: Import db-4.3.28 storage/bdb/tcl/tcl_db.c: Import db-4.3.28 storage/bdb/tcl/tcl_db_pkg.c: Import db-4.3.28 storage/bdb/tcl/tcl_dbcursor.c: Import db-4.3.28 storage/bdb/tcl/tcl_env.c: Import db-4.3.28 storage/bdb/tcl/tcl_internal.c: Import db-4.3.28 storage/bdb/tcl/tcl_lock.c: Import db-4.3.28 storage/bdb/tcl/tcl_log.c: Import db-4.3.28 storage/bdb/tcl/tcl_mp.c: Import db-4.3.28 storage/bdb/tcl/tcl_rep.c: Import db-4.3.28 storage/bdb/tcl/tcl_txn.c: Import db-4.3.28 storage/bdb/tcl/tcl_util.c: Import db-4.3.28 storage/bdb/test/archive.tcl: Import db-4.3.28 storage/bdb/test/bigfile001.tcl: Import db-4.3.28 storage/bdb/test/bigfile002.tcl: Import db-4.3.28 storage/bdb/test/byteorder.tcl: Import db-4.3.28 storage/bdb/test/conscript.tcl: Import db-4.3.28 storage/bdb/test/dbm.tcl: Import db-4.3.28 storage/bdb/test/dbscript.tcl: Import db-4.3.28 storage/bdb/test/ddoyscript.tcl: Import db-4.3.28 storage/bdb/test/ddscript.tcl: Import db-4.3.28 storage/bdb/test/dead001.tcl: Import db-4.3.28 storage/bdb/test/dead002.tcl: Import db-4.3.28 storage/bdb/test/dead003.tcl: Import db-4.3.28 storage/bdb/test/dead004.tcl: Import db-4.3.28 storage/bdb/test/dead005.tcl: Import db-4.3.28 storage/bdb/test/dead006.tcl: Import db-4.3.28 storage/bdb/test/dead007.tcl: Import db-4.3.28 storage/bdb/test/env001.tcl: Import db-4.3.28 storage/bdb/test/env002.tcl: Import db-4.3.28 storage/bdb/test/env003.tcl: Import db-4.3.28 storage/bdb/test/env004.tcl: Import db-4.3.28 storage/bdb/test/env005.tcl: Import db-4.3.28 storage/bdb/test/env006.tcl: Import db-4.3.28 storage/bdb/test/env007.tcl: Import db-4.3.28 storage/bdb/test/env008.tcl: Import db-4.3.28 storage/bdb/test/env009.tcl: Import db-4.3.28 storage/bdb/test/env010.tcl: Import db-4.3.28 storage/bdb/test/env011.tcl: Import db-4.3.28 storage/bdb/test/hsearch.tcl: Import db-4.3.28 storage/bdb/test/join.tcl: Import db-4.3.28 storage/bdb/test/lock001.tcl: Import db-4.3.28 storage/bdb/test/lock002.tcl: Import db-4.3.28 storage/bdb/test/lock003.tcl: Import db-4.3.28 storage/bdb/test/lock004.tcl: Import db-4.3.28 storage/bdb/test/lock005.tcl: Import db-4.3.28 storage/bdb/test/lockscript.tcl: Import db-4.3.28 storage/bdb/test/log001.tcl: Import db-4.3.28 storage/bdb/test/log002.tcl: Import db-4.3.28 storage/bdb/test/log003.tcl: Import db-4.3.28 storage/bdb/test/log004.tcl: Import db-4.3.28 storage/bdb/test/log005.tcl: Import db-4.3.28 storage/bdb/test/logtrack.tcl: Import db-4.3.28 storage/bdb/test/mdbscript.tcl: Import db-4.3.28 storage/bdb/test/memp001.tcl: Import db-4.3.28 storage/bdb/test/memp002.tcl: Import db-4.3.28 storage/bdb/test/memp003.tcl: Import db-4.3.28 storage/bdb/test/mpoolscript.tcl: Import db-4.3.28 storage/bdb/test/mutex001.tcl: Import db-4.3.28 storage/bdb/test/mutex002.tcl: Import db-4.3.28 storage/bdb/test/mutex003.tcl: Import db-4.3.28 storage/bdb/test/mutexscript.tcl: Import db-4.3.28 storage/bdb/test/ndbm.tcl: Import db-4.3.28 storage/bdb/test/parallel.tcl: Import db-4.3.28 storage/bdb/test/recd001.tcl: Import db-4.3.28 storage/bdb/test/recd002.tcl: Import db-4.3.28 storage/bdb/test/recd003.tcl: Import db-4.3.28 storage/bdb/test/recd004.tcl: Import db-4.3.28 storage/bdb/test/recd005.tcl: Import db-4.3.28 storage/bdb/test/recd006.tcl: Import db-4.3.28 storage/bdb/test/recd007.tcl: Import db-4.3.28 storage/bdb/test/recd008.tcl: Import db-4.3.28 storage/bdb/test/recd009.tcl: Import db-4.3.28 storage/bdb/test/recd010.tcl: Import db-4.3.28 storage/bdb/test/recd011.tcl: Import db-4.3.28 storage/bdb/test/recd012.tcl: Import db-4.3.28 storage/bdb/test/recd013.tcl: Import db-4.3.28 storage/bdb/test/recd014.tcl: Import db-4.3.28 storage/bdb/test/recd015.tcl: Import db-4.3.28 storage/bdb/test/recd016.tcl: Import db-4.3.28 storage/bdb/test/recd017.tcl: Import db-4.3.28 storage/bdb/test/recd018.tcl: Import db-4.3.28 storage/bdb/test/recd019.tcl: Import db-4.3.28 storage/bdb/test/recd020.tcl: Import db-4.3.28 storage/bdb/test/recd15scr.tcl: Import db-4.3.28 storage/bdb/test/recdscript.tcl: Import db-4.3.28 storage/bdb/test/rep001.tcl: Import db-4.3.28 storage/bdb/test/rep002.tcl: Import db-4.3.28 storage/bdb/test/rep003.tcl: Import db-4.3.28 storage/bdb/test/rep005.tcl: Import db-4.3.28 storage/bdb/test/reputils.tcl: Import db-4.3.28 storage/bdb/test/rpc001.tcl: Import db-4.3.28 storage/bdb/test/rpc002.tcl: Import db-4.3.28 storage/bdb/test/rpc003.tcl: Import db-4.3.28 storage/bdb/test/rpc004.tcl: Import db-4.3.28 storage/bdb/test/rpc005.tcl: Import db-4.3.28 storage/bdb/test/rsrc001.tcl: Import db-4.3.28 storage/bdb/test/rsrc002.tcl: Import db-4.3.28 storage/bdb/test/rsrc003.tcl: Import db-4.3.28 storage/bdb/test/rsrc004.tcl: Import db-4.3.28 storage/bdb/test/scr001/chk.code: Import db-4.3.28 storage/bdb/test/scr003/chk.define: Import db-4.3.28 storage/bdb/test/scr004/chk.javafiles: Import db-4.3.28 storage/bdb/test/scr005/chk.nl: Import db-4.3.28 storage/bdb/test/scr006/chk.offt: Import db-4.3.28 storage/bdb/test/scr007/chk.proto: Import db-4.3.28 storage/bdb/test/scr008/chk.pubdef: Import db-4.3.28 storage/bdb/test/scr009/chk.srcfiles: Import db-4.3.28 storage/bdb/test/scr010/chk.str: Import db-4.3.28 storage/bdb/test/scr010/spell.ok: Import db-4.3.28 storage/bdb/test/scr011/chk.tags: Import db-4.3.28 storage/bdb/test/scr012/chk.vx_code: Import db-4.3.28 storage/bdb/test/scr013/chk.stats: Import db-4.3.28 storage/bdb/test/scr015/TestConstruct01.cpp: Import db-4.3.28 storage/bdb/test/scr015/TestConstruct01.testerr: Import db-4.3.28 storage/bdb/test/scr015/TestGetSetMethods.cpp: Import db-4.3.28 storage/bdb/test/scr015/TestKeyRange.cpp: Import db-4.3.28 storage/bdb/test/scr015/TestLogc.cpp: Import db-4.3.28 storage/bdb/test/scr015/TestSimpleAccess.cpp: Import db-4.3.28 storage/bdb/test/scr015/TestTruncate.cpp: Import db-4.3.28 storage/bdb/test/scr015/chk.cxxtests: Import db-4.3.28 storage/bdb/test/scr016/CallbackTest.java: Import db-4.3.28 storage/bdb/test/scr016/CallbackTest.testout: Import db-4.3.28 storage/bdb/test/scr016/TestAppendRecno.java: Import db-4.3.28 storage/bdb/test/scr016/TestAssociate.java: Import db-4.3.28 storage/bdb/test/scr016/TestClosedDb.java: Import db-4.3.28 storage/bdb/test/scr016/TestClosedDb.testout: Import db-4.3.28 storage/bdb/test/scr016/TestConstruct01.java: Import db-4.3.28 storage/bdb/test/scr016/TestConstruct01.testout: Import db-4.3.28 storage/bdb/test/scr016/TestConstruct02.java: Import db-4.3.28 storage/bdb/test/scr016/TestDbtFlags.java: Import db-4.3.28 storage/bdb/test/scr016/TestGetSetMethods.java: Import db-4.3.28 storage/bdb/test/scr016/TestKeyRange.java: Import db-4.3.28 storage/bdb/test/scr016/TestLockVec.java: Import db-4.3.28 storage/bdb/test/scr016/TestLogc.java: Import db-4.3.28 storage/bdb/test/scr016/TestOpenEmpty.java: Import db-4.3.28 storage/bdb/test/scr016/TestOpenEmpty.testerr: Import db-4.3.28 storage/bdb/test/scr016/TestReplication.java: Import db-4.3.28 storage/bdb/test/scr016/TestRpcServer.java: Import db-4.3.28 storage/bdb/test/scr016/TestSameDbt.java: Import db-4.3.28 storage/bdb/test/scr016/TestSimpleAccess.java: Import db-4.3.28 storage/bdb/test/scr016/TestStat.java: Import db-4.3.28 storage/bdb/test/scr016/TestStat.testout: Import db-4.3.28 storage/bdb/test/scr016/TestTruncate.java: Import db-4.3.28 storage/bdb/test/scr016/TestTruncate.testout: Import db-4.3.28 storage/bdb/test/scr016/TestUtil.java: Import db-4.3.28 storage/bdb/test/scr016/TestXAServlet.java: Import db-4.3.28 storage/bdb/test/scr016/chk.javatests: Import db-4.3.28 storage/bdb/test/scr016/ignore: Import db-4.3.28 storage/bdb/test/scr016/testone: Import db-4.3.28 storage/bdb/test/scr017/chk.db185: Import db-4.3.28 storage/bdb/test/scr019/chk.include: Import db-4.3.28 storage/bdb/test/scr020/chk.inc: Import db-4.3.28 storage/bdb/test/scr021/chk.flags: Import db-4.3.28 storage/bdb/test/scr022/chk.rr: Import db-4.3.28 storage/bdb/test/sdb001.tcl: Import db-4.3.28 storage/bdb/test/sdb002.tcl: Import db-4.3.28 storage/bdb/test/sdb003.tcl: Import db-4.3.28 storage/bdb/test/sdb004.tcl: Import db-4.3.28 storage/bdb/test/sdb005.tcl: Import db-4.3.28 storage/bdb/test/sdb006.tcl: Import db-4.3.28 storage/bdb/test/sdb007.tcl: Import db-4.3.28 storage/bdb/test/sdb008.tcl: Import db-4.3.28 storage/bdb/test/sdb009.tcl: Import db-4.3.28 storage/bdb/test/sdb010.tcl: Import db-4.3.28 storage/bdb/test/sdb011.tcl: Import db-4.3.28 storage/bdb/test/sdb012.tcl: Import db-4.3.28 storage/bdb/test/sdbscript.tcl: Import db-4.3.28 storage/bdb/test/sdbtest001.tcl: Import db-4.3.28 storage/bdb/test/sdbtest002.tcl: Import db-4.3.28 storage/bdb/test/sdbutils.tcl: Import db-4.3.28 storage/bdb/test/sec001.tcl: Import db-4.3.28 storage/bdb/test/sec002.tcl: Import db-4.3.28 storage/bdb/test/shelltest.tcl: Import db-4.3.28 storage/bdb/test/si001.tcl: Import db-4.3.28 storage/bdb/test/si002.tcl: Import db-4.3.28 storage/bdb/test/si003.tcl: Import db-4.3.28 storage/bdb/test/si004.tcl: Import db-4.3.28 storage/bdb/test/si005.tcl: Import db-4.3.28 storage/bdb/test/sysscript.tcl: Import db-4.3.28 storage/bdb/test/test.tcl: Import db-4.3.28 storage/bdb/test/test001.tcl: Import db-4.3.28 storage/bdb/test/test002.tcl: Import db-4.3.28 storage/bdb/test/test003.tcl: Import db-4.3.28 storage/bdb/test/test004.tcl: Import db-4.3.28 storage/bdb/test/test005.tcl: Import db-4.3.28 storage/bdb/test/test006.tcl: Import db-4.3.28 storage/bdb/test/test007.tcl: Import db-4.3.28 storage/bdb/test/test008.tcl: Import db-4.3.28 storage/bdb/test/test009.tcl: Import db-4.3.28 storage/bdb/test/test010.tcl: Import db-4.3.28 storage/bdb/test/test011.tcl: Import db-4.3.28 storage/bdb/test/test012.tcl: Import db-4.3.28 storage/bdb/test/test013.tcl: Import db-4.3.28 storage/bdb/test/test014.tcl: Import db-4.3.28 storage/bdb/test/test015.tcl: Import db-4.3.28 storage/bdb/test/test016.tcl: Import db-4.3.28 storage/bdb/test/test017.tcl: Import db-4.3.28 storage/bdb/test/test018.tcl: Import db-4.3.28 storage/bdb/test/test019.tcl: Import db-4.3.28 storage/bdb/test/test020.tcl: Import db-4.3.28 storage/bdb/test/test021.tcl: Import db-4.3.28 storage/bdb/test/test022.tcl: Import db-4.3.28 storage/bdb/test/test023.tcl: Import db-4.3.28 storage/bdb/test/test024.tcl: Import db-4.3.28 storage/bdb/test/test025.tcl: Import db-4.3.28 storage/bdb/test/test026.tcl: Import db-4.3.28 storage/bdb/test/test027.tcl: Import db-4.3.28 storage/bdb/test/test028.tcl: Import db-4.3.28 storage/bdb/test/test029.tcl: Import db-4.3.28 storage/bdb/test/test030.tcl: Import db-4.3.28 storage/bdb/test/test031.tcl: Import db-4.3.28 storage/bdb/test/test032.tcl: Import db-4.3.28 storage/bdb/test/test033.tcl: Import db-4.3.28 storage/bdb/test/test034.tcl: Import db-4.3.28 storage/bdb/test/test035.tcl: Import db-4.3.28 storage/bdb/test/test036.tcl: Import db-4.3.28 storage/bdb/test/test037.tcl: Import db-4.3.28 storage/bdb/test/test038.tcl: Import db-4.3.28 storage/bdb/test/test039.tcl: Import db-4.3.28 storage/bdb/test/test040.tcl: Import db-4.3.28 storage/bdb/test/test041.tcl: Import db-4.3.28 storage/bdb/test/test042.tcl: Import db-4.3.28 storage/bdb/test/test043.tcl: Import db-4.3.28 storage/bdb/test/test044.tcl: Import db-4.3.28 storage/bdb/test/test045.tcl: Import db-4.3.28 storage/bdb/test/test046.tcl: Import db-4.3.28 storage/bdb/test/test047.tcl: Import db-4.3.28 storage/bdb/test/test048.tcl: Import db-4.3.28 storage/bdb/test/test049.tcl: Import db-4.3.28 storage/bdb/test/test050.tcl: Import db-4.3.28 storage/bdb/test/test051.tcl: Import db-4.3.28 storage/bdb/test/test052.tcl: Import db-4.3.28 storage/bdb/test/test053.tcl: Import db-4.3.28 storage/bdb/test/test054.tcl: Import db-4.3.28 storage/bdb/test/test055.tcl: Import db-4.3.28 storage/bdb/test/test056.tcl: Import db-4.3.28 storage/bdb/test/test057.tcl: Import db-4.3.28 storage/bdb/test/test058.tcl: Import db-4.3.28 storage/bdb/test/test059.tcl: Import db-4.3.28 storage/bdb/test/test060.tcl: Import db-4.3.28 storage/bdb/test/test061.tcl: Import db-4.3.28 storage/bdb/test/test062.tcl: Import db-4.3.28 storage/bdb/test/test063.tcl: Import db-4.3.28 storage/bdb/test/test064.tcl: Import db-4.3.28 storage/bdb/test/test065.tcl: Import db-4.3.28 storage/bdb/test/test066.tcl: Import db-4.3.28 storage/bdb/test/test067.tcl: Import db-4.3.28 storage/bdb/test/test068.tcl: Import db-4.3.28 storage/bdb/test/test069.tcl: Import db-4.3.28 storage/bdb/test/test070.tcl: Import db-4.3.28 storage/bdb/test/test071.tcl: Import db-4.3.28 storage/bdb/test/test072.tcl: Import db-4.3.28 storage/bdb/test/test073.tcl: Import db-4.3.28 storage/bdb/test/test074.tcl: Import db-4.3.28 storage/bdb/test/test076.tcl: Import db-4.3.28 storage/bdb/test/test077.tcl: Import db-4.3.28 storage/bdb/test/test078.tcl: Import db-4.3.28 storage/bdb/test/test079.tcl: Import db-4.3.28 storage/bdb/test/test081.tcl: Import db-4.3.28 storage/bdb/test/test082.tcl: Import db-4.3.28 storage/bdb/test/test083.tcl: Import db-4.3.28 storage/bdb/test/test084.tcl: Import db-4.3.28 storage/bdb/test/test085.tcl: Import db-4.3.28 storage/bdb/test/test086.tcl: Import db-4.3.28 storage/bdb/test/test087.tcl: Import db-4.3.28 storage/bdb/test/test088.tcl: Import db-4.3.28 storage/bdb/test/test089.tcl: Import db-4.3.28 storage/bdb/test/test090.tcl: Import db-4.3.28 storage/bdb/test/test091.tcl: Import db-4.3.28 storage/bdb/test/test092.tcl: Import db-4.3.28 storage/bdb/test/test093.tcl: Import db-4.3.28 storage/bdb/test/test094.tcl: Import db-4.3.28 storage/bdb/test/test095.tcl: Import db-4.3.28 storage/bdb/test/test096.tcl: Import db-4.3.28 storage/bdb/test/test097.tcl: Import db-4.3.28 storage/bdb/test/test098.tcl: Import db-4.3.28 storage/bdb/test/test099.tcl: Import db-4.3.28 storage/bdb/test/test100.tcl: Import db-4.3.28 storage/bdb/test/test101.tcl: Import db-4.3.28 storage/bdb/test/testparams.tcl: Import db-4.3.28 storage/bdb/test/testutils.tcl: Import db-4.3.28 storage/bdb/test/txn001.tcl: Import db-4.3.28 storage/bdb/test/txn002.tcl: Import db-4.3.28 storage/bdb/test/txn003.tcl: Import db-4.3.28 storage/bdb/test/txn004.tcl: Import db-4.3.28 storage/bdb/test/txn005.tcl: Import db-4.3.28 storage/bdb/test/txn006.tcl: Import db-4.3.28 storage/bdb/test/txn007.tcl: Import db-4.3.28 storage/bdb/test/txn008.tcl: Import db-4.3.28 storage/bdb/test/txn009.tcl: Import db-4.3.28 storage/bdb/test/txnscript.tcl: Import db-4.3.28 storage/bdb/test/update.tcl: Import db-4.3.28 storage/bdb/test/upgrade.tcl: Import db-4.3.28 storage/bdb/test/wrap.tcl: Import db-4.3.28 storage/bdb/txn/txn.c: Import db-4.3.28 storage/bdb/txn/txn.src: Import db-4.3.28 storage/bdb/txn/txn_method.c: Import db-4.3.28 storage/bdb/txn/txn_rec.c: Import db-4.3.28 storage/bdb/txn/txn_recover.c: Import db-4.3.28 storage/bdb/txn/txn_region.c: Import db-4.3.28 storage/bdb/txn/txn_stat.c: Import db-4.3.28 storage/bdb/txn/txn_util.c: Import db-4.3.28 storage/bdb/xa/xa.c: Import db-4.3.28 storage/bdb/xa/xa_db.c: Import db-4.3.28 storage/bdb/xa/xa_map.c: Import db-4.3.28 storage/bdb/clib/strtol.c: Import db-4.3.28 storage/bdb/clib/strtoul.c: Import db-4.3.28 storage/bdb/common/crypto_stub.c: Import db-4.3.28 storage/bdb/crypto/aes_method.c: Import db-4.3.28 storage/bdb/crypto/crypto.c: Import db-4.3.28 storage/bdb/crypto/crypto.html: Import db-4.3.28 storage/bdb/crypto/mersenne/mt19937db.c: Import db-4.3.28 storage/bdb/crypto/rijndael/rijndael-alg-fst.c: Import db-4.3.28 storage/bdb/crypto/rijndael/rijndael-alg-fst.h: Import db-4.3.28 storage/bdb/crypto/rijndael/rijndael-api-fst.c: Import db-4.3.28 storage/bdb/crypto/rijndael/rijndael-api-fst.h: Import db-4.3.28 storage/bdb/cxx/cxx_multi.cpp: Import db-4.3.28 storage/bdb/cxx/cxx_seq.cpp: Import db-4.3.28 storage/bdb/db/db_ovfl_vrfy.c: Import db-4.3.28 storage/bdb/db/db_setid.c: Import db-4.3.28 storage/bdb/db/db_setlsn.c: Import db-4.3.28 storage/bdb/db/db_stati.c: Import db-4.3.28 storage/bdb/db/db_vrfy_stub.c: Import db-4.3.28 storage/bdb/db_stat/dd.sh: Import db-4.3.28 storage/bdb/dbreg/dbreg_stat.c: Import db-4.3.28 storage/bdb/dist/aclocal/rpc.ac: Import db-4.3.28 storage/bdb/dist/aclocal/sequence.ac: Import db-4.3.28 storage/bdb/dist/config.hin: Import db-4.3.28 storage/bdb/dist/s_java_const: Import db-4.3.28 storage/bdb/dist/s_java_stat: Import db-4.3.28 storage/bdb/dist/s_java_swig: Import db-4.3.28 storage/bdb/dist/s_je2db: Import db-4.3.28 storage/bdb/dist/s_winmsi: Import db-4.3.28 storage/bdb/dist/template/db_server_proc: Import db-4.3.28 storage/bdb/dist/template/gen_client_ret: Import db-4.3.28 storage/bdb/dist/template/rec_btree: Import db-4.3.28 storage/bdb/dist/template/rec_crdel: Import db-4.3.28 storage/bdb/dist/template/rec_dbreg: Import db-4.3.28 storage/bdb/dist/template/rec_db: Import db-4.3.28 storage/bdb/dist/template/rec_fileops: Import db-4.3.28 storage/bdb/dist/template/rec_hash: Import db-4.3.28 storage/bdb/dist/template/rec_qam: Import db-4.3.28 storage/bdb/dist/template/rec_rep: Import db-4.3.28 storage/bdb/dist/template/rec_txn: Import db-4.3.28 storage/bdb/dist/vx_2.0/BerkeleyDBsmall.wpj: Import db-4.3.28 storage/bdb/dist/vx_2.2/BerkeleyDB.wpj: Import db-4.3.28 storage/bdb/dist/vx_2.2/BerkeleyDBsmall.wpj: Import db-4.3.28 storage/bdb/dist/vx_2.2/wpj.in: Import db-4.3.28 storage/bdb/dist/win_db.in: Import db-4.3.28 storage/bdb/dist/winmsi/dbcorewix.in: Import db-4.3.28 storage/bdb/dist/winmsi/dbvarsbat.in: Import db-4.3.28 storage/bdb/dist/winmsi/dbwix.m4: Import db-4.3.28 storage/bdb/dist/winmsi/environment.in: Import db-4.3.28 storage/bdb/dist/winmsi/features.in: Import db-4.3.28 storage/bdb/dist/winmsi/files.in: Import db-4.3.28 storage/bdb/dist/winmsi/images/caticon.ibd: Import db-4.3.28 storage/bdb/dist/winmsi/images/foldernew.ibd: Import db-4.3.28 storage/bdb/dist/winmsi/images/folderup.ibd: Import db-4.3.28 storage/bdb/dist/winmsi/images/sleepycat.jpg: Import db-4.3.28 storage/bdb/dist/winmsi/images/topstripe.ibd: Import db-4.3.28 storage/bdb/dist/winmsi/images/webicon.ico: Import db-4.3.28 storage/bdb/dist/winmsi/links.in: Import db-4.3.28 storage/bdb/dist/winmsi/s_winmsi.fcn: Import db-4.3.28 storage/bdb/dist/winmsi/winbuild.bat: Import db-4.3.28 storage/bdb/env/env_stat.c: Import db-4.3.28 storage/bdb/hash/hash_stub.c: Import db-4.3.28 storage/bdb/lock/lock_id.c: Import db-4.3.28 storage/bdb/lock/lock_list.c: Import db-4.3.28 storage/bdb/lock/lock_timer.c: Import db-4.3.28 storage/bdb/log/log_stat.c: Import db-4.3.28 storage/bdb/mp/mp_fmethod.c: Import db-4.3.28 storage/bdb/os/os_truncate.c: Import db-4.3.28 storage/bdb/os_win32/os_truncate.c: Import db-4.3.28 storage/bdb/os_win32/os_unlink.c: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/META.yml: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/cds.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/encrypt.t: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/t/pod.t: Import db-4.3.28 storage/bdb/perl/DB_File/META.yml: Import db-4.3.28 storage/bdb/qam/qam_stub.c: Import db-4.3.28 storage/bdb/rep/rep.src: Import db-4.3.28 storage/bdb/rep/rep_backup.c: Import db-4.3.28 storage/bdb/rep/rep_stat.c: Import db-4.3.28 storage/bdb/rep/rep_stub.c: Import db-4.3.28 storage/bdb/rpc_client/gen_client.c: Import db-4.3.28 storage/bdb/rpc_server/c/db_server_proc.c: Import db-4.3.28 storage/bdb/rpc_server/c/gen_db_server.c: Import db-4.3.28 storage/bdb/rpc_server/db_server.x: Import db-4.3.28 storage/bdb/sequence/seq_stat.c: Import db-4.3.28 storage/bdb/sequence/sequence.c: Import db-4.3.28 storage/bdb/tcl/tcl_seq.c: Import db-4.3.28 storage/bdb/dist/config.guess: Import db-4.3.28 storage/bdb/dist/config.sub: Import db-4.3.28 storage/bdb/dist/s_all: Import db-4.3.28 storage/bdb/dist/s_config: Import db-4.3.28 storage/bdb/dist/s_crypto: Import db-4.3.28 storage/bdb/dist/s_include: Import db-4.3.28 storage/bdb/dist/s_java: Import db-4.3.28 storage/bdb/dist/s_perm: Import db-4.3.28 storage/bdb/dist/s_readme: Import db-4.3.28 storage/bdb/dist/s_recover: Import db-4.3.28 storage/bdb/dist/s_rpc: Import db-4.3.28 storage/bdb/dist/s_symlink: Import db-4.3.28 storage/bdb/dist/s_tags: Import db-4.3.28 storage/bdb/dist/s_test: Import db-4.3.28 storage/bdb/dist/s_vxworks: Import db-4.3.28 storage/bdb/dist/s_win32_dsp: Import db-4.3.28 storage/bdb/dist/s_win32: Import db-4.3.28 storage/bdb/perl/BerkeleyDB/dbinfo: Import db-4.3.28
4531 lines
126 KiB
C
4531 lines
126 KiB
C
#define PERL_constant_NOTFOUND 1
|
|
#define PERL_constant_NOTDEF 2
|
|
#define PERL_constant_ISIV 3
|
|
#define PERL_constant_ISNO 4
|
|
#define PERL_constant_ISNV 5
|
|
#define PERL_constant_ISPV 6
|
|
#define PERL_constant_ISPVN 7
|
|
#define PERL_constant_ISSV 8
|
|
#define PERL_constant_ISUNDEF 9
|
|
#define PERL_constant_ISUV 10
|
|
#define PERL_constant_ISYES 11
|
|
|
|
#ifndef NVTYPE
|
|
typedef double NV; /* 5.6 and later define NVTYPE, and typedef NV to it. */
|
|
#endif
|
|
#ifndef aTHX_
|
|
#define aTHX_ /* 5.6 or later define this for threading support. */
|
|
#endif
|
|
#ifndef pTHX_
|
|
#define pTHX_ /* 5.6 or later define this for threading support. */
|
|
#endif
|
|
|
|
static int
|
|
constant_6 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_DUP DB_PAD DB_RMW DB_SET */
|
|
/* Offset 3 gives the best switch position. */
|
|
switch (name[3]) {
|
|
case 'D':
|
|
if (memEQ(name, "DB_DUP", 6)) {
|
|
/* ^ */
|
|
#ifdef DB_DUP
|
|
*iv_return = DB_DUP;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'P':
|
|
if (memEQ(name, "DB_PAD", 6)) {
|
|
/* ^ */
|
|
#ifdef DB_PAD
|
|
*iv_return = DB_PAD;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_RMW", 6)) {
|
|
/* ^ */
|
|
#ifdef DB_RMW
|
|
*iv_return = DB_RMW;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'S':
|
|
if (memEQ(name, "DB_SET", 6)) {
|
|
/* ^ */
|
|
#ifdef DB_SET
|
|
*iv_return = DB_SET;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_7 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_EXCL DB_HASH DB_LAST DB_NEXT DB_PREV */
|
|
/* Offset 3 gives the best switch position. */
|
|
switch (name[3]) {
|
|
case 'E':
|
|
if (memEQ(name, "DB_EXCL", 7)) {
|
|
/* ^ */
|
|
#ifdef DB_EXCL
|
|
*iv_return = DB_EXCL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'H':
|
|
if (memEQ(name, "DB_HASH", 7)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 2) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 3)
|
|
*iv_return = DB_HASH;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'L':
|
|
if (memEQ(name, "DB_LAST", 7)) {
|
|
/* ^ */
|
|
#ifdef DB_LAST
|
|
*iv_return = DB_LAST;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_NEXT", 7)) {
|
|
/* ^ */
|
|
#ifdef DB_NEXT
|
|
*iv_return = DB_NEXT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'P':
|
|
if (memEQ(name, "DB_PREV", 7)) {
|
|
/* ^ */
|
|
#ifdef DB_PREV
|
|
*iv_return = DB_PREV;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_8 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_AFTER DB_BTREE DB_FIRST DB_FLUSH DB_FORCE DB_QUEUE DB_RECNO DB_UNREF */
|
|
/* Offset 4 gives the best switch position. */
|
|
switch (name[4]) {
|
|
case 'E':
|
|
if (memEQ(name, "DB_RECNO", 8)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 2) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 3)
|
|
*iv_return = DB_RECNO;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'F':
|
|
if (memEQ(name, "DB_AFTER", 8)) {
|
|
/* ^ */
|
|
#ifdef DB_AFTER
|
|
*iv_return = DB_AFTER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'I':
|
|
if (memEQ(name, "DB_FIRST", 8)) {
|
|
/* ^ */
|
|
#ifdef DB_FIRST
|
|
*iv_return = DB_FIRST;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'L':
|
|
if (memEQ(name, "DB_FLUSH", 8)) {
|
|
/* ^ */
|
|
#ifdef DB_FLUSH
|
|
*iv_return = DB_FLUSH;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_UNREF", 8)) {
|
|
/* ^ */
|
|
#ifdef DB_UNREF
|
|
*iv_return = DB_UNREF;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'O':
|
|
if (memEQ(name, "DB_FORCE", 8)) {
|
|
/* ^ */
|
|
#ifdef DB_FORCE
|
|
*iv_return = DB_FORCE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'T':
|
|
if (memEQ(name, "DB_BTREE", 8)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 2) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 3)
|
|
*iv_return = DB_BTREE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'U':
|
|
if (memEQ(name, "DB_QUEUE", 8)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 3) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 55)
|
|
*iv_return = DB_QUEUE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_9 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_APPEND DB_BEFORE DB_CHKSUM DB_CLIENT DB_COMMIT DB_CREATE DB_CURLSN
|
|
DB_DIRECT DB_EXTENT DB_GETREC DB_NOCOPY DB_NOMMAP DB_NOSYNC DB_RDONLY
|
|
DB_RECNUM DB_THREAD DB_VERIFY */
|
|
/* Offset 7 gives the best switch position. */
|
|
switch (name[7]) {
|
|
case 'A':
|
|
if (memEQ(name, "DB_NOMMAP", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_NOMMAP
|
|
*iv_return = DB_NOMMAP;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_THREAD", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_THREAD
|
|
*iv_return = DB_THREAD;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'C':
|
|
if (memEQ(name, "DB_DIRECT", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_DIRECT
|
|
*iv_return = DB_DIRECT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'E':
|
|
if (memEQ(name, "DB_GETREC", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_GETREC
|
|
*iv_return = DB_GETREC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'F':
|
|
if (memEQ(name, "DB_VERIFY", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_VERIFY
|
|
*iv_return = DB_VERIFY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'I':
|
|
if (memEQ(name, "DB_COMMIT", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_COMMIT
|
|
*iv_return = DB_COMMIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'L':
|
|
if (memEQ(name, "DB_RDONLY", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_RDONLY
|
|
*iv_return = DB_RDONLY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_APPEND", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_APPEND
|
|
*iv_return = DB_APPEND;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_CLIENT", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_CLIENT
|
|
*iv_return = DB_CLIENT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_EXTENT", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_EXTENT
|
|
*iv_return = DB_EXTENT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_NOSYNC", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_NOSYNC
|
|
*iv_return = DB_NOSYNC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'P':
|
|
if (memEQ(name, "DB_NOCOPY", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_NOCOPY
|
|
*iv_return = DB_NOCOPY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_BEFORE", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_BEFORE
|
|
*iv_return = DB_BEFORE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'S':
|
|
if (memEQ(name, "DB_CURLSN", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_CURLSN
|
|
*iv_return = DB_CURLSN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'T':
|
|
if (memEQ(name, "DB_CREATE", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_CREATE
|
|
*iv_return = DB_CREATE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'U':
|
|
if (memEQ(name, "DB_CHKSUM", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_CHKSUM
|
|
*iv_return = DB_CHKSUM;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_RECNUM", 9)) {
|
|
/* ^ */
|
|
#ifdef DB_RECNUM
|
|
*iv_return = DB_RECNUM;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_10 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_CONSUME DB_CURRENT DB_DELETED DB_DUPSORT DB_ENCRYPT DB_ENV_CDB
|
|
DB_ENV_TXN DB_INORDER DB_JOINENV DB_KEYLAST DB_NOPANIC DB_OK_HASH
|
|
DB_PRIVATE DB_PR_PAGE DB_RECOVER DB_SALVAGE DB_SEQ_DEC DB_SEQ_INC
|
|
DB_TIMEOUT DB_TXN_CKP DB_UNKNOWN DB_UPGRADE */
|
|
/* Offset 5 gives the best switch position. */
|
|
switch (name[5]) {
|
|
case 'C':
|
|
if (memEQ(name, "DB_ENCRYPT", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_ENCRYPT
|
|
*iv_return = DB_ENCRYPT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_RECOVER", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_RECOVER
|
|
*iv_return = DB_RECOVER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'G':
|
|
if (memEQ(name, "DB_UPGRADE", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_UPGRADE
|
|
*iv_return = DB_UPGRADE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'I':
|
|
if (memEQ(name, "DB_JOINENV", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_JOINENV
|
|
*iv_return = DB_JOINENV;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_PRIVATE", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_PRIVATE
|
|
*iv_return = DB_PRIVATE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'K':
|
|
if (memEQ(name, "DB_UNKNOWN", 10)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 2) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 3)
|
|
*iv_return = DB_UNKNOWN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'L':
|
|
if (memEQ(name, "DB_DELETED", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_DELETED
|
|
*iv_return = DB_DELETED;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_SALVAGE", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_SALVAGE
|
|
*iv_return = DB_SALVAGE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'M':
|
|
if (memEQ(name, "DB_TIMEOUT", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_TIMEOUT
|
|
*iv_return = DB_TIMEOUT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_CONSUME", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_CONSUME
|
|
*iv_return = DB_CONSUME;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_CKP", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_CKP
|
|
*iv_return = DB_TXN_CKP;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'O':
|
|
if (memEQ(name, "DB_INORDER", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_INORDER
|
|
*iv_return = DB_INORDER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'P':
|
|
if (memEQ(name, "DB_DUPSORT", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_DUPSORT
|
|
*iv_return = DB_DUPSORT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_NOPANIC", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_NOPANIC
|
|
*iv_return = DB_NOPANIC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'Q':
|
|
if (memEQ(name, "DB_SEQ_DEC", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_SEQ_DEC
|
|
*iv_return = DB_SEQ_DEC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_SEQ_INC", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_SEQ_INC
|
|
*iv_return = DB_SEQ_INC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_CURRENT", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_CURRENT
|
|
*iv_return = DB_CURRENT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'V':
|
|
if (memEQ(name, "DB_ENV_CDB", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_CDB
|
|
*iv_return = DB_ENV_CDB;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_ENV_TXN", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_TXN
|
|
*iv_return = DB_ENV_TXN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'Y':
|
|
if (memEQ(name, "DB_KEYLAST", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_KEYLAST
|
|
*iv_return = DB_KEYLAST;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case '_':
|
|
if (memEQ(name, "DB_OK_HASH", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_OK_HASH
|
|
*iv_return = DB_OK_HASH;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_PR_PAGE", 10)) {
|
|
/* ^ */
|
|
#ifdef DB_PR_PAGE
|
|
*iv_return = DB_PR_PAGE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_11 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_APP_INIT DB_ARCH_ABS DB_ARCH_LOG DB_DEGREE_2 DB_FILEOPEN DB_FIXEDLEN
|
|
DB_GET_BOTH DB_INIT_CDB DB_INIT_LOG DB_INIT_REP DB_INIT_TXN DB_KEYEMPTY
|
|
DB_KEYEXIST DB_KEYFIRST DB_LOCKDOWN DB_LOCK_GET DB_LOCK_PUT DB_LOGMAGIC
|
|
DB_LOG_DISK DB_LOG_PERM DB_MULTIPLE DB_NEXT_DUP DB_NOSERVER DB_NOTFOUND
|
|
DB_OK_BTREE DB_OK_QUEUE DB_OK_RECNO DB_POSITION DB_QAMMAGIC DB_RENUMBER
|
|
DB_SEQ_WRAP DB_SNAPSHOT DB_STAT_ALL DB_TRUNCATE DB_TXNMAGIC DB_TXN_LOCK
|
|
DB_TXN_REDO DB_TXN_SYNC DB_TXN_UNDO DB_WRNOSYNC DB_YIELDCPU */
|
|
/* Offset 8 gives the best switch position. */
|
|
switch (name[8]) {
|
|
case 'A':
|
|
if (memEQ(name, "DB_ARCH_ABS", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_ARCH_ABS
|
|
*iv_return = DB_ARCH_ABS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_STAT_ALL", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_STAT_ALL
|
|
*iv_return = DB_STAT_ALL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TRUNCATE", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_TRUNCATE
|
|
*iv_return = DB_TRUNCATE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'B':
|
|
if (memEQ(name, "DB_RENUMBER", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_RENUMBER
|
|
*iv_return = DB_RENUMBER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'C':
|
|
if (memEQ(name, "DB_INIT_CDB", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_INIT_CDB
|
|
*iv_return = DB_INIT_CDB;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_OK_RECNO", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_OK_RECNO
|
|
*iv_return = DB_OK_RECNO;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_YIELDCPU", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_YIELDCPU
|
|
*iv_return = DB_YIELDCPU;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'D':
|
|
if (memEQ(name, "DB_NEXT_DUP", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_NEXT_DUP
|
|
*iv_return = DB_NEXT_DUP;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'E':
|
|
if (memEQ(name, "DB_DEGREE_2", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_DEGREE_2
|
|
*iv_return = DB_DEGREE_2;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOG_PERM", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_PERM
|
|
*iv_return = DB_LOG_PERM;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_OK_QUEUE", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_OK_QUEUE
|
|
*iv_return = DB_OK_QUEUE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_REDO", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_REDO
|
|
*iv_return = DB_TXN_REDO;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'G':
|
|
if (memEQ(name, "DB_LOCK_GET", 11)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 2) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 3)
|
|
*iv_return = DB_LOCK_GET;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOGMAGIC", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_LOGMAGIC
|
|
*iv_return = DB_LOGMAGIC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_QAMMAGIC", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_QAMMAGIC
|
|
*iv_return = DB_QAMMAGIC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXNMAGIC", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_TXNMAGIC
|
|
*iv_return = DB_TXNMAGIC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'H':
|
|
if (memEQ(name, "DB_SNAPSHOT", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_SNAPSHOT
|
|
*iv_return = DB_SNAPSHOT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'I':
|
|
if (memEQ(name, "DB_KEYEXIST", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_KEYEXIST
|
|
*iv_return = DB_KEYEXIST;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOG_DISK", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_DISK
|
|
*iv_return = DB_LOG_DISK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_POSITION", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_POSITION
|
|
*iv_return = DB_POSITION;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'L':
|
|
if (memEQ(name, "DB_ARCH_LOG", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_ARCH_LOG
|
|
*iv_return = DB_ARCH_LOG;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_FIXEDLEN", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_FIXEDLEN
|
|
*iv_return = DB_FIXEDLEN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_INIT_LOG", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_INIT_LOG
|
|
*iv_return = DB_INIT_LOG;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_APP_INIT", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_APP_INIT
|
|
*iv_return = DB_APP_INIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_UNDO", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_UNDO
|
|
*iv_return = DB_TXN_UNDO;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'O':
|
|
if (memEQ(name, "DB_GET_BOTH", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_GET_BOTH
|
|
*iv_return = DB_GET_BOTH;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCKDOWN", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCKDOWN
|
|
*iv_return = DB_LOCKDOWN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_LOCK", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_LOCK
|
|
*iv_return = DB_TXN_LOCK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'P':
|
|
if (memEQ(name, "DB_FILEOPEN", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_FILEOPEN
|
|
*iv_return = DB_FILEOPEN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_KEYEMPTY", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_KEYEMPTY
|
|
*iv_return = DB_KEYEMPTY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_PUT", 11)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 2) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 3)
|
|
*iv_return = DB_LOCK_PUT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_MULTIPLE", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_MULTIPLE
|
|
*iv_return = DB_MULTIPLE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_INIT_REP", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_INIT_REP
|
|
*iv_return = DB_INIT_REP;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_KEYFIRST", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_KEYFIRST
|
|
*iv_return = DB_KEYFIRST;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_OK_BTREE", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_OK_BTREE
|
|
*iv_return = DB_OK_BTREE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_SEQ_WRAP", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_SEQ_WRAP
|
|
*iv_return = DB_SEQ_WRAP;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'T':
|
|
if (memEQ(name, "DB_INIT_TXN", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_INIT_TXN
|
|
*iv_return = DB_INIT_TXN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'U':
|
|
if (memEQ(name, "DB_NOTFOUND", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_NOTFOUND
|
|
*iv_return = DB_NOTFOUND;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'V':
|
|
if (memEQ(name, "DB_NOSERVER", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_NOSERVER
|
|
*iv_return = DB_NOSERVER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'Y':
|
|
if (memEQ(name, "DB_TXN_SYNC", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_SYNC
|
|
*iv_return = DB_TXN_SYNC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_WRNOSYNC", 11)) {
|
|
/* ^ */
|
|
#ifdef DB_WRNOSYNC
|
|
*iv_return = DB_WRNOSYNC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_12 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_ARCH_DATA DB_CDB_ALLDB DB_CL_WRITER DB_DELIMITER DB_DIRECT_DB
|
|
DB_DSYNC_LOG DB_DUPCURSOR DB_ENV_FATAL DB_FAST_STAT DB_GET_BOTHC
|
|
DB_GET_RECNO DB_HASHMAGIC DB_INIT_LOCK DB_JOIN_ITEM DB_LOCKMAGIC
|
|
DB_LOCK_DUMP DB_LOCK_RW_N DB_LOGOLDVER DB_MAX_PAGES DB_MPOOL_NEW
|
|
DB_NEEDSPLIT DB_NODUPDATA DB_NOLOCKING DB_NORECURSE DB_OVERWRITE
|
|
DB_PAGEYIELD DB_PAGE_LOCK DB_PERMANENT DB_POSITIONI DB_PRINTABLE
|
|
DB_QAMOLDVER DB_RPCCLIENT DB_SET_RANGE DB_SET_RECNO DB_SWAPBYTES
|
|
DB_TEMPORARY DB_TXN_ABORT DB_TXN_APPLY DB_TXN_PRINT DB_WRITELOCK
|
|
DB_WRITEOPEN DB_XA_CREATE */
|
|
/* Offset 3 gives the best switch position. */
|
|
switch (name[3]) {
|
|
case 'A':
|
|
if (memEQ(name, "DB_ARCH_DATA", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_ARCH_DATA
|
|
*iv_return = DB_ARCH_DATA;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'C':
|
|
if (memEQ(name, "DB_CDB_ALLDB", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_CDB_ALLDB
|
|
*iv_return = DB_CDB_ALLDB;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_CL_WRITER", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_CL_WRITER
|
|
*iv_return = DB_CL_WRITER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'D':
|
|
if (memEQ(name, "DB_DELIMITER", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_DELIMITER
|
|
*iv_return = DB_DELIMITER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_DIRECT_DB", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_DIRECT_DB
|
|
*iv_return = DB_DIRECT_DB;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_DSYNC_LOG", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_DSYNC_LOG
|
|
*iv_return = DB_DSYNC_LOG;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_DUPCURSOR", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_DUPCURSOR
|
|
*iv_return = DB_DUPCURSOR;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'E':
|
|
if (memEQ(name, "DB_ENV_FATAL", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_FATAL
|
|
*iv_return = DB_ENV_FATAL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'F':
|
|
if (memEQ(name, "DB_FAST_STAT", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_FAST_STAT
|
|
*iv_return = DB_FAST_STAT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'G':
|
|
if (memEQ(name, "DB_GET_BOTHC", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_GET_BOTHC
|
|
*iv_return = DB_GET_BOTHC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_GET_RECNO", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_GET_RECNO
|
|
*iv_return = DB_GET_RECNO;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'H':
|
|
if (memEQ(name, "DB_HASHMAGIC", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_HASHMAGIC
|
|
*iv_return = DB_HASHMAGIC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'I':
|
|
if (memEQ(name, "DB_INIT_LOCK", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_INIT_LOCK
|
|
*iv_return = DB_INIT_LOCK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'J':
|
|
if (memEQ(name, "DB_JOIN_ITEM", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_JOIN_ITEM
|
|
*iv_return = DB_JOIN_ITEM;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'L':
|
|
if (memEQ(name, "DB_LOCKMAGIC", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCKMAGIC
|
|
*iv_return = DB_LOCKMAGIC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_DUMP", 12)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 2) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 3)
|
|
*iv_return = DB_LOCK_DUMP;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_RW_N", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_RW_N
|
|
*iv_return = DB_LOCK_RW_N;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOGOLDVER", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_LOGOLDVER
|
|
*iv_return = DB_LOGOLDVER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'M':
|
|
if (memEQ(name, "DB_MAX_PAGES", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_MAX_PAGES
|
|
*iv_return = DB_MAX_PAGES;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_MPOOL_NEW", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_MPOOL_NEW
|
|
*iv_return = DB_MPOOL_NEW;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_NEEDSPLIT", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_NEEDSPLIT
|
|
*iv_return = DB_NEEDSPLIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_NODUPDATA", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_NODUPDATA
|
|
*iv_return = DB_NODUPDATA;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_NOLOCKING", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_NOLOCKING
|
|
*iv_return = DB_NOLOCKING;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_NORECURSE", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_NORECURSE
|
|
*iv_return = DB_NORECURSE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'O':
|
|
if (memEQ(name, "DB_OVERWRITE", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_OVERWRITE
|
|
*iv_return = DB_OVERWRITE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'P':
|
|
if (memEQ(name, "DB_PAGEYIELD", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_PAGEYIELD
|
|
*iv_return = DB_PAGEYIELD;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_PAGE_LOCK", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_PAGE_LOCK
|
|
*iv_return = DB_PAGE_LOCK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_PERMANENT", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_PERMANENT
|
|
*iv_return = DB_PERMANENT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_POSITIONI", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_POSITIONI
|
|
*iv_return = DB_POSITIONI;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_PRINTABLE", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_PRINTABLE
|
|
*iv_return = DB_PRINTABLE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'Q':
|
|
if (memEQ(name, "DB_QAMOLDVER", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_QAMOLDVER
|
|
*iv_return = DB_QAMOLDVER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_RPCCLIENT", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_RPCCLIENT
|
|
*iv_return = DB_RPCCLIENT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'S':
|
|
if (memEQ(name, "DB_SET_RANGE", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_SET_RANGE
|
|
*iv_return = DB_SET_RANGE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_SET_RECNO", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_SET_RECNO
|
|
*iv_return = DB_SET_RECNO;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_SWAPBYTES", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_SWAPBYTES
|
|
*iv_return = DB_SWAPBYTES;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'T':
|
|
if (memEQ(name, "DB_TEMPORARY", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_TEMPORARY
|
|
*iv_return = DB_TEMPORARY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_ABORT", 12)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 3) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \
|
|
DB_VERSION_PATCH >= 14)
|
|
*iv_return = DB_TXN_ABORT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_APPLY", 12)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 4) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 14)
|
|
*iv_return = DB_TXN_APPLY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_PRINT", 12)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 4) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \
|
|
DB_VERSION_PATCH >= 24)
|
|
*iv_return = DB_TXN_PRINT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'W':
|
|
if (memEQ(name, "DB_WRITELOCK", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_WRITELOCK
|
|
*iv_return = DB_WRITELOCK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_WRITEOPEN", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_WRITEOPEN
|
|
*iv_return = DB_WRITEOPEN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'X':
|
|
if (memEQ(name, "DB_XA_CREATE", 12)) {
|
|
/* ^ */
|
|
#ifdef DB_XA_CREATE
|
|
*iv_return = DB_XA_CREATE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_13 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_AGGRESSIVE DB_BTREEMAGIC DB_CHECKPOINT DB_DIRECT_LOG DB_DIRTY_READ
|
|
DB_DONOTINDEX DB_ENV_CREATE DB_ENV_NOMMAP DB_ENV_THREAD DB_HASHOLDVER
|
|
DB_INCOMPLETE DB_INIT_MPOOL DB_LOCK_ABORT DB_LOCK_NORUN DB_LOCK_RIW_N
|
|
DB_LOCK_TRADE DB_LOGVERSION DB_LOG_CHKPNT DB_LOG_COMMIT DB_LOG_LOCKED
|
|
DB_LOG_NOCOPY DB_LOG_RESEND DB_MPOOL_FREE DB_MPOOL_LAST DB_MUTEXDEBUG
|
|
DB_MUTEXLOCKS DB_NEXT_NODUP DB_NOORDERCHK DB_PREV_NODUP DB_PR_HEADERS
|
|
DB_QAMVERSION DB_RDWRMASTER DB_REGISTERED DB_REP_CLIENT DB_REP_CREATE
|
|
DB_REP_ISPERM DB_REP_MASTER DB_SEQUENTIAL DB_STAT_CLEAR DB_SYSTEM_MEM
|
|
DB_TXNVERSION DB_TXN_NOSYNC DB_TXN_NOWAIT DB_VERIFY_BAD DB_debug_FLAG
|
|
DB_user_BEGIN */
|
|
/* Offset 5 gives the best switch position. */
|
|
switch (name[5]) {
|
|
case 'A':
|
|
if (memEQ(name, "DB_STAT_CLEAR", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_STAT_CLEAR
|
|
*iv_return = DB_STAT_CLEAR;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'C':
|
|
if (memEQ(name, "DB_INCOMPLETE", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_INCOMPLETE
|
|
*iv_return = DB_INCOMPLETE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_ABORT", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_ABORT
|
|
*iv_return = DB_LOCK_ABORT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_NORUN", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_NORUN
|
|
*iv_return = DB_LOCK_NORUN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_RIW_N", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_RIW_N
|
|
*iv_return = DB_LOCK_RIW_N;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_TRADE", 13)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 4) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \
|
|
DB_VERSION_PATCH >= 24)
|
|
*iv_return = DB_LOCK_TRADE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'E':
|
|
if (memEQ(name, "DB_CHECKPOINT", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_CHECKPOINT
|
|
*iv_return = DB_CHECKPOINT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_PREV_NODUP", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_PREV_NODUP
|
|
*iv_return = DB_PREV_NODUP;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'G':
|
|
if (memEQ(name, "DB_AGGRESSIVE", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_AGGRESSIVE
|
|
*iv_return = DB_AGGRESSIVE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOGVERSION", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_LOGVERSION
|
|
*iv_return = DB_LOGVERSION;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOG_CHKPNT", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_CHKPNT
|
|
*iv_return = DB_LOG_CHKPNT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOG_COMMIT", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_COMMIT
|
|
*iv_return = DB_LOG_COMMIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOG_LOCKED", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_LOCKED
|
|
*iv_return = DB_LOG_LOCKED;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOG_NOCOPY", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_NOCOPY
|
|
*iv_return = DB_LOG_NOCOPY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOG_RESEND", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_RESEND
|
|
*iv_return = DB_LOG_RESEND;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REGISTERED", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_REGISTERED
|
|
*iv_return = DB_REGISTERED;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'I':
|
|
if (memEQ(name, "DB_INIT_MPOOL", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_INIT_MPOOL
|
|
*iv_return = DB_INIT_MPOOL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'M':
|
|
if (memEQ(name, "DB_QAMVERSION", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_QAMVERSION
|
|
*iv_return = DB_QAMVERSION;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_DONOTINDEX", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_DONOTINDEX
|
|
*iv_return = DB_DONOTINDEX;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXNVERSION", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_TXNVERSION
|
|
*iv_return = DB_TXNVERSION;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_NOSYNC", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_NOSYNC
|
|
*iv_return = DB_TXN_NOSYNC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_NOWAIT", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_NOWAIT
|
|
*iv_return = DB_TXN_NOWAIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'O':
|
|
if (memEQ(name, "DB_MPOOL_FREE", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_MPOOL_FREE
|
|
*iv_return = DB_MPOOL_FREE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_MPOOL_LAST", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_MPOOL_LAST
|
|
*iv_return = DB_MPOOL_LAST;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_NOORDERCHK", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_NOORDERCHK
|
|
*iv_return = DB_NOORDERCHK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'P':
|
|
if (memEQ(name, "DB_REP_CLIENT", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_CLIENT
|
|
*iv_return = DB_REP_CLIENT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_CREATE", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_CREATE
|
|
*iv_return = DB_REP_CREATE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_ISPERM", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_ISPERM
|
|
*iv_return = DB_REP_ISPERM;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_MASTER", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_MASTER
|
|
*iv_return = DB_REP_MASTER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'Q':
|
|
if (memEQ(name, "DB_SEQUENTIAL", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_SEQUENTIAL
|
|
*iv_return = DB_SEQUENTIAL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_BTREEMAGIC", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_BTREEMAGIC
|
|
*iv_return = DB_BTREEMAGIC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_DIRECT_LOG", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_DIRECT_LOG
|
|
*iv_return = DB_DIRECT_LOG;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_DIRTY_READ", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_DIRTY_READ
|
|
*iv_return = DB_DIRTY_READ;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_VERIFY_BAD", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_VERIFY_BAD
|
|
*iv_return = DB_VERIFY_BAD;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'S':
|
|
if (memEQ(name, "DB_HASHOLDVER", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_HASHOLDVER
|
|
*iv_return = DB_HASHOLDVER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_SYSTEM_MEM", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_SYSTEM_MEM
|
|
*iv_return = DB_SYSTEM_MEM;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'T':
|
|
if (memEQ(name, "DB_MUTEXDEBUG", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_MUTEXDEBUG
|
|
*iv_return = DB_MUTEXDEBUG;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_MUTEXLOCKS", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_MUTEXLOCKS
|
|
*iv_return = DB_MUTEXLOCKS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'V':
|
|
if (memEQ(name, "DB_ENV_CREATE", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_CREATE
|
|
*iv_return = DB_ENV_CREATE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_ENV_NOMMAP", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_NOMMAP
|
|
*iv_return = DB_ENV_NOMMAP;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_ENV_THREAD", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_THREAD
|
|
*iv_return = DB_ENV_THREAD;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'W':
|
|
if (memEQ(name, "DB_RDWRMASTER", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_RDWRMASTER
|
|
*iv_return = DB_RDWRMASTER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'X':
|
|
if (memEQ(name, "DB_NEXT_NODUP", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_NEXT_NODUP
|
|
*iv_return = DB_NEXT_NODUP;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case '_':
|
|
if (memEQ(name, "DB_PR_HEADERS", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_PR_HEADERS
|
|
*iv_return = DB_PR_HEADERS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'b':
|
|
if (memEQ(name, "DB_debug_FLAG", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_debug_FLAG
|
|
*iv_return = DB_debug_FLAG;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'e':
|
|
if (memEQ(name, "DB_user_BEGIN", 13)) {
|
|
/* ^ */
|
|
#ifdef DB_user_BEGIN
|
|
*iv_return = DB_user_BEGIN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_14 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_ARCH_REMOVE DB_AUTO_COMMIT DB_BTREEOLDVER DB_CHKSUM_SHA1 DB_EID_INVALID
|
|
DB_ENCRYPT_AES DB_ENV_APPINIT DB_ENV_DBLOCAL DB_ENV_LOCKING DB_ENV_LOGGING
|
|
DB_ENV_NOPANIC DB_ENV_PRIVATE DB_FILE_ID_LEN DB_HANDLE_LOCK DB_HASHVERSION
|
|
DB_JOIN_NOSORT DB_LOCKVERSION DB_LOCK_EXPIRE DB_LOCK_NOWAIT DB_LOCK_OLDEST
|
|
DB_LOCK_RANDOM DB_LOCK_RECORD DB_LOCK_REMOVE DB_LOCK_SWITCH DB_MAX_RECORDS
|
|
DB_MPOOL_CLEAN DB_MPOOL_DIRTY DB_NOOVERWRITE DB_NOSERVER_ID DB_ODDFILESIZE
|
|
DB_OLD_VERSION DB_OPEN_CALLED DB_RECORDCOUNT DB_RECORD_LOCK DB_REGION_ANON
|
|
DB_REGION_INIT DB_REGION_NAME DB_RENAMEMAGIC DB_REP_EGENCHG DB_REP_NEWSITE
|
|
DB_REP_NOTPERM DB_REP_UNAVAIL DB_REVSPLITOFF DB_RUNRECOVERY DB_SET_TXN_NOW
|
|
DB_USE_ENVIRON DB_WRITECURSOR DB_XIDDATASIZE */
|
|
/* Offset 9 gives the best switch position. */
|
|
switch (name[9]) {
|
|
case 'A':
|
|
if (memEQ(name, "DB_LOCK_RANDOM", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_RANDOM
|
|
*iv_return = DB_LOCK_RANDOM;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_OPEN_CALLED", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_OPEN_CALLED
|
|
*iv_return = DB_OPEN_CALLED;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_UNAVAIL", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_UNAVAIL
|
|
*iv_return = DB_REP_UNAVAIL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_XIDDATASIZE", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_XIDDATASIZE
|
|
*iv_return = DB_XIDDATASIZE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'C':
|
|
if (memEQ(name, "DB_ENV_LOCKING", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_LOCKING
|
|
*iv_return = DB_ENV_LOCKING;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_MAX_RECORDS", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_MAX_RECORDS
|
|
*iv_return = DB_MAX_RECORDS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_MPOOL_CLEAN", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_MPOOL_CLEAN
|
|
*iv_return = DB_MPOOL_CLEAN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_RECORDCOUNT", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_RECORDCOUNT
|
|
*iv_return = DB_RECORDCOUNT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'D':
|
|
if (memEQ(name, "DB_FILE_ID_LEN", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_FILE_ID_LEN
|
|
*iv_return = DB_FILE_ID_LEN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_MPOOL_DIRTY", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_MPOOL_DIRTY
|
|
*iv_return = DB_MPOOL_DIRTY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'E':
|
|
if (memEQ(name, "DB_ARCH_REMOVE", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_ARCH_REMOVE
|
|
*iv_return = DB_ARCH_REMOVE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_RECORD", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_RECORD
|
|
*iv_return = DB_LOCK_RECORD;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_REMOVE", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_REMOVE
|
|
*iv_return = DB_LOCK_REMOVE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_NOSERVER_ID", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_NOSERVER_ID
|
|
*iv_return = DB_NOSERVER_ID;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_ODDFILESIZE", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_ODDFILESIZE
|
|
*iv_return = DB_ODDFILESIZE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_EGENCHG", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_EGENCHG
|
|
*iv_return = DB_REP_EGENCHG;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'G':
|
|
if (memEQ(name, "DB_ENV_LOGGING", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_LOGGING
|
|
*iv_return = DB_ENV_LOGGING;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'I':
|
|
if (memEQ(name, "DB_ENV_PRIVATE", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_PRIVATE
|
|
*iv_return = DB_ENV_PRIVATE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REVSPLITOFF", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_REVSPLITOFF
|
|
*iv_return = DB_REVSPLITOFF;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'L':
|
|
if (memEQ(name, "DB_BTREEOLDVER", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_BTREEOLDVER
|
|
*iv_return = DB_BTREEOLDVER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_ENV_DBLOCAL", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_DBLOCAL
|
|
*iv_return = DB_ENV_DBLOCAL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_OLDEST", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_OLDEST
|
|
*iv_return = DB_LOCK_OLDEST;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'M':
|
|
if (memEQ(name, "DB_RENAMEMAGIC", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_RENAMEMAGIC
|
|
*iv_return = DB_RENAMEMAGIC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_SET_TXN_NOW", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_SET_TXN_NOW
|
|
*iv_return = DB_SET_TXN_NOW;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'O':
|
|
if (memEQ(name, "DB_AUTO_COMMIT", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_AUTO_COMMIT
|
|
*iv_return = DB_AUTO_COMMIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_JOIN_NOSORT", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_JOIN_NOSORT
|
|
*iv_return = DB_JOIN_NOSORT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_NOWAIT", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_NOWAIT
|
|
*iv_return = DB_LOCK_NOWAIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_RUNRECOVERY", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_RUNRECOVERY
|
|
*iv_return = DB_RUNRECOVERY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'P':
|
|
if (memEQ(name, "DB_ENV_APPINIT", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_APPINIT
|
|
*iv_return = DB_ENV_APPINIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_ENV_NOPANIC", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_NOPANIC
|
|
*iv_return = DB_ENV_NOPANIC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_HASHVERSION", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_HASHVERSION
|
|
*iv_return = DB_HASHVERSION;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCKVERSION", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCKVERSION
|
|
*iv_return = DB_LOCKVERSION;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_OLD_VERSION", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_OLD_VERSION
|
|
*iv_return = DB_OLD_VERSION;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'T':
|
|
if (memEQ(name, "DB_ENCRYPT_AES", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_ENCRYPT_AES
|
|
*iv_return = DB_ENCRYPT_AES;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_NOTPERM", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_NOTPERM
|
|
*iv_return = DB_REP_NOTPERM;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'U':
|
|
if (memEQ(name, "DB_WRITECURSOR", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_WRITECURSOR
|
|
*iv_return = DB_WRITECURSOR;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'V':
|
|
if (memEQ(name, "DB_EID_INVALID", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_EID_INVALID
|
|
*iv_return = DB_EID_INVALID;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_USE_ENVIRON", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_USE_ENVIRON
|
|
*iv_return = DB_USE_ENVIRON;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'W':
|
|
if (memEQ(name, "DB_LOCK_SWITCH", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_SWITCH
|
|
*iv_return = DB_LOCK_SWITCH;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_NOOVERWRITE", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_NOOVERWRITE
|
|
*iv_return = DB_NOOVERWRITE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_NEWSITE", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_NEWSITE
|
|
*iv_return = DB_REP_NEWSITE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'X':
|
|
if (memEQ(name, "DB_LOCK_EXPIRE", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_EXPIRE
|
|
*iv_return = DB_LOCK_EXPIRE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case '_':
|
|
if (memEQ(name, "DB_CHKSUM_SHA1", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_CHKSUM_SHA1
|
|
*iv_return = DB_CHKSUM_SHA1;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_HANDLE_LOCK", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_HANDLE_LOCK
|
|
*iv_return = DB_HANDLE_LOCK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_RECORD_LOCK", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_RECORD_LOCK
|
|
*iv_return = DB_RECORD_LOCK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REGION_ANON", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_REGION_ANON
|
|
*iv_return = DB_REGION_ANON;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REGION_INIT", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_REGION_INIT
|
|
*iv_return = DB_REGION_INIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REGION_NAME", 14)) {
|
|
/* ^ */
|
|
#ifdef DB_REGION_NAME
|
|
*iv_return = DB_REGION_NAME;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_15 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_APPLY_LOGREG DB_BTREEVERSION DB_BUFFER_SMALL DB_CONSUME_WAIT
|
|
DB_ENV_LOCKDOWN DB_ENV_PANIC_OK DB_ENV_YIELDCPU DB_LOCK_DEFAULT
|
|
DB_LOCK_INHERIT DB_LOCK_NOTHELD DB_LOCK_PUT_ALL DB_LOCK_PUT_OBJ
|
|
DB_LOCK_TIMEOUT DB_LOCK_UPGRADE DB_LOG_INMEMORY DB_LOG_WRNOSYNC
|
|
DB_MPOOL_CREATE DB_MPOOL_EXTENT DB_MPOOL_NOFILE DB_MPOOL_UNLINK
|
|
DB_MULTIPLE_KEY DB_OPFLAGS_MASK DB_ORDERCHKONLY DB_PRIORITY_LOW
|
|
DB_REGION_MAGIC DB_REP_LOGREADY DB_REP_LOGSONLY DB_REP_NOBUFFER
|
|
DB_REP_OUTDATED DB_REP_PAGEDONE DB_SURPRISE_KID DB_TEST_POSTLOG
|
|
DB_TEST_PREOPEN DB_TXN_LOCK_2PL DB_TXN_LOG_MASK DB_TXN_LOG_REDO
|
|
DB_TXN_LOG_UNDO DB_VERIFY_FATAL */
|
|
/* Offset 10 gives the best switch position. */
|
|
switch (name[10]) {
|
|
case 'D':
|
|
if (memEQ(name, "DB_REP_OUTDATED", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_OUTDATED
|
|
*iv_return = DB_REP_OUTDATED;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'E':
|
|
if (memEQ(name, "DB_LOG_INMEMORY", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_INMEMORY
|
|
*iv_return = DB_LOG_INMEMORY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_MULTIPLE_KEY", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_MULTIPLE_KEY
|
|
*iv_return = DB_MULTIPLE_KEY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_PAGEDONE", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_PAGEDONE
|
|
*iv_return = DB_REP_PAGEDONE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_SURPRISE_KID", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_SURPRISE_KID
|
|
*iv_return = DB_SURPRISE_KID;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TEST_PREOPEN", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_PREOPEN
|
|
*iv_return = DB_TEST_PREOPEN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'F':
|
|
if (memEQ(name, "DB_LOCK_DEFAULT", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_DEFAULT
|
|
*iv_return = DB_LOCK_DEFAULT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_VERIFY_FATAL", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_VERIFY_FATAL
|
|
*iv_return = DB_VERIFY_FATAL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'G':
|
|
if (memEQ(name, "DB_LOCK_UPGRADE", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_UPGRADE
|
|
*iv_return = DB_LOCK_UPGRADE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'H':
|
|
if (memEQ(name, "DB_LOCK_INHERIT", 15)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 2) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 7) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 7 && \
|
|
DB_VERSION_PATCH >= 1)
|
|
*iv_return = DB_LOCK_INHERIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'I':
|
|
if (memEQ(name, "DB_ENV_PANIC_OK", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_PANIC_OK
|
|
*iv_return = DB_ENV_PANIC_OK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'K':
|
|
if (memEQ(name, "DB_ENV_LOCKDOWN", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_LOCKDOWN
|
|
*iv_return = DB_ENV_LOCKDOWN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_ORDERCHKONLY", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_ORDERCHKONLY
|
|
*iv_return = DB_ORDERCHKONLY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_LOCK_2PL", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_LOCK_2PL
|
|
*iv_return = DB_TXN_LOCK_2PL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'L':
|
|
if (memEQ(name, "DB_ENV_YIELDCPU", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_YIELDCPU
|
|
*iv_return = DB_ENV_YIELDCPU;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'M':
|
|
if (memEQ(name, "DB_LOCK_TIMEOUT", 15)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 4) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 14)
|
|
*iv_return = DB_LOCK_TIMEOUT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REGION_MAGIC", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_REGION_MAGIC
|
|
*iv_return = DB_REGION_MAGIC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_MPOOL_UNLINK", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_MPOOL_UNLINK
|
|
*iv_return = DB_MPOOL_UNLINK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'O':
|
|
if (memEQ(name, "DB_APPLY_LOGREG", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_APPLY_LOGREG
|
|
*iv_return = DB_APPLY_LOGREG;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOG_WRNOSYNC", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_WRNOSYNC
|
|
*iv_return = DB_LOG_WRNOSYNC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_MPOOL_NOFILE", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_MPOOL_NOFILE
|
|
*iv_return = DB_MPOOL_NOFILE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_BTREEVERSION", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_BTREEVERSION
|
|
*iv_return = DB_BTREEVERSION;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_MPOOL_CREATE", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_MPOOL_CREATE
|
|
*iv_return = DB_MPOOL_CREATE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_LOGREADY", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_LOGREADY
|
|
*iv_return = DB_REP_LOGREADY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'S':
|
|
if (memEQ(name, "DB_BUFFER_SMALL", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_BUFFER_SMALL
|
|
*iv_return = DB_BUFFER_SMALL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_LOGSONLY", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_LOGSONLY
|
|
*iv_return = DB_REP_LOGSONLY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TEST_POSTLOG", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_POSTLOG
|
|
*iv_return = DB_TEST_POSTLOG;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'T':
|
|
if (memEQ(name, "DB_LOCK_NOTHELD", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_NOTHELD
|
|
*iv_return = DB_LOCK_NOTHELD;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_PUT_ALL", 15)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 2) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 3)
|
|
*iv_return = DB_LOCK_PUT_ALL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_PUT_OBJ", 15)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 2) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 3)
|
|
*iv_return = DB_LOCK_PUT_OBJ;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'U':
|
|
if (memEQ(name, "DB_REP_NOBUFFER", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_NOBUFFER
|
|
*iv_return = DB_REP_NOBUFFER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'X':
|
|
if (memEQ(name, "DB_MPOOL_EXTENT", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_MPOOL_EXTENT
|
|
*iv_return = DB_MPOOL_EXTENT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'Y':
|
|
if (memEQ(name, "DB_PRIORITY_LOW", 15)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 4) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \
|
|
DB_VERSION_PATCH >= 24)
|
|
*iv_return = DB_PRIORITY_LOW;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case '_':
|
|
if (memEQ(name, "DB_CONSUME_WAIT", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_CONSUME_WAIT
|
|
*iv_return = DB_CONSUME_WAIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_OPFLAGS_MASK", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_OPFLAGS_MASK
|
|
*iv_return = DB_OPFLAGS_MASK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_LOG_MASK", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_LOG_MASK
|
|
*iv_return = DB_TXN_LOG_MASK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_LOG_REDO", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_LOG_REDO
|
|
*iv_return = DB_TXN_LOG_REDO;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_LOG_UNDO", 15)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_LOG_UNDO
|
|
*iv_return = DB_TXN_LOG_UNDO;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_16 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_CACHED_COUNTS DB_EID_BROADCAST DB_ENV_CDB_ALLDB DB_ENV_DIRECT_DB
|
|
DB_ENV_DSYNC_LOG DB_ENV_NOLOCKING DB_ENV_OVERWRITE DB_ENV_RPCCLIENT
|
|
DB_FCNTL_LOCKING DB_JAVA_CALLBACK DB_LOCK_CONFLICT DB_LOCK_DEADLOCK
|
|
DB_LOCK_MAXLOCKS DB_LOCK_MAXWRITE DB_LOCK_MINLOCKS DB_LOCK_MINWRITE
|
|
DB_LOCK_NOTEXIST DB_LOCK_PUT_READ DB_LOCK_YOUNGEST DB_LOGC_BUF_SIZE
|
|
DB_MPOOL_DISCARD DB_MPOOL_PRIVATE DB_NOSERVER_HOME DB_PAGE_NOTFOUND
|
|
DB_PRIORITY_HIGH DB_RECOVER_FATAL DB_REP_DUPMASTER DB_REP_NEWMASTER
|
|
DB_REP_PERMANENT DB_SECONDARY_BAD DB_SEQ_RANGE_SET DB_TEST_POSTOPEN
|
|
DB_TEST_POSTSYNC DB_TXN_LOCK_MASK DB_TXN_OPENFILES DB_VERB_CHKPOINT
|
|
DB_VERB_DEADLOCK DB_VERB_RECOVERY DB_VERB_WAITSFOR DB_VERSION_MAJOR
|
|
DB_VERSION_MINOR DB_VERSION_PATCH DB_VRFY_FLAGMASK */
|
|
/* Offset 10 gives the best switch position. */
|
|
switch (name[10]) {
|
|
case 'A':
|
|
if (memEQ(name, "DB_EID_BROADCAST", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_EID_BROADCAST
|
|
*iv_return = DB_EID_BROADCAST;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_DEADLOCK", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_DEADLOCK
|
|
*iv_return = DB_LOCK_DEADLOCK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_VERB_DEADLOCK", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_VERB_DEADLOCK
|
|
*iv_return = DB_VERB_DEADLOCK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_VRFY_FLAGMASK", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_VRFY_FLAGMASK
|
|
*iv_return = DB_VRFY_FLAGMASK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'C':
|
|
if (memEQ(name, "DB_CACHED_COUNTS", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_CACHED_COUNTS
|
|
*iv_return = DB_CACHED_COUNTS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_ENV_RPCCLIENT", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_RPCCLIENT
|
|
*iv_return = DB_ENV_RPCCLIENT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_VERB_RECOVERY", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_VERB_RECOVERY
|
|
*iv_return = DB_VERB_RECOVERY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'E':
|
|
if (memEQ(name, "DB_ENV_DIRECT_DB", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_DIRECT_DB
|
|
*iv_return = DB_ENV_DIRECT_DB;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'F':
|
|
if (memEQ(name, "DB_LOGC_BUF_SIZE", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_LOGC_BUF_SIZE
|
|
*iv_return = DB_LOGC_BUF_SIZE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'G':
|
|
if (memEQ(name, "DB_SEQ_RANGE_SET", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_SEQ_RANGE_SET
|
|
*iv_return = DB_SEQ_RANGE_SET;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'I':
|
|
if (memEQ(name, "DB_MPOOL_DISCARD", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_MPOOL_DISCARD
|
|
*iv_return = DB_MPOOL_DISCARD;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_VERB_WAITSFOR", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_VERB_WAITSFOR
|
|
*iv_return = DB_VERB_WAITSFOR;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'K':
|
|
if (memEQ(name, "DB_TXN_LOCK_MASK", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_LOCK_MASK
|
|
*iv_return = DB_TXN_LOCK_MASK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_VERB_CHKPOINT", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_VERB_CHKPOINT
|
|
*iv_return = DB_VERB_CHKPOINT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'L':
|
|
if (memEQ(name, "DB_JAVA_CALLBACK", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_JAVA_CALLBACK
|
|
*iv_return = DB_JAVA_CALLBACK;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'M':
|
|
if (memEQ(name, "DB_REP_DUPMASTER", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_DUPMASTER
|
|
*iv_return = DB_REP_DUPMASTER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_NEWMASTER", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_NEWMASTER
|
|
*iv_return = DB_REP_NEWMASTER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_PERMANENT", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_PERMANENT
|
|
*iv_return = DB_REP_PERMANENT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_ENV_DSYNC_LOG", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_DSYNC_LOG
|
|
*iv_return = DB_ENV_DSYNC_LOG;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_CONFLICT", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_CONFLICT
|
|
*iv_return = DB_LOCK_CONFLICT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_MINLOCKS", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_MINLOCKS
|
|
*iv_return = DB_LOCK_MINLOCKS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_MINWRITE", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_MINWRITE
|
|
*iv_return = DB_LOCK_MINWRITE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_OPENFILES", 16)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 3) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \
|
|
DB_VERSION_PATCH >= 14)
|
|
*iv_return = DB_TXN_OPENFILES;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'O':
|
|
if (memEQ(name, "DB_ENV_NOLOCKING", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_NOLOCKING
|
|
*iv_return = DB_ENV_NOLOCKING;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_FCNTL_LOCKING", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_FCNTL_LOCKING
|
|
*iv_return = DB_FCNTL_LOCKING;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_ENV_OVERWRITE", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_OVERWRITE
|
|
*iv_return = DB_ENV_OVERWRITE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_MPOOL_PRIVATE", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_MPOOL_PRIVATE
|
|
*iv_return = DB_MPOOL_PRIVATE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_NOSERVER_HOME", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_NOSERVER_HOME
|
|
*iv_return = DB_NOSERVER_HOME;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_SECONDARY_BAD", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_SECONDARY_BAD
|
|
*iv_return = DB_SECONDARY_BAD;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'S':
|
|
if (memEQ(name, "DB_TEST_POSTOPEN", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_POSTOPEN
|
|
*iv_return = DB_TEST_POSTOPEN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TEST_POSTSYNC", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_POSTSYNC
|
|
*iv_return = DB_TEST_POSTSYNC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'T':
|
|
if (memEQ(name, "DB_LOCK_NOTEXIST", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_NOTEXIST
|
|
*iv_return = DB_LOCK_NOTEXIST;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_PUT_READ", 16)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 4) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 14)
|
|
*iv_return = DB_LOCK_PUT_READ;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_PAGE_NOTFOUND", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_PAGE_NOTFOUND
|
|
*iv_return = DB_PAGE_NOTFOUND;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'U':
|
|
if (memEQ(name, "DB_LOCK_YOUNGEST", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_YOUNGEST
|
|
*iv_return = DB_LOCK_YOUNGEST;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'X':
|
|
if (memEQ(name, "DB_LOCK_MAXLOCKS", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_MAXLOCKS
|
|
*iv_return = DB_LOCK_MAXLOCKS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_MAXWRITE", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_MAXWRITE
|
|
*iv_return = DB_LOCK_MAXWRITE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'Y':
|
|
if (memEQ(name, "DB_PRIORITY_HIGH", 16)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 4) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \
|
|
DB_VERSION_PATCH >= 24)
|
|
*iv_return = DB_PRIORITY_HIGH;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case '_':
|
|
if (memEQ(name, "DB_ENV_CDB_ALLDB", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_CDB_ALLDB
|
|
*iv_return = DB_ENV_CDB_ALLDB;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_RECOVER_FATAL", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_RECOVER_FATAL
|
|
*iv_return = DB_RECOVER_FATAL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_VERSION_MAJOR", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_VERSION_MAJOR
|
|
*iv_return = DB_VERSION_MAJOR;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_VERSION_MINOR", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_VERSION_MINOR
|
|
*iv_return = DB_VERSION_MINOR;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_VERSION_PATCH", 16)) {
|
|
/* ^ */
|
|
#ifdef DB_VERSION_PATCH
|
|
*iv_return = DB_VERSION_PATCH;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_17 (pTHX_ const char *name, IV *iv_return, const char **pv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_ENV_DIRECT_LOG DB_ENV_REP_CLIENT DB_ENV_REP_MASTER DB_ENV_STANDALONE
|
|
DB_ENV_SYSTEM_MEM DB_ENV_TXN_NOSYNC DB_ENV_USER_ALLOC DB_GET_BOTH_RANGE
|
|
DB_LOG_AUTOREMOVE DB_LOG_SILENT_ERR DB_NO_AUTO_COMMIT DB_RPC_SERVERPROG
|
|
DB_RPC_SERVERVERS DB_STAT_LOCK_CONF DB_STAT_MEMP_HASH DB_STAT_SUBSYSTEM
|
|
DB_TEST_ELECTINIT DB_TEST_ELECTSEND DB_TEST_PRERENAME DB_TXN_POPENFILES
|
|
DB_VERSION_STRING */
|
|
/* Offset 13 gives the best switch position. */
|
|
switch (name[13]) {
|
|
case 'A':
|
|
if (memEQ(name, "DB_GET_BOTH_RANGE", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_GET_BOTH_RANGE
|
|
*iv_return = DB_GET_BOTH_RANGE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'C':
|
|
if (memEQ(name, "DB_STAT_LOCK_CONF", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_STAT_LOCK_CONF
|
|
*iv_return = DB_STAT_LOCK_CONF;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'H':
|
|
if (memEQ(name, "DB_STAT_MEMP_HASH", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_STAT_MEMP_HASH
|
|
*iv_return = DB_STAT_MEMP_HASH;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'I':
|
|
if (memEQ(name, "DB_ENV_REP_CLIENT", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_REP_CLIENT
|
|
*iv_return = DB_ENV_REP_CLIENT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TEST_ELECTINIT", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_ELECTINIT
|
|
*iv_return = DB_TEST_ELECTINIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_POPENFILES", 17)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 3) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 3) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 3 && \
|
|
DB_VERSION_PATCH >= 11)
|
|
*iv_return = DB_TXN_POPENFILES;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'L':
|
|
if (memEQ(name, "DB_ENV_STANDALONE", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_STANDALONE
|
|
*iv_return = DB_ENV_STANDALONE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_ENV_USER_ALLOC", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_USER_ALLOC
|
|
*iv_return = DB_ENV_USER_ALLOC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'M':
|
|
if (memEQ(name, "DB_LOG_AUTOREMOVE", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_AUTOREMOVE
|
|
*iv_return = DB_LOG_AUTOREMOVE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_NO_AUTO_COMMIT", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_NO_AUTO_COMMIT
|
|
*iv_return = DB_NO_AUTO_COMMIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_TEST_PRERENAME", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_PRERENAME
|
|
*iv_return = DB_TEST_PRERENAME;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'P':
|
|
if (memEQ(name, "DB_RPC_SERVERPROG", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_RPC_SERVERPROG
|
|
*iv_return = DB_RPC_SERVERPROG;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_VERSION_STRING", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_VERSION_STRING
|
|
*pv_return = DB_VERSION_STRING;
|
|
return PERL_constant_ISPV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'S':
|
|
if (memEQ(name, "DB_ENV_REP_MASTER", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_REP_MASTER
|
|
*iv_return = DB_ENV_REP_MASTER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_ENV_TXN_NOSYNC", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_TXN_NOSYNC
|
|
*iv_return = DB_ENV_TXN_NOSYNC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_STAT_SUBSYSTEM", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_STAT_SUBSYSTEM
|
|
*iv_return = DB_STAT_SUBSYSTEM;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TEST_ELECTSEND", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_ELECTSEND
|
|
*iv_return = DB_TEST_ELECTSEND;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'V':
|
|
if (memEQ(name, "DB_RPC_SERVERVERS", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_RPC_SERVERVERS
|
|
*iv_return = DB_RPC_SERVERVERS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case '_':
|
|
if (memEQ(name, "DB_ENV_DIRECT_LOG", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_DIRECT_LOG
|
|
*iv_return = DB_ENV_DIRECT_LOG;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_ENV_SYSTEM_MEM", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_SYSTEM_MEM
|
|
*iv_return = DB_ENV_SYSTEM_MEM;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOG_SILENT_ERR", 17)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_SILENT_ERR
|
|
*iv_return = DB_LOG_SILENT_ERR;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_18 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_ALREADY_ABORTED DB_DURABLE_UNKNOWN DB_ENV_AUTO_COMMIT
|
|
DB_ENV_OPEN_CALLED DB_ENV_REGION_INIT DB_LOCK_NOTGRANTED
|
|
DB_LOG_BUFFER_FULL DB_LOG_NOT_DURABLE DB_MPOOL_NEW_GROUP
|
|
DB_PR_RECOVERYTEST DB_REP_HANDLE_DEAD DB_REP_STARTUPDONE
|
|
DB_SET_TXN_TIMEOUT DB_TEST_ELECTVOTE1 DB_TEST_ELECTVOTE2
|
|
DB_TEST_ELECTWAIT1 DB_TEST_ELECTWAIT2 DB_TEST_POSTRENAME
|
|
DB_TEST_PREDESTROY DB_TIME_NOTGRANTED DB_TXN_NOT_DURABLE */
|
|
/* Offset 13 gives the best switch position. */
|
|
switch (name[13]) {
|
|
case 'A':
|
|
if (memEQ(name, "DB_ENV_OPEN_CALLED", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_OPEN_CALLED
|
|
*iv_return = DB_ENV_OPEN_CALLED;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_NOTGRANTED", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_NOTGRANTED
|
|
*iv_return = DB_LOCK_NOTGRANTED;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TIME_NOTGRANTED", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_TIME_NOTGRANTED
|
|
*iv_return = DB_TIME_NOTGRANTED;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'E':
|
|
if (memEQ(name, "DB_TEST_POSTRENAME", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_POSTRENAME
|
|
*iv_return = DB_TEST_POSTRENAME;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'G':
|
|
if (memEQ(name, "DB_MPOOL_NEW_GROUP", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_MPOOL_NEW_GROUP
|
|
*iv_return = DB_MPOOL_NEW_GROUP;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'K':
|
|
if (memEQ(name, "DB_DURABLE_UNKNOWN", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_DURABLE_UNKNOWN
|
|
*iv_return = DB_DURABLE_UNKNOWN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'M':
|
|
if (memEQ(name, "DB_SET_TXN_TIMEOUT", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_SET_TXN_TIMEOUT
|
|
*iv_return = DB_SET_TXN_TIMEOUT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'O':
|
|
if (memEQ(name, "DB_ALREADY_ABORTED", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_ALREADY_ABORTED
|
|
*iv_return = DB_ALREADY_ABORTED;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_ENV_AUTO_COMMIT", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_AUTO_COMMIT
|
|
*iv_return = DB_ENV_AUTO_COMMIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'P':
|
|
if (memEQ(name, "DB_REP_STARTUPDONE", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_STARTUPDONE
|
|
*iv_return = DB_REP_STARTUPDONE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_LOG_NOT_DURABLE", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_NOT_DURABLE
|
|
*iv_return = DB_LOG_NOT_DURABLE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_NOT_DURABLE", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_NOT_DURABLE
|
|
*iv_return = DB_TXN_NOT_DURABLE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'S':
|
|
if (memEQ(name, "DB_TEST_PREDESTROY", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_PREDESTROY
|
|
*iv_return = DB_TEST_PREDESTROY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'V':
|
|
if (memEQ(name, "DB_TEST_ELECTVOTE1", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_ELECTVOTE1
|
|
*iv_return = DB_TEST_ELECTVOTE1;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TEST_ELECTVOTE2", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_ELECTVOTE2
|
|
*iv_return = DB_TEST_ELECTVOTE2;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'W':
|
|
if (memEQ(name, "DB_TEST_ELECTWAIT1", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_ELECTWAIT1
|
|
*iv_return = DB_TEST_ELECTWAIT1;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TEST_ELECTWAIT2", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_ELECTWAIT2
|
|
*iv_return = DB_TEST_ELECTWAIT2;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'Y':
|
|
if (memEQ(name, "DB_PR_RECOVERYTEST", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_PR_RECOVERYTEST
|
|
*iv_return = DB_PR_RECOVERYTEST;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case '_':
|
|
if (memEQ(name, "DB_ENV_REGION_INIT", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_REGION_INIT
|
|
*iv_return = DB_ENV_REGION_INIT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOG_BUFFER_FULL", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_LOG_BUFFER_FULL
|
|
*iv_return = DB_LOG_BUFFER_FULL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_REP_HANDLE_DEAD", 18)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_HANDLE_DEAD
|
|
*iv_return = DB_REP_HANDLE_DEAD;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_19 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_ENV_LOG_INMEMORY DB_ENV_REP_LOGSONLY DB_LOCK_FREE_LOCKER
|
|
DB_LOCK_GET_TIMEOUT DB_LOCK_SET_TIMEOUT DB_PRIORITY_DEFAULT
|
|
DB_REP_HOLDELECTION DB_SEQUENCE_VERSION DB_SET_LOCK_TIMEOUT
|
|
DB_STAT_LOCK_PARAMS DB_TEST_POSTDESTROY DB_TEST_POSTLOGMETA
|
|
DB_TEST_SUBDB_LOCKS DB_TXN_FORWARD_ROLL DB_TXN_LOG_UNDOREDO
|
|
DB_TXN_WRITE_NOSYNC DB_UPDATE_SECONDARY DB_USE_ENVIRON_ROOT
|
|
DB_VERB_REPLICATION DB_VERSION_MISMATCH */
|
|
/* Offset 9 gives the best switch position. */
|
|
switch (name[9]) {
|
|
case 'C':
|
|
if (memEQ(name, "DB_SEQUENCE_VERSION", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_SEQUENCE_VERSION
|
|
*iv_return = DB_SEQUENCE_VERSION;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_SET_LOCK_TIMEOUT", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_SET_LOCK_TIMEOUT
|
|
*iv_return = DB_SET_LOCK_TIMEOUT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'E':
|
|
if (memEQ(name, "DB_LOCK_GET_TIMEOUT", 19)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 4) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \
|
|
DB_VERSION_PATCH >= 14)
|
|
*iv_return = DB_LOCK_GET_TIMEOUT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_LOCK_SET_TIMEOUT", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_SET_TIMEOUT
|
|
*iv_return = DB_LOCK_SET_TIMEOUT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_VERB_REPLICATION", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_VERB_REPLICATION
|
|
*iv_return = DB_VERB_REPLICATION;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'G':
|
|
if (memEQ(name, "DB_ENV_LOG_INMEMORY", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_LOG_INMEMORY
|
|
*iv_return = DB_ENV_LOG_INMEMORY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_LOG_UNDOREDO", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_LOG_UNDOREDO
|
|
*iv_return = DB_TXN_LOG_UNDOREDO;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'I':
|
|
if (memEQ(name, "DB_TXN_WRITE_NOSYNC", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_WRITE_NOSYNC
|
|
*iv_return = DB_TXN_WRITE_NOSYNC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'L':
|
|
if (memEQ(name, "DB_REP_HOLDELECTION", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_REP_HOLDELECTION
|
|
*iv_return = DB_REP_HOLDELECTION;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_VERSION_MISMATCH", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_VERSION_MISMATCH
|
|
*iv_return = DB_VERSION_MISMATCH;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'O':
|
|
if (memEQ(name, "DB_STAT_LOCK_PARAMS", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_STAT_LOCK_PARAMS
|
|
*iv_return = DB_STAT_LOCK_PARAMS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TEST_POSTDESTROY", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_POSTDESTROY
|
|
*iv_return = DB_TEST_POSTDESTROY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TEST_POSTLOGMETA", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_POSTLOGMETA
|
|
*iv_return = DB_TEST_POSTLOGMETA;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'P':
|
|
if (memEQ(name, "DB_ENV_REP_LOGSONLY", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_REP_LOGSONLY
|
|
*iv_return = DB_ENV_REP_LOGSONLY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_LOCK_FREE_LOCKER", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_LOCK_FREE_LOCKER
|
|
*iv_return = DB_LOCK_FREE_LOCKER;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
if (memEQ(name, "DB_TXN_FORWARD_ROLL", 19)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 3) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \
|
|
DB_VERSION_PATCH >= 14)
|
|
*iv_return = DB_TXN_FORWARD_ROLL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'T':
|
|
if (memEQ(name, "DB_PRIORITY_DEFAULT", 19)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 4) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \
|
|
DB_VERSION_PATCH >= 24)
|
|
*iv_return = DB_PRIORITY_DEFAULT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'U':
|
|
if (memEQ(name, "DB_TEST_SUBDB_LOCKS", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_TEST_SUBDB_LOCKS
|
|
*iv_return = DB_TEST_SUBDB_LOCKS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'V':
|
|
if (memEQ(name, "DB_USE_ENVIRON_ROOT", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_USE_ENVIRON_ROOT
|
|
*iv_return = DB_USE_ENVIRON_ROOT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case '_':
|
|
if (memEQ(name, "DB_UPDATE_SECONDARY", 19)) {
|
|
/* ^ */
|
|
#ifdef DB_UPDATE_SECONDARY
|
|
*iv_return = DB_UPDATE_SECONDARY;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_20 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_CXX_NO_EXCEPTIONS DB_LOGFILEID_INVALID DB_PANIC_ENVIRONMENT
|
|
DB_PRIORITY_VERY_LOW DB_STAT_LOCK_LOCKERS DB_STAT_LOCK_OBJECTS
|
|
DB_TXN_BACKWARD_ROLL DB_TXN_LOCK_OPTIMIST */
|
|
/* Offset 15 gives the best switch position. */
|
|
switch (name[15]) {
|
|
case 'C':
|
|
if (memEQ(name, "DB_STAT_LOCK_LOCKERS", 20)) {
|
|
/* ^ */
|
|
#ifdef DB_STAT_LOCK_LOCKERS
|
|
*iv_return = DB_STAT_LOCK_LOCKERS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'I':
|
|
if (memEQ(name, "DB_TXN_LOCK_OPTIMIST", 20)) {
|
|
/* ^ */
|
|
#ifdef DB_TXN_LOCK_OPTIMIST
|
|
*iv_return = DB_TXN_LOCK_OPTIMIST;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'J':
|
|
if (memEQ(name, "DB_STAT_LOCK_OBJECTS", 20)) {
|
|
/* ^ */
|
|
#ifdef DB_STAT_LOCK_OBJECTS
|
|
*iv_return = DB_STAT_LOCK_OBJECTS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_PANIC_ENVIRONMENT", 20)) {
|
|
/* ^ */
|
|
#ifdef DB_PANIC_ENVIRONMENT
|
|
*iv_return = DB_PANIC_ENVIRONMENT;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'T':
|
|
if (memEQ(name, "DB_CXX_NO_EXCEPTIONS", 20)) {
|
|
/* ^ */
|
|
#ifdef DB_CXX_NO_EXCEPTIONS
|
|
*iv_return = DB_CXX_NO_EXCEPTIONS;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'V':
|
|
if (memEQ(name, "DB_LOGFILEID_INVALID", 20)) {
|
|
/* ^ */
|
|
#ifdef DB_LOGFILEID_INVALID
|
|
*iv_return = DB_LOGFILEID_INVALID;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'Y':
|
|
if (memEQ(name, "DB_PRIORITY_VERY_LOW", 20)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 4) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \
|
|
DB_VERSION_PATCH >= 24)
|
|
*iv_return = DB_PRIORITY_VERY_LOW;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case '_':
|
|
if (memEQ(name, "DB_TXN_BACKWARD_ROLL", 20)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 3) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \
|
|
DB_VERSION_PATCH >= 14)
|
|
*iv_return = DB_TXN_BACKWARD_ROLL;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_21 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_ENV_LOG_AUTOREMOVE DB_LOCK_UPGRADE_WRITE DB_PRIORITY_VERY_HIGH
|
|
DB_TXN_BACKWARD_ALLOC */
|
|
/* Offset 4 gives the best switch position. */
|
|
switch (name[4]) {
|
|
case 'N':
|
|
if (memEQ(name, "DB_ENV_LOG_AUTOREMOVE", 21)) {
|
|
/* ^ */
|
|
#ifdef DB_ENV_LOG_AUTOREMOVE
|
|
*iv_return = DB_ENV_LOG_AUTOREMOVE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'O':
|
|
if (memEQ(name, "DB_LOCK_UPGRADE_WRITE", 21)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 3) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 3) || \
|
|
(DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 3 && \
|
|
DB_VERSION_PATCH >= 11)
|
|
*iv_return = DB_LOCK_UPGRADE_WRITE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'R':
|
|
if (memEQ(name, "DB_PRIORITY_VERY_HIGH", 21)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 4) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \
|
|
DB_VERSION_PATCH >= 24)
|
|
*iv_return = DB_PRIORITY_VERY_HIGH;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'X':
|
|
if (memEQ(name, "DB_TXN_BACKWARD_ALLOC", 21)) {
|
|
/* ^ */
|
|
#if (DB_VERSION_MAJOR > 4) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \
|
|
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \
|
|
DB_VERSION_PATCH >= 24)
|
|
*iv_return = DB_TXN_BACKWARD_ALLOC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant_22 (pTHX_ const char *name, IV *iv_return) {
|
|
/* When generated this function returned values for the list of names given
|
|
here. However, subsequent manual editing may have added or removed some.
|
|
DB_ENV_RPCCLIENT_GIVEN DB_ENV_TIME_NOTGRANTED DB_ENV_TXN_NOT_DURABLE
|
|
DB_TXN_LOCK_OPTIMISTIC */
|
|
/* Offset 21 gives the best switch position. */
|
|
switch (name[21]) {
|
|
case 'C':
|
|
if (memEQ(name, "DB_TXN_LOCK_OPTIMISTI", 21)) {
|
|
/* C */
|
|
#ifdef DB_TXN_LOCK_OPTIMISTIC
|
|
*iv_return = DB_TXN_LOCK_OPTIMISTIC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'D':
|
|
if (memEQ(name, "DB_ENV_TIME_NOTGRANTE", 21)) {
|
|
/* D */
|
|
#ifdef DB_ENV_TIME_NOTGRANTED
|
|
*iv_return = DB_ENV_TIME_NOTGRANTED;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'E':
|
|
if (memEQ(name, "DB_ENV_TXN_NOT_DURABL", 21)) {
|
|
/* E */
|
|
#ifdef DB_ENV_TXN_NOT_DURABLE
|
|
*iv_return = DB_ENV_TXN_NOT_DURABLE;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
case 'N':
|
|
if (memEQ(name, "DB_ENV_RPCCLIENT_GIVE", 21)) {
|
|
/* N */
|
|
#ifdef DB_ENV_RPCCLIENT_GIVEN
|
|
*iv_return = DB_ENV_RPCCLIENT_GIVEN;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|
|
static int
|
|
constant (pTHX_ const char *name, STRLEN len, IV *iv_return, const char **pv_return) {
|
|
/* Initially switch on the length of the name. */
|
|
/* When generated this function returned values for the list of names given
|
|
in this section of perl code. Rather than manually editing these functions
|
|
to add or remove constants, which would result in this comment and section
|
|
of code becoming inaccurate, we recommend that you edit this section of
|
|
code, and use it to regenerate a new set of constant functions which you
|
|
then use to replace the originals.
|
|
|
|
Regenerate these constant functions by feeding this entire source file to
|
|
perl -x
|
|
|
|
#!/usr/bin/perl5.8.3 -w
|
|
use ExtUtils::Constant qw (constant_types C_constant XS_constant);
|
|
|
|
my $types = {map {($_, 1)} qw(IV PV)};
|
|
my @names = (qw(DB_AFTER DB_AGGRESSIVE DB_ALREADY_ABORTED DB_APPEND
|
|
DB_APPLY_LOGREG DB_APP_INIT DB_ARCH_ABS DB_ARCH_DATA DB_ARCH_LOG
|
|
DB_ARCH_REMOVE DB_AUTO_COMMIT DB_BEFORE DB_BTREEMAGIC
|
|
DB_BTREEOLDVER DB_BTREEVERSION DB_BUFFER_SMALL DB_CACHED_COUNTS
|
|
DB_CDB_ALLDB DB_CHECKPOINT DB_CHKSUM DB_CHKSUM_SHA1 DB_CLIENT
|
|
DB_CL_WRITER DB_COMMIT DB_CONSUME DB_CONSUME_WAIT DB_CREATE
|
|
DB_CURLSN DB_CURRENT DB_CXX_NO_EXCEPTIONS DB_DEGREE_2 DB_DELETED
|
|
DB_DELIMITER DB_DIRECT DB_DIRECT_DB DB_DIRECT_LOG DB_DIRTY_READ
|
|
DB_DONOTINDEX DB_DSYNC_LOG DB_DUP DB_DUPCURSOR DB_DUPSORT
|
|
DB_DURABLE_UNKNOWN DB_EID_BROADCAST DB_EID_INVALID DB_ENCRYPT
|
|
DB_ENCRYPT_AES DB_ENV_APPINIT DB_ENV_AUTO_COMMIT DB_ENV_CDB
|
|
DB_ENV_CDB_ALLDB DB_ENV_CREATE DB_ENV_DBLOCAL DB_ENV_DIRECT_DB
|
|
DB_ENV_DIRECT_LOG DB_ENV_DSYNC_LOG DB_ENV_FATAL DB_ENV_LOCKDOWN
|
|
DB_ENV_LOCKING DB_ENV_LOGGING DB_ENV_LOG_AUTOREMOVE
|
|
DB_ENV_LOG_INMEMORY DB_ENV_NOLOCKING DB_ENV_NOMMAP
|
|
DB_ENV_NOPANIC DB_ENV_OPEN_CALLED DB_ENV_OVERWRITE
|
|
DB_ENV_PANIC_OK DB_ENV_PRIVATE DB_ENV_REGION_INIT
|
|
DB_ENV_REP_CLIENT DB_ENV_REP_LOGSONLY DB_ENV_REP_MASTER
|
|
DB_ENV_RPCCLIENT DB_ENV_RPCCLIENT_GIVEN DB_ENV_STANDALONE
|
|
DB_ENV_SYSTEM_MEM DB_ENV_THREAD DB_ENV_TIME_NOTGRANTED
|
|
DB_ENV_TXN DB_ENV_TXN_NOSYNC DB_ENV_TXN_NOT_DURABLE
|
|
DB_ENV_TXN_WRITE_NOSYNC DB_ENV_USER_ALLOC DB_ENV_YIELDCPU
|
|
DB_EXCL DB_EXTENT DB_FAST_STAT DB_FCNTL_LOCKING DB_FILEOPEN
|
|
DB_FILE_ID_LEN DB_FIRST DB_FIXEDLEN DB_FLUSH DB_FORCE DB_GETREC
|
|
DB_GET_BOTH DB_GET_BOTHC DB_GET_BOTH_RANGE DB_GET_RECNO
|
|
DB_HANDLE_LOCK DB_HASHMAGIC DB_HASHOLDVER DB_HASHVERSION
|
|
DB_INCOMPLETE DB_INIT_CDB DB_INIT_LOCK DB_INIT_LOG DB_INIT_MPOOL
|
|
DB_INIT_REP DB_INIT_TXN DB_INORDER DB_JAVA_CALLBACK DB_JOINENV
|
|
DB_JOIN_ITEM DB_JOIN_NOSORT DB_KEYEMPTY DB_KEYEXIST DB_KEYFIRST
|
|
DB_KEYLAST DB_LAST DB_LOCKDOWN DB_LOCKMAGIC DB_LOCKVERSION
|
|
DB_LOCK_ABORT DB_LOCK_CONFLICT DB_LOCK_DEADLOCK DB_LOCK_DEFAULT
|
|
DB_LOCK_EXPIRE DB_LOCK_FREE_LOCKER DB_LOCK_MAXLOCKS
|
|
DB_LOCK_MAXWRITE DB_LOCK_MINLOCKS DB_LOCK_MINWRITE DB_LOCK_NORUN
|
|
DB_LOCK_NOTEXIST DB_LOCK_NOTGRANTED DB_LOCK_NOTHELD
|
|
DB_LOCK_NOWAIT DB_LOCK_OLDEST DB_LOCK_RANDOM DB_LOCK_RECORD
|
|
DB_LOCK_REMOVE DB_LOCK_RIW_N DB_LOCK_RW_N DB_LOCK_SET_TIMEOUT
|
|
DB_LOCK_SWITCH DB_LOCK_UPGRADE DB_LOCK_YOUNGEST DB_LOGC_BUF_SIZE
|
|
DB_LOGFILEID_INVALID DB_LOGMAGIC DB_LOGOLDVER DB_LOGVERSION
|
|
DB_LOG_AUTOREMOVE DB_LOG_BUFFER_FULL DB_LOG_CHKPNT DB_LOG_COMMIT
|
|
DB_LOG_DISK DB_LOG_INMEMORY DB_LOG_LOCKED DB_LOG_NOCOPY
|
|
DB_LOG_NOT_DURABLE DB_LOG_PERM DB_LOG_RESEND DB_LOG_SILENT_ERR
|
|
DB_LOG_WRNOSYNC DB_MAX_PAGES DB_MAX_RECORDS DB_MPOOL_CLEAN
|
|
DB_MPOOL_CREATE DB_MPOOL_DIRTY DB_MPOOL_DISCARD DB_MPOOL_EXTENT
|
|
DB_MPOOL_FREE DB_MPOOL_LAST DB_MPOOL_NEW DB_MPOOL_NEW_GROUP
|
|
DB_MPOOL_NOFILE DB_MPOOL_PRIVATE DB_MPOOL_UNLINK DB_MULTIPLE
|
|
DB_MULTIPLE_KEY DB_MUTEXDEBUG DB_MUTEXLOCKS DB_NEEDSPLIT DB_NEXT
|
|
DB_NEXT_DUP DB_NEXT_NODUP DB_NOCOPY DB_NODUPDATA DB_NOLOCKING
|
|
DB_NOMMAP DB_NOORDERCHK DB_NOOVERWRITE DB_NOPANIC DB_NORECURSE
|
|
DB_NOSERVER DB_NOSERVER_HOME DB_NOSERVER_ID DB_NOSYNC
|
|
DB_NOTFOUND DB_NO_AUTO_COMMIT DB_ODDFILESIZE DB_OK_BTREE
|
|
DB_OK_HASH DB_OK_QUEUE DB_OK_RECNO DB_OLD_VERSION DB_OPEN_CALLED
|
|
DB_OPFLAGS_MASK DB_ORDERCHKONLY DB_OVERWRITE DB_PAD DB_PAGEYIELD
|
|
DB_PAGE_LOCK DB_PAGE_NOTFOUND DB_PANIC_ENVIRONMENT DB_PERMANENT
|
|
DB_POSITION DB_POSITIONI DB_PREV DB_PREV_NODUP DB_PRINTABLE
|
|
DB_PRIVATE DB_PR_HEADERS DB_PR_PAGE DB_PR_RECOVERYTEST
|
|
DB_QAMMAGIC DB_QAMOLDVER DB_QAMVERSION DB_RDONLY DB_RDWRMASTER
|
|
DB_RECNUM DB_RECORDCOUNT DB_RECORD_LOCK DB_RECOVER
|
|
DB_RECOVER_FATAL DB_REGION_ANON DB_REGION_INIT DB_REGION_MAGIC
|
|
DB_REGION_NAME DB_REGISTERED DB_RENAMEMAGIC DB_RENUMBER
|
|
DB_REP_CLIENT DB_REP_CREATE DB_REP_DUPMASTER DB_REP_EGENCHG
|
|
DB_REP_HANDLE_DEAD DB_REP_HOLDELECTION DB_REP_ISPERM
|
|
DB_REP_LOGREADY DB_REP_LOGSONLY DB_REP_MASTER DB_REP_NEWMASTER
|
|
DB_REP_NEWSITE DB_REP_NOBUFFER DB_REP_NOTPERM DB_REP_OUTDATED
|
|
DB_REP_PAGEDONE DB_REP_PERMANENT DB_REP_STARTUPDONE
|
|
DB_REP_UNAVAIL DB_REVSPLITOFF DB_RMW DB_RPCCLIENT
|
|
DB_RPC_SERVERPROG DB_RPC_SERVERVERS DB_RUNRECOVERY DB_SALVAGE
|
|
DB_SECONDARY_BAD DB_SEQUENCE_VERSION DB_SEQUENTIAL DB_SEQ_DEC
|
|
DB_SEQ_INC DB_SEQ_RANGE_SET DB_SEQ_WRAP DB_SET
|
|
DB_SET_LOCK_TIMEOUT DB_SET_RANGE DB_SET_RECNO DB_SET_TXN_NOW
|
|
DB_SET_TXN_TIMEOUT DB_SNAPSHOT DB_STAT_ALL DB_STAT_CLEAR
|
|
DB_STAT_LOCK_CONF DB_STAT_LOCK_LOCKERS DB_STAT_LOCK_OBJECTS
|
|
DB_STAT_LOCK_PARAMS DB_STAT_MEMP_HASH DB_STAT_SUBSYSTEM
|
|
DB_SURPRISE_KID DB_SWAPBYTES DB_SYSTEM_MEM DB_TEMPORARY
|
|
DB_TEST_ELECTINIT DB_TEST_ELECTSEND DB_TEST_ELECTVOTE1
|
|
DB_TEST_ELECTVOTE2 DB_TEST_ELECTWAIT1 DB_TEST_ELECTWAIT2
|
|
DB_TEST_POSTDESTROY DB_TEST_POSTLOG DB_TEST_POSTLOGMETA
|
|
DB_TEST_POSTOPEN DB_TEST_POSTRENAME DB_TEST_POSTSYNC
|
|
DB_TEST_PREDESTROY DB_TEST_PREOPEN DB_TEST_PRERENAME
|
|
DB_TEST_SUBDB_LOCKS DB_THREAD DB_TIMEOUT DB_TIME_NOTGRANTED
|
|
DB_TRUNCATE DB_TXNMAGIC DB_TXNVERSION DB_TXN_CKP DB_TXN_LOCK
|
|
DB_TXN_LOCK_2PL DB_TXN_LOCK_MASK DB_TXN_LOCK_OPTIMIST
|
|
DB_TXN_LOCK_OPTIMISTIC DB_TXN_LOG_MASK DB_TXN_LOG_REDO
|
|
DB_TXN_LOG_UNDO DB_TXN_LOG_UNDOREDO DB_TXN_NOSYNC
|
|
DB_TXN_NOT_DURABLE DB_TXN_NOWAIT DB_TXN_REDO DB_TXN_SYNC
|
|
DB_TXN_UNDO DB_TXN_WRITE_NOSYNC DB_UNREF DB_UPDATE_SECONDARY
|
|
DB_UPGRADE DB_USE_ENVIRON DB_USE_ENVIRON_ROOT DB_VERB_CHKPOINT
|
|
DB_VERB_DEADLOCK DB_VERB_RECOVERY DB_VERB_REPLICATION
|
|
DB_VERB_WAITSFOR DB_VERIFY DB_VERIFY_BAD DB_VERIFY_FATAL
|
|
DB_VERSION_MAJOR DB_VERSION_MINOR DB_VERSION_MISMATCH
|
|
DB_VERSION_PATCH DB_VRFY_FLAGMASK DB_WRITECURSOR DB_WRITELOCK
|
|
DB_WRITEOPEN DB_WRNOSYNC DB_XA_CREATE DB_XIDDATASIZE DB_YIELDCPU
|
|
DB_debug_FLAG DB_user_BEGIN),
|
|
{name=>"DB_BTREE", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]},
|
|
{name=>"DB_HASH", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]},
|
|
{name=>"DB_LOCK_DUMP", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]},
|
|
{name=>"DB_LOCK_GET", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]},
|
|
{name=>"DB_LOCK_GET_TIMEOUT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]},
|
|
{name=>"DB_LOCK_INHERIT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 7) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 7 && \\\n DB_VERSION_PATCH >= 1)\n", "#endif\n"]},
|
|
{name=>"DB_LOCK_PUT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]},
|
|
{name=>"DB_LOCK_PUT_ALL", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]},
|
|
{name=>"DB_LOCK_PUT_OBJ", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]},
|
|
{name=>"DB_LOCK_PUT_READ", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]},
|
|
{name=>"DB_LOCK_TIMEOUT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]},
|
|
{name=>"DB_LOCK_TRADE", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]},
|
|
{name=>"DB_LOCK_UPGRADE_WRITE", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 3 && \\\n DB_VERSION_PATCH >= 11)\n", "#endif\n"]},
|
|
{name=>"DB_PRIORITY_DEFAULT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]},
|
|
{name=>"DB_PRIORITY_HIGH", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]},
|
|
{name=>"DB_PRIORITY_LOW", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]},
|
|
{name=>"DB_PRIORITY_VERY_HIGH", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]},
|
|
{name=>"DB_PRIORITY_VERY_LOW", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]},
|
|
{name=>"DB_QUEUE", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 55)\n", "#endif\n"]},
|
|
{name=>"DB_RECNO", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]},
|
|
{name=>"DB_TXN_ABORT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]},
|
|
{name=>"DB_TXN_APPLY", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]},
|
|
{name=>"DB_TXN_BACKWARD_ALLOC", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]},
|
|
{name=>"DB_TXN_BACKWARD_ROLL", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]},
|
|
{name=>"DB_TXN_FORWARD_ROLL", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]},
|
|
{name=>"DB_TXN_OPENFILES", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 14)\n", "#endif\n"]},
|
|
{name=>"DB_TXN_POPENFILES", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 3) || \\\n (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR == 3 && \\\n DB_VERSION_PATCH >= 11)\n", "#endif\n"]},
|
|
{name=>"DB_TXN_PRINT", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 4) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 1) || \\\n (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && \\\n DB_VERSION_PATCH >= 24)\n", "#endif\n"]},
|
|
{name=>"DB_UNKNOWN", type=>"IV", macro=>["#if (DB_VERSION_MAJOR > 2) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR > 0) || \\\n (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR == 0 && \\\n DB_VERSION_PATCH >= 3)\n", "#endif\n"]},
|
|
{name=>"DB_VERSION_STRING", type=>"PV"});
|
|
|
|
print constant_types(); # macro defs
|
|
foreach (C_constant ("BerkeleyDB", 'constant', 'IV', $types, undef, 3, @names) ) {
|
|
print $_, "\n"; # C constant subs
|
|
}
|
|
print "#### XS Section:\n";
|
|
print XS_constant ("BerkeleyDB", $types);
|
|
__END__
|
|
*/
|
|
|
|
switch (len) {
|
|
case 6:
|
|
return constant_6 (aTHX_ name, iv_return);
|
|
break;
|
|
case 7:
|
|
return constant_7 (aTHX_ name, iv_return);
|
|
break;
|
|
case 8:
|
|
return constant_8 (aTHX_ name, iv_return);
|
|
break;
|
|
case 9:
|
|
return constant_9 (aTHX_ name, iv_return);
|
|
break;
|
|
case 10:
|
|
return constant_10 (aTHX_ name, iv_return);
|
|
break;
|
|
case 11:
|
|
return constant_11 (aTHX_ name, iv_return);
|
|
break;
|
|
case 12:
|
|
return constant_12 (aTHX_ name, iv_return);
|
|
break;
|
|
case 13:
|
|
return constant_13 (aTHX_ name, iv_return);
|
|
break;
|
|
case 14:
|
|
return constant_14 (aTHX_ name, iv_return);
|
|
break;
|
|
case 15:
|
|
return constant_15 (aTHX_ name, iv_return);
|
|
break;
|
|
case 16:
|
|
return constant_16 (aTHX_ name, iv_return);
|
|
break;
|
|
case 17:
|
|
return constant_17 (aTHX_ name, iv_return, pv_return);
|
|
break;
|
|
case 18:
|
|
return constant_18 (aTHX_ name, iv_return);
|
|
break;
|
|
case 19:
|
|
return constant_19 (aTHX_ name, iv_return);
|
|
break;
|
|
case 20:
|
|
return constant_20 (aTHX_ name, iv_return);
|
|
break;
|
|
case 21:
|
|
return constant_21 (aTHX_ name, iv_return);
|
|
break;
|
|
case 22:
|
|
return constant_22 (aTHX_ name, iv_return);
|
|
break;
|
|
case 23:
|
|
if (memEQ(name, "DB_ENV_TXN_WRITE_NOSYNC", 23)) {
|
|
#ifdef DB_ENV_TXN_WRITE_NOSYNC
|
|
*iv_return = DB_ENV_TXN_WRITE_NOSYNC;
|
|
return PERL_constant_ISIV;
|
|
#else
|
|
return PERL_constant_NOTDEF;
|
|
#endif
|
|
}
|
|
break;
|
|
}
|
|
return PERL_constant_NOTFOUND;
|
|
}
|
|
|