[seed] Seed.print - change to use g_print, rather than puts
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] Seed.print - change to use g_print, rather than puts
- Date: Mon, 5 Jul 2010 05:09:07 +0000 (UTC)
commit 98550799a4e8861d0d2c4ff8fc4e1aafd4909e0e
Author: Jonatan Liljedahl <lijon kymatica com>
Date: Mon Jul 5 13:08:17 2010 +0800
Seed.print - change to use g_print, rather than puts
Changes Seed.print to use g_print, this enables set_print_handler to be used to redirect output.
libseed/seed-builtins.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libseed/seed-builtins.c b/libseed/seed-builtins.c
index 41e1d5a..6bd84da 100644
--- a/libseed/seed-builtins.c
+++ b/libseed/seed-builtins.c
@@ -225,7 +225,7 @@ seed_print (JSContextRef ctx,
buf = seed_value_to_string (ctx, arguments[0], exception);
- puts (buf);
+ g_print ("%s\n", buf);
g_free (buf);
return JSValueMakeUndefined (ctx);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]