Kouhei Sutou
null+****@clear*****
Mon Oct 19 15:30:38 JST 2015
Kouhei Sutou 2015-10-19 15:30:38 +0900 (Mon, 19 Oct 2015) New Revision: ea683154660fa4dc12b75f75466ff01d61054f2c https://github.com/groonga/groonga/commit/ea683154660fa4dc12b75f75466ff01d61054f2c Message: Add uint64 output function Modified files: include/groonga/output.h lib/ctx.c lib/grn_output.h Modified: include/groonga/output.h (+1 -0) =================================================================== --- include/groonga/output.h 2015-10-19 15:30:08 +0900 (8c37dd2) +++ include/groonga/output.h 2015-10-19 15:30:38 +0900 (ea2b5b8) @@ -78,6 +78,7 @@ GRN_API void grn_ctx_output_map_open(grn_ctx *ctx, GRN_API void grn_ctx_output_map_close(grn_ctx *ctx); GRN_API void grn_ctx_output_int32(grn_ctx *ctx, int value); GRN_API void grn_ctx_output_int64(grn_ctx *ctx, int64_t value); +GRN_API void grn_ctx_output_uint64(grn_ctx *ctx, uint64_t value); GRN_API void grn_ctx_output_float(grn_ctx *ctx, double value); GRN_API void grn_ctx_output_cstr(grn_ctx *ctx, const char *value); GRN_API void grn_ctx_output_str(grn_ctx *ctx, Modified: lib/ctx.c (+6 -0) =================================================================== --- lib/ctx.c 2015-10-19 15:30:08 +0900 (a92244f) +++ lib/ctx.c 2015-10-19 15:30:38 +0900 (caa9899) @@ -2768,6 +2768,12 @@ grn_ctx_output_int64(grn_ctx *ctx, int64_t value) } void +grn_ctx_output_uint64(grn_ctx *ctx, uint64_t value) +{ + grn_output_uint64(ctx, ctx->impl->outbuf, ctx->impl->output_type, value); +} + +void grn_ctx_output_float(grn_ctx *ctx, double value) { grn_output_float(ctx, ctx->impl->outbuf, ctx->impl->output_type, value); Modified: lib/grn_output.h (+5 -0) =================================================================== --- lib/grn_output.h 2015-10-19 15:30:08 +0900 (63752e9) +++ lib/grn_output.h 2015-10-19 15:30:38 +0900 (d78a96e) @@ -37,6 +37,9 @@ void grn_output_int32(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_typ GRN_API void grn_output_int64(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, int64_t value); +GRN_API void grn_output_uint64(grn_ctx *ctx, grn_obj *outbuf, + grn_content_type output_type, + uint64_t value); void grn_output_float(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, double value); GRN_API void grn_output_cstr(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, @@ -75,6 +78,8 @@ grn_rc grn_output_format_set_columns(grn_ctx *ctx, grn_obj_format *format, (grn_ctx_output_int32(ctx, value)) #define GRN_OUTPUT_INT64(value) \ (grn_ctx_output_int64(ctx, value)) +#define GRN_OUTPUT_UINT64(value) \ + (grn_ctx_output_uint64(ctx, value)) #define GRN_OUTPUT_FLOAT(value) \ (grn_ctx_output_float(ctx, value)) #define GRN_OUTPUT_CSTR(value)\ -------------- next part -------------- HTML����������������������������...Download