mirror of
https://github.com/MariaDB/server.git
synced 2025-03-11 09:38:38 +01:00
git-svn-id: file:///svn/tokudb@2701 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
631b933389
commit
23e7afb8d2
2 changed files with 8 additions and 20 deletions
src/range_tree
|
@ -26,7 +26,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "redblack.h"
|
#include <tokuredblack.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
/* Dummy (sentinel) node, so that we can make X->left->up = X
|
/* Dummy (sentinel) node, so that we can make X->left->up = X
|
||||||
|
|
|
@ -1,14 +1,3 @@
|
||||||
#include <rangetree.h>
|
|
||||||
|
|
||||||
// These are the redblack directives
|
|
||||||
/* rbgen generated code begins here */
|
|
||||||
/* rbgen: $Id: rbgen.in,v 1.3 2003/10/24 01:31:21 damo Exp $ */
|
|
||||||
#define toku_range toku_range
|
|
||||||
#define RB_INLINE
|
|
||||||
/*
|
|
||||||
* RCS $Id: redblack.h,v 1.9 2003/10/24 01:31:21 damo Exp $
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Redblack balanced tree algorithm
|
Redblack balanced tree algorithm
|
||||||
Copyright (C) Damian Ivereigh 2000
|
Copyright (C) Damian Ivereigh 2000
|
||||||
|
@ -28,12 +17,12 @@
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Header file for redblack.c, should be included by any code that
|
#ifndef TOKU_REDBLACK_H
|
||||||
** uses redblack.c since it defines the functions
|
#define TOKU_REDBLACK_H
|
||||||
*/
|
|
||||||
|
|
||||||
/* Stop multiple includes */
|
#include <rangetree.h>
|
||||||
#ifndef _REDBLACK_H
|
#define toku_range toku_range
|
||||||
|
#define RB_INLINE
|
||||||
|
|
||||||
/* Modes for rblookup */
|
/* Modes for rblookup */
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
@ -109,5 +98,4 @@ struct toku_rbt_node
|
||||||
#endif /* RB_INLINE */
|
#endif /* RB_INLINE */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define _REDBLACK_H
|
#endif /* TOKU_REDBLACK_H */
|
||||||
#endif /* _REDBLACK_H */
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue