seed r33 - in trunk: . libseed



Author: racarr
Date: Fri Oct 24 17:47:37 2008
New Revision: 33
URL: http://svn.gnome.org/viewvc/seed?rev=33&view=rev

Log:
More code cleanup...


Modified:
   trunk/Makefile
   trunk/libseed/seed-builtins.c
   trunk/libseed/seed-engine.c
   trunk/libseed/seed-engine.h

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	(original)
+++ trunk/Makefile	Fri Oct 24 17:47:37 2008
@@ -1,5 +1,5 @@
 all:
-	gcc libseed/*.c -shared -fPIC -lreadline -g -o libseed/libseed.so `pkg-config --cflags --libs webkit-1.0 gobject-introspection-1.0 glib-2.0`
+	gcc libseed/*.c -Wall  -shared -fPIC -lreadline -g -o libseed/libseed.so `pkg-config --cflags --libs webkit-1.0 gobject-introspection-1.0 glib-2.0`
 	gcc `pkg-config --cflags --libs gstreamer-0.10 glib-2.0 webkit-1.0 gobject-introspection-1.0` *.c -g -o seed  -L libseed -lseed -lreadline -lffi
 install:
 	cp libseed/libseed.so /usr/local/lib

Modified: trunk/libseed/seed-builtins.c
==============================================================================
--- trunk/libseed/seed-builtins.c	(original)
+++ trunk/libseed/seed-builtins.c	Fri Oct 24 17:47:37 2008
@@ -76,7 +76,7 @@
 {
 	// TODO: careful!
 	gchar * buf = seed_value_to_string(arguments[0]);
-	printf("%s\n", buf, 0);
+	printf("%s\n", buf);
 	free(buf);
 	
 	return 0;
@@ -94,7 +94,6 @@
 	// Perhaps Seed.readline_bind('a', function)
 	// Then automagically do function stuff and make it happen!
 	
-	JSStringRef jsstr = 0;
 	JSValueRef valstr = 0;
 	gchar * str = 0;
 	gchar * buf = seed_value_to_string(arguments[0]);

Modified: trunk/libseed/seed-engine.c
==============================================================================
--- trunk/libseed/seed-engine.c	(original)
+++ trunk/libseed/seed-engine.c	Fri Oct 24 17:47:37 2008
@@ -279,7 +279,6 @@
 		GITypeInfo *type_info;
 		GIDirection dir;
 		SeedValue method_ref;
-		const gchar * symbol_name;
 
 		//if (g_base_info_is_deprecated ((GIBaseInfo *) info))
 		//	g_printf("Not defining deprecated symbol: %s \n",
@@ -347,7 +346,7 @@
 static void seed_gobject_add_methods_for_type(GIObjectInfo * oinfo, JSObjectRef object)
 {
 		int n_methods;
-		int i, j;
+		int i;
 		GIFunctionInfo * info;
 
 		n_methods = g_object_info_get_n_methods(oinfo);
@@ -387,7 +386,7 @@
 
 	
 		def.className = g_type_name(type);
-		if (parent = g_type_parent(type))
+		if ((parent = g_type_parent(type)))
 				parent_class = seed_gobject_get_class_for_gtype(parent);
 		def.parentClass = parent_class;
 		def.attributes = kJSClassAttributeNoAutomaticPrototype;

Modified: trunk/libseed/seed-engine.h
==============================================================================
--- trunk/libseed/seed-engine.h	(original)
+++ trunk/libseed/seed-engine.h	Fri Oct 24 17:47:37 2008
@@ -41,5 +41,5 @@
 JSClassRef seed_gobject_get_class_for_gtype(GType type);
 
 void seed_gobject_define_property_from_function_info(GIFunctionInfo *info, JSObjectRef object);
-
+void seed_create_function(char * name, gpointer func, JSObjectRef obj);
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]