Skip to content

Commit f8b0cf7

Browse files
committed
Use tsearch from naive-tsearch
1 parent b116c93 commit f8b0cf7

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 11cb6ea

Makefile

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

3838
ifeq ($(USE_OWN_SEARCH),1)
39+
vpath %.c $(TOP)/3rdparty/naive-tsearch
3940
# The interface of lsearch and tsearch is not something we can change.
4041
lsearch.o tsearch.o: CFLAGS += -W$(PEDANTRY_EXCEPTION)cast-qual
42+
# tsearch.o from naive-tsearch has feature flags
43+
tsearch.o: CFLAGS += -Wno-unused-macros
4144

4245
tas_OBJECTS += lsearch.o tsearch.o
4346
tld_OBJECTS += lsearch.o tsearch.o

src/tsearch.c

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

0 commit comments

Comments
 (0)