From 6af9a3ee7d41974176aa19ab37eaf8f9952ce829 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 9 Jun 2015 22:13:46 +0900 Subject: [PATCH] remove pic_warn --- extlib/benz/include/picrin.h | 7 ------- extlib/benz/vm.c | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/extlib/benz/include/picrin.h b/extlib/benz/include/picrin.h index c5c54110..37b83f42 100644 --- a/extlib/benz/include/picrin.h +++ b/extlib/benz/include/picrin.h @@ -243,13 +243,6 @@ void pic_warnf(pic_state *, const char *, ...); const char *pic_errmsg(pic_state *); pic_str *pic_get_backtrace(pic_state *); void pic_print_backtrace(pic_state *, xFILE *); - -/* obsoleted */ -PIC_INLINE void pic_warn(pic_state *pic, const char *msg) -{ - pic_warnf(pic, msg); -} - struct pic_dict *pic_attr(pic_state *, pic_value); pic_value pic_attr_ref(pic_state *, pic_value, const char *); void pic_attr_set(pic_state *, pic_value, const char *, pic_value); diff --git a/extlib/benz/vm.c b/extlib/benz/vm.c index 995a6dac..ab9916fb 100644 --- a/extlib/benz/vm.c +++ b/extlib/benz/vm.c @@ -413,7 +413,7 @@ pic_define_noexport(pic_state *pic, const char *name, pic_value val) if (! pic_find_rename(pic, pic->lib->env, sym, &rename)) { rename = pic_add_rename(pic, pic->lib->env, sym); } else { - pic_warn(pic, "redefining global"); + pic_warnf(pic, "redefining global"); } pic_dict_set(pic, pic->globals, rename, val);