2005-05-08 Alp Toker <alp@atoker.com>
authorAlp Toker <alp@mono-cvs.ximian.com>
Sun, 8 May 2005 16:59:38 +0000 (16:59 -0000)
committerAlp Toker <alp@mono-cvs.ximian.com>
Sun, 8 May 2005 16:59:38 +0000 (16:59 -0000)
  * cilc.cs: Add null check to NsToC and fix warnings.

svn path=/trunk/mcs/; revision=44218

mcs/tools/cilc/ChangeLog
mcs/tools/cilc/cilc.cs

index 9689a6ed882e6e94166575d85559c5230130f946..ba6d45398d5407b5639ac9c7e3e78af877da093b 100644 (file)
@@ -1,3 +1,7 @@
+2005-05-08  Alp Toker  <alp@atoker.com>
+
+       * cilc.cs: Add null check to NsToC and fix warnings.
+
 2005-01-20  Alp Toker  <alp@atoker.com>
 
   * cilc.cs: Name the glib handle getter helper method by namespace for now to
index 52388799b4c958aa42ee128b3f0c526728a6650f..b2485d9ba52e5606703c9b4731263a0ba19ec28f 100644 (file)
@@ -97,7 +97,10 @@ public class cilc
 
                string line;
                while ((line = p.StandardOutput.ReadLine ()) != null)
-                       Console.Write (".");
+                       if (verbose)
+                               Console.WriteLine (line);
+                       else
+                               Console.Write (".");
 
                Console.WriteLine ();
 
@@ -108,7 +111,8 @@ public class cilc
                return p.ExitCode;
        }
 
-       static string cflags;
+       static bool verbose = false;
+
        static string extpkgs = "";
        static string[] extsubpkgs = {};
        static string[] extincludes = {};
@@ -156,8 +160,6 @@ public class cilc
                        if (m.Success) {
                                string G = m.Groups[2].Value;
 
-                               bool dontgen = false;
-
                                if (!GIsValid (G))
                                        continue;
 
@@ -818,10 +820,12 @@ public class cilc
                NewG (CsTypeToFlat (t));
        }
 
+       /*
        static string NewG (Type t)
        {
                return NewG (CsTypeToFlat (t));
        }
+       */
 
        static string CsTypeToG (Type t)
        {
@@ -1005,7 +1009,6 @@ public class cilc
                funcs_done.Add (myname);
 
                //handle the parameters
-               string param_assign = "";
                string mycsargs = "";
 
                for (int i = 0 ; i < parameters.Length ; i++) {
@@ -1141,6 +1144,9 @@ public class cilc
 
        static string NsToC (string s)
        {
+               if (s == null)
+                       return "";
+
                s = s.Replace ('.', '_');
                return CamelToC (s);
        }