Susumu Yata
null+****@clear*****
Tue Sep 12 17:53:12 JST 2017
Susumu Yata 2017-09-12 17:53:12 +0900 (Tue, 12 Sep 2017) New Revision: 846959ae4a90c48ce9112ef235fce740032fa9c4 https://github.com/groonga/groonga/commit/846959ae4a90c48ce9112ef235fce740032fa9c4 Message: Insert a space between if and "(" Modified files: lib/grn.h Modified: lib/grn.h (+3 -3) =================================================================== --- lib/grn.h 2017-09-12 17:40:56 +0900 (2c3fc20b1) +++ lib/grn.h 2017-09-12 17:53:12 +0900 (0d0768eba) @@ -1,6 +1,6 @@ /* -*- c-basic-offset: 2 -*- */ /* - Copyright(C) 2009-2016 Brazil + Copyright(C) 2009-2017 Brazil This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -264,7 +264,7 @@ typedef pthread_key_t grn_thread_key; #define GRN_TEST_YIELD() do {\ if (((++grn_uyield_count) & (0x20 - 1)) == 0) {\ sched_yield();\ - if(grn_uyield_count > 0x1000) {\ + if (grn_uyield_count > 0x1000) {\ grn_uyield_count = (uint32_t)time(NULL) % 0x1000;\ }\ }\ @@ -279,7 +279,7 @@ typedef pthread_key_t grn_thread_key; GRN_TEST_YIELD();\ } while (0) - #define if(if_cond) \ + #define if (if_cond) \ if ((((++grn_uyield_count) & (0x100 - 1)) != 0 || (sched_yield() * 0) == 0) && (if_cond)) #define while(while_cond) \ while ((((++grn_uyield_count) & (0x100 - 1)) != 0 || (sched_yield() * 0) == 0) && (while_cond)) -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20170912/9f407bb3/attachment.htm