Adjust node struct field ordering (for memory alignment)
This commit is contained in:
parent
bada37fd75
commit
33c0c3fea7
1 changed files with 4 additions and 6 deletions
10
include/r3.h
10
include/r3.h
|
@ -29,30 +29,28 @@ typedef struct _route route;
|
||||||
|
|
||||||
struct _node {
|
struct _node {
|
||||||
edge ** edges;
|
edge ** edges;
|
||||||
|
route ** routes;
|
||||||
int edge_len;
|
int edge_len;
|
||||||
int edge_cap;
|
int edge_cap;
|
||||||
|
|
||||||
route ** routes;
|
|
||||||
int route_len;
|
int route_len;
|
||||||
int route_cap;
|
int route_cap;
|
||||||
|
int endpoint;
|
||||||
|
|
||||||
/** compile-time variables here.... **/
|
/** compile-time variables here.... **/
|
||||||
|
|
||||||
/* the combined regexp pattern string from pattern_tokens */
|
/* the combined regexp pattern string from pattern_tokens */
|
||||||
char * combined_pattern;
|
char * combined_pattern;
|
||||||
int combined_pattern_len;
|
int combined_pattern_len;
|
||||||
pcre * pcre_pattern;
|
|
||||||
pcre_extra * pcre_extra;
|
|
||||||
int ov_cnt;
|
int ov_cnt;
|
||||||
int * ov;
|
int * ov;
|
||||||
|
pcre * pcre_pattern;
|
||||||
|
pcre_extra * pcre_extra;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the pointer of route data
|
* the pointer of route data
|
||||||
*/
|
*/
|
||||||
void * data;
|
void * data;
|
||||||
|
|
||||||
int endpoint;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _edge {
|
struct _edge {
|
||||||
|
|
Loading…
Reference in a new issue