Commit graph

39 commits

Author SHA1 Message Date
simon-p-r
4423801c13
commit to build on windows and appveyor 2018-09-17 16:19:12 +01:00
Michael Steinert
b3dbf75da5 Remove zmalloc dependency
Zmalloc comes from Redis. It's purpose is to track total allocations so
that a maximum can be set. For more information see the following links:

https://groups.google.com/forum/#!topic/redis-db/dPRdpowqJsY
https://stackoverflow.com/questions/22729730/when-would-one-use-malloc-over-zmalloc

This allocator is slower, not needed, and conflicts with Zlib (when
linking statically). This patch removes Zmalloc in favor of the system
allocator. Application developers can still choose to override the
allocator in their applications, e.g. Jemalloc, TCMalloc, etc.

Fixes #104
2018-07-10 08:20:46 -05:00
Michael Steinert
e9afe4b6cf Fix -Wdiscarded-qualifiers warnings 2018-07-05 11:43:22 -05:00
karantin2020
75438ef3d3 Changed r3 memory model, made few optimizing 2016-03-22 07:23:37 +05:00
c9s
b0971e1553 Fix include 2015-11-17 21:35:18 +08:00
c9s
973a2cb85c Move private functions to private header files 2015-11-17 21:17:35 +08:00
Ricky Su
f445c261c6 add r3_slug_find_name and rename slug_count to r3_slug_count 2015-08-26 22:00:23 +08:00
c9s
72f10015d5 Fix copyright email 2014-06-27 13:24:40 +08:00
c9s
5609fd5f9e r3 function prefix
- Remove ltrim_slash.
- Add "r3_" prefix to r3_str.c functions.
2014-06-03 20:50:19 +08:00
c9s
1f21ea19a8 Add char ** errstr to r3_node_find_common_prefix 2014-06-02 15:52:40 +08:00
c9s
fd1e5f7f50 Add r3_node_find_common_prefix test cases 2014-06-02 09:09:41 +08:00
c9s
2a7998b76f free slug err msg 2014-06-02 06:56:51 +08:00
c9s
0eb9cad11c r3_path_contains_slug_char function 2014-06-02 06:27:35 +08:00
c9s
2e6fc6f0f1 fix warnings 2014-06-02 05:57:18 +08:00
c9s
20e3f1a3ba asprintf returns memory pointer which is from malloc() not zmalloc() 2014-06-02 05:48:27 +08:00
c9s
6dfd37d43d move slug related functions to slug.c and slug.h 2014-06-02 04:52:41 +08:00
c9s
24b84d068d Merge branch 'master' into slugfix
Conflicts:
	tests/check_slug.c
2014-06-02 01:23:10 +08:00
c9s
0636c9dad3 fix slug compile pattern 2014-06-02 01:21:02 +08:00
c9s
39fc24e3fa fix pattern compiler 2014-06-02 01:05:57 +08:00
c9s
c52639c431 slug parser 2014-06-02 01:01:29 +08:00
c9s
e1e5c3a4ae test incomplete slug 2014-06-02 00:27:30 +08:00
c9s
258128f30d slug_count return errstr 2014-06-02 00:22:12 +08:00
c9s
70693ea1f2 errstr parameter in slug 2014-06-01 20:51:47 +08:00
c9s
998560634e remove unused variable and add const 2014-06-01 02:58:03 +08:00
c9s
7aaed3e5d7 merge str_array.h 2014-05-26 21:39:36 +08:00
c9s
628f09a8f4 Add OP_EXPECT_MORE_ALPHA opcode 2014-05-23 22:58:20 +08:00
c9s
333fabd795 insert path for opcode 2014-05-23 16:18:58 +08:00
c9s
fe70b55253 Add node type for comparison 2014-05-23 16:18:57 +08:00
c9s
c1e5ea4393 Add OP_EXPECT_NODASH opcode 2014-05-23 16:18:56 +08:00
c9s
4d93d217a4 test r3_pattern_to_opcode 2014-05-23 16:18:56 +08:00
c9s
15facc82cc Merge branch 'feature/asan' of https://github.com/czchen/r3 into czchen-feature/asan
Conflicts:
	.travis.yml
2014-05-22 22:07:52 +08:00
ChangZhuo Chen (陳昌倬)
fef3361ed2 Set test timeout to 30 2014-05-22 22:06:11 +08:00
c9s
2c4236f5b8 include zmalloc.h 2014-05-22 11:09:43 +08:00
c9s
79fb3a3b8a check_slug: free memory 2014-05-21 18:50:45 +08:00
Omer Katz
0e627e33d5 Fixed all warnings from tests. 2014-05-21 10:50:37 +03:00
c9s
85001c6327 Rename compile_slug to slug_compile 2014-05-20 23:25:55 +08:00
c9s
26c7e8896e Rename count_slug to slug_count 2014-05-20 23:21:15 +08:00
c9s
b3e6321303 more slug compile test 2014-05-20 21:38:59 +08:00
c9s
4a0412d4e9 check in files (slug tests) 2014-05-18 20:11:07 +08:00