remove pic_warn

This commit is contained in:
Yuichi Nishiwaki 2015-06-09 22:13:46 +09:00
parent 30cbdd5c4f
commit 6af9a3ee7d
2 changed files with 1 additions and 8 deletions

View File

@ -243,13 +243,6 @@ void pic_warnf(pic_state *, const char *, ...);
const char *pic_errmsg(pic_state *); const char *pic_errmsg(pic_state *);
pic_str *pic_get_backtrace(pic_state *); pic_str *pic_get_backtrace(pic_state *);
void pic_print_backtrace(pic_state *, xFILE *); 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); struct pic_dict *pic_attr(pic_state *, pic_value);
pic_value pic_attr_ref(pic_state *, pic_value, const char *); pic_value pic_attr_ref(pic_state *, pic_value, const char *);
void pic_attr_set(pic_state *, pic_value, const char *, pic_value); void pic_attr_set(pic_state *, pic_value, const char *, pic_value);

View File

@ -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)) { if (! pic_find_rename(pic, pic->lib->env, sym, &rename)) {
rename = pic_add_rename(pic, pic->lib->env, sym); rename = pic_add_rename(pic, pic->lib->env, sym);
} else { } else {
pic_warn(pic, "redefining global"); pic_warnf(pic, "redefining global");
} }
pic_dict_set(pic, pic->globals, rename, val); pic_dict_set(pic, pic->globals, rename, val);