From e05d99d622b1a71de0debd4e15488e1cc5b3ecde Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 10 Nov 2007 10:26:04 +0000 Subject: [PATCH] Commented-out unneeded call to Translate() method. --- Source/Bind/GL2/Generator.cs | 9 ++++++--- Source/Bind/Glu/Generator.cs | 2 +- Source/Bind/Glx/Generator.cs | 2 +- Source/Bind/Wgl/Generator.cs | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Source/Bind/GL2/Generator.cs b/Source/Bind/GL2/Generator.cs index c66d18cb..22dca557 100644 --- a/Source/Bind/GL2/Generator.cs +++ b/Source/Bind/GL2/Generator.cs @@ -71,7 +71,7 @@ namespace Bind.GL2 // Process enums and delegates - create wrappers. Trace.WriteLine("Processing specs, please wait..."); - this.Translate(); + //this.Translate(); this.WriteBindings( Bind.Structures.Delegate.Delegates, @@ -82,12 +82,12 @@ namespace Bind.GL2 #endregion #region private void Translate() - +#if false protected virtual void Translate() { Bind.Structures.Enum.GLEnums.Translate(); } - +#endif #endregion #region ISpecReader Members @@ -404,6 +404,9 @@ namespace Bind.GL2 if (words.Length < 2) continue; + if (((Settings.Compatibility & Settings.Legacy.NoBoolParameters) != Settings.Legacy.None) && words[1] == "bool") + words[1] = "Int32"; + CSTypes.Add(words[0], words[1]); } diff --git a/Source/Bind/Glu/Generator.cs b/Source/Bind/Glu/Generator.cs index 59e91a7e..ac5f9e1e 100644 --- a/Source/Bind/Glu/Generator.cs +++ b/Source/Bind/Glu/Generator.cs @@ -61,7 +61,7 @@ namespace Bind.Glu // Process enums and delegates - create wrappers. Trace.WriteLine("Processing specs, please wait..."); - this.Translate(); + //this.Translate(); this.WriteBindings( Bind.Structures.Delegate.Delegates, diff --git a/Source/Bind/Glx/Generator.cs b/Source/Bind/Glx/Generator.cs index dece7576..66768627 100644 --- a/Source/Bind/Glx/Generator.cs +++ b/Source/Bind/Glx/Generator.cs @@ -57,7 +57,7 @@ namespace Bind.Glx // Process enums and delegates - create wrappers. Trace.WriteLine("Processing specs, please wait..."); - this.Translate(); + //this.Translate(); this.WriteBindings( Bind.Structures.Delegate.Delegates, diff --git a/Source/Bind/Wgl/Generator.cs b/Source/Bind/Wgl/Generator.cs index 9881f519..2a8b89f8 100644 --- a/Source/Bind/Wgl/Generator.cs +++ b/Source/Bind/Wgl/Generator.cs @@ -58,7 +58,7 @@ namespace Bind.Wgl // Process enums and delegates - create wrappers. Trace.WriteLine("Processing specs, please wait..."); - this.Translate(); + //this.Translate(); this.WriteBindings( Bind.Structures.Delegate.Delegates,