seed r35 - in trunk: . libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r35 - in trunk: . libseed
- Date: Fri, 24 Oct 2008 18:08:54 +0000 (UTC)
Author: racarr
Date: Fri Oct 24 18:08:54 2008
New Revision: 35
URL: http://svn.gnome.org/viewvc/seed?rev=35&view=rev
Log:
More cleanup.
Modified:
trunk/Makefile
trunk/libseed/seed-engine.c
trunk/libseed/seed-signals.c
trunk/libseed/seed-types.c
Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Fri Oct 24 18:08:54 2008
@@ -1,5 +1,5 @@
all:
- 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 libseed/*.c -Wall -O3 -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-engine.c
==============================================================================
--- trunk/libseed/seed-engine.c (original)
+++ trunk/libseed/seed-engine.c Fri Oct 24 18:08:54 2008
@@ -364,7 +364,7 @@
JSClassDefinition def;
GType parent;
JSClassRef ref;
- JSClassRef parent_class;
+ JSClassRef parent_class = 0;
GIBaseInfo * info;
JSObjectRef prototype_obj;
JSObjectRef parent_prototype;
Modified: trunk/libseed/seed-signals.c
==============================================================================
--- trunk/libseed/seed-signals.c (original)
+++ trunk/libseed/seed-signals.c Fri Oct 24 18:08:54 2008
@@ -39,7 +39,7 @@
GObject * obj,
GSignalQuery * signal)
{
- int k;
+ guint k;
JSObjectRef signal_ref;
signal_privates * priv =
malloc(sizeof(signal_privates));
Modified: trunk/libseed/seed-types.c
==============================================================================
--- trunk/libseed/seed-types.c (original)
+++ trunk/libseed/seed-types.c Fri Oct 24 18:08:54 2008
@@ -747,7 +747,7 @@
gchar seed_value_to_char(JSValueRef val)
{
- gchar cv;
+ int cv;
if(!JSValueIsNumber(eng->context, val))
{
@@ -763,7 +763,7 @@
return 0;
}
- return cv;
+ return (char)cv;
}
JSValueRef seed_value_from_char(gchar val)
@@ -773,7 +773,7 @@
guchar seed_value_to_uchar(JSValueRef val)
{
- guchar cv;
+ guint cv;
if(!JSValueIsNumber(eng->context, val))
{
@@ -783,13 +783,13 @@
cv = JSValueToNumber(eng->context, val, NULL);
- if(cv < 0 || cv > G_MAXUINT8)
+ if(cv > G_MAXUINT8)
{
seed_value_wrong_type();
return 0;
}
- return cv;
+ return (guchar)cv;
}
JSValueRef seed_value_from_uchar(guchar val)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]