2003-02-19 Mike Kestner <mkestner@speakeasy.net>
* generator/GenBase.cs : mark #line 1 for .customs * generator/SignalHandler.cs : fix for GObj retvals svn path=/trunk/gtk-sharp/; revision=11714
This commit is contained in:
parent
3d36c6eda0
commit
ccd555425e
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-02-19 Mike Kestner <mkestner@speakeasy.net>
|
||||||
|
|
||||||
|
* generator/GenBase.cs : mark #line 1 for .customs
|
||||||
|
* generator/SignalHandler.cs : fix for GObj retvals
|
||||||
|
|
||||||
2003-02-18 Mark Crichton <crichton@gimp.org>
|
2003-02-18 Mark Crichton <crichton@gimp.org>
|
||||||
|
|
||||||
* generator/EnumGen.cs: Handle different enum types.
|
* generator/EnumGen.cs: Handle different enum types.
|
||||||
|
|
|
@ -99,6 +99,7 @@ namespace GtkSharp.Generation {
|
||||||
char sep = Path.DirectorySeparatorChar;
|
char sep = Path.DirectorySeparatorChar;
|
||||||
string custom = ".." + sep + NS.ToLower() + sep + Name + ".custom";
|
string custom = ".." + sep + NS.ToLower() + sep + Name + ".custom";
|
||||||
if (File.Exists(custom)) {
|
if (File.Exists(custom)) {
|
||||||
|
sw.WriteLine ("#line 1 " + Name + ".custom");
|
||||||
sw.WriteLine ("#region Customized extensions");
|
sw.WriteLine ("#region Customized extensions");
|
||||||
FileStream custstream = new FileStream(custom, FileMode.Open, FileAccess.Read);
|
FileStream custstream = new FileStream(custom, FileMode.Open, FileAccess.Read);
|
||||||
StreamReader sr = new StreamReader(custstream);
|
StreamReader sr = new StreamReader(custstream);
|
||||||
|
|
|
@ -109,7 +109,7 @@ namespace GtkSharp.Generation {
|
||||||
sw.WriteLine();
|
sw.WriteLine();
|
||||||
sw.WriteLine("\t\tprivate static " + dname + " _Delegate;");
|
sw.WriteLine("\t\tprivate static " + dname + " _Delegate;");
|
||||||
sw.WriteLine();
|
sw.WriteLine();
|
||||||
sw.Write("\t\tprivate static " + s_ret + " ");
|
sw.Write("\t\tprivate static " + p_ret + " ");
|
||||||
sw.WriteLine(cbname + "(" + pinv + ", int key)");
|
sw.WriteLine(cbname + "(" + pinv + ", int key)");
|
||||||
sw.WriteLine("\t\t{");
|
sw.WriteLine("\t\t{");
|
||||||
sw.WriteLine("\t\t\tif (!_Instances.Contains(key))");
|
sw.WriteLine("\t\t\tif (!_Instances.Contains(key))");
|
||||||
|
@ -157,7 +157,7 @@ namespace GtkSharp.Generation {
|
||||||
else
|
else
|
||||||
sw.WriteLine ("\t\t\t\tthrow new Exception(\"args.RetVal unset in callback\");");
|
sw.WriteLine ("\t\t\t\tthrow new Exception(\"args.RetVal unset in callback\");");
|
||||||
|
|
||||||
sw.WriteLine("\t\t\treturn (" + s_ret + ") args.RetVal;");
|
sw.WriteLine("\t\t\treturn (" + p_ret + ") " + SymbolTable.CallByName (retval, "args.RetVal") + ";");
|
||||||
}
|
}
|
||||||
sw.WriteLine("\t\t}");
|
sw.WriteLine("\t\t}");
|
||||||
sw.WriteLine();
|
sw.WriteLine();
|
||||||
|
|
Loading…
Add table
Reference in a new issue