[Groonga-commit] groonga/groonga at bc0467c [master] Use grn_bool for boolean value

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Fri May 24 12:08:13 JST 2013


Kouhei Sutou	2013-05-24 12:08:13 +0900 (Fri, 24 May 2013)

  New Revision: bc0467c41753a2fe78eff453943226c225254c1d
  https://github.com/groonga/groonga/commit/bc0467c41753a2fe78eff453943226c225254c1d

  Message:
    Use grn_bool for boolean value

  Modified files:
    include/groonga.h
    lib/ctx.c

  Modified: include/groonga.h (+1 -1)
===================================================================
--- include/groonga.h    2013-05-24 11:41:45 +0900 (336111b)
+++ include/groonga.h    2013-05-24 12:08:13 +0900 (e6d1d19)
@@ -2091,7 +2091,7 @@ GRN_API void grn_logger_put(grn_ctx *ctx, grn_log_level level,
                             const char *file, int line, const char *func, const char *fmt, ...) GRN_ATTRIBUTE_PRINTF(6);
 GRN_API void grn_logger_reopen(grn_ctx *ctx);
 
-GRN_API int grn_logger_pass(grn_ctx *ctx, grn_log_level level);
+GRN_API grn_bool grn_logger_pass(grn_ctx *ctx, grn_log_level level);
 
 #ifndef GRN_LOG_DEFAULT_LEVEL
 #define GRN_LOG_DEFAULT_LEVEL GRN_LOG_NOTICE

  Modified: lib/ctx.c (+1 -1)
===================================================================
--- lib/ctx.c    2013-05-24 11:41:45 +0900 (bdf2b02)
+++ lib/ctx.c    2013-05-24 12:08:13 +0900 (df59dd9)
@@ -907,7 +907,7 @@ grn_logger_get_max_level(grn_ctx *ctx)
   return current_logger.max_level;
 }
 
-int
+grn_bool
 grn_logger_pass(grn_ctx *ctx, grn_log_level level)
 {
   return level <= current_logger.max_level;
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る