Skip to content

Commit bee2165

Browse files
committed
Merge remote-tracking branch 'openresty/master' into ssl-cert-by-lua
2 parents 1b2e4f5 + 0fff588 commit bee2165

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

src/api/ngx_http_lua_api.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ typedef struct {
3434
} ngx_http_lua_value_t;
3535

3636

37-
lua_State * ngx_http_lua_get_global_state(ngx_conf_t *cf);
37+
lua_State *ngx_http_lua_get_global_state(ngx_conf_t *cf);
3838

39-
ngx_http_request_t * ngx_http_lua_get_request(lua_State *L);
39+
ngx_http_request_t *ngx_http_lua_get_request(lua_State *L);
4040

4141
ngx_int_t ngx_http_lua_add_package_preload(ngx_conf_t *cf, const char *package,
4242
lua_CFunction func);

src/ngx_http_lua_directive.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,33 @@
1212
#include "ngx_http_lua_common.h"
1313

1414

15-
char * ngx_http_lua_shared_dict(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
16-
char * ngx_http_lua_package_cpath(ngx_conf_t *cf, ngx_command_t *cmd,
15+
char *ngx_http_lua_shared_dict(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
16+
char *ngx_http_lua_package_cpath(ngx_conf_t *cf, ngx_command_t *cmd,
1717
void *conf);
18-
char * ngx_http_lua_package_path(ngx_conf_t *cf, ngx_command_t *cmd,
18+
char *ngx_http_lua_package_path(ngx_conf_t *cf, ngx_command_t *cmd,
1919
void *conf);
20-
char * ngx_http_lua_content_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
20+
char *ngx_http_lua_content_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
2121
void *conf);
22-
char * ngx_http_lua_rewrite_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
22+
char *ngx_http_lua_rewrite_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
2323
void *conf);
24-
char * ngx_http_lua_access_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
24+
char *ngx_http_lua_access_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
2525
void *conf);
26-
char * ngx_http_lua_log_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
26+
char *ngx_http_lua_log_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
2727
void *conf);
28-
char * ngx_http_lua_header_filter_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
28+
char *ngx_http_lua_header_filter_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
2929
void *conf);
30-
char * ngx_http_lua_body_filter_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
30+
char *ngx_http_lua_body_filter_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
3131
void *conf);
32-
char * ngx_http_lua_init_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
32+
char *ngx_http_lua_init_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
3333
void *conf);
34-
char * ngx_http_lua_init_worker_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
34+
char *ngx_http_lua_init_worker_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,
3535
void *conf);
36-
char * ngx_http_lua_code_cache(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
36+
char *ngx_http_lua_code_cache(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
3737

3838
#if defined(NDK) && NDK
3939

40-
char * ngx_http_lua_set_by_lua(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
41-
char * ngx_http_lua_set_by_lua_file(ngx_conf_t *cf, ngx_command_t *cmd,
40+
char *ngx_http_lua_set_by_lua(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
41+
char *ngx_http_lua_set_by_lua_file(ngx_conf_t *cf, ngx_command_t *cmd,
4242
void *conf);
4343
ngx_int_t ngx_http_lua_filter_set_by_lua_inline(ngx_http_request_t *r,
4444
ngx_str_t *val, ngx_http_variable_value_t *v, void *data);
@@ -47,7 +47,7 @@ ngx_int_t ngx_http_lua_filter_set_by_lua_file(ngx_http_request_t *r,
4747

4848
#endif
4949

50-
char * ngx_http_lua_rewrite_no_postpone(ngx_conf_t *cf, ngx_command_t *cmd,
50+
char *ngx_http_lua_rewrite_no_postpone(ngx_conf_t *cf, ngx_command_t *cmd,
5151
void *conf);
5252

5353

src/ngx_http_lua_output.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void ngx_http_lua_inject_output_api(lua_State *L);
1717
size_t ngx_http_lua_calc_strlen_in_table(lua_State *L, int index, int arg_i,
1818
unsigned strict);
1919

20-
u_char * ngx_http_lua_copy_str_in_table(lua_State *L, int index, u_char *dst);
20+
u_char *ngx_http_lua_copy_str_in_table(lua_State *L, int index, u_char *dst);
2121

2222
ngx_int_t ngx_http_lua_flush_resume_helper(ngx_http_request_t *r,
2323
ngx_http_lua_ctx_t *ctx);

src/ngx_http_lua_util.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ ngx_http_lua_ffi_check_context(ngx_http_lua_ctx_t *ctx, unsigned flags,
127127
}
128128

129129

130-
lua_State * ngx_http_lua_init_vm(lua_State *parent_vm, ngx_cycle_t *cycle,
130+
lua_State *ngx_http_lua_init_vm(lua_State *parent_vm, ngx_cycle_t *cycle,
131131
ngx_pool_t *pool, ngx_http_lua_main_conf_t *lmcf, ngx_log_t *log,
132132
ngx_pool_cleanup_t **pcln);
133133

134-
lua_State * ngx_http_lua_new_thread(ngx_http_request_t *r, lua_State *l,
134+
lua_State *ngx_http_lua_new_thread(ngx_http_request_t *r, lua_State *l,
135135
int *ref);
136136

137-
u_char * ngx_http_lua_rebase_path(ngx_pool_t *pool, u_char *src, size_t len);
137+
u_char *ngx_http_lua_rebase_path(ngx_pool_t *pool, u_char *src, size_t len);
138138

139139
ngx_int_t ngx_http_lua_send_header_if_needed(ngx_http_request_t *r,
140140
ngx_http_lua_ctx_t *ctx);
@@ -162,7 +162,7 @@ ngx_int_t ngx_http_lua_run_thread(lua_State *L, ngx_http_request_t *r,
162162

163163
ngx_int_t ngx_http_lua_wev_handler(ngx_http_request_t *r);
164164

165-
u_char * ngx_http_lua_digest_hex(u_char *dest, const u_char *buf,
165+
u_char *ngx_http_lua_digest_hex(u_char *dest, const u_char *buf,
166166
int buf_len);
167167

168168
void ngx_http_lua_set_multi_value_table(lua_State *L, int index);
@@ -181,17 +181,17 @@ void ngx_http_lua_process_args_option(ngx_http_request_t *r,
181181
ngx_int_t ngx_http_lua_open_and_stat_file(u_char *name,
182182
ngx_open_file_info_t *of, ngx_log_t *log);
183183

184-
ngx_chain_t * ngx_http_lua_chain_get_free_buf(ngx_log_t *log, ngx_pool_t *p,
184+
ngx_chain_t *ngx_http_lua_chain_get_free_buf(ngx_log_t *log, ngx_pool_t *p,
185185
ngx_chain_t **free, size_t len);
186186

187187
void ngx_http_lua_create_new_globals_table(lua_State *L, int narr, int nrec);
188188

189189
int ngx_http_lua_traceback(lua_State *L);
190190

191-
ngx_http_lua_co_ctx_t * ngx_http_lua_get_co_ctx(lua_State *L,
191+
ngx_http_lua_co_ctx_t *ngx_http_lua_get_co_ctx(lua_State *L,
192192
ngx_http_lua_ctx_t *ctx);
193193

194-
ngx_http_lua_co_ctx_t * ngx_http_lua_create_co_ctx(ngx_http_request_t *r,
194+
ngx_http_lua_co_ctx_t *ngx_http_lua_create_co_ctx(ngx_http_request_t *r,
195195
ngx_http_lua_ctx_t *ctx);
196196

197197
ngx_int_t ngx_http_lua_run_posted_threads(ngx_connection_t *c, lua_State *L,
@@ -224,9 +224,9 @@ void ngx_http_lua_release_ngx_ctx_table(ngx_log_t *log, lua_State *L,
224224

225225
void ngx_http_lua_cleanup_vm(void *data);
226226

227-
ngx_connection_t * ngx_http_lua_create_fake_connection(ngx_pool_t *pool);
227+
ngx_connection_t *ngx_http_lua_create_fake_connection(ngx_pool_t *pool);
228228

229-
ngx_http_request_t * ngx_http_lua_create_fake_request(ngx_connection_t *c);
229+
ngx_http_request_t *ngx_http_lua_create_fake_request(ngx_connection_t *c);
230230

231231
ngx_int_t ngx_http_lua_report(ngx_log_t *log, lua_State *L, int status,
232232
const char *prefix);

0 commit comments

Comments
 (0)