diff options
| author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-02-17 17:25:57 +0000 |
|---|---|---|
| committer | <> | 2015-03-17 16:26:24 +0000 |
| commit | 780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch) | |
| tree | 598f8b9fa431b228d29897e798de4ac0c1d3d970 /docs/gsg/CXX/btree.html | |
| parent | 7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff) | |
| download | berkeleydb-master.tar.gz | |
Diffstat (limited to 'docs/gsg/CXX/btree.html')
| -rw-r--r-- | docs/gsg/CXX/btree.html | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/docs/gsg/CXX/btree.html b/docs/gsg/CXX/btree.html index df45215d..a87c9610 100644 --- a/docs/gsg/CXX/btree.html +++ b/docs/gsg/CXX/btree.html @@ -13,7 +13,7 @@ <body> <div xmlns="" class="navheader"> <div class="libver"> - <p>Library Version 11.2.5.3</p> + <p>Library Version 12.1.6.1</p> </div> <table width="100%" summary="Navigation header"> <tr> @@ -416,7 +416,7 @@ try { do not sort well when viewed as byte strings. There are several solutions to this problem, one being to provide a custom comparison function. See - <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/am_misc_faq.html" target="_top">http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/am_misc_faq.html</a> + <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/am_misc_faq.html" target="_top">http://docs.oracle.com/cd/E17076_02/html/programmer_reference/am_misc_faq.html</a> for more information. </p> </li> @@ -473,10 +473,13 @@ try { occur. </p> <p> - The value that you provide to the <code class="methodname">set_bt_compare()</code> method - is a pointer to a function that has the following signature: - </p> - <pre class="programlisting">int (*function)(Db *db, const Dbt *key1, const Dbt *key2)</pre> + The value that you provide to the + <code class="methodname">set_bt_compare()</code> method + is a pointer to a function that has the following signature: + </p> + <pre class="programlisting"> +int (*function)(Db *db, const Dbt *key1, const Dbt *key2, size_t *locp) + </pre> <p> This function must return an integer value less than, equal to, or greater than 0. If key1 is considered to be greater than @@ -499,10 +502,11 @@ try { </p> <a id="cxx_btree1"></a> <pre class="programlisting">int -compare_int(Db *dbp, const Dbt *a, const Dbt *b) +compare_int(Db *dbp, const Dbt *a, const Dbt *b, size_t *locp) { int ai, bi; + locp = NULL; // Returns: // < 0 if a < b // = 0 if a = b |
