Skip to content

Commit 0fff588

Browse files
committed
more coding style fixes in function declarations.
1 parent edad9bb commit 0fff588

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
@@ -126,14 +126,14 @@ ngx_http_lua_ffi_check_context(ngx_http_lua_ctx_t *ctx, unsigned flags,
126126
}
127127

128128

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

133-
lua_State * ngx_http_lua_new_thread(ngx_http_request_t *r, lua_State *l,
133+
lua_State *ngx_http_lua_new_thread(ngx_http_request_t *r, lua_State *l,
134134
int *ref);
135135

136-
u_char * ngx_http_lua_rebase_path(ngx_pool_t *pool, u_char *src, size_t len);
136+
u_char *ngx_http_lua_rebase_path(ngx_pool_t *pool, u_char *src, size_t len);
137137

138138
ngx_int_t ngx_http_lua_send_header_if_needed(ngx_http_request_t *r,
139139
ngx_http_lua_ctx_t *ctx);
@@ -161,7 +161,7 @@ ngx_int_t ngx_http_lua_run_thread(lua_State *L, ngx_http_request_t *r,
161161

162162
ngx_int_t ngx_http_lua_wev_handler(ngx_http_request_t *r);
163163

164-
u_char * ngx_http_lua_digest_hex(u_char *dest, const u_char *buf,
164+
u_char *ngx_http_lua_digest_hex(u_char *dest, const u_char *buf,
165165
int buf_len);
166166

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

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

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

188188
int ngx_http_lua_traceback(lua_State *L);
189189

190-
ngx_http_lua_co_ctx_t * ngx_http_lua_get_co_ctx(lua_State *L,
190+
ngx_http_lua_co_ctx_t *ngx_http_lua_get_co_ctx(lua_State *L,
191191
ngx_http_lua_ctx_t *ctx);
192192

193-
ngx_http_lua_co_ctx_t * ngx_http_lua_create_co_ctx(ngx_http_request_t *r,
193+
ngx_http_lua_co_ctx_t *ngx_http_lua_create_co_ctx(ngx_http_request_t *r,
194194
ngx_http_lua_ctx_t *ctx);
195195

196196
ngx_int_t ngx_http_lua_run_posted_threads(ngx_connection_t *c, lua_State *L,
@@ -221,9 +221,9 @@ void ngx_http_lua_release_ngx_ctx_table(ngx_log_t *log, lua_State *L,
221221

222222
void ngx_http_lua_cleanup_vm(void *data);
223223

224-
ngx_connection_t * ngx_http_lua_create_fake_connection(ngx_pool_t *pool);
224+
ngx_connection_t *ngx_http_lua_create_fake_connection(ngx_pool_t *pool);
225225

226-
ngx_http_request_t * ngx_http_lua_create_fake_request(ngx_connection_t *c);
226+
ngx_http_request_t *ngx_http_lua_create_fake_request(ngx_connection_t *c);
227227

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

0 commit comments

Comments
 (0)