Author: alp
Date: 2005-05-08 12:59:38 -0400 (Sun, 08 May 2005)
New Revision: 44218

Modified:
   trunk/mcs/tools/cilc/ChangeLog
   trunk/mcs/tools/cilc/cilc.cs
Log:
2005-05-08  Alp Toker  <[EMAIL PROTECTED]>

  * cilc.cs: Add null check to NsToC and fix warnings.


Modified: trunk/mcs/tools/cilc/ChangeLog
===================================================================
--- trunk/mcs/tools/cilc/ChangeLog      2005-05-08 14:52:25 UTC (rev 44217)
+++ trunk/mcs/tools/cilc/ChangeLog      2005-05-08 16:59:38 UTC (rev 44218)
@@ -1,3 +1,7 @@
+2005-05-08  Alp Toker  <[EMAIL PROTECTED]>
+
+       * cilc.cs: Add null check to NsToC and fix warnings.
+
 2005-01-20  Alp Toker  <[EMAIL PROTECTED]>
 
   * cilc.cs: Name the glib handle getter helper method by namespace for now to

Modified: trunk/mcs/tools/cilc/cilc.cs
===================================================================
--- trunk/mcs/tools/cilc/cilc.cs        2005-05-08 14:52:25 UTC (rev 44217)
+++ trunk/mcs/tools/cilc/cilc.cs        2005-05-08 16:59:38 UTC (rev 44218)
@@ -97,7 +97,10 @@
 
                string line;
                while ((line = p.StandardOutput.ReadLine ()) != null)
-                       Console.Write (".");
+                       if (verbose)
+                               Console.WriteLine (line);
+                       else
+                               Console.Write (".");
 
                Console.WriteLine ();
 
@@ -108,7 +111,8 @@
                return p.ExitCode;
        }
 
-       static string cflags;
+       static bool verbose = false;
+
        static string extpkgs = "";
        static string[] extsubpkgs = {};
        static string[] extincludes = {};
@@ -156,8 +160,6 @@
                        if (m.Success) {
                                string G = m.Groups[2].Value;
 
-                               bool dontgen = false;
-
                                if (!GIsValid (G))
                                        continue;
 
@@ -818,10 +820,12 @@
                NewG (CsTypeToFlat (t));
        }
 
+       /*
        static string NewG (Type t)
        {
                return NewG (CsTypeToFlat (t));
        }
+       */
 
        static string CsTypeToG (Type t)
        {
@@ -1005,7 +1009,6 @@
                funcs_done.Add (myname);
 
                //handle the parameters
-               string param_assign = "";
                string mycsargs = "";
 
                for (int i = 0 ; i < parameters.Length ; i++) {
@@ -1141,6 +1144,9 @@
 
        static string NsToC (string s)
        {
+               if (s == null)
+                       return "";
+
                s = s.Replace ('.', '_');
                return CamelToC (s);
        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to