seed r133 - in trunk: libseed tests
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r133 - in trunk: libseed tests
- Date: Wed, 5 Nov 2008 20:28:47 +0000 (UTC)
Author: hortont
Date: Wed Nov 5 20:28:47 2008
New Revision: 133
URL: http://svn.gnome.org/viewvc/seed?rev=133&view=rev
Log:
More type cleanup.
Modified:
trunk/libseed/seed-closure.c
trunk/libseed/seed-engine.c
trunk/libseed/seed-signals.c
trunk/libseed/seed-structs.c
trunk/libseed/seed-types.c
trunk/tests/make-test.py (props changed)
Modified: trunk/libseed/seed-closure.c
==============================================================================
--- trunk/libseed/seed-closure.c (original)
+++ trunk/libseed/seed-closure.c Wed Nov 5 20:28:47 2008
@@ -116,7 +116,7 @@
void * userdata)
{
SeedNativeClosure * privates = userdata;
- int num_args, i;
+ gint num_args, i;
JSValueRef * jsargs;
JSValueRef return_value;
GITypeTag return_tag;
Modified: trunk/libseed/seed-engine.c
==============================================================================
--- trunk/libseed/seed-engine.c (original)
+++ trunk/libseed/seed-engine.c Wed Nov 5 20:28:47 2008
@@ -195,7 +195,7 @@
GArgument retval;
GArgument *in_args;
GArgument *out_args;
- int n_args, n_in_args, n_out_args, i;
+ gint n_args, n_in_args, n_out_args, i;
GIArgInfo *arg_info;
GITypeInfo *type_info;
GIDirection dir;
@@ -332,8 +332,8 @@
static void seed_gobject_add_methods_for_type(GIObjectInfo * oinfo,
JSObjectRef object)
{
- int n_methods;
- int i;
+ gint n_methods;
+ gint i;
GIFunctionInfo *info;
n_methods = g_object_info_get_n_methods(oinfo);
@@ -440,9 +440,9 @@
GObject *b;
GValue gval = { 0 };
char *cproperty_name;
- int length;
+ gint length;
SeedValue ret;
- int i, len;
+ gint i, len;
b = seed_value_to_object((JSValueRef) object, exception);
if (!b)
@@ -486,7 +486,7 @@
GValue gval = { 0 };
GType type;
gchar *cproperty_name;
- int length;
+ gint length;
if (JSValueIsNull(eng->context, value))
return 0;
@@ -501,7 +501,7 @@
cproperty_name);
if (!spec) {
- int i, len;
+ gint i, len;
len = strlen(cproperty_name);
for (i = 0; i < len; i++) {
if (cproperty_name[i] == '_')
@@ -553,7 +553,7 @@
const gchar *version = 0;
JSObjectRef namespace_ref;
JSStringRef extension_script;
- int n, i;
+ gint n, i;
if (argumentCount == 0)
{
@@ -601,9 +601,9 @@
} else if (info &&
(g_base_info_get_type(info) == GI_INFO_TYPE_ENUM ||
g_base_info_get_type(info) == GI_INFO_TYPE_FLAGS)) {
- int num_vals =
+ gint num_vals =
g_enum_info_get_n_values((GIEnumInfo *) info);
- int j;
+ gint j;
JSObjectRef enum_class = JSObjectMake(eng->context,
0, 0);
JSValueProtect(eng->context, (JSValueRef) enum_class);
@@ -618,8 +618,8 @@
gint value = g_value_info_get_value(val);
gchar *name = g_strdup(g_base_info_get_name(
(GIBaseInfo *) val));
- int name_len = strlen(name);
- int j;
+ gint name_len = strlen(name);
+ gint j;
JSValueRef value_ref;
value_ref = JSValueMakeNumber
@@ -649,7 +649,7 @@
if (type != 0) {
JSObjectRef constructor_ref;
- int i, n_methods;
+ gint i, n_methods;
GIFunctionInfo *finfo;
GIFunctionInfoFlags flags;
@@ -690,7 +690,7 @@
(g_base_info_get_type(info) == GI_INFO_TYPE_STRUCT))
{
JSObjectRef struct_ref;
- int i, n_methods;
+ gint i, n_methods;
GIFunctionInfo *finfo;
struct_ref = JSObjectMake(eng->context, 0, 0);
Modified: trunk/libseed/seed-signals.c
==============================================================================
--- trunk/libseed/seed-signals.c (original)
+++ trunk/libseed/seed-signals.c Wed Nov 5 20:28:47 2008
@@ -102,7 +102,7 @@
{
SeedClosure *seed_closure = (SeedClosure *) closure;
JSValueRef *args;
- int i;
+ gint i;
args = g_newa(JSValueRef, n_param_values);
Modified: trunk/libseed/seed-structs.c
==============================================================================
--- trunk/libseed/seed-structs.c (original)
+++ trunk/libseed/seed-structs.c Wed Nov 5 20:28:47 2008
@@ -51,7 +51,7 @@
JSObjectRef seed_make_union(gpointer younion, GIBaseInfo * info)
{
JSObjectRef object;
- int i, n_methods;
+ gint i, n_methods;
if (!seed_struct_class)
seed_struct_class = JSClassCreate(&gobject_struct_def);
Modified: trunk/libseed/seed-types.c
==============================================================================
--- trunk/libseed/seed-types.c (original)
+++ trunk/libseed/seed-types.c Wed Nov 5 20:28:47 2008
@@ -399,7 +399,7 @@
GITypeInfo *list_type;
JSObjectRef ret;
GArgument larg;
- int i = 0;
+ gint i = 0;
GList *list = arg->v_pointer;
ret = JSObjectMake(eng->context, NULL, NULL);
@@ -426,7 +426,7 @@
GITypeInfo *list_type;
JSObjectRef ret;
GArgument larg;
- int i = 0;
+ gint i = 0;
GSList *list = arg->v_pointer;
ret = JSObjectMake(eng->context, NULL, NULL);
@@ -808,7 +808,7 @@
gchar seed_value_to_char(JSValueRef val, JSValueRef * exception)
{
- int cv;
+ gint cv;
if (!JSValueIsNumber(eng->context, val)) {
if (!JSValueIsNull(eng->context, val))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]