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 jsstub.cs,NONE,1.1 JScript.b


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/JScript jsstub.cs,NONE,1.1 JScript.build,1.2,1.3 jsrun.cs,1.2,1.3
Date: Tue, 15 Apr 2003 03:27:56 -0400

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

Modified Files:
        JScript.build jsrun.cs 
Added Files:
        jsstub.cs 
Log Message:


Mark up members of the "ExtendedNumerics" subset of ECMA with
CONFIG_EXTENDED_NUMERICS.


--- NEW FILE ---
/*
 * jsstub.cs - Dummy stub for platforms that don't support JScript.
 *
 * Copyright (C) 2003 Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
// This file is just a place-holder to make sure that cscc is never
// passed an empty list of source files from csant.

Index: JScript.build
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/JScript/JScript.build,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** JScript.build       13 Feb 2003 23:38:41 -0000      1.2
--- JScript.build       15 Apr 2003 07:27:53 -0000      1.3
***************
*** 12,17 ****
  
                        <sources>
!                               <includes name="**/*.cs"/>
!                               <excludes name="jsrun.cs"/>
                        </sources>
  
--- 12,23 ----
  
                        <sources>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="Builtins/*.cs"/>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="CodeDom/*.cs"/>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="Execute/*.cs"/>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="Jsc/*.cs"/>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="Nodes/*.cs"/>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="Parser/*.cs"/>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="Vsa/*.cs"/>
!                               <file name="jsstub.cs"/>
                        </sources>
  
***************
*** 43,48 ****
  
                        <sources>
!                               <includes name="**/*.cs"/>
!                               <excludes name="jsrun.cs"/>
                        </sources>
  
--- 49,60 ----
  
                        <sources>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="Builtins/*.cs"/>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="CodeDom/*.cs"/>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="Execute/*.cs"/>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="Jsc/*.cs"/>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="Nodes/*.cs"/>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="Parser/*.cs"/>
!                               <includes if="${CONFIG_EXTENDED_NUMERICS}" 
name="Vsa/*.cs"/>
!                               <file name="jsstub.cs"/>
                        </sources>
  

Index: jsrun.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/JScript/jsrun.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** jsrun.cs    14 Jan 2003 12:37:35 -0000      1.2
--- jsrun.cs    15 Apr 2003 07:27:53 -0000      1.3
***************
*** 31,34 ****
--- 31,35 ----
        public static int Main(String[] args)
                        {
+ #if CONFIG_EXTENDED_NUMERICS && CONFIG_REFLECTION
                                StreamReader reader;
                                StringBuilder builder;
***************
*** 85,88 ****
--- 86,96 ----
                                engine.Close();
                                return 0;
+ #else
+                               Console.WriteLine
+                                       ("JScript is not available in this 
configuration " +
+                                        "because the library does\n" +
+                                        "not have sufficient features to 
support JScript.");
+                               return 0;
+ #endif
                        }
  





reply via email to

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