Removed moo_print() and moo_print_err()

This commit is contained in:
Yevgen Muntyan 2007-01-07 23:12:29 -06:00
parent 89db53d70e
commit 6ec57017d7
3 changed files with 13 additions and 19 deletions

View File

@ -439,6 +439,17 @@ set_file (const char *name,
Py_DECREF (file);
}
static void
print_func (const char *string)
{
g_print ("%s", string);
}
static void
printerr_func (const char *string)
{
g_printerr ("%s", string);
}
void
_moo_py_init_print_funcs (void)
@ -456,6 +467,6 @@ _moo_py_init_print_funcs (void)
return;
}
set_file ("stdout", moo_print);
set_file ("stderr", moo_print_err);
set_file ("stdout", print_func);
set_file ("stderr", printerr_func);
}

View File

@ -797,19 +797,6 @@ moo_reset_log_func (void)
}
void
moo_print (const char *string)
{
g_print ("%s", string);
}
void
moo_print_err (const char *string)
{
g_printerr ("%s", string);
}
/*
* Display log messages in a window
*/

View File

@ -35,10 +35,6 @@ gboolean _moo_window_set_icon_from_stock (GtkWindow *window,
void moo_log_window_show (void);
void moo_log_window_hide (void);
/* these two are wrappers for g_print, needed for python stdout/stderr */
void moo_print (const char *string);
void moo_print_err (const char *string);
void moo_set_log_func_window (gboolean show_now);
void moo_set_log_func_file (const char *log_file);
void moo_set_log_func_silent (void);