[seed] Replace %Zd with %zd, and the %l in %lg is not necessary
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Replace %Zd with %zd, and the %l in %lg is not necessary
- Date: Thu, 30 Apr 2009 00:14:39 -0400 (EDT)
commit 862ea290ddb6c6ee8867dfe2cc8ad766b308a7ec
Author: Robert Carr <racarr svn gnome org>
Date: Thu Apr 30 00:14:34 2009 -0400
Replace %Zd with %zd, and the %l in %lg is not necessary
---
libseed/seed-builtins.c | 10 +++++-----
libseed/seed-engine.c | 4 ++--
libseed/seed-gtype.c | 10 +++++-----
libseed/seed-signals.c | 6 +++---
libseed/seed-types.c | 2 +-
5 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/libseed/seed-builtins.c b/libseed/seed-builtins.c
index bba8ee4..e03123b 100644
--- a/libseed/seed-builtins.c
+++ b/libseed/seed-builtins.c
@@ -40,7 +40,7 @@ seed_include (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"Seed.include expected 1 argument, "
- "got %Zd", argumentCount);
+ "got %zd", argumentCount);
return JSValueMakeNull (ctx);
}
@@ -127,7 +127,7 @@ seed_scoped_include (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"Seed.include expected 1 argument, "
- "got %Zd", argumentCount);
+ "got %zd", argumentCount);
return JSValueMakeNull (ctx);
}
@@ -262,7 +262,7 @@ seed_introspect (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"Seed.introspect expected 1 argument, "
- "got %Zd", argumentCount);
+ "got %zd", argumentCount);
return JSValueMakeNull (ctx);
}
@@ -327,7 +327,7 @@ seed_check_syntax (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"Seed.check_syntax expected "
- "1 argument, got %Zd", argumentCount);
+ "1 argument, got %zd", argumentCount);
}
return JSValueMakeNull (ctx);
}
@@ -402,7 +402,7 @@ seed_quit (JSContextRef ctx,
else if (argumentCount > 1)
{
seed_make_exception (ctx, exception, "ArgumentError",
- "Seed.quit expected " "1 argument, got %Zd",
+ "Seed.quit expected " "1 argument, got %zd",
argumentCount);
}
diff --git a/libseed/seed-engine.c b/libseed/seed-engine.c
index 4d9af06..27e683f 100644
--- a/libseed/seed-engine.c
+++ b/libseed/seed-engine.c
@@ -122,7 +122,7 @@ seed_gobject_constructor_invoked (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"Constructor expects"
- " 1 argument, got %Zd", argumentCount);
+ " 1 argument, got %zd", argumentCount);
return (JSObjectRef) JSValueMakeNull (ctx);
}
@@ -232,7 +232,7 @@ seed_gobject_equals (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"GObject equals comparison expected"
- " 1 argument, got %Zd", argumentCount);
+ " 1 argument, got %zd", argumentCount);
return JSValueMakeNull (ctx);
}
diff --git a/libseed/seed-gtype.c b/libseed/seed-gtype.c
index fe9a589..0a6c673 100644
--- a/libseed/seed-gtype.c
+++ b/libseed/seed-gtype.c
@@ -54,7 +54,7 @@ seed_property_method_invoked (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"Property installation expected 1 argument"
- " got %Zd \n", argumentCount);
+ " got %zd \n", argumentCount);
return JSValueMakeNull (ctx);
}
@@ -105,7 +105,7 @@ seed_gsignal_method_invoked (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"Signal constructor expected 1 argument"
- " got %Zd \n", argumentCount);
+ " got %zd \n", argumentCount);
return (JSObjectRef) JSValueMakeNull (ctx);
}
if (JSValueIsNull (ctx, arguments[0])
@@ -509,7 +509,7 @@ seed_gtype_constructor_invoked (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"GType constructor expected 1 "
- "argument, got %Zd \n", argumentCount);
+ "argument, got %zd \n", argumentCount);
return (JSObjectRef) JSValueMakeNull (ctx);
}
if (!JSValueIsObject (ctx, arguments[0]))
@@ -605,7 +605,7 @@ seed_param_getter_invoked (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"ParamSpec.get expected "
- "1 argument, got %Zd", argumentCount);
+ "1 argument, got %zd", argumentCount);
return JSValueMakeNull (ctx);
}
@@ -638,7 +638,7 @@ seed_param_setter_invoked (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"ParamSpec.set expected "
- "1 argument, got %Zd", argumentCount);
+ "1 argument, got %zd", argumentCount);
return JSValueMakeNull (ctx);
}
diff --git a/libseed/seed-signals.c b/libseed/seed-signals.c
index 47c203d..b6794d1 100644
--- a/libseed/seed-signals.c
+++ b/libseed/seed-signals.c
@@ -127,7 +127,7 @@ seed_gobject_signal_connect_by_name (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"Signal connection expected"
- " 2 or 3 arguments. Got " "%Zd",
+ " 2 or 3 arguments. Got " "%zd",
argumentCount);
return JSValueMakeNull (ctx);
@@ -266,7 +266,7 @@ seed_gobject_signal_emit (JSContextRef ctx,
{
seed_make_exception (ctx, exception, "ArgumentError",
"Signal: %s for type %s expected %u "
- "arguments, got %Zd",
+ "arguments, got %zd",
query.signal_name,
g_type_name (query.itype),
query.n_params,
@@ -325,7 +325,7 @@ seed_gobject_signal_connect_on_property (JSContextRef ctx,
seed_make_exception (ctx, exception, "ArgumentError",
"Signal connection expected"
" 1, or 2 arguments. Got "
- "%Zd", argumentCount);
+ "%zd", argumentCount);
return JSValueMakeNull (ctx);
}
diff --git a/libseed/seed-types.c b/libseed/seed-types.c
index 6696d64..ce8970c 100644
--- a/libseed/seed-types.c
+++ b/libseed/seed-types.c
@@ -1773,7 +1773,7 @@ seed_value_to_string (JSContextRef ctx,
}
else if (JSValueIsBoolean (ctx, val) || JSValueIsNumber (ctx, val))
{
- buf = g_strdup_printf ("%lg", JSValueToNumber (ctx, val, NULL));
+ buf = g_strdup_printf ("%g", JSValueToNumber (ctx, val, NULL));
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]