Skip to content

Commit

Permalink
Rename chewing_set_logger2 to chewing_set_logger_without_varglist
Browse files Browse the repository at this point in the history
  • Loading branch information
school510587 committed Jul 20, 2019
1 parent 809debc commit 016873b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/chewingio.h
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ CHEWING_API int chewing_get_phoneSeqLen(const ChewingContext *ctx);
CHEWING_API void chewing_set_logger(ChewingContext *ctx,
void (*logger) (void *data, int level, const char *fmt, ...), void *data);

CHEWING_API void chewing_set_logger2(ChewingContext *ctx,
CHEWING_API void chewing_set_logger_without_varglist(ChewingContext *ctx,
void (*logger2) (void *data, int level, const char *msg), void *data);

CHEWING_API int chewing_userphrase_enumerate(ChewingContext *ctx);
Expand Down
2 changes: 1 addition & 1 deletion src/chewingio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ CHEWING_API void chewing_set_logger(ChewingContext *ctx,
ctx->data->loggerData = data;
}

CHEWING_API void chewing_set_logger2(ChewingContext *ctx,
CHEWING_API void chewing_set_logger_without_varglist(ChewingContext *ctx,
void (*logger2) (void *data, int level, const char *msg), void *data2)
{
ChewingData *pgdata;
Expand Down
2 changes: 1 addition & 1 deletion test/test-logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void test_set_null_logger()
chewing_set_logger(ctx, NULL, 0);
type_keystroke_by_string(ctx, "hk4g4");

chewing_set_logger2(ctx, NULL, 0);
chewing_set_logger_without_varglist(ctx, NULL, 0);
type_keystroke_by_string(ctx, "hk4g4");

chewing_delete(ctx);
Expand Down

0 comments on commit 016873b

Please sign in to comment.