seed r326 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r326 - trunk/libseed
- Date: Mon, 24 Nov 2008 06:31:38 +0000 (UTC)
Author: racarr
Date: Mon Nov 24 06:31:38 2008
New Revision: 326
URL: http://svn.gnome.org/viewvc/seed?rev=326&view=rev
Log:
SEED_NOTES for struct code.
Modified:
trunk/libseed/seed-debug.h
trunk/libseed/seed-engine.c
trunk/libseed/seed-structs.c
Modified: trunk/libseed/seed-debug.h
==============================================================================
--- trunk/libseed/seed-debug.h (original)
+++ trunk/libseed/seed-debug.h Mon Nov 24 06:31:38 2008
@@ -11,7 +11,8 @@
SEED_DEBUG_FINALIZATION = 1 << 2,
SEED_DEBUG_INITIALIZATION = 1 << 3,
SEED_DEBUG_INVOCATION = 1 << 4,
- SEED_DEBUG_SIGNAL = 1 << 5
+ SEED_DEBUG_SIGNAL = 1 << 5,
+ SEED_DEBUG_STRUCTS = 1 << 6
} SeedDebugFlag;
#ifdef SEED_ENABLE_DEBUG
Modified: trunk/libseed/seed-engine.c
==============================================================================
--- trunk/libseed/seed-engine.c (original)
+++ trunk/libseed/seed-engine.c Mon Nov 24 06:31:38 2008
@@ -41,7 +41,8 @@
{"finalization", SEED_DEBUG_FINALIZATION},
{"initialization", SEED_DEBUG_INITIALIZATION},
{"signal", SEED_DEBUG_SIGNAL},
- {"invocation", SEED_DEBUG_INVOCATION}
+ {"invocation", SEED_DEBUG_INVOCATION},
+ {"structs", SEED_DEBUG_STRUCTS}
};
#endif /* SEED_ENABLE_DEBUG */
Modified: trunk/libseed/seed-structs.c
==============================================================================
--- trunk/libseed/seed-structs.c (original)
+++ trunk/libseed/seed-structs.c Mon Nov 24 06:31:38 2008
@@ -37,6 +37,9 @@
{
seed_struct_privates *priv =
(seed_struct_privates *) JSObjectGetPrivate(object);
+
+ SEED_NOTE(STRUCTS, "Finalizing seed_pointer object. with "
+ "priv->free_pointer = %d \n", priv->free_pointer);
if (priv->free_pointer)
g_free(priv->pointer);
@@ -51,6 +54,10 @@
GType type;
GIRegisteredTypeInfo *info =
(GIRegisteredTypeInfo *) g_base_info_get_type(priv->info);
+
+ SEED_NOTE(STRUCTS, "Finalizing boxed object of type %s \n",
+ g_base_info_get_name(priv->info));
+
type = g_registered_type_info_get_g_type(info);
g_base_info_unref((GIBaseInfo *) info);
@@ -170,6 +177,11 @@
cproperty_name = g_malloc(length * sizeof(gchar));
JSStringGetUTF8CString(property_name, cproperty_name, length);
+ SEED_NOTE(STRUCTS, "Getting property on union of type: %s "
+ "with name %s \n",
+ g_base_info_get_name(priv->info),
+ cproperty_name);
+
field = seed_union_find_field((GIUnionInfo *) priv->info, cproperty_name);
if (!field)
{
@@ -204,6 +216,11 @@
cproperty_name = g_malloc(length * sizeof(gchar));
JSStringGetUTF8CString(property_name, cproperty_name, length);
+ SEED_NOTE(STRUCTS, "Setting property on struct of type: %s "
+ "with name %s \n",
+ g_base_info_get_name(priv->info),
+ cproperty_name);
+
field = seed_struct_find_field((GIStructInfo *) priv->info, cproperty_name);
if (!field)
@@ -241,6 +258,11 @@
cproperty_name = g_malloc(length * sizeof(gchar));
JSStringGetUTF8CString(property_name, cproperty_name, length);
+ SEED_NOTE(STRUCTS, "Getting property on struct of type: %s "
+ "with name %s \n",
+ g_base_info_get_name(priv->info),
+ cproperty_name);
+
field = seed_struct_find_field((GIStructInfo *) priv->info, cproperty_name);
if (!field)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]