"Fossies" - the Fresh Open Source Software Archive

Member "haproxy-2.0.9/ebtree/ebtree.c" (15 Nov 2019, 1052 Bytes) of package /linux/misc/haproxy-2.0.9.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ebtree.c" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Elastic Binary Trees - exported generic functions
    3  * Version 6.0.6
    4  * (C) 2002-2011 - Willy Tarreau <w@1wt.eu>
    5  *
    6  * This library is free software; you can redistribute it and/or
    7  * modify it under the terms of the GNU Lesser General Public
    8  * License as published by the Free Software Foundation, version 2.1
    9  * exclusively.
   10  *
   11  * This library is distributed in the hope that it will be useful,
   12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   14  * Lesser General Public License for more details.
   15  *
   16  * You should have received a copy of the GNU Lesser General Public
   17  * License along with this library; if not, write to the Free Software
   18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
   19  */
   20 
   21 #include "ebtree.h"
   22 
   23 void eb_delete(struct eb_node *node)
   24 {
   25     __eb_delete(node);
   26 }
   27 
   28 /* used by insertion primitives */
   29 REGPRM1 struct eb_node *eb_insert_dup(struct eb_node *sub, struct eb_node *new)
   30 {
   31     return __eb_insert_dup(sub, new);
   32 }