dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/JScript jsrun.cs,1.3,1.4


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/JScript jsrun.cs,1.3,1.4
Date: Fri, 30 May 2003 23:32:04 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/JScript
In directory subversions:/tmp/cvs-serv32646/JScript

Modified Files:
        jsrun.cs 
Log Message:


Add the CONFIG_SMALL_CONSOLE profile option, which strips
System.Console down to a smaller size.


Index: jsrun.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/JScript/jsrun.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** jsrun.cs    15 Apr 2003 07:27:53 -0000      1.3
--- jsrun.cs    31 May 2003 03:32:02 -0000      1.4
***************
*** 43,47 ****
--- 43,51 ----
                                if(args.Length == 0)
                                {
+                               #if CONFIG_SMALL_CONSOLE
+                                       Console.WriteLine("Usage: jsrun script 
[args]");
+                               #else
                                        Console.Error.WriteLine("Usage: jsrun 
script [args]");
+                               #endif
                                        return 1;
                                }
***************
*** 54,59 ****
                                catch(FileNotFoundException)
                                {
                                        Console.Error.WriteLine
!                                               ("jsrun: {0}: No such file or 
directory");
                                        return 1;
                                }
--- 58,68 ----
                                catch(FileNotFoundException)
                                {
+                               #if CONFIG_SMALL_CONSOLE
+                                       Console.WriteLine
+                                               ("jsrun: {0}: No such file or 
directory", args[0]);
+                               #else
                                        Console.Error.WriteLine
!                                               ("jsrun: {0}: No such file or 
directory", args[0]);
!                               #endif
                                        return 1;
                                }
***************
*** 78,82 ****
--- 87,95 ----
                                if(!engine.Compile())
                                {
+                               #if CONFIG_SMALL_CONSOLE
+                                       Console.WriteLine("jsrun: Could not 
compile script");
+                               #else
                                        Console.Error.WriteLine("jsrun: Could 
not compile script");
+                               #endif
                                        return 1;
                                }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]