Commit graph

58 commits

Author SHA1 Message Date
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
c9s 9499432084 remove debug print 2014-05-20 21:41:24 +08:00
c9s 898ea300a9 Fix placeholder finder 2014-05-20 21:38:37 +08:00
c9s baf23fafb0 fix pattern matching for /user/{id}-{user} 2014-05-18 20:09:42 +08:00
c9s 7d6113d17d truncate edge pattern in r3_edge_branch 2014-05-18 20:09:42 +08:00
c9s cda897a9a7 fix slug compilation 2014-05-18 14:30:00 +08:00
c9s b25a68eaac Add --enable-debug option + *i is unused. 2014-05-18 11:03:15 +08:00
Pedro 6c0b3c3e90 Merge pull request #6 from CindyLinz/master
my_strdup / my_strndup  malloc smaller
2014-05-17 15:06:44 +08:00
Cindy Wang (CindyLinz) 1c9a42dd82 my_strdup / my_strndup malloc smaller 2014-05-17 13:01:33 +08:00
c9s 0c6afd03b7 use HAVE_STR*DUP config to check function definitions 2014-05-17 07:26:47 +08:00
Cindy Wang (CindyLinz) 1f91b8ea35 my_strdup / my_strndup size_t -> int 2014-05-17 03:17:51 +08:00
Cindy Wang (CindyLinz) df4dbbe2a6 self provided strndup & strdup 2014-05-17 00:35:56 +08:00
c9s 6b9c15febb File renaming 2014-05-16 20:22:25 +08:00
c9s fe21914e00 include files 2014-05-16 12:33:59 +08:00
c9s 9ee066fa3f Fix slug branch problem 2014-05-16 00:00:19 +08:00