Fix the handful of LF-only lines in otherwise CRLF files, so that

emacs won't show the ^Ms on the other 99% of lines

svn path=/trunk/gtk-sharp/; revision=36135
This commit is contained in:
Dan Winship 2004-11-15 13:56:34 +00:00
parent 45b2d7abd3
commit 03ca54df2f
4 changed files with 22 additions and 22 deletions

View file

@ -50,8 +50,8 @@ namespace GtkSharp.Generation {
sw.WriteLine ("\tusing System.Runtime.InteropServices;"); sw.WriteLine ("\tusing System.Runtime.InteropServices;");
sw.WriteLine (); sw.WriteLine ();
sw.WriteLine ("#region Autogenerated code"); sw.WriteLine ("#region Autogenerated code");
if (IsDeprecated) if (IsDeprecated)
sw.WriteLine ("\t[Obsolete]"); sw.WriteLine ("\t[Obsolete]");
sw.Write ("\tpublic class " + Name); sw.Write ("\tpublic class " + Name);
sw.WriteLine (" {"); sw.WriteLine (" {");

View file

@ -44,7 +44,7 @@ namespace GtkSharp.Generation {
private string name, cname, safety; private string name, cname, safety;
private string protection = "public"; private string protection = "public";
private bool is_get, is_set; private bool is_get, is_set;
private bool needs_ref = false; private bool needs_ref = false;
private bool deprecated = false; private bool deprecated = false;
public Method (string libname, XmlElement elem, ClassBase container_type) public Method (string libname, XmlElement elem, ClassBase container_type)
@ -52,9 +52,9 @@ namespace GtkSharp.Generation {
this.elem = elem; this.elem = elem;
if (elem["parameters"] != null) { if (elem["parameters"] != null) {
parms = new Parameters (elem["parameters"], container_type.NS); parms = new Parameters (elem["parameters"], container_type.NS);
} }
this.container_type = container_type; this.container_type = container_type;
if (!container_type.IsDeprecated && elem.HasAttribute ("deprecated")) if (!container_type.IsDeprecated && elem.HasAttribute ("deprecated"))
deprecated = elem.GetAttribute ("deprecated") == "1"; deprecated = elem.GetAttribute ("deprecated") == "1";
this.name = elem.GetAttribute("name"); this.name = elem.GetAttribute("name");
if (name == "GetType") if (name == "GetType")
@ -68,12 +68,12 @@ namespace GtkSharp.Generation {
if (elem.HasAttribute ("needs_ref")) if (elem.HasAttribute ("needs_ref"))
this.needs_ref = (elem.GetAttribute ("needs_ref") == "1"); this.needs_ref = (elem.GetAttribute ("needs_ref") == "1");
} }
public bool IsDeprecated { public bool IsDeprecated {
get { get {
return deprecated; return deprecated;
} }
} }
public bool IsGetter { public bool IsGetter {
get { get {
@ -89,7 +89,7 @@ namespace GtkSharp.Generation {
private bool IsShared { private bool IsShared {
get { get {
return elem.HasAttribute("shared") && return elem.HasAttribute("shared") &&
(elem.GetAttribute("shared") == "true"); (elem.GetAttribute("shared") == "true");
} }
} }
@ -219,8 +219,8 @@ namespace GtkSharp.Generation {
} }
private void GenerateDeclCommon (StreamWriter sw, ClassBase implementor) private void GenerateDeclCommon (StreamWriter sw, ClassBase implementor)
{ {
if (elem.HasAttribute("shared") && if (elem.HasAttribute("shared") &&
(elem.GetAttribute("shared") == "true")) (elem.GetAttribute("shared") == "true"))
sw.Write("static "); sw.Write("static ");
sw.Write(safety); sw.Write(safety);
@ -259,7 +259,7 @@ namespace GtkSharp.Generation {
if (!Initialize ()) if (!Initialize ())
return; return;
if (elem.HasAttribute("shared") && if (elem.HasAttribute("shared") &&
(elem.GetAttribute("shared") == "true")) (elem.GetAttribute("shared") == "true"))
return; return;
@ -312,7 +312,7 @@ namespace GtkSharp.Generation {
if (!Initialize ()) if (!Initialize ())
return; return;
if (implementor != null && elem.HasAttribute("shared") && if (implementor != null && elem.HasAttribute("shared") &&
(elem.GetAttribute ("shared") == "true")) (elem.GetAttribute ("shared") == "true"))
return; return;
@ -338,8 +338,8 @@ namespace GtkSharp.Generation {
GenerateImport (gen_info.Writer); GenerateImport (gen_info.Writer);
if (comp != null && s_ret == comp.parms.AccessorReturnType) if (comp != null && s_ret == comp.parms.AccessorReturnType)
comp.GenerateImport (gen_info.Writer); comp.GenerateImport (gen_info.Writer);
if (IsDeprecated) if (IsDeprecated)
gen_info.Writer.WriteLine("\t\t[Obsolete]"); gen_info.Writer.WriteLine("\t\t[Obsolete]");
gen_info.Writer.Write("\t\t"); gen_info.Writer.Write("\t\t");
if (protection != "") if (protection != "")

View file

@ -127,8 +127,8 @@ namespace GtkSharp.Generation {
SymbolTable table = SymbolTable.Table; SymbolTable table = SymbolTable.Table;
sw.WriteLine ("#region Autogenerated code"); sw.WriteLine ("#region Autogenerated code");
if (IsDeprecated) if (IsDeprecated)
sw.WriteLine ("\t[Obsolete]"); sw.WriteLine ("\t[Obsolete]");
sw.Write ("\tpublic {0} class " + Name, IsAbstract ? "abstract" : ""); sw.Write ("\tpublic {0} class " + Name, IsAbstract ? "abstract" : "");
string cs_parent = table.GetCSType(Elem.GetAttribute("parent")); string cs_parent = table.GetCSType(Elem.GetAttribute("parent"));

View file

@ -30,7 +30,7 @@ namespace GtkSharp.Generation {
public class Parser { public class Parser {
private XmlDocument Load (string filename) private XmlDocument Load (string filename)
{ {
Console.WriteLine (filename); Console.WriteLine (filename);
XmlDocument doc = new XmlDocument (); XmlDocument doc = new XmlDocument ();