Kouhei Sutou
null+****@clear*****
Thu Jan 10 12:18:12 JST 2013
Kouhei Sutou 2013-01-10 12:18:12 +0900 (Thu, 10 Jan 2013) New Revision: 0ec4de59afc9f2ccae9d9d560ee5e7daca9c7652 https://github.com/groonga/groonga/commit/0ec4de59afc9f2ccae9d9d560ee5e7daca9c7652 Log: Define logger methods before Modified files: lib/ctx.c Modified: lib/ctx.c (+16 -16) =================================================================== --- lib/ctx.c 2013-01-10 12:16:27 +0900 (23aebde) +++ lib/ctx.c 2013-01-10 12:18:12 +0900 (f46175c) @@ -788,6 +788,22 @@ grn_default_logger_get_path(void) return default_logger_path; } +void +grn_logger_reopen(grn_ctx *ctx) +{ + if (current_logger.reopen) { + current_logger.reopen(ctx, current_logger.user_data); + } +} + +void +grn_logger_fin(grn_ctx *ctx) +{ + if (current_logger.fin) { + current_logger.fin(ctx, current_logger.user_data); + } +} + static void logger_info_func_wrapper(grn_ctx *ctx, grn_log_level level, const char *timestamp, const char *title, @@ -878,22 +894,6 @@ grn_logger_put(grn_ctx *ctx, grn_log_level level, } } -void -grn_logger_reopen(grn_ctx *ctx) -{ - if (current_logger.reopen) { - current_logger.reopen(ctx, current_logger.user_data); - } -} - -void -grn_logger_fin(grn_ctx *ctx) -{ - if (current_logger.fin) { - current_logger.fin(ctx, current_logger.user_data); - } -} - static void logger_init(void) { -------------- next part -------------- HTML����������������������������... 下载