Author: marek
Date: 2005-04-22 12:09:16 -0400 (Fri, 22 Apr 2005)
New Revision: 43450
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/driver.cs
Log:
2005-04-22 Marek Safar <[EMAIL PROTECTED]>
* driver.cs (CompilerCallableEntryPoint.Invoke): Reset under any
circumstances.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2005-04-22 16:08:45 UTC (rev 43449)
+++ trunk/mcs/mcs/ChangeLog 2005-04-22 16:09:16 UTC (rev 43450)
@@ -1,3 +1,8 @@
+2005-04-22 Marek Safar <[EMAIL PROTECTED]>
+
+ * driver.cs (CompilerCallableEntryPoint.Invoke): Reset under any
+ circumstances.
+
2005-04-20 John Luke <[EMAIL PROTECTED]>
* driver.cs: fix typo in error message, --outout to --output
Modified: trunk/mcs/mcs/driver.cs
===================================================================
--- trunk/mcs/mcs/driver.cs 2005-04-22 16:08:45 UTC (rev 43449)
+++ trunk/mcs/mcs/driver.cs 2005-04-22 16:09:16 UTC (rev 43450)
@@ -115,6 +115,7 @@
output_file = null;
encoding = null;
using_default_encoder = true;
+ first_source = null;
}
public static void ShowTime (string msg)
@@ -1793,11 +1794,13 @@
public static bool InvokeCompiler (string [] args, TextWriter
error)
{
Report.Stderr = error;
- bool ret = Driver.MainDriver (args) && Report.Errors ==
0;
- Report.Stderr = Console.Error;
-
- Reset ();
- return ret;
+ try {
+ return Driver.MainDriver (args) &&
Report.Errors == 0;
+ }
+ finally {
+ Report.Stderr = Console.Error;
+ Reset ();
+ }
}
static void Reset ()
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches