2008-01-29 Mike Kestner <mkestner@novell.com>

* generator/ManagedCallString (Setup): use error param name instead
	of hardcoding error.

svn path=/trunk/gtk-sharp/; revision=94309
This commit is contained in:
Mike Kestner 2008-01-29 20:04:27 +00:00
parent 6a668a2cc8
commit adda8bdcf5
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2008-01-29 Mike Kestner <mkestner@novell.com>
* generator/ManagedCallString (Setup): use error param name instead
of hardcoding error.
2008-01-29 Mike Kestner <mkestner@novell.com>
* generator/VirtualMethod (CName): mangle the name.

View File

@ -29,7 +29,7 @@ namespace GtkSharp.Generation {
ArrayList parms = new ArrayList ();
ArrayList special = new ArrayList ();
bool has_error;
string error_param = null;
public ManagedCallString (Parameters parms)
{
@ -41,7 +41,7 @@ namespace GtkSharp.Generation {
i += 2;
else if (p is ErrorParameter) {
has_error = true;
error_param = p.Name;
continue;
}
this.parms.Add (p);
@ -59,8 +59,8 @@ namespace GtkSharp.Generation {
{
string ret = "";
if (has_error)
ret = indent + "error = IntPtr.Zero;\n";
if (error_param != null)
ret = indent + error_param + " = IntPtr.Zero;\n";
for (int i = 0; i < parms.Count; i ++) {
if ((bool)special[i] == false)