mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Move rbtree.c from src/backend/utils/misc to src/backend/lib.
We have other general-purpose data structures in src/backend/lib, so it seems like a better home for the red-black tree as well.
This commit is contained in:
@ -12,6 +12,6 @@ subdir = src/backend/lib
|
||||
top_builddir = ../../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
OBJS = ilist.o binaryheap.o pairingheap.o stringinfo.o
|
||||
OBJS = ilist.o binaryheap.o pairingheap.o rbtree.o stringinfo.o
|
||||
|
||||
include $(top_srcdir)/src/backend/common.mk
|
||||
|
@ -5,6 +5,8 @@ binaryheap.c - a binary heap
|
||||
|
||||
pairingheap.c - a pairing heap
|
||||
|
||||
rbtree.c - a red-black tree
|
||||
|
||||
ilist.c - single and double-linked lists.
|
||||
|
||||
stringinfo.c - an extensible string type
|
||||
@ -19,6 +21,3 @@ while the binary heap works with plain Datums or pointers.
|
||||
|
||||
The linked-lists in ilist.c can be embedded directly into other structs, as
|
||||
opposed to the List interface in nodes/pg_list.h.
|
||||
|
||||
In addition to these, there is an implementation of a Red-Black tree in
|
||||
src/backend/utils/adt/rbtree.c.
|
||||
|
@ -20,13 +20,13 @@
|
||||
* Copyright (c) 2009-2014, PostgreSQL Global Development Group
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* src/backend/utils/misc/rbtree.c
|
||||
* src/backend/lib/rbtree.c
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "utils/rbtree.h"
|
||||
#include "lib/rbtree.h"
|
||||
|
||||
|
||||
/*
|
@ -14,7 +14,7 @@ include $(top_builddir)/src/Makefile.global
|
||||
|
||||
override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
|
||||
|
||||
OBJS = guc.o help_config.o pg_rusage.o ps_status.o rbtree.o \
|
||||
OBJS = guc.o help_config.o pg_rusage.o ps_status.o \
|
||||
superuser.o timeout.o tzparser.o
|
||||
|
||||
# This location might depend on the installation directories. Therefore
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include "access/itup.h"
|
||||
#include "fmgr.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "utils/rbtree.h"
|
||||
#include "lib/rbtree.h"
|
||||
|
||||
|
||||
/*
|
||||
|
@ -6,7 +6,7 @@
|
||||
* Copyright (c) 2009-2014, PostgreSQL Global Development Group
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* src/include/utils/rbtree.h
|
||||
* src/include/lib/rbtree.h
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
Reference in New Issue
Block a user