2007-07-31 Mike Kestner <mkestner@novell.com>

* generator/Ctor.cs : Validate before generating and adjust protection
	on a couple private methods.
	* generator/Parameters.cs : remove unused var to kill warning.

svn path=/trunk/gtk-sharp/; revision=83132
This commit is contained in:
Mike Kestner 2007-07-31 18:29:13 +00:00
parent 0f6cac6623
commit 296c948db1
3 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2007-07-31 Mike Kestner <mkestner@novell.com>
* generator/Ctor.cs : Validate before generating and adjust protection
on a couple private methods.
* generator/Parameters.cs : remove unused var to kill warning.
2007-07-30 Mike Kestner <mkestner@novell.com>
* generator/MethodBody.cs : refactor finish logic into parameter.

View file

@ -61,14 +61,14 @@ namespace GtkSharp.Generation {
}
}
public void GenerateImport (StreamWriter sw)
void GenerateImport (StreamWriter sw)
{
sw.WriteLine("\t\t[DllImport(\"" + LibraryName + "\")]");
sw.WriteLine("\t\tstatic extern " + Safety + "IntPtr " + CName + "(" + ImportSignature + ");");
sw.WriteLine();
}
public void GenerateStatic (GenerationInfo gen_info)
void GenerateStatic (GenerationInfo gen_info)
{
StreamWriter sw = gen_info.Writer;
sw.WriteLine("\t\tpublic static " + Safety + Modifiers + name + " " + StaticName + "(" + Signature + ")");
@ -89,6 +89,9 @@ namespace GtkSharp.Generation {
public void Generate (GenerationInfo gen_info)
{
if (!Validate ())
return;
StreamWriter sw = gen_info.Writer;
gen_info.CurrentMember = CName;

View file

@ -366,13 +366,11 @@ namespace GtkSharp.Generation {
public class ArrayCountPair : ArrayParameter {
XmlElement array_elem;
XmlElement count_elem;
bool invert;
public ArrayCountPair (XmlElement array_elem, XmlElement count_elem, bool invert) : base (array_elem)
{
this.array_elem = array_elem;
this.count_elem = count_elem;
this.invert = invert;
}