struct field bit

This commit is contained in:
c9s 2014-06-10 20:16:33 +08:00
parent 4611566512
commit b7a20774f2

View file

@ -65,9 +65,9 @@ struct _node {
struct _edge {
char * pattern;
node * child;
unsigned short pattern_len; // 2 byte
unsigned char opcode; // 1 byte
unsigned char has_slug; // 1 bit
unsigned char pattern_len; // 1 byte
unsigned char opcode:4; // 4 bit
unsigned char has_slug:1; // 1 bit
};
struct _route {