Kouhei Sutou
null+****@clear*****
Mon Feb 5 10:00:53 JST 2018
Kouhei Sutou 2018-02-05 10:00:53 +0900 (Mon, 05 Feb 2018) New Revision: 1670b3462ce170c1275ad34417b07e23f737e68c https://github.com/groonga/groonga/commit/1670b3462ce170c1275ad34417b07e23f737e68c Message: Stop to use declaration after expression Modified files: plugins/functions/math.c Modified: plugins/functions/math.c (+14 -12) =================================================================== --- plugins/functions/math.c 2018-02-02 16:12:28 +0900 (ad22c4a2c) +++ plugins/functions/math.c 2018-02-05 10:00:53 +0900 (ee548332b) @@ -1,6 +1,6 @@ /* -*- c-basic-offset: 2 -*- */ /* - Copyright(C) 2017 Brazil + Copyright(C) 2017-2018 Brazil This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -65,16 +65,18 @@ func_math_abs(grn_ctx *ctx, int n_args, grn_obj **args, } \ setter(ctx, grn_abs_number, getter(number)); \ } -#define ABS_CONVERT_TYPE(func, return_type, to_type, getter, setter) { \ - grn_abs_number = grn_plugin_proc_alloc(ctx, \ - user_data, \ - (return_type), \ - 0); \ - if (!grn_abs_number) { \ - return NULL; \ - } \ - to_type abs_number_raw = (to_type)(func)(getter(number)); \ - setter(ctx, grn_abs_number, abs_number_raw); \ +#define ABS_CONVERT_TYPE(func, return_type, to_type, getter, setter) { \ + grn_abs_number = grn_plugin_proc_alloc(ctx, \ + user_data, \ + (return_type), \ + 0); \ + if (!grn_abs_number) { \ + return NULL; \ + } \ + { \ + to_type abs_number_raw = (to_type)(func)(getter(number)); \ + setter(ctx, grn_abs_number, abs_number_raw); \ + } \ } switch (number->header.domain) { @@ -110,7 +112,7 @@ func_math_abs(grn_ctx *ctx, int n_args, grn_obj **args, } #undef ABS_CONVERT_TYPE #undef ABS_AS_IS - + return grn_abs_number; } -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180205/84e894e6/attachment-0001.htm