Move pointer fields to top of the structure

This commit is contained in:
c9s 2015-11-10 18:43:25 +08:00
parent b6d76f75c1
commit 5002272a33

View file

@ -30,6 +30,12 @@ typedef struct _route route;
struct _node {
edge ** edges;
// edge ** edge_table;
char * combined_pattern;
pcre * pcre_pattern;
#ifdef PCRE_STUDY_JIT_COMPILE
pcre_extra * pcre_extra;
#endif
// edges are mostly less than 255
unsigned char compare_type; // compare_type: pcre, opcode, string
@ -47,13 +53,9 @@ struct _node {
/** compile-time variables here.... **/
/* the combined regexp pattern string from pattern_tokens */
pcre * pcre_pattern;
pcre_extra * pcre_extra;
route ** routes;
char * combined_pattern;
/**
* the pointer of route data
*/