File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -61,17 +61,20 @@ enum {
61
61
};
62
62
63
63
enum {
64
- SHDICT_TNIL = 0 , // same as LUA_TNIL
65
- SHDICT_TBOOLEAN = 1 , // same as LUA_TBOOLEAN
66
- SHDICT_TNUMBER = 3 , // same as LUA_TNUMBER
67
- SHDICT_TSTRING = 4 , // same as LUA_TSTRING
64
+ SHDICT_TNIL = 0 , /* same as LUA_TNIL */
65
+ SHDICT_TBOOLEAN = 1 , /* same as LUA_TBOOLEAN */
66
+ SHDICT_TNUMBER = 3 , /* same as LUA_TNUMBER */
67
+ SHDICT_TSTRING = 4 , /* same as LUA_TSTRING */
68
68
SHDICT_TLIST = 5 ,
69
69
};
70
70
71
71
72
- #define ngx_http_lua_shdict_get_list_head (sd , key_len ) \
73
- (ngx_queue_t *) ngx_align_ptr(((u_char *) &sd->data + key_len), \
74
- NGX_ALIGNMENT)
72
+ static ngx_queue_t *
73
+ ngx_http_lua_shdict_get_list_head (ngx_http_lua_shdict_node_t * sd , u_short len )
74
+ {
75
+ return (ngx_queue_t * ) ngx_align_ptr (((u_char * ) & sd -> data + len ),
76
+ NGX_ALIGNMENT );
77
+ }
75
78
76
79
77
80
ngx_int_t
You can’t perform that action at this time.
0 commit comments