Navigation Menu

Skip to content

Commit

Permalink
Add uint64 output function
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 19, 2015
1 parent bd51c23 commit ea68315
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/groonga/output.h
Expand Up @@ -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,
Expand Down
6 changes: 6 additions & 0 deletions lib/ctx.c
Expand Up @@ -2767,6 +2767,12 @@ grn_ctx_output_int64(grn_ctx *ctx, int64_t value)
grn_output_int64(ctx, ctx->impl->outbuf, ctx->impl->output_type, 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)
{
Expand Down
5 changes: 5 additions & 0 deletions lib/grn_output.h
Expand Up @@ -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,
Expand Down Expand Up @@ -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)\
Expand Down

0 comments on commit ea68315

Please sign in to comment.