mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-21 23:58:51 -05:00
Rename source files and make targets
This commit is contained in:
parent
b01802415d
commit
b818f44621
20
.gitignore
vendored
20
.gitignore
vendored
@ -5,13 +5,13 @@
|
||||
*.d
|
||||
*.log
|
||||
dump.rdb
|
||||
redis-benchmark
|
||||
redis-check-aof
|
||||
redis-check-rdb
|
||||
redis-check-dump
|
||||
redis-cli
|
||||
redis-sentinel
|
||||
redis-server
|
||||
redict-benchmark
|
||||
redict-check-aof
|
||||
redict-check-rdb
|
||||
redict-check-dump
|
||||
redict-cli
|
||||
redict-sentinel
|
||||
redict-server
|
||||
doc-tools
|
||||
release
|
||||
misc/*
|
||||
@ -22,8 +22,8 @@ SHORT_TERM_TODO
|
||||
release.h
|
||||
src/transfer.sh
|
||||
src/configs
|
||||
redis.ds
|
||||
src/redis.conf
|
||||
redict.ds
|
||||
src/redict.conf
|
||||
src/nodes.conf
|
||||
deps/lua/src/lua
|
||||
deps/lua/src/luac
|
||||
@ -40,4 +40,4 @@ Makefile.dep
|
||||
.ccls
|
||||
.ccls-cache/*
|
||||
compile_commands.json
|
||||
redis.code-workspace
|
||||
redict.code-workspace
|
||||
|
134
src/Makefile
134
src/Makefile
@ -1,13 +1,13 @@
|
||||
# Redis Makefile
|
||||
# Redict Makefile
|
||||
# Copyright (C) 2009 Salvatore Sanfilippo <antirez at gmail dot com>
|
||||
# This file is released under the BSD license, see the COPYING file
|
||||
#
|
||||
# The Makefile composes the final FINAL_CFLAGS and FINAL_LDFLAGS using
|
||||
# what is needed for Redis plus the standard CFLAGS and LDFLAGS passed.
|
||||
# what is needed for Redict plus the standard CFLAGS and LDFLAGS passed.
|
||||
# However when building the dependencies (Jemalloc, Lua, Hiredis, ...)
|
||||
# CFLAGS and LDFLAGS are propagated to the dependencies, so to pass
|
||||
# flags only to be used when compiling / linking Redis itself REDIS_CFLAGS
|
||||
# and REDIS_LDFLAGS are used instead (this is the case of 'make gcov').
|
||||
# flags only to be used when compiling / linking Redict itself REDICT_CFLAGS
|
||||
# and REDICT_LDFLAGS are used instead (this is the case of 'make gcov').
|
||||
#
|
||||
# Dependencies are stored in the Makefile.dep file. To rebuild this file
|
||||
# Just use 'make dep', but this is only needed by developers.
|
||||
@ -35,7 +35,7 @@ DEPENDENCY_TARGETS=hiredis linenoise lua hdr_histogram fpconv
|
||||
NODEPS:=clean distclean
|
||||
|
||||
# Default settings
|
||||
STD=-pedantic -DREDIS_STATIC=''
|
||||
STD=-pedantic -DREDICT_STATIC=''
|
||||
|
||||
# Use -Wno-c11-extensions on clang, either where explicitly used or on
|
||||
# platforms we can assume it's being used.
|
||||
@ -76,7 +76,7 @@ ifeq ($(uname_S),Linux)
|
||||
MALLOC=jemalloc
|
||||
endif
|
||||
|
||||
# To get ARM stack traces if Redis crashes we need a special C flag.
|
||||
# To get ARM stack traces if Redict crashes we need a special C flag.
|
||||
ifneq (,$(filter aarch64 armv%,$(uname_M)))
|
||||
CFLAGS+=-funwind-tables
|
||||
endif
|
||||
@ -122,8 +122,8 @@ endif
|
||||
# Override default settings if possible
|
||||
-include .make-settings
|
||||
|
||||
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
|
||||
FINAL_LDFLAGS=$(LDFLAGS) $(OPT) $(REDIS_LDFLAGS) $(DEBUG)
|
||||
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDICT_CFLAGS)
|
||||
FINAL_LDFLAGS=$(LDFLAGS) $(OPT) $(REDICT_LDFLAGS) $(DEBUG)
|
||||
FINAL_LIBS=-lm
|
||||
DEBUG=-g -ggdb
|
||||
|
||||
@ -303,7 +303,7 @@ ifeq ($(BUILD_TLS),yes)
|
||||
endif
|
||||
|
||||
TLS_MODULE=
|
||||
TLS_MODULE_NAME:=redis-tls$(PROG_SUFFIX).so
|
||||
TLS_MODULE_NAME:=redict-tls$(PROG_SUFFIX).so
|
||||
TLS_MODULE_CFLAGS:=$(FINAL_CFLAGS)
|
||||
ifeq ($(BUILD_TLS),module)
|
||||
FINAL_CFLAGS+=-DUSE_OPENSSL=$(BUILD_MODULE) $(OPENSSL_CFLAGS)
|
||||
@ -323,9 +323,9 @@ else
|
||||
endef
|
||||
endif
|
||||
|
||||
REDIS_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS)
|
||||
REDIS_LD=$(QUIET_LINK)$(CC) $(FINAL_LDFLAGS)
|
||||
REDIS_INSTALL=$(QUIET_INSTALL)$(INSTALL)
|
||||
REDICT_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS)
|
||||
REDICT_LD=$(QUIET_LINK)$(CC) $(FINAL_LDFLAGS)
|
||||
REDICT_INSTALL=$(QUIET_INSTALL)$(INSTALL)
|
||||
|
||||
CCCOLOR="\033[34m"
|
||||
LINKCOLOR="\033[34;1m"
|
||||
@ -341,7 +341,7 @@ QUIET_LINK = @printf ' %b %b\n' $(LINKCOLOR)LINK$(ENDCOLOR) $(BINCOLOR)$@$(EN
|
||||
QUIET_INSTALL = @printf ' %b %b\n' $(LINKCOLOR)INSTALL$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR) 1>&2;
|
||||
endif
|
||||
|
||||
ifneq (, $(findstring LOG_REQ_RES, $(REDIS_CFLAGS)))
|
||||
ifneq (, $(findstring LOG_REQ_RES, $(REDICT_CFLAGS)))
|
||||
COMMANDS_DEF_FILENAME=commands_with_reply_schema
|
||||
GEN_COMMANDS_FLAGS=--with-reply-schema
|
||||
else
|
||||
@ -349,24 +349,24 @@ else
|
||||
GEN_COMMANDS_FLAGS=
|
||||
endif
|
||||
|
||||
REDIS_SERVER_NAME=redis-server$(PROG_SUFFIX)
|
||||
REDIS_SENTINEL_NAME=redis-sentinel$(PROG_SUFFIX)
|
||||
REDIS_SERVER_OBJ=threads_mngr.o adlist.o quicklist.o ae.o anet.o dict.o kvstore.o server.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o sha1.o ziplist.o release.o networking.o util.o object.o db.o replication.o rdb.o t_string.o t_list.o t_set.o t_zset.o t_hash.o config.o aof.o pubsub.o multi.o debug.o sort.o intset.o syncio.o cluster.o cluster_legacy.o crc16.o endianconv.o slowlog.o eval.o bio.o rio.o rand.o memtest.o syscheck.o crcspeed.o crc64.o bitops.o sentinel.o notify.o setproctitle.o blocked.o hyperloglog.o latency.o sparkline.o redis-check-rdb.o redis-check-aof.o geo.o lazyfree.o module.o evict.o expire.o geohash.o geohash_helper.o childinfo.o defrag.o siphash.o rax.o t_stream.o listpack.o localtime.o lolwut.o lolwut5.o lolwut6.o acl.o tracking.o socket.o tls.o sha256.o timeout.o setcpuaffinity.o monotonic.o mt19937-64.o resp_parser.o call_reply.o script_lua.o script.o functions.o function_lua.o commands.o strl.o connection.o unix.o logreqres.o
|
||||
REDIS_CLI_NAME=redis-cli$(PROG_SUFFIX)
|
||||
REDIS_CLI_OBJ=anet.o adlist.o dict.o redis-cli.o zmalloc.o release.o ae.o redisassert.o crcspeed.o crc64.o siphash.o crc16.o monotonic.o cli_common.o mt19937-64.o strl.o cli_commands.o
|
||||
REDIS_BENCHMARK_NAME=redis-benchmark$(PROG_SUFFIX)
|
||||
REDIS_BENCHMARK_OBJ=ae.o anet.o redis-benchmark.o adlist.o dict.o zmalloc.o redisassert.o release.o crcspeed.o crc64.o siphash.o crc16.o monotonic.o cli_common.o mt19937-64.o strl.o
|
||||
REDIS_CHECK_RDB_NAME=redis-check-rdb$(PROG_SUFFIX)
|
||||
REDIS_CHECK_AOF_NAME=redis-check-aof$(PROG_SUFFIX)
|
||||
ALL_SOURCES=$(sort $(patsubst %.o,%.c,$(REDIS_SERVER_OBJ) $(REDIS_CLI_OBJ) $(REDIS_BENCHMARK_OBJ)))
|
||||
REDICT_SERVER_NAME=redict-server$(PROG_SUFFIX)
|
||||
REDICT_SENTINEL_NAME=redict-sentinel$(PROG_SUFFIX)
|
||||
REDICT_SERVER_OBJ=threads_mngr.o adlist.o quicklist.o ae.o anet.o dict.o kvstore.o server.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o sha1.o ziplist.o release.o networking.o util.o object.o db.o replication.o rdb.o t_string.o t_list.o t_set.o t_zset.o t_hash.o config.o aof.o pubsub.o multi.o debug.o sort.o intset.o syncio.o cluster.o cluster_legacy.o crc16.o endianconv.o slowlog.o eval.o bio.o rio.o rand.o memtest.o syscheck.o crcspeed.o crc64.o bitops.o sentinel.o notify.o setproctitle.o blocked.o hyperloglog.o latency.o sparkline.o redict-check-rdb.o redict-check-aof.o geo.o lazyfree.o module.o evict.o expire.o geohash.o geohash_helper.o childinfo.o defrag.o siphash.o rax.o t_stream.o listpack.o localtime.o lolwut.o lolwut5.o lolwut6.o acl.o tracking.o socket.o tls.o sha256.o timeout.o setcpuaffinity.o monotonic.o mt19937-64.o resp_parser.o call_reply.o script_lua.o script.o functions.o function_lua.o commands.o strl.o connection.o unix.o logreqres.o
|
||||
REDICT_CLI_NAME=redict-cli$(PROG_SUFFIX)
|
||||
REDICT_CLI_OBJ=anet.o adlist.o dict.o redict-cli.o zmalloc.o release.o ae.o redictassert.o crcspeed.o crc64.o siphash.o crc16.o monotonic.o cli_common.o mt19937-64.o strl.o cli_commands.o
|
||||
REDICT_BENCHMARK_NAME=redict-benchmark$(PROG_SUFFIX)
|
||||
REDICT_BENCHMARK_OBJ=ae.o anet.o redict-benchmark.o adlist.o dict.o zmalloc.o redictassert.o release.o crcspeed.o crc64.o siphash.o crc16.o monotonic.o cli_common.o mt19937-64.o strl.o
|
||||
REDICT_CHECK_RDB_NAME=redict-check-rdb$(PROG_SUFFIX)
|
||||
REDICT_CHECK_AOF_NAME=redict-check-aof$(PROG_SUFFIX)
|
||||
ALL_SOURCES=$(sort $(patsubst %.o,%.c,$(REDICT_SERVER_OBJ) $(REDICT_CLI_OBJ) $(REDICT_BENCHMARK_OBJ)))
|
||||
|
||||
all: $(REDIS_SERVER_NAME) $(REDIS_SENTINEL_NAME) $(REDIS_CLI_NAME) $(REDIS_BENCHMARK_NAME) $(REDIS_CHECK_RDB_NAME) $(REDIS_CHECK_AOF_NAME) $(TLS_MODULE)
|
||||
all: $(REDICT_SERVER_NAME) $(REDICT_SENTINEL_NAME) $(REDICT_CLI_NAME) $(REDICT_BENCHMARK_NAME) $(REDICT_CHECK_RDB_NAME) $(REDICT_CHECK_AOF_NAME) $(TLS_MODULE)
|
||||
@echo ""
|
||||
@echo "Hint: It's a good idea to run 'make test' ;)"
|
||||
@echo ""
|
||||
|
||||
Makefile.dep:
|
||||
-$(REDIS_CC) -MM $(ALL_SOURCES) > Makefile.dep 2> /dev/null || true
|
||||
-$(REDICT_CC) -MM $(ALL_SOURCES) > Makefile.dep 2> /dev/null || true
|
||||
|
||||
ifeq (0, $(words $(findstring $(MAKECMDGOALS), $(NODEPS))))
|
||||
-include Makefile.dep
|
||||
@ -383,8 +383,8 @@ persist-settings: distclean
|
||||
echo USE_SYSTEMD=$(USE_SYSTEMD) >> .make-settings
|
||||
echo CFLAGS=$(CFLAGS) >> .make-settings
|
||||
echo LDFLAGS=$(LDFLAGS) >> .make-settings
|
||||
echo REDIS_CFLAGS=$(REDIS_CFLAGS) >> .make-settings
|
||||
echo REDIS_LDFLAGS=$(REDIS_LDFLAGS) >> .make-settings
|
||||
echo REDICT_CFLAGS=$(REDICT_CFLAGS) >> .make-settings
|
||||
echo REDICT_LDFLAGS=$(REDICT_LDFLAGS) >> .make-settings
|
||||
echo PREV_FINAL_CFLAGS=$(FINAL_CFLAGS) >> .make-settings
|
||||
echo PREV_FINAL_LDFLAGS=$(FINAL_LDFLAGS) >> .make-settings
|
||||
-(cd ../deps && $(MAKE) $(DEPENDENCY_TARGETS))
|
||||
@ -404,42 +404,42 @@ ifneq ($(strip $(PREV_FINAL_LDFLAGS)), $(strip $(FINAL_LDFLAGS)))
|
||||
.make-prerequisites: persist-settings
|
||||
endif
|
||||
|
||||
# redis-server
|
||||
$(REDIS_SERVER_NAME): $(REDIS_SERVER_OBJ)
|
||||
$(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/lua/src/liblua.a ../deps/hdr_histogram/libhdrhistogram.a ../deps/fpconv/libfpconv.a $(FINAL_LIBS)
|
||||
# redict-server
|
||||
$(REDICT_SERVER_NAME): $(REDICT_SERVER_OBJ)
|
||||
$(REDICT_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/lua/src/liblua.a ../deps/hdr_histogram/libhdrhistogram.a ../deps/fpconv/libfpconv.a $(FINAL_LIBS)
|
||||
|
||||
# redis-sentinel
|
||||
$(REDIS_SENTINEL_NAME): $(REDIS_SERVER_NAME)
|
||||
$(REDIS_INSTALL) $(REDIS_SERVER_NAME) $(REDIS_SENTINEL_NAME)
|
||||
# redict-sentinel
|
||||
$(REDICT_SENTINEL_NAME): $(REDICT_SERVER_NAME)
|
||||
$(REDICT_INSTALL) $(REDICT_SERVER_NAME) $(REDICT_SENTINEL_NAME)
|
||||
|
||||
# redis-check-rdb
|
||||
$(REDIS_CHECK_RDB_NAME): $(REDIS_SERVER_NAME)
|
||||
$(REDIS_INSTALL) $(REDIS_SERVER_NAME) $(REDIS_CHECK_RDB_NAME)
|
||||
# redict-check-rdb
|
||||
$(REDICT_CHECK_RDB_NAME): $(REDICT_SERVER_NAME)
|
||||
$(REDICT_INSTALL) $(REDICT_SERVER_NAME) $(REDICT_CHECK_RDB_NAME)
|
||||
|
||||
# redis-check-aof
|
||||
$(REDIS_CHECK_AOF_NAME): $(REDIS_SERVER_NAME)
|
||||
$(REDIS_INSTALL) $(REDIS_SERVER_NAME) $(REDIS_CHECK_AOF_NAME)
|
||||
# redict-check-aof
|
||||
$(REDICT_CHECK_AOF_NAME): $(REDICT_SERVER_NAME)
|
||||
$(REDICT_INSTALL) $(REDICT_SERVER_NAME) $(REDICT_CHECK_AOF_NAME)
|
||||
|
||||
# redis-tls.so
|
||||
$(TLS_MODULE_NAME): $(REDIS_SERVER_NAME)
|
||||
# redict-tls.so
|
||||
$(TLS_MODULE_NAME): $(REDICT_SERVER_NAME)
|
||||
$(QUIET_CC)$(CC) -o $@ tls.c -shared -fPIC $(TLS_MODULE_CFLAGS) $(TLS_CLIENT_LIBS)
|
||||
|
||||
# redis-cli
|
||||
$(REDIS_CLI_NAME): $(REDIS_CLI_OBJ)
|
||||
$(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/linenoise/linenoise.o $(FINAL_LIBS) $(TLS_CLIENT_LIBS)
|
||||
# redict-cli
|
||||
$(REDICT_CLI_NAME): $(REDICT_CLI_OBJ)
|
||||
$(REDICT_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/linenoise/linenoise.o $(FINAL_LIBS) $(TLS_CLIENT_LIBS)
|
||||
|
||||
# redis-benchmark
|
||||
$(REDIS_BENCHMARK_NAME): $(REDIS_BENCHMARK_OBJ)
|
||||
$(REDIS_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/hdr_histogram/libhdrhistogram.a $(FINAL_LIBS) $(TLS_CLIENT_LIBS)
|
||||
# redict-benchmark
|
||||
$(REDICT_BENCHMARK_NAME): $(REDICT_BENCHMARK_OBJ)
|
||||
$(REDICT_LD) -o $@ $^ ../deps/hiredis/libhiredis.a ../deps/hdr_histogram/libhdrhistogram.a $(FINAL_LIBS) $(TLS_CLIENT_LIBS)
|
||||
|
||||
DEP = $(REDIS_SERVER_OBJ:%.o=%.d) $(REDIS_CLI_OBJ:%.o=%.d) $(REDIS_BENCHMARK_OBJ:%.o=%.d)
|
||||
DEP = $(REDICT_SERVER_OBJ:%.o=%.d) $(REDICT_CLI_OBJ:%.o=%.d) $(REDICT_BENCHMARK_OBJ:%.o=%.d)
|
||||
-include $(DEP)
|
||||
|
||||
# Because the jemalloc.h header is generated as a part of the jemalloc build,
|
||||
# building it should complete before building any other object. Instead of
|
||||
# depending on a single artifact, build all dependencies first.
|
||||
%.o: %.c .make-prerequisites
|
||||
$(REDIS_CC) -MMD -o $@ -c $<
|
||||
$(REDICT_CC) -MMD -o $@ -c $<
|
||||
|
||||
# The following files are checked in and don't normally need to be rebuilt. They
|
||||
# are built only if python is available and their prereqs are modified.
|
||||
@ -456,7 +456,7 @@ endif
|
||||
commands.c: $(COMMANDS_DEF_FILENAME).def
|
||||
|
||||
clean:
|
||||
rm -rf $(REDIS_SERVER_NAME) $(REDIS_SENTINEL_NAME) $(REDIS_CLI_NAME) $(REDIS_BENCHMARK_NAME) $(REDIS_CHECK_RDB_NAME) $(REDIS_CHECK_AOF_NAME) *.o *.gcda *.gcno *.gcov redis.info lcov-html Makefile.dep *.so
|
||||
rm -rf $(REDICT_SERVER_NAME) $(REDICT_SENTINEL_NAME) $(REDICT_CLI_NAME) $(REDICT_BENCHMARK_NAME) $(REDICT_CHECK_RDB_NAME) $(REDICT_CHECK_AOF_NAME) *.o *.gcda *.gcno *.gcov redict.info lcov-html Makefile.dep *.so
|
||||
rm -f $(DEP)
|
||||
|
||||
.PHONY: clean
|
||||
@ -469,16 +469,16 @@ distclean: clean
|
||||
|
||||
.PHONY: distclean
|
||||
|
||||
test: $(REDIS_SERVER_NAME) $(REDIS_CHECK_AOF_NAME) $(REDIS_CLI_NAME) $(REDIS_BENCHMARK_NAME)
|
||||
test: $(REDICT_SERVER_NAME) $(REDICT_CHECK_AOF_NAME) $(REDICT_CLI_NAME) $(REDICT_BENCHMARK_NAME)
|
||||
@(cd ..; ./runtest)
|
||||
|
||||
test-modules: $(REDIS_SERVER_NAME)
|
||||
test-modules: $(REDICT_SERVER_NAME)
|
||||
@(cd ..; ./runtest-moduleapi)
|
||||
|
||||
test-sentinel: $(REDIS_SENTINEL_NAME) $(REDIS_CLI_NAME)
|
||||
test-sentinel: $(REDICT_SENTINEL_NAME) $(REDICT_CLI_NAME)
|
||||
@(cd ..; ./runtest-sentinel)
|
||||
|
||||
test-cluster: $(REDIS_SERVER_NAME) $(REDIS_CLI_NAME)
|
||||
test-cluster: $(REDICT_SERVER_NAME) $(REDICT_CLI_NAME)
|
||||
@(cd ..; ./runtest-cluster)
|
||||
|
||||
check: test
|
||||
@ -486,13 +486,13 @@ check: test
|
||||
lcov:
|
||||
$(MAKE) gcov
|
||||
@(set -e; cd ..; ./runtest --clients 1)
|
||||
@geninfo -o redis.info .
|
||||
@genhtml --legend -o lcov-html redis.info
|
||||
@geninfo -o redict.info .
|
||||
@genhtml --legend -o lcov-html redict.info
|
||||
|
||||
.PHONY: lcov
|
||||
|
||||
bench: $(REDIS_BENCHMARK_NAME)
|
||||
./$(REDIS_BENCHMARK_NAME)
|
||||
bench: $(REDICT_BENCHMARK_NAME)
|
||||
./$(REDICT_BENCHMARK_NAME)
|
||||
|
||||
32bit:
|
||||
@echo ""
|
||||
@ -501,7 +501,7 @@ bench: $(REDIS_BENCHMARK_NAME)
|
||||
$(MAKE) CFLAGS="-m32" LDFLAGS="-m32"
|
||||
|
||||
gcov:
|
||||
$(MAKE) REDIS_CFLAGS="-fprofile-arcs -ftest-coverage -DCOVERAGE_TEST" REDIS_LDFLAGS="-fprofile-arcs -ftest-coverage"
|
||||
$(MAKE) REDICT_CFLAGS="-fprofile-arcs -ftest-coverage -DCOVERAGE_TEST" REDICT_LDFLAGS="-fprofile-arcs -ftest-coverage"
|
||||
|
||||
noopt:
|
||||
$(MAKE) OPTIMIZATION="-O0"
|
||||
@ -510,16 +510,16 @@ valgrind:
|
||||
$(MAKE) OPTIMIZATION="-O0" MALLOC="libc"
|
||||
|
||||
helgrind:
|
||||
$(MAKE) OPTIMIZATION="-O0" MALLOC="libc" CFLAGS="-D__ATOMIC_VAR_FORCE_SYNC_MACROS" REDIS_CFLAGS="-I/usr/local/include" REDIS_LDFLAGS="-L/usr/local/lib"
|
||||
$(MAKE) OPTIMIZATION="-O0" MALLOC="libc" CFLAGS="-D__ATOMIC_VAR_FORCE_SYNC_MACROS" REDICT_CFLAGS="-I/usr/local/include" REDICT_LDFLAGS="-L/usr/local/lib"
|
||||
|
||||
install: all
|
||||
@mkdir -p $(INSTALL_BIN)
|
||||
$(call MAKE_INSTALL,$(REDIS_SERVER_NAME),$(INSTALL_BIN))
|
||||
$(call MAKE_INSTALL,$(REDIS_BENCHMARK_NAME),$(INSTALL_BIN))
|
||||
$(call MAKE_INSTALL,$(REDIS_CLI_NAME),$(INSTALL_BIN))
|
||||
@ln -sf $(REDIS_SERVER_NAME) $(INSTALL_BIN)/$(REDIS_CHECK_RDB_NAME)
|
||||
@ln -sf $(REDIS_SERVER_NAME) $(INSTALL_BIN)/$(REDIS_CHECK_AOF_NAME)
|
||||
@ln -sf $(REDIS_SERVER_NAME) $(INSTALL_BIN)/$(REDIS_SENTINEL_NAME)
|
||||
$(call MAKE_INSTALL,$(REDICT_SERVER_NAME),$(INSTALL_BIN))
|
||||
$(call MAKE_INSTALL,$(REDICT_BENCHMARK_NAME),$(INSTALL_BIN))
|
||||
$(call MAKE_INSTALL,$(REDICT_CLI_NAME),$(INSTALL_BIN))
|
||||
@ln -sf $(REDICT_SERVER_NAME) $(INSTALL_BIN)/$(REDICT_CHECK_RDB_NAME)
|
||||
@ln -sf $(REDICT_SERVER_NAME) $(INSTALL_BIN)/$(REDICT_CHECK_AOF_NAME)
|
||||
@ln -sf $(REDICT_SERVER_NAME) $(INSTALL_BIN)/$(REDICT_SENTINEL_NAME)
|
||||
|
||||
uninstall:
|
||||
rm -f $(INSTALL_BIN)/{$(REDIS_SERVER_NAME),$(REDIS_BENCHMARK_NAME),$(REDIS_CLI_NAME),$(REDIS_CHECK_RDB_NAME),$(REDIS_CHECK_AOF_NAME),$(REDIS_SENTINEL_NAME)}
|
||||
rm -f $(INSTALL_BIN)/{$(REDICT_SERVER_NAME),$(REDICT_BENCHMARK_NAME),$(REDICT_CLI_NAME),$(REDICT_CHECK_RDB_NAME),$(REDICT_CHECK_AOF_NAME),$(REDICT_SENTINEL_NAME)}
|
||||
|
2
src/ae.c
2
src/ae.c
@ -32,7 +32,7 @@
|
||||
|
||||
#include "ae.h"
|
||||
#include "anet.h"
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/time.h>
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
#include "dict.h"
|
||||
#include "zmalloc.h"
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
#include "monotonic.h"
|
||||
|
||||
/* Using dictSetResizeEnabled() we make possible to disable
|
||||
|
@ -50,7 +50,7 @@
|
||||
|
||||
#include "server.h"
|
||||
#include "script.h"
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
typedef struct functionLibInfo functionLibInfo;
|
||||
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include "intset.h"
|
||||
#include "zmalloc.h"
|
||||
#include "endianconv.h"
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
|
||||
/* Note that these encodings are ordered, so:
|
||||
* INTSET_ENC_INT16 < INTSET_ENC_INT32 < INTSET_ENC_INT64. */
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
#include "zmalloc.h"
|
||||
#include "kvstore.h"
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
#include "monotonic.h"
|
||||
|
||||
#define UNUSED(V) ((void) V)
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
#include "listpack.h"
|
||||
#include "listpack_malloc.h"
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
#include "util.h"
|
||||
|
||||
#define LP_HDR_SIZE 6 /* 32 bit total len + 16 bit number of elements. */
|
||||
|
@ -38,7 +38,7 @@
|
||||
#include <stropts.h>
|
||||
#endif
|
||||
#include "config.h"
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
|
||||
#if (ULONG_MAX == 4294967295UL)
|
||||
#define MEMTEST_32BIT
|
||||
|
12
src/module.c
12
src/module.c
@ -439,17 +439,17 @@ typedef struct RedisModuleKeyOptCtx {
|
||||
} RedisModuleKeyOptCtx;
|
||||
|
||||
/* Data structures related to redis module configurations */
|
||||
/* The function signatures for module config get callbacks. These are identical to the ones exposed in redismodule.h. */
|
||||
/* The function signatures for module config get callbacks. These are identical to the ones exposed in redictmodule.h. */
|
||||
typedef RedisModuleString * (*RedisModuleConfigGetStringFunc)(const char *name, void *privdata);
|
||||
typedef long long (*RedisModuleConfigGetNumericFunc)(const char *name, void *privdata);
|
||||
typedef int (*RedisModuleConfigGetBoolFunc)(const char *name, void *privdata);
|
||||
typedef int (*RedisModuleConfigGetEnumFunc)(const char *name, void *privdata);
|
||||
/* The function signatures for module config set callbacks. These are identical to the ones exposed in redismodule.h. */
|
||||
/* The function signatures for module config set callbacks. These are identical to the ones exposed in redictmodule.h. */
|
||||
typedef int (*RedisModuleConfigSetStringFunc)(const char *name, RedisModuleString *val, void *privdata, RedisModuleString **err);
|
||||
typedef int (*RedisModuleConfigSetNumericFunc)(const char *name, long long val, void *privdata, RedisModuleString **err);
|
||||
typedef int (*RedisModuleConfigSetBoolFunc)(const char *name, int val, void *privdata, RedisModuleString **err);
|
||||
typedef int (*RedisModuleConfigSetEnumFunc)(const char *name, int val, void *privdata, RedisModuleString **err);
|
||||
/* Apply signature, identical to redismodule.h */
|
||||
/* Apply signature, identical to redictmodule.h */
|
||||
typedef int (*RedisModuleConfigApplyFunc)(RedisModuleCtx *ctx, void *privdata, RedisModuleString **err);
|
||||
|
||||
/* Struct representing a module config. These are stored in a list in the module struct */
|
||||
@ -786,7 +786,7 @@ int moduleDelKeyIfEmpty(RedisModuleKey *key) {
|
||||
*
|
||||
* Note that all the exported APIs are called RM_<funcname> in the core
|
||||
* and RedisModule_<funcname> in the module side (defined as function
|
||||
* pointers in redismodule.h). In this way the dynamic linker does not
|
||||
* pointers in redictmodule.h). In this way the dynamic linker does not
|
||||
* mess with our global function pointers, overriding it with the symbols
|
||||
* defined in the main executable having the same names.
|
||||
* -------------------------------------------------------------------------- */
|
||||
@ -797,7 +797,7 @@ int RM_GetApi(const char *funcname, void **targetPtrPtr) {
|
||||
* named API, otherwise REDISMODULE_OK.
|
||||
*
|
||||
* This function is not meant to be used by modules developer, it is only
|
||||
* used implicitly by including redismodule.h. */
|
||||
* used implicitly by including redictmodule.h. */
|
||||
dictEntry *he = dictFind(server.moduleapi, funcname);
|
||||
if (!he) return REDISMODULE_ERR;
|
||||
*targetPtrPtr = dictGetVal(he);
|
||||
@ -11650,7 +11650,7 @@ int RM_SubscribeToServerEvent(RedisModuleCtx *ctx, RedisModuleEvent event, Redis
|
||||
/* Protect in case of calls from contexts without a module reference. */
|
||||
if (ctx->module == NULL) return REDISMODULE_ERR;
|
||||
if (event.id >= _REDISMODULE_EVENT_NEXT) return REDISMODULE_ERR;
|
||||
if (event.dataver > moduleEventVersions[event.id]) return REDISMODULE_ERR; /* Module compiled with a newer redismodule.h than we support */
|
||||
if (event.dataver > moduleEventVersions[event.id]) return REDISMODULE_ERR; /* Module compiled with a newer redictmodule.h than we support */
|
||||
|
||||
/* Search an event matching this module and event ID. */
|
||||
listIter li;
|
||||
|
@ -25,42 +25,42 @@ all: helloworld.so hellotype.so helloblock.so hellocluster.so hellotimer.so hell
|
||||
.c.xo:
|
||||
$(CC) -I. $(CFLAGS) $(SHOBJ_CFLAGS) -fPIC -c $< -o $@
|
||||
|
||||
helloworld.xo: ../redismodule.h
|
||||
helloworld.xo: ../redictmodule.h
|
||||
|
||||
helloworld.so: helloworld.xo
|
||||
$(LD) -o $@ $^ $(SHOBJ_LDFLAGS) $(LIBS) -lc
|
||||
|
||||
hellotype.xo: ../redismodule.h
|
||||
hellotype.xo: ../redictmodule.h
|
||||
|
||||
hellotype.so: hellotype.xo
|
||||
$(LD) -o $@ $^ $(SHOBJ_LDFLAGS) $(LIBS) -lc
|
||||
|
||||
helloblock.xo: ../redismodule.h
|
||||
helloblock.xo: ../redictmodule.h
|
||||
|
||||
helloblock.so: helloblock.xo
|
||||
$(LD) -o $@ $^ $(SHOBJ_LDFLAGS) $(LIBS) -lpthread -lc
|
||||
|
||||
hellocluster.xo: ../redismodule.h
|
||||
hellocluster.xo: ../redictmodule.h
|
||||
|
||||
hellocluster.so: hellocluster.xo
|
||||
$(LD) -o $@ $^ $(SHOBJ_LDFLAGS) $(LIBS) -lc
|
||||
|
||||
hellotimer.xo: ../redismodule.h
|
||||
hellotimer.xo: ../redictmodule.h
|
||||
|
||||
hellotimer.so: hellotimer.xo
|
||||
$(LD) -o $@ $^ $(SHOBJ_LDFLAGS) $(LIBS) -lc
|
||||
|
||||
hellodict.xo: ../redismodule.h
|
||||
hellodict.xo: ../redictmodule.h
|
||||
|
||||
hellodict.so: hellodict.xo
|
||||
$(LD) -o $@ $^ $(SHOBJ_LDFLAGS) $(LIBS) -lc
|
||||
|
||||
hellohook.xo: ../redismodule.h
|
||||
hellohook.xo: ../redictmodule.h
|
||||
|
||||
hellohook.so: hellohook.xo
|
||||
$(LD) -o $@ $^ $(SHOBJ_LDFLAGS) $(LIBS) -lc
|
||||
|
||||
helloacl.xo: ../redismodule.h
|
||||
helloacl.xo: ../redictmodule.h
|
||||
|
||||
helloacl.so: helloacl.xo
|
||||
$(LD) -o $@ $^ $(SHOBJ_LDFLAGS) $(LIBS) -lc
|
||||
|
@ -31,7 +31,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "../redismodule.h"
|
||||
#include "../redictmodule.h"
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "../redismodule.h"
|
||||
#include "../redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <pthread.h>
|
||||
|
@ -30,7 +30,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "../redismodule.h"
|
||||
#include "../redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
@ -33,7 +33,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "../redismodule.h"
|
||||
#include "../redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
@ -30,7 +30,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "../redismodule.h"
|
||||
#include "../redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
@ -30,7 +30,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "../redismodule.h"
|
||||
#include "../redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
@ -35,7 +35,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "../redismodule.h"
|
||||
#include "../redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
@ -34,7 +34,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "../redismodule.h"
|
||||
#include "../redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
|
||||
/* The function pointer for clock retrieval. */
|
||||
monotime (*getMonotonicUs)(void) = NULL;
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include "listpack.h"
|
||||
#include "util.h" /* for ll2string */
|
||||
#include "lzf.h"
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
|
||||
#ifndef REDIS_STATIC
|
||||
#define REDIS_STATIC static
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include "rax.h"
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
|
||||
#ifndef RAX_MALLOC_INCLUDE
|
||||
#define RAX_MALLOC_INCLUDE "rax_malloc.h"
|
||||
|
@ -2,7 +2,7 @@
|
||||
* simply print stack trace to standard error stream.
|
||||
*
|
||||
* This file is shared by those modules that try to print some logs about stack trace
|
||||
* but don't have their own implementations of functions in redisassert.h.
|
||||
* but don't have their own implementations of functions in redictassert.h.
|
||||
*
|
||||
* ----------------------------------------------------------------------------
|
||||
*
|
@ -532,7 +532,7 @@ typedef void (*RedisModuleEventCallback)(struct RedisModuleCtx *ctx, RedisModule
|
||||
* 2
|
||||
* }
|
||||
* The reason for that is forward-compatibility: We want that module that
|
||||
* compiled with a new redismodule.h to be able to work with a old server,
|
||||
* compiled with a new redictmodule.h to be able to work with a old server,
|
||||
* unless the author explicitly decided to use the newer event type.
|
||||
*/
|
||||
static const RedisModuleEvent
|
@ -35,7 +35,7 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <limits.h>
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
#include "sds.h"
|
||||
#include "sdsalloc.h"
|
||||
#include "util.h"
|
||||
|
@ -82,7 +82,7 @@ typedef long long ustime_t; /* microsecond time type. */
|
||||
|
||||
#define REDISMODULE_CORE 1
|
||||
typedef struct redisObject robj;
|
||||
#include "redismodule.h" /* Redis modules API defines. */
|
||||
#include "redictmodule.h" /* Redis modules API defines. */
|
||||
|
||||
/* Following includes allow test functions to be called from Redis main() */
|
||||
#include "zipmap.h"
|
||||
|
@ -190,7 +190,7 @@
|
||||
#include "ziplist.h"
|
||||
#include "config.h"
|
||||
#include "endianconv.h"
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
|
||||
#define ZIP_END 255 /* Special "end of ziplist" entry. */
|
||||
#define ZIP_BIG_PREVLEN 254 /* ZIP_BIG_PREVLEN - 1 is the max number of bytes of
|
||||
|
@ -628,7 +628,7 @@ size_t zmalloc_get_rss(void) {
|
||||
|
||||
#if defined(USE_JEMALLOC)
|
||||
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
|
||||
#define STRINGIFY_(x) #x
|
||||
#define STRINGIFY(x) STRINGIFY_(x)
|
||||
@ -910,7 +910,7 @@ size_t zmalloc_get_memory_size(void) {
|
||||
|
||||
#ifdef REDIS_TEST
|
||||
#include "testhelp.h"
|
||||
#include "redisassert.h"
|
||||
#include "redictassert.h"
|
||||
|
||||
#define TEST(name) printf("test — %s\n", name);
|
||||
|
||||
|
@ -72,7 +72,7 @@ all: $(TEST_MODULES)
|
||||
32bit:
|
||||
$(MAKE) CFLAGS="-m32" LDFLAGS="-m32"
|
||||
|
||||
%.xo: %.c ../../src/redismodule.h
|
||||
%.xo: %.c ../../src/redictmodule.h
|
||||
$(CC) -I../../src $(CFLAGS) $(SHOBJ_CFLAGS) -fPIC -c $< -o $@
|
||||
|
||||
%.so: %.xo
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
@ -2,7 +2,7 @@
|
||||
#define _BSD_SOURCE
|
||||
#define _DEFAULT_SOURCE
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
@ -30,7 +30,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#define _DEFAULT_SOURCE
|
||||
#include <unistd.h>
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <pthread.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#define _XOPEN_SOURCE 700
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <pthread.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#define UNUSED(V) ((void) V)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#include <strings.h>
|
||||
#include <sys/mman.h>
|
||||
|
@ -7,7 +7,7 @@
|
||||
#define _DEFAULT_SOURCE
|
||||
#include <unistd.h>
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
static RedisModuleType *datatype = NULL;
|
||||
static int load_encver = 0;
|
||||
|
@ -72,7 +72,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* A module that implements defrag callback mechanisms.
|
||||
*/
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
static RedisModuleType *FragType;
|
||||
|
@ -11,7 +11,7 @@
|
||||
* 4- test.oneshot : Test for oneshot API
|
||||
*/
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -3,7 +3,7 @@
|
||||
#define _BSD_SOURCE
|
||||
#define _DEFAULT_SOURCE
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <strings.h>
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <strings.h>
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <strings.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -30,7 +30,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
#define _BSD_SOURCE
|
||||
#define _DEFAULT_SOURCE /* For usleep */
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#define UNUSED(V) ((void) V)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <strings.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <strings.h>
|
||||
int mutable_bool_val;
|
||||
int immutable_bool_val;
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <strings.h>
|
||||
|
||||
/* Second module configs module, for testing.
|
||||
|
@ -48,7 +48,7 @@
|
||||
#define _BSD_SOURCE
|
||||
#define _DEFAULT_SOURCE /* For usleep */
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
@ -37,7 +37,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <pthread.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
@ -2,7 +2,7 @@
|
||||
* A module the tests RM_ReplyWith family of commands
|
||||
*/
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <math.h>
|
||||
|
||||
int rw_string(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#define UNUSED(V) ((void) V)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* This module emulates a linked list for lazyfree testing of modules, which
|
||||
is a simplified version of 'hellotype.c'
|
||||
*/
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
|
||||
static void timer_callback(RedisModuleCtx *ctx, void *data)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <pthread.h>
|
||||
#include <assert.h>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "redismodule.h"
|
||||
#include "redictmodule.h"
|
||||
#include <math.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user