diff --git a/newbrt/benchmark-test.c b/newbrt/benchmark-test.c index 0785193b3c7..666f376c58f 100644 --- a/newbrt/benchmark-test.c +++ b/newbrt/benchmark-test.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + /* Insert a bunch of stuff */ #include "brt.h" #include "key.h" diff --git a/newbrt/brt-internal.h b/newbrt/brt-internal.h index 725a669b8a7..51bd1c3fbb0 100644 --- a/newbrt/brt-internal.h +++ b/newbrt/brt-internal.h @@ -1,5 +1,7 @@ #ifndef BRT_INTERNAL_H #define BRT_INTERNAL_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "cachetable.h" #include "hashtable.h" #include "pma.h" diff --git a/newbrt/brt-serialize-test.c b/newbrt/brt-serialize-test.c index bc2eed5e1ff..fcfc06bcd19 100644 --- a/newbrt/brt-serialize-test.c +++ b/newbrt/brt-serialize-test.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "brt-internal.h" #include diff --git a/newbrt/brt-serialize.c b/newbrt/brt-serialize.c index 49fe6286996..2e4dc4f85af 100644 --- a/newbrt/brt-serialize.c +++ b/newbrt/brt-serialize.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #define _XOPEN_SOURCE 500 //#include "pma.h" diff --git a/newbrt/brt-test.c b/newbrt/brt-test.c index a7907ed422a..48404053da4 100644 --- a/newbrt/brt-test.c +++ b/newbrt/brt-test.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "brt.h" #include "key.h" diff --git a/newbrt/brt-verify.c b/newbrt/brt-verify.c index 6de07785d7e..a0b5f2a6cab 100644 --- a/newbrt/brt-verify.c +++ b/newbrt/brt-verify.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + /* Verify a BRT. */ /* Check: * the fingerprint of every node (local check) diff --git a/newbrt/brt.c b/newbrt/brt.c index 64f8ee8d440..edcf889e59f 100644 --- a/newbrt/brt.c +++ b/newbrt/brt.c @@ -1,4 +1,6 @@ /* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + /* Buffered repository tree. * Observation: The in-memory representation of a node doesn't have to be the same as the on-disk representation. * Goal for the in-memory representation: fast diff --git a/newbrt/brt.h b/newbrt/brt.h index 58deb7df2ac..2cccfe2809e 100644 --- a/newbrt/brt.h +++ b/newbrt/brt.h @@ -1,5 +1,7 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ #ifndef BRT_H #define BRT_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." // This must be first to make the 64-bit file mode work right in Linux #define _FILE_OFFSET_BITS 64 diff --git a/newbrt/brttypes.h b/newbrt/brttypes.h index 08fea8a001e..6abf7102f5f 100644 --- a/newbrt/brttypes.h +++ b/newbrt/brttypes.h @@ -1,5 +1,8 @@ #ifndef BRTTYPES_H #define BRTTYPES_H + +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include #define _XOPEN_SOURCE 500 #define _FILE_OFFSET_BITS 64 diff --git a/newbrt/cachetable-test.c b/newbrt/cachetable-test.c index 6f4c489f71a..34b1f045e56 100644 --- a/newbrt/cachetable-test.c +++ b/newbrt/cachetable-test.c @@ -1,4 +1,5 @@ /* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #include #include diff --git a/newbrt/cachetable-test2.c b/newbrt/cachetable-test2.c index f83888f0d3a..d951838df8b 100644 --- a/newbrt/cachetable-test2.c +++ b/newbrt/cachetable-test2.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "memory.h" #include "cachetable.h" diff --git a/newbrt/cachetable.c b/newbrt/cachetable.c index 36e6f4b82d9..1b48dea2763 100644 --- a/newbrt/cachetable.c +++ b/newbrt/cachetable.c @@ -1,3 +1,5 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #include "cachetable.h" #include "memory.h" diff --git a/newbrt/cachetable.h b/newbrt/cachetable.h index c92d9bf27fa..dc707cd58e5 100644 --- a/newbrt/cachetable.h +++ b/newbrt/cachetable.h @@ -1,6 +1,8 @@ #ifndef CACHETABLE_H #define CACHETABLE_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include #include "brttypes.h" diff --git a/newbrt/crc.h b/newbrt/crc.h index 9bc7ece881d..c4d517afa3c 100644 --- a/newbrt/crc.h +++ b/newbrt/crc.h @@ -1,5 +1,8 @@ #ifndef TOKU_CRC_H #define TOKU_CRC_H + +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include // zlib crc32 has a bug: If len==0 then it should return oldcrc32, but crc32 returns 0. diff --git a/newbrt/fingerprint.c b/newbrt/fingerprint.c index aaee542cc06..5cc1d1187f0 100644 --- a/newbrt/fingerprint.c +++ b/newbrt/fingerprint.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include #include #include "brt-internal.h" diff --git a/newbrt/hashfun.h b/newbrt/hashfun.h index 6c7c96b5074..fef4d1ca185 100644 --- a/newbrt/hashfun.h +++ b/newbrt/hashfun.h @@ -1,3 +1,5 @@ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + // FNV Hash: From an idea sent by Glenn Fowler and Phong Vo to the IEEE POSIX 1003.2 committee. Landon Curt Noll improved it. // See: http://isthe.com/chongo/tech/comp/fnv/ static inline unsigned int hash_key (const unsigned char *key, unsigned long keylen) { diff --git a/newbrt/hashtable.c b/newbrt/hashtable.c index 9836979275d..361d9051aa7 100644 --- a/newbrt/hashtable.c +++ b/newbrt/hashtable.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + /* Hash table with chaining. */ #include "hashtable.h" #include "memory.h" diff --git a/newbrt/hashtable.h b/newbrt/hashtable.h index 2ad62b17a31..314e31d0dfd 100644 --- a/newbrt/hashtable.h +++ b/newbrt/hashtable.h @@ -1,6 +1,8 @@ #ifndef HASHTABLE_H #define HASHTABLE_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "brttypes.h" /* Hash table with chaining. */ /* The keys and values are byte sequences. */ diff --git a/newbrt/hashtest.c b/newbrt/hashtest.c index 7504e713811..9509074c800 100644 --- a/newbrt/hashtest.c +++ b/newbrt/hashtest.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "key.h" #include "hashtable.h" #include "memory.h" diff --git a/newbrt/header-io.c b/newbrt/header-io.c index 81dbe289019..29daa2c8e36 100644 --- a/newbrt/header-io.c +++ b/newbrt/header-io.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "brt-internal.h" #include #include diff --git a/newbrt/key.c b/newbrt/key.c index 81e8d19f152..9479ac77bff 100644 --- a/newbrt/key.c +++ b/newbrt/key.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "brt-internal.h" #include #include diff --git a/newbrt/key.h b/newbrt/key.h index 83a5b259f58..8d90e8ebf8e 100644 --- a/newbrt/key.h +++ b/newbrt/key.h @@ -1,3 +1,5 @@ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "ybt.h" #include "brttypes.h" diff --git a/newbrt/kv-pair.h b/newbrt/kv-pair.h index 9b5ea4b1d33..b2e8012f418 100644 --- a/newbrt/kv-pair.h +++ b/newbrt/kv-pair.h @@ -1,6 +1,8 @@ #ifndef KV_PAIR_H #define KV_PAIR_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "memory.h" #include diff --git a/newbrt/list.h b/newbrt/list.h index cedabb090b2..0823aedd016 100644 --- a/newbrt/list.h +++ b/newbrt/list.h @@ -1,3 +1,5 @@ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + // This list is intended to be embedded in other data structures. struct list { struct list *next, *prev; diff --git a/newbrt/lock.h b/newbrt/lock.h index 0f3f862688c..2ddd6790760 100644 --- a/newbrt/lock.h +++ b/newbrt/lock.h @@ -1,3 +1,5 @@ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #if defined(__x86_64) || defined(__i386) static inline void mfence (void) { diff --git a/newbrt/log-internal.h b/newbrt/log-internal.h index 94d04beade3..d3af077408e 100644 --- a/newbrt/log-internal.h +++ b/newbrt/log-internal.h @@ -1,3 +1,5 @@ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include #include #include diff --git a/newbrt/log-test.c b/newbrt/log-test.c index 2cede4e382b..fd1528e1656 100644 --- a/newbrt/log-test.c +++ b/newbrt/log-test.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "log-internal.h" #include #include diff --git a/newbrt/log.c b/newbrt/log.c index 8c8afb9d2fe..de704e84d90 100644 --- a/newbrt/log.c +++ b/newbrt/log.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include #include #include diff --git a/newbrt/log.h b/newbrt/log.h index 5aba1aaba0b..ce89b0a8120 100644 --- a/newbrt/log.h +++ b/newbrt/log.h @@ -1,5 +1,8 @@ #ifndef TOKULOGGGER_H #define TOKULOGGGER_H + +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "../include/db.h" #include "brttypes.h" #include "kv-pair.h" diff --git a/newbrt/logformat.c b/newbrt/logformat.c index f6397d68d79..af4994b6012 100644 --- a/newbrt/logformat.c +++ b/newbrt/logformat.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + /* This file defines the logformat in an executable fashion. * This code is used to generate * The code that writes into the log. @@ -269,6 +272,7 @@ int main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__u cf = fopen(codepath, "w"); assert(cf!=0); hf = fopen(headerpath, "w"); assert(hf!=0); fprintf2(cf, hf, "/* Do not edit this file. This code generated by logformat.c. Copyright 2007 Tokutek. */\n"); + fprintf2(cf, hf, "#ident \"Copyright (c) 2007 Tokutek Inc. All rights reserved.\"\n"); fprintf(cf, "#include \n"); fprintf(hf, "#include \"brt-internal.h\"\n"); fprintf(cf, "#include \"log_header.h\"\n"); diff --git a/newbrt/mdict-test.c b/newbrt/mdict-test.c index 4980394ccd4..dfc0b82fc4d 100644 --- a/newbrt/mdict-test.c +++ b/newbrt/mdict-test.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "mdict.h" #include #include diff --git a/newbrt/mdict.c b/newbrt/mdict.c index fbce6cc6329..bb336bef848 100644 --- a/newbrt/mdict.c +++ b/newbrt/mdict.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "mdict.h" #include "memory.h" #define USEPMA diff --git a/newbrt/mdict.h b/newbrt/mdict.h index a017d6a5f73..3054033a8ea 100644 --- a/newbrt/mdict.h +++ b/newbrt/mdict.h @@ -1,6 +1,8 @@ #ifndef MDICT_H #define MDICT_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "brttypes.h" //#define USEPMA diff --git a/newbrt/memory.c b/newbrt/memory.c index 01c64837d6a..9ce48656f6f 100644 --- a/newbrt/memory.c +++ b/newbrt/memory.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "memory.h" #include #include diff --git a/newbrt/memory.h b/newbrt/memory.h index 19222a5d0d2..b55bdd86317 100644 --- a/newbrt/memory.h +++ b/newbrt/memory.h @@ -1,6 +1,8 @@ #ifndef MEMORY_H #define MEMORY_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + //#include /* Tokutek memory allocation functions and macros. diff --git a/newbrt/mempool.c b/newbrt/mempool.c index ef60233f413..6df4e2f4f6d 100644 --- a/newbrt/mempool.c +++ b/newbrt/mempool.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include #include #include "mempool.h" diff --git a/newbrt/mempool.h b/newbrt/mempool.h index 1c2224ff326..d2698cbff4e 100644 --- a/newbrt/mempool.h +++ b/newbrt/mempool.h @@ -1,6 +1,8 @@ #ifndef _TOKU_MEMPOOL_H #define _TOKU_MEMPOOL_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + /* a memory pool is a contiguous region of memory that supports single allocations from the pool. these allocated regions are never recycled. when the memory pool no longer has free space, the allocated chunks diff --git a/newbrt/memtest.c b/newbrt/memtest.c index 00792d4d325..4d5391904e5 100644 --- a/newbrt/memtest.c +++ b/newbrt/memtest.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include #include #include diff --git a/newbrt/myassert.c b/newbrt/myassert.c index 678088f82a1..91b1600e3e7 100644 --- a/newbrt/myassert.c +++ b/newbrt/myassert.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "myassert.h" #include #include diff --git a/newbrt/myassert.h b/newbrt/myassert.h index 0ca88a8fe1a..685734e17aa 100644 --- a/newbrt/myassert.h +++ b/newbrt/myassert.h @@ -1,6 +1,8 @@ #ifndef MYASSERT_H #define MYASSERT_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #ifndef TESTER #include #else diff --git a/newbrt/pma-internal.h b/newbrt/pma-internal.h index adab2c78adf..49f1f5dc7b8 100644 --- a/newbrt/pma-internal.h +++ b/newbrt/pma-internal.h @@ -1,3 +1,5 @@ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "pma.h" #include "mempool.h" diff --git a/newbrt/pma-test.c b/newbrt/pma-test.c index 83e6b9a96ab..3ae83462947 100644 --- a/newbrt/pma-test.c +++ b/newbrt/pma-test.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "brt-internal.h" #include "key.h" #include diff --git a/newbrt/pma.c b/newbrt/pma.c index ed639d58cf2..e4f78504688 100644 --- a/newbrt/pma.c +++ b/newbrt/pma.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + /* An in-memory Packed Memory Array dictionary. The keys and values are arrays of bytes, but are not necessarily kept in scan order. Only the pointers are kept. diff --git a/newbrt/pma.h b/newbrt/pma.h index 83051078bfa..14594985dac 100644 --- a/newbrt/pma.h +++ b/newbrt/pma.h @@ -1,6 +1,8 @@ #ifndef PMA_H #define PMA_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include "brttypes.h" #include "ybt.h" #include "yerror.h" diff --git a/newbrt/primes.c b/newbrt/primes.c index 3f03988fdfe..ad80a4b7e43 100644 --- a/newbrt/primes.c +++ b/newbrt/primes.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include static int is_prime (int n) { diff --git a/newbrt/primes.h b/newbrt/primes.h index 0564c2deb60..deb5ecfc5a5 100644 --- a/newbrt/primes.h +++ b/newbrt/primes.h @@ -1,3 +1,5 @@ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + /* Return the smallest prime >= 2^(idx+1) * Only works for idx<30 */ int toku_get_prime (unsigned int idx); diff --git a/newbrt/randdb4.c b/newbrt/randdb4.c index 7b8f9ef8828..6bf2bbb5548 100644 --- a/newbrt/randdb4.c +++ b/newbrt/randdb4.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + /* Test random insertions using db4 */ #include #include diff --git a/newbrt/rbuf.h b/newbrt/rbuf.h index b33b7715a70..8f20508c7f2 100644 --- a/newbrt/rbuf.h +++ b/newbrt/rbuf.h @@ -1,6 +1,8 @@ #ifndef RBUF_H #define RBUF_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include struct rbuf { diff --git a/newbrt/recover.c b/newbrt/recover.c index d0d656195db..1980a8e9851 100644 --- a/newbrt/recover.c +++ b/newbrt/recover.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + /* Recover an env. The logs are in argv[1]. The new database is created in the cwd. */ // Test: diff --git a/newbrt/rwlock.c b/newbrt/rwlock.c index d764c700f93..77974945d69 100644 --- a/newbrt/rwlock.c +++ b/newbrt/rwlock.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + /* Readers/writers locks implementation * ***************************************** diff --git a/newbrt/tdb_logprint.c b/newbrt/tdb_logprint.c index 0edad15d353..52aebc0b831 100644 --- a/newbrt/tdb_logprint.c +++ b/newbrt/tdb_logprint.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + /* Dump the log from stdin to stdout. */ #include #include diff --git a/newbrt/test_oexcl.c b/newbrt/test_oexcl.c index fe5017fbedd..f84c1686e31 100644 --- a/newbrt/test_oexcl.c +++ b/newbrt/test_oexcl.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include #include #include diff --git a/newbrt/wbuf.h b/newbrt/wbuf.h index 953ab9a1f53..62f5cc9ce14 100644 --- a/newbrt/wbuf.h +++ b/newbrt/wbuf.h @@ -1,6 +1,8 @@ #ifndef WBUF_H #define WBUF_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #include #include #include diff --git a/newbrt/ybt-test.c b/newbrt/ybt-test.c index e9bf2c9c67d..1e13eb5cefe 100644 --- a/newbrt/ybt-test.c +++ b/newbrt/ybt-test.c @@ -1,3 +1,6 @@ +/* -*- mode: C; c-basic-offset: 4 -*- */ +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + #define _FILE_OFFSET_BITS 64 #include "ybt.h" diff --git a/newbrt/ybt.h b/newbrt/ybt.h index 703ca8e3cbc..e3e4c2539e2 100644 --- a/newbrt/ybt.h +++ b/newbrt/ybt.h @@ -1,6 +1,8 @@ #ifndef YBT_H #define YBT_H +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + // brttypes.h must be first to make 64-bit file mode work right in linux. #include "brttypes.h" #include "../include/db.h" diff --git a/newbrt/yerror.h b/newbrt/yerror.h index 4a13372efbe..7cc4ef922e3 100644 --- a/newbrt/yerror.h +++ b/newbrt/yerror.h @@ -1,5 +1,8 @@ #ifndef YERROR_H #define YERROR_H + +#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." + enum pma_errors { BRT_OK=0, BRT_ALREADY_THERE = -2, BRT_KEYEMPTY=-3 }; enum typ_tag { TYP_BRTNODE = 0xdead0001,