Skip to content

Commit 4acee91

Browse files
committed
Use tsearch from naive-tsearch
1 parent 86e9f7d commit 4acee91

File tree

4 files changed

+7
-131
lines changed

4 files changed

+7
-131
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "3rdparty/wb_intercon"]
55
path = 3rdparty/wb_intercon
66
url = https://github.com/olofk/wb_intercon.git
7+
[submodule "3rdparty/naive-tsearch"]
8+
path = 3rdparty/naive-tsearch
9+
url = https://github.com/kulp/naive-tsearch.git

3rdparty/naive-tsearch

Submodule naive-tsearch added at d7bd681

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ tsim_OBJECTS = $(common_OBJECTS) simif.o asm.o obj.o plugin.o \
3434
tld_OBJECTS = $(common_OBJECTS) obj.o
3535

3636
ifeq ($(USE_OWN_SEARCH),1)
37+
vpath %.c $(TOP)/3rdparty/naive-tsearch
3738
# The interface of lsearch and tsearch is not something we can change.
3839
lsearch.o tsearch.o: CFLAGS += -W$(PEDANTRY_EXCEPTION)cast-qual
40+
# tsearch.o from naive-tsearch has feature flags
41+
tsearch.o: CFLAGS += -Wno-unused-macros
3942

4043
tas_OBJECTS += lsearch.o tsearch.o
4144
tld_OBJECTS += lsearch.o tsearch.o

src/tsearch.c

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)