Commit graph

72 commits

Author SHA1 Message Date
Yuansheng
db91289ab6 change: rename OP_EXPECT_NOLINEBREAKS to OP_GREEDY_ANY. 2019-07-20 10:52:56 -04:00
Yuansheng
d516237aab optimize: optimized pattern .*, which can be used prefix matching. 2019-07-20 10:52:56 -04:00
Yuansheng
8e18a995d8 make: avoided the warning message when do make.
change: code style, delete some useless spaces(visual code).

eg:

warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
2019-06-21 10:45:54 +08: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
Martijn Otto
8d0b90f6e1 Remove unused variables 2018-02-21 09:14:31 +01:00
Martijn Otto
5cab368af2 Add extra parenthesis around branched assignments 2018-02-21 09:11:53 +01:00
Martijn Otto
021c54308a Fix const correctness warnings 2018-02-20 18:18:43 +01:00
karantin2020
75438ef3d3 Changed r3 memory model, made few optimizing 2016-03-22 07:23:37 +05:00
c9s
973a2cb85c Move private functions to private header files 2015-11-17 21:17:35 +08:00
c9s
e5ef80a200 Move private function to src/str.h 2015-11-17 21:13:38 +08:00
c9s
63577cfecc Remove unused str_repeat function 2015-11-17 21:06:59 +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
a697301c44 strndup polyfill for cmake 2014-06-18 20:47:06 +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
7cc84867ce let slug_count returns -1 if error occurs 2014-06-02 15:47:02 +08:00
c9s
7597398c08 include config.h 2014-06-02 06:58:02 +08:00
c9s
57b4fde126 print errmsg 2014-06-02 06:48:00 +08:00
c9s
a6be7f5061 static inline 2014-06-02 06:32:30 +08:00
c9s
0eb9cad11c r3_path_contains_slug_char function 2014-06-02 06:27:35 +08:00
c9s
6dfd37d43d move slug related functions to slug.c and slug.h 2014-06-02 04:52:41 +08:00
c9s
2a75861741 Fix gvc graph 2014-06-02 01:35:58 +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
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
40fa19002a Add const for slug_compile 2014-06-01 02:56:29 +08:00
c9s
bc27293f36 more const 2014-06-01 02:54:48 +08:00
c9s
d400789d96 more const pointers 2014-05-28 21:09:37 +08:00
c9s
cd16d67663 fix zcalloc bug 2014-05-27 14:18:45 +08:00
c9s
9f8176447b const char * 2014-05-27 01:08:01 +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
a41c9187ac Add some basic opcode 2014-05-23 16:18:56 +08:00
c9s
eaa11d5380 found flag for slug char 2014-05-22 11:06:34 +08:00
c9s
33eea25926 check length 2014-05-21 20:30:35 +08:00
Omer Katz
3ea9354e0b Implemented zstrndup. 2014-05-21 11:39:49 +03:00
Omer Katz
9c191682da Added zmalloc from redis in order to allow different allocators. 2014-05-20 20:50:15 +03:00
c9s
92e2ddf066 remove r3_define.h 2014-05-20 23:54:57 +08:00
c9s
02b4008a69 str_split is unused 2014-05-20 23:29:17 +08:00
c9s
85001c6327 Rename compile_slug to slug_compile 2014-05-20 23:25:55 +08:00
c9s
99819c4bbb move strndiff and strdiff to node.c and make it private 2014-05-20 23:25:12 +08:00
c9s
26c7e8896e Rename count_slug to slug_count 2014-05-20 23:21:15 +08:00