i have problems, building c#-bindings for libccc.
so i created two a patches (see attchments) - for gapi2-parser and
gapi2-codegen.
with this patches the creation of the c#-bindings will work.
please, have a look at the second regex, i think it should work fine,
and for libccc it does work, but i am unsure if it has any side-effect's
for building it against other c#-bindings
best regards
echnaton
diff -ur gtk-sharp-2.10.2_clean/generator/Signal.cs gtk-sharp-2.10.2_modified/generator/Signal.cs
--- gtk-sharp-2.10.2_clean/generator/Signal.cs 2007-04-28 18:42:10.000000000 +0200
+++ gtk-sharp-2.10.2_modified/generator/Signal.cs 2008-02-09 04:57:30.000000000 +0100
@@ -192,7 +192,9 @@
case "string":
return "GLib.GType.String";
case "int":
- return "GLib.GType.Int";
+ return "GLib.GType.Int";
+ case "double":
+ return "GLib.GType.Double";
default:
throw new Exception (retval.CSType);
}
diff -bur gtk-sharp-2.10.2_clean/parser/gapi_pp.pl gtk-sharp-2.10.2_modified/parser/gapi_pp.pl
--- gtk-sharp-2.10.2_clean/parser/gapi_pp.pl 2007-07-20 17:32:38.000000000 +0200
+++ gtk-sharp-2.10.2_modified/parser/gapi_pp.pl 2008-02-09 06:18:42.000000000 +0100
@@ -252,7 +252,7 @@
$begin = 0;
$end = 0;
- } until (($line = <INFILE>) =~ /^}/);
+ # FIXME: Is this regex, correct? Or could there be any side-effects?
+ } until (($line = <INFILE>) =~ /^}|^{}/);
print $line;
}
}
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list