Commit graph

168 commits

Author SHA1 Message Date
c9s
576d568c16 use __attribute aligned to align struct 2015-11-12 22:01:55 +08:00
c9s
ae191a1d75 Add padding to node struct 2015-11-11 11:16:19 +08:00
c9s
257ced4717 Add padding to edge structure 2015-11-11 11:08:09 +08:00
c9s
985c8593dd Remove unneccessary comments from struct 2015-11-10 21:02:47 +08:00
c9s
fd9388437e Make edges as an array
Fixes: #89
2015-11-10 20:29:07 +08:00
c9s
34269aa045 Change compare_type from char to int 2015-11-10 19:36:01 +08:00
c9s
659dc19b1b Replace short integer with int to fit into cacheline (assume 64byte) 2015-11-10 19:29:18 +08:00
c9s
5d35d34ab3 Put pcre_extra back 2015-11-10 19:21:53 +08:00
c9s
5002272a33 Move pointer fields to top of the structure 2015-11-10 18:43:25 +08:00
Steve Jones
d12296af59 Don't typedef bool if compiling with C++
If using the C++ wrapper provided by r3.hpp, you get a compiler
error when r3_define.h tries to typedef bool as C++ already has
native bool type.  Modified the guard around this typedef
to include a check for C++ compilation (!defined(__cplusplus)).
2015-09-28 11:42:45 -05:00
Ricky Su
d5296df683 add extern c in c++ 2015-08-27 13:58:36 +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
ChangZhuo Chen (陳昌倬)
6eb509beb2 Use ##__VA_ARGS__ to avoid build fail 2014-07-04 18:26:32 +08:00
c9s
da026219be Fix gvc graph generator function 2014-06-28 00:53:04 +08:00
c9s
72f10015d5 Fix copyright email 2014-06-27 13:24:40 +08:00
c9s
9a9572a0d5 Fix duplicated symbol define 2014-06-27 00:05:24 +08:00
c9s
a697301c44 strndup polyfill for cmake 2014-06-18 20:47:06 +08:00
c9s
2c5f135600 macro rename 2014-06-10 20:18:59 +08:00
c9s
7f8684d808 put compare_type to the second place 2014-06-10 20:18:18 +08:00
c9s
b7a20774f2 struct field bit 2014-06-10 20:16:33 +08:00
c9s
5137d4d8e4 simplify functions to macro 2014-06-04 23:13:08 +08:00
whitglint
6834f0eccd Add C++ wrapper. 2014-06-04 16:46:31 +08:00
c9s
4d68ae6841 remove const from errstr 2014-06-04 13:45:28 +08:00
c9s
b2946352f1 Add r3_tree_insert_routel_ex for error message 2014-06-03 23:50:02 +08:00
c9s
a3c527e1b2 Add const fix 2014-06-03 23:42:40 +08:00
c9s
c7220c5616 combine match_entry functions into r3.h 2014-06-03 22:07:46 +08:00
c9s
f95cce7407 fix header file include 2014-06-03 21:47:52 +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
053f9202f6 merge graphviz function prototype into r3.h 2014-06-03 20:47:35 +08:00
c9s
4ac3d74fd3 more graphviz API 2014-06-03 18:41:55 +08:00
c9s
b68e14dd66 r3_tree_render_dot(const node * tree, FILE *fp); support 2014-06-03 18:37:36 +08:00
c9s
d8945980a7 tighter structure 2014-06-02 20:51:35 +08:00
Cindy Wang
7cae9bf71a Update r3.h
fix comment.. :p
2014-06-02 16:34:02 +08:00
c9s
1f21ea19a8 Add char ** errstr to r3_node_find_common_prefix 2014-06-02 15:52:40 +08:00
c9s
04d8977b21 r3_tree_insert_pathl_ex function 2014-06-02 14:47:46 +08:00
c9s
9441f974de test compile fail 2014-06-02 09:48:00 +08:00
c9s
fd1e5f7f50 Add r3_node_find_common_prefix test cases 2014-06-02 09:09:41 +08:00
c9s
f3bf32b922 refactor path insert function 2014-06-02 08:04:57 +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
c52639c431 slug parser 2014-06-02 01:01:29 +08:00
c9s
70693ea1f2 errstr parameter in slug 2014-06-01 20:51:47 +08:00
c9s
dc407f2cac fix 2014-06-01 20:23:11 +08:00
c9s
8d2a473f54 Merge branch 'master' of github.com:c9s/r3
Conflicts:
	include/r3.h
2014-06-01 20:20:51 +08:00
c9s
8f9c2acc5c include config.h 2014-06-01 19:49:56 +08:00
c9s
7d6209d99c build with 3rdparty objects
use -static linking when linking libr3

AM_CFLAGS and AM_LDFLAGS are Makefile.am scope options

disable valgrind tracing check-tree

Makefile.am fix

Add json support

remove useless c files
2014-06-01 19:43:45 +08:00
whitglint
9417bc76eb Add extern "C". 2014-06-01 16:48:54 +08:00
c9s
b139d8d3f2 add const to node 2014-06-01 14:54:16 +08:00