[Top][All Lists]
[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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/JScript jsrun.cs,1.3,1.4,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/I18N/Common RegionData.cs,NONE,1.1 RegionName.cs,NONE,1.1 RegionNameTable.cs,NONE,1.1Manager.cs,1.9,1.10
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/profiles compact,1.9,1.10 compact-fp,1.7,1.8 ecma,1.9,1.10 full,1.10,1.11 kernel,1.9,1.10 kernel-fp,1.7,1.8 mscompact,1.2,1.3 tiny,1.8,1.9 tiny-fp,1.7,1.8
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/I18N/Common RegionData.cs,NONE,1.1 RegionName.cs,NONE,1.1 RegionNameTable.cs,NONE,1.1Manager.cs,1.9,1.10
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/profiles compact,1.9,1.10 compact-fp,1.7,1.8 ecma,1.9,1.10 full,1.10,1.11 kernel,1.9,1.10 kernel-fp,1.7,1.8 mscompact,1.2,1.3 tiny,1.8,1.9 tiny-fp,1.7,1.8
- Index(es):