Skip to content

Commit

Permalink
redis.c split into many different C files.
Browse files Browse the repository at this point in the history
networking related stuff moved into networking.c

moved more code

more work on layout of source code

SDS instantaneuos memory saving. By Pieter and Salvatore at VMware ;)

cleanly compiling again after the first split, now splitting it in more C files

moving more things around... work in progress

split replication code

splitting more

Sets split

Hash split

replication split

even more splitting

more splitting

minor change
  • Loading branch information
antirez committed Jul 1, 2010
1 parent c2ff0e9 commit e2641e0
Show file tree
Hide file tree
Showing 65 changed files with 11,811 additions and 12,084 deletions.
11,621 changes: 0 additions & 11,621 deletions redis.c

This file was deleted.

75 changes: 0 additions & 75 deletions redis.h

This file was deleted.

9 changes: 3 additions & 6 deletions Makefile → src/Makefile
Expand Up @@ -15,7 +15,7 @@ endif
CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) $(PROF)
DEBUG?= -g -rdynamic -ggdb

OBJ = adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o sha1.o ziplist.o release.o
OBJ = adlist.o ae.o anet.o dict.o redis.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 vm.o pubsub.o multi.o debug.o sort.o
BENCHOBJ = ae.o anet.o redis-benchmark.o sds.o adlist.o zmalloc.o
CLIOBJ = anet.o sds.o adlist.o redis-cli.o zmalloc.o linenoise.o
CHECKDUMPOBJ = redis-check-dump.o lzf_c.o lzf_d.o
Expand Down Expand Up @@ -48,7 +48,7 @@ redis-check-dump.o: redis-check-dump.c lzf.h
redis-cli.o: redis-cli.c fmacros.h anet.h sds.h adlist.h zmalloc.h \
linenoise.h
redis.o: redis.c fmacros.h config.h redis.h ae.h sds.h anet.h dict.h \
adlist.h zmalloc.h lzf.h pqsort.h zipmap.h ziplist.h sha1.h staticsymbols.h
adlist.h zmalloc.h lzf.h pqsort.h zipmap.h ziplist.h sha1.h
release.o: release.c release.h
sds.o: sds.c sds.h zmalloc.h
sha1.o: sha1.c sha1.h
Expand Down Expand Up @@ -83,11 +83,8 @@ clean:
dep:
$(CC) -MM *.c

staticsymbols:
tclsh utils/build-static-symbols.tcl > staticsymbols.h

test:
tclsh8.5 tests/test_helper.tcl --tags "${TAGS}"
(cd ..; tclsh8.5 tests/test_helper.tcl --tags "${TAGS}")

bench:
./redis-benchmark
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e2641e0

Please sign in to comment.