[mono/gtk-sharp] [4 commits] 57938c32: generator: Add missing copyright headers in files added by Stephan

"Bertrand Lorentz ([email protected])" <[email protected]>
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <00000141a45be7ce-0a141e41-4de1-41b1-8e39-1d7a58b55f89-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/gtk-sharp
  Compare: https://github.com/mono/gtk-sharp/compare/46cd80aea09b...9b9512a3cea6

   Commit: 57938c321e13c5b6acdf17139435d6d8f0f6c947
   Author: Bertrand Lorentz <[email protected]> (bl8)
     Date: 2013-10-10 21:38:03 GMT
      URL: https://github.com/mono/gtk-sharp/commit/57938c321e13c5b6acdf17139435d6d8f0f6c947

generator: Add missing copyright headers in files added by Stephan

Changed paths:
  M generator/Constant.cs
  M generator/NativeStructGen.cs
  M generator/UnionGen.cs

Modified: generator/Constant.cs
===================================================================
@@ -1,3 +1,22 @@
+// Authors:
+//   Stephan Sundermann <[email protected]>
+//
+// Copyright (c) 2013 Stephan Sundermann
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of version 2 of the GNU General Public
+// License as published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this program; if not, write to the
+// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA.
+
 using System;
 using System.Xml;
 using System.IO;

Modified: generator/NativeStructGen.cs
===================================================================
@@ -1,3 +1,22 @@
+// Authors:
+//   Stephan Sundermann <[email protected]>
+//
+// Copyright (c) 2013 Stephan Sundermann
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of version 2 of the GNU General Public
+// License as published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this program; if not, write to the
+// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA.
+
 using System;
 using System.Collections.Generic;
 using System.IO;

Modified: generator/UnionGen.cs
===================================================================
@@ -1,3 +1,21 @@
+// Authors:
+//   Stephan Sundermann <[email protected]>
+//
+// Copyright (c) 2013 Stephan Sundermann
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of version 2 of the GNU General Public
+// License as published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this program; if not, write to the
+// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA.
 
 using System.Xml;
 

   Commit: 46068e7addccd6a2beb26e636476a0287da74d5d
   Author: Bertrand Lorentz <[email protected]> (bl8)
     Date: 2013-10-10 21:43:55 GMT
      URL: https://github.com/mono/gtk-sharp/commit/46068e7addccd6a2beb26e636476a0287da74d5d

generator: Remove unused field in Constant class

Changed paths:
  M generator/Constant.cs

Modified: generator/Constant.cs
===================================================================
@@ -25,14 +25,12 @@ namespace GtkSharp.Generation
 {
 	public class Constant
 	{
-		private readonly XmlElement elem;
 		private readonly string name;
 		private readonly string value;
 		private readonly string ctype;
 
 		public Constant (XmlElement elem)
 		{
-			this.elem = elem;
 			this.name = elem.GetAttribute ("name");
 			this.value = elem.GetAttribute ("value");
 			this.ctype = elem.GetAttribute ("ctype");

   Commit: 741360020c267c73125e91066b8a652b6daaba1a
   Author: Bertrand Lorentz <[email protected]> (bl8)
     Date: 2013-10-10 21:44:24 GMT
      URL: https://github.com/mono/gtk-sharp/commit/741360020c267c73125e91066b8a652b6daaba1a

generator: Remove unused variable in FieldBase class

Changed paths:
  M generator/FieldBase.cs

Modified: generator/FieldBase.cs
===================================================================
@@ -161,7 +161,6 @@ public virtual void Generate (GenerationInfo gen_info, string indent)
 			IGeneratable gen = table [CType];
 			StreamWriter sw = gen_info.Writer;
 			string modifiers = elem.GetAttributeAsBoolean ("new_flag") ? "new " : "";
-			bool is_struct = table.IsStruct (CType) || table.IsBoxed (CType);
 
 			sw.WriteLine (indent + "public " + modifiers + CSType + " " + Name + " {");
 

   Commit: 9b9512a3cea681519756d19b9112369756707e0e
   Author: Bertrand Lorentz <[email protected]> (bl8)
     Date: 2013-10-10 21:47:12 GMT
      URL: https://github.com/mono/gtk-sharp/commit/9b9512a3cea681519756d19b9112369756707e0e

generator: Remove unused variables in NativeStructGen

Changed paths:
  M generator/NativeStructGen.cs

Modified: generator/NativeStructGen.cs
===================================================================
@@ -184,8 +184,6 @@ protected new void GenFields (GenerationInfo gen_info)
 
 		protected void GenEqualsAndHash (StreamWriter sw)
 		{
-			int bitfields = 0;
-			bool need_field = true;
 			StringBuilder hashcode = new StringBuilder ();
 			StringBuilder equals = new StringBuilder ();
 
@@ -198,7 +196,6 @@ protected void GenEqualsAndHash (StreamWriter sw)
 				if (field.IsPadding || !field.Visible || field.IsBitfield)
 					continue;
 
-				need_field = true;
 				equals.Append (" && ");
 				equals.Append (field.EqualityName);
 				equals.Append (".Equals (other.");


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.