2N/A/* $Id$ */
2N/A/** @file
2N/A * IPRT - AVL tree, unsigned long, unique keys.
2N/A */
2N/A
2N/A/*
2N/A * Copyright (C) 2001-2010 knut st. osmundsen (bird-src-spam@anduin.net)
2N/A *
2N/A * This file is part of VirtualBox Open Source Edition (OSE), as
2N/A * available from http://www.virtualbox.org. This file is free software;
2N/A * you can redistribute it and/or modify it under the terms of the GNU
2N/A * General Public License (GPL) as published by the Free Software
2N/A * Foundation, in version 2 as it comes in the "COPYING" file of the
2N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
2N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
2N/A *
2N/A * The contents of this file may alternatively be used under the terms
2N/A * of the Common Development and Distribution License Version 1.0
2N/A * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
2N/A * VirtualBox OSE distribution, in which case the provisions of the
2N/A * CDDL are applicable instead of those of the GPL.
2N/A *
2N/A * You may elect to license modified versions of this file under the
2N/A * terms and conditions of either the GPL or the CDDL or both.
2N/A */
2N/A
2N/A#ifndef NOFILEID
2N/Astatic const char szFileId[] = "Id: kAVLULInt.c,v 1.4 2003/02/13 02:02:38 bird Exp $";
2N/A#endif
2N/A
2N/A/*******************************************************************************
2N/A* Defined Constants And Macros *
2N/A*******************************************************************************/
2N/A/*
2N/A * AVL configuration.
2N/A */
2N/A#define KAVL_FN(a) RTAvlUL##a
2N/A#define KAVL_MAX_STACK 27 /* Up to 2^24 nodes. */
2N/A#define KAVL_CHECK_FOR_EQUAL_INSERT 1 /* No duplicate keys! */
2N/A#define KAVLNODECORE AVLULNODECORE
2N/A#define PKAVLNODECORE PAVLULNODECORE
2N/A#define PPKAVLNODECORE PPAVLULNODECORE
2N/A#define KAVLKEY AVLULKEY
2N/A#define PKAVLKEY PAVLULKEY
2N/A#define KAVLENUMDATA AVLULENUMDATA
2N/A#define PKAVLENUMDATA PAVLULENUMDATA
2N/A#define PKAVLCALLBACK PAVLULCALLBACK
2N/A
2N/A
2N/A/*
2N/A * AVL Compare macros
2N/A */
2N/A#define KAVL_G(key1, key2) (key1 > key2)
2N/A#define KAVL_E(key1, key2) (key1 == key2)
2N/A#define KAVL_NE(key1, key2) (key1 != key2)
2N/A
2N/A
2N/A/*******************************************************************************
2N/A* Header Files *
2N/A*******************************************************************************/
2N/A#include <iprt/avl.h>
2N/A#include <iprt/assert.h>
2N/A#include <iprt/err.h>
2N/A
2N/A/*
2N/A * Include the code.
2N/A */
2N/A#define SSToDS(ptr) ptr
2N/A#define KMAX RT_MAX
2N/A#define kASSERT Assert
2N/A#include "avl_Base.cpp.h"
2N/A#include "avl_Get.cpp.h"
2N/A#include "avl_GetBestFit.cpp.h"
2N/A#include "avl_RemoveBestFit.cpp.h"
2N/A#include "avl_DoWithAll.cpp.h"
2N/A#include "avl_Destroy.cpp.h"
2N/A
2N/A