Tue Nov 14 16:06:37 CET 2006 Paolo Molaro <lupus@ximian.com>
[mono.git] / mcs / mcs / location.cs
index f48e2816eb9f3597b32dfc4e5d1901c6714bbcb8..2861d7a5bcba5580f539c2963cf0c9f303b1dc36 100644 (file)
@@ -119,9 +119,9 @@ namespace Mono.CSharp {
                                int id = (int) source_files [path];
                                string other_name = ((SourceFile) source_list [id - 1]).Name;
                                if (name.Equals (other_name))
-                                       Report.Warning (2002, "Source file `{0}' specified multiple times", name);
+                                       Report.Warning (2002, 1, "Source file `{0}' specified multiple times", other_name);
                                else
-                                       Report.Warning (2002, "Source filenames `{0}' and `{1}' both refer to the same file: {2}", name, other_name, path);
+                                       Report.Warning (2002, 1, "Source filenames `{0}' and `{1}' both refer to the same file: {2}", name, other_name, path);
                                return;
                        }
 
@@ -162,7 +162,7 @@ namespace Mono.CSharp {
                // </remarks>
                static public SourceFile LookupFile (string name)
                {
-                       string path = name == "" ? "" : Path.GetFullPath (name);
+                       string path = name.Length == 0 ? "" : Path.GetFullPath (name);
 
                        if (!source_files.Contains (path)) {
                                if (source_count >= (1 << checkpoint_bits))
@@ -178,7 +178,7 @@ namespace Mono.CSharp {
                        return (SourceFile) source_list [index - 1];
                }
 
-               static public void Push (SourceFile file, int line)
+               static public void Push (SourceFile file)
                {
                        current_source = file.Index;
                        // File is always pushed before being changed.