mono.git
22 years agoAdd new test
Miguel de Icaza [Fri, 12 Apr 2002 13:58:39 +0000 (13:58 -0000)]
Add new test

svn path=/trunk/mcs/; revision=3773

22 years agoFri Apr 12 18:32:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 12 Apr 2002 12:43:39 +0000 (12:43 -0000)]
Fri Apr 12 18:32:34 CEST 2002 Paolo Molaro <lupus@ximian.com>

* MonoMethod.cs: make Name property an icall.

svn path=/trunk/mcs/; revision=3772

22 years agoFri Apr 12 18:30:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 12 Apr 2002 12:43:39 +0000 (12:43 -0000)]
Fri Apr 12 18:30:29 CEST 2002 Paolo Molaro <lupus@ximian.com>

* object.h: add mono_object_domain() macro.
* reflection.c: handle typespecs.
* icall.c: MonoMethod::get_Name() implementation.

svn path=/trunk/mono/; revision=3771

22 years agoGet rid of debug print.
Paolo Molaro [Fri, 12 Apr 2002 12:39:04 +0000 (12:39 -0000)]
Get rid of debug print.

svn path=/trunk/mcs/; revision=3770

22 years ago2002-04-12 Rodrigo Moya <rodrigo@ximian.com>
Rodrigo Moya [Fri, 12 Apr 2002 11:07:36 +0000 (11:07 -0000)]
2002-04-12  Rodrigo Moya <rodrigo@ximian.com>

* status/maintainers.xml: added danmorg and myself for System.Data.*
classes.

* status/class.xml: added System.Data.* classes.

svn path=/trunk/mono/; revision=3769

22 years agoadded NotifyCollectionHandler class and INotifyCollection
John Sohn [Fri, 12 Apr 2002 01:13:22 +0000 (01:13 -0000)]
added NotifyCollectionHandler class and INotifyCollection
interface to reduce duplicated code

svn path=/trunk/mcs/; revision=3768

22 years ago2002-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 12 Apr 2002 00:20:41 +0000 (00:20 -0000)]
2002-04-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Enum.cs: little improvements to Format ().

svn path=/trunk/mcs/; revision=3767

22 years ago2002-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 12 Apr 2002 00:16:02 +0000 (00:16 -0000)]
2002-04-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* expression.cs: added static array of strings to avoid calling
Enum.ToString () for Operator in Binary. Significant recover of
performance.

svn path=/trunk/mcs/; revision=3766

22 years ago2002-04-12 Patrik Torstensson <patrik.torstensson@labs2.com>
Patrik Torstensson [Thu, 11 Apr 2002 19:03:18 +0000 (19:03 -0000)]
2002-04-12  Patrik Torstensson <patrik.torstensson@labs2.com>

* HttpApplication.cs: Minor updates
* HttpApplicationState.cs: Ready.
* HttpClientCertificate.cs: Signature updates
* HttpValueCollection.cs: ready
* HttpStaticObjectsCollection.cs: ready
* HttpResponseHeader.cs: made internal only
* HttpResponse.cs: Signature updates
* HttpPostedFile.cs: ready
* HttpCacheVaryByHeaders.cs: ready (except communication to policy)
* HttpCacheVaryByParams.cs: ready (except communication to policy)

System.Web is now over 60% ready..

svn path=/trunk/mcs/; revision=3765

22 years agoAdd
Ravi Pratap M [Thu, 11 Apr 2002 17:51:39 +0000 (17:51 -0000)]
Add

svn path=/trunk/mcs/; revision=3764

22 years ago2002-04-11 Patrik Torstensson
Patrik Torstensson [Thu, 11 Apr 2002 14:01:36 +0000 (14:01 -0000)]
2002-04-11 Patrik Torstensson

* Forgot to add new files (again...)

svn path=/trunk/mcs/; revision=3763

22 years ago2002-04-11 Patrik Torstensson <patrik.torstensson@labs2.com>
Patrik Torstensson [Thu, 11 Apr 2002 13:59:28 +0000 (13:59 -0000)]
2002-04-11  Patrik Torstensson <patrik.torstensson@labs2.com>

* HttpException.cs: 95% ready, only windows dependent code left
* HttpFileCollection.cs: Finished.
* HttpRequest.cs: Minor fixes and fixed signature problems
* HttpResponse.cs: Implementation of missing methods and signature problems
* HttpResponseHeader.cs: Fixed signature problems
* HttpRuntime.cs: Fixed signature problems
* HttpServerUtility.cs: Added support for HttpApplication
* HttpSessionState.cs: Fixed signature issues
* HttpUtility.cs: fixed signature issues
* HttpValueCollection.cs: Support for cookie parsing and fixed signature issues
* HttpWorkerRequest.cs: Fixed small signature issue
* HttpWriter.cs: Fixed signature issue
* HttpApplication.cs: Basic implementation
* HttpApplicationState.cs: Small fixes to support major change comming up
* HttpBrowserCapabilities.cs: Added Type method
* HttpClientCertificate.cs: Almost ready, needs to parse certificate.
* HttpContext.cs: Fixed signature issues and added last methods.
* HttpCookie.cs: Full implementation
* HttpCookieCollection.cs: Full implementation
* TraceContext.cs: Methods implemented.
* HttpPostedFile.cs: Placeholder
* HttpStaticObjectsCollection.cs: Placeholder
* HttpModuleCollection.cs: Ready, will be used during the major revamp.

* Fixed a number of other small signature problems also (class status page)

svn path=/trunk/mcs/; revision=3762

22 years agoAdd new links
Miguel de Icaza [Thu, 11 Apr 2002 08:03:48 +0000 (08:03 -0000)]
Add new links

svn path=/trunk/mono/; revision=3761

22 years agoadded support for comparing values of static-literal fields
Piers Haken [Thu, 11 Apr 2002 07:04:05 +0000 (07:04 -0000)]
added support for comparing values of static-literal fields

svn path=/trunk/mcs/; revision=3760

22 years agoThu Apr 11 12:29:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 11 Apr 2002 06:40:17 +0000 (06:40 -0000)]
Thu Apr 11 12:29:14 CEST 2002 Paolo Molaro <lupus@ximian.com>

* icall.c: String::GetHashCode() icall implementation.

svn path=/trunk/mono/; revision=3759

22 years agoThu Apr 11 12:28:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 11 Apr 2002 06:40:15 +0000 (06:40 -0000)]
Thu Apr 11 12:28:13 CEST 2002 Paolo Molaro <lupus@ximian.com>

* String.cs: internalcall GetHashCode().
* Array.cS: optimize access to elements.

svn path=/trunk/mcs/; revision=3758

22 years ago2002-04-10 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Thu, 11 Apr 2002 05:26:38 +0000 (05:26 -0000)]
2002-04-10  Miguel de Icaza  <miguel@ximian.com>

* class.cs (FindMembers): Allow the Builders of the various
members to be null.  If they are skip them.  This only happens
during the PInvoke declaration.

svn path=/trunk/mcs/; revision=3757

22 years agoThis is a useless class, and is better represented with a
John Barnette [Thu, 11 Apr 2002 01:55:26 +0000 (01:55 -0000)]
This is a useless class, and is better represented with a
Hashtable.  In a related news item, I'm an idiot.

svn path=/trunk/mcs/; revision=3756

22 years ago2002-04-10 Duncan Mak <duncan@ximian.com>
Duncan Mak [Wed, 10 Apr 2002 23:29:51 +0000 (23:29 -0000)]
2002-04-10  Duncan Mak  <duncan@ximian.com>

* XmlNodeReader.cs: Initial stubs for the class.

svn path=/trunk/mcs/; revision=3755

22 years ago2002-04-10 Duncan Mak <duncan@ximian.com>
Duncan Mak [Wed, 10 Apr 2002 23:28:18 +0000 (23:28 -0000)]
2002-04-10  Duncan Mak  <duncan@ximian.com>

* CaptionButton.cs:
* CharacterCasing.cs:
* CheckState.cs:
* DataGridParentRowsLabelStyle.cs:
* DialogResult.cs:
* DockStyle.cs:
* DragAction.cs:
* DragDropEffects.cs:
* DrawItemState.cs:
* DrawMode.cs:
* ErrorBlinkStyle.cs:
* ErrorIconAlignment.cs:
* FlatStyle.cs:
* FormBorderStyle.cs:
* FormStartPosition.cs:
* FormWindowState.cs:
* FrameStyle.cs: Fixed enum layouts with EnumCheck.

svn path=/trunk/mcs/; revision=3754

22 years ago* Initial checkin for all delegates *
Dennis Hayes [Wed, 10 Apr 2002 22:19:55 +0000 (22:19 -0000)]
* Initial checkin for all delegates *

svn path=/trunk/mcs/; revision=3753

22 years ago* Initial checkin for a number of enums *
Dennis Hayes [Wed, 10 Apr 2002 21:43:31 +0000 (21:43 -0000)]
* Initial checkin for a number of enums *

svn path=/trunk/mcs/; revision=3752

22 years agoCall notification event if changes occur during begin/end update
John Sohn [Wed, 10 Apr 2002 20:49:04 +0000 (20:49 -0000)]
Call notification event if changes occur during begin/end update

svn path=/trunk/mcs/; revision=3751

22 years ago * TraceListenerCollection.cs: Corrected indexer property to provide the
Jonathan Pryor [Wed, 10 Apr 2002 20:43:52 +0000 (20:43 -0000)]
  * TraceListenerCollection.cs: Corrected indexer property to provide the
    correct return value and implement the IList indexer property correctly.

svn path=/trunk/mcs/; revision=3750

22 years ago2002-04-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 10 Apr 2002 20:12:48 +0000 (20:12 -0000)]
2002-04-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* monoburg.c: added a default handler for warning messages that just
output the messages to stderr instead of stdout.

svn path=/trunk/mono/; revision=3749

22 years agoimplementation of ArrayList and Hashtable class which enables notification
John Sohn [Wed, 10 Apr 2002 16:15:48 +0000 (16:15 -0000)]
implementation of ArrayList and Hashtable class which enables notification
when the contents are changed by an event

svn path=/trunk/mcs/; revision=3748

22 years agoDo not include signal/syscall header for Win32 build.
Sergey Chaban [Wed, 10 Apr 2002 16:00:17 +0000 (16:00 -0000)]
Do not include signal/syscall header for Win32 build.

svn path=/trunk/mono/; revision=3747

22 years ago Makefile.am: don't exclude JIT from Win32 builds;
Sergey Chaban [Wed, 10 Apr 2002 15:32:08 +0000 (15:32 -0000)]
 Makefile.am: don't exclude JIT from Win32 builds;

svn path=/trunk/mono/; revision=3746

22 years agoWed Apr 10 21:16:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 10 Apr 2002 15:31:11 +0000 (15:31 -0000)]
Wed Apr 10 21:16:56 CEST 2002 Paolo Molaro <lupus@ximian.com>

* icall.c: String::IndexOfAny icall.
* object.c, object.h: make array->max_length more useful.
Intrduced mono_object_class() and mono_string_length() macros.

svn path=/trunk/mono/; revision=3745

22 years agoWed Apr 10 21:20:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 10 Apr 2002 15:31:05 +0000 (15:31 -0000)]
Wed Apr 10 21:20:19 CEST 2002 Paolo Molaro <lupus@ximian.com>

* String.cs: make IndexOfAny() use an internalcall.

svn path=/trunk/mcs/; revision=3744

22 years agoChanges to support Win32 SEH, see ChangeLog for details.
Sergey Chaban [Wed, 10 Apr 2002 15:30:00 +0000 (15:30 -0000)]
Changes to support Win32 SEH, see ChangeLog for details.

svn path=/trunk/mono/; revision=3743

22 years ago2002-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 10 Apr 2002 13:13:45 +0000 (13:13 -0000)]
2002-04-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Int32.cs:
* UInt32.cs:
* Int64.cs:
* UInt64.cs: fixed error when testing for validity of flags.

svn path=/trunk/mcs/; revision=3742

22 years ago2002-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 10 Apr 2002 13:00:08 +0000 (13:00 -0000)]
2002-04-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* unicode.c (ves_icall_System_Char_IsNumber): use g_unichar_isxdigit
instead of g_unichar_isdigit.

svn path=/trunk/mono/; revision=3741

22 years agoForgot to commit.
Paolo Molaro [Wed, 10 Apr 2002 12:34:16 +0000 (12:34 -0000)]
Forgot to commit.

svn path=/trunk/mono/; revision=3740

22 years ago2002-04-11 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 10 Apr 2002 11:29:57 +0000 (11:29 -0000)]
2002-04-11  Nick Drochak  <ndrochak@gol.com>

* Double.cs: Use an internal call for ToString(). This is just a simple
implementation to get away from throwing a NotImplementedException.

svn path=/trunk/mcs/; revision=3739

22 years ago2002-04-11 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 10 Apr 2002 11:27:22 +0000 (11:27 -0000)]
2002-04-11  Nick Drochak  <ndrochak@gol.com>

* icall.c: Implement a simple Double.ToString().

svn path=/trunk/mono/; revision=3738

22 years ago2002-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 10 Apr 2002 11:11:31 +0000 (11:11 -0000)]
2002-04-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Int32.cs:
* UInt32.cs:
* Int64.cs:
* UInt64.cs: changed Type.GetType () by typeof (), as suggested by
lupus.

* Int32.cs:
* Int64.cs: throw an OverFlowException when parsing a string
containing a dot followed by any non '0' number.

svn path=/trunk/mcs/; revision=3737

22 years ago2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>
Patrik Torstensson [Wed, 10 Apr 2002 10:57:51 +0000 (10:57 -0000)]
2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>

* Added System.Web.Hosting in the build

svn path=/trunk/mcs/; revision=3736

22 years agoWed Apr 10 16:07:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 10 Apr 2002 10:19:00 +0000 (10:19 -0000)]
Wed Apr 10 16:07:23 CEST 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: quick implementation for opcodes needed by the new parse
routines in corlib.

svn path=/trunk/mono/; revision=3735

22 years ago2002-04-10 Patrik Torstensson
Patrik Torstensson [Wed, 10 Apr 2002 09:11:49 +0000 (09:11 -0000)]
2002-04-10 Patrik Torstensson

* Updated to reflect the new runtime

svn path=/trunk/mcs/; revision=3734

22 years ago2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>
Patrik Torstensson [Wed, 10 Apr 2002 08:42:30 +0000 (08:42 -0000)]
2002-04-10  Patrik Torstensson <patrik.torstensson@labs2.com>

        * ApplicationHost.cs: Test implementation to support testing.
        * SimpleWorkerRequest.cs: Rewrite and a almost full implementation.

svn path=/trunk/mcs/; revision=3733

22 years ago2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>
Patrik Torstensson [Wed, 10 Apr 2002 08:41:20 +0000 (08:41 -0000)]
2002-04-10  Patrik Torstensson <patrik.torstensson@labs2.com>

    * HttpWorkerRequest.EndOfSendNotification.cs Removed (included in WorkerRequest)
    * Checkin of all new files (noted in last changenote)

svn path=/trunk/mcs/; revision=3732

22 years ago2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>
Patrik Torstensson [Wed, 10 Apr 2002 08:35:39 +0000 (08:35 -0000)]
2002-04-10  Patrik Torstensson <patrik.torstensson@labs2.com>

    * HttpContext.cs: First implementation (basic support, few methods left to impl)
    * HttpException.cs: Partial implementation (basic support)
    * HttpHelper.cs: Header parse helper, used by runtime (non public)
    * HttpRequest.cs: Implementation (all methods there, not all fully impl)
    * HttpRequestStream.cs: Full implementation
    * HttpResponse.cs: Partial implementation(almost all methods)
    * HttpResponseHeader.cs: Header helper
    * HttpResponseStream.cs: Full implementation - Response stream support
    * HttpResponseStreamProxy.cs: Implementation - filter support
    * HttpRuntime.cs: Rewrite to support one IHttpModule (use for testing the runtime)
* HttpServerUtility.cs: Implemented usage of HttpContext for methods
                        and moved encoding functions to HttpUtility.

    * HttpUtility.cs: Added encoding/decoding functions from HttpServerUtility and
                      added the Attribute encoding functions.

    * HttpValueCollection.cs: Implementation.
    * HttpWorkerRequest.cs: Rewrite and implementation of all methods (ready)
    * HttpWriter.cs: Implementation (with filter support)

    * HttpFileCollection: Added dummy class (placeholder)
    * HttpApplication.cs: Added dummy class (placeholder)
    * HttpApplicationState.cs: Added dummy class (placeholder)
    * HttpBrowserCapabilities.cs: Added dummy class (placeholder)
    * HtttpCachePolicy.cs: Added dummy class (placeholder)
    * HttpClientCertificate.cs: Added dummy class (placeholder)
    * HttpSessionState.cs: Added dummy class (placeholder)
    * TraceContext.cs: Added dummy class (placeholder)

svn path=/trunk/mcs/; revision=3731

22 years ago2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>
Patrik Torstensson [Wed, 10 Apr 2002 08:34:39 +0000 (08:34 -0000)]
2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>

* Changed build file to reflect the runtime changes
\1a

svn path=/trunk/mcs/; revision=3730

22 years ago2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>
Patrik Torstensson [Wed, 10 Apr 2002 08:33:36 +0000 (08:33 -0000)]
2002-04-10  Patrik Torstensson <patrik.torstensson@labs2.com>

* System.Web -- Assembly build.

  The basic runtime support is now working, we can now start working
  on the runtime flow system (thread pool etc) and also start testing
  the parser and control framework. (224 files are compiled)

svn path=/trunk/mcs/; revision=3729

22 years ago2002-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 10 Apr 2002 07:42:36 +0000 (07:42 -0000)]
2002-04-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Byte.cs:
* UInt16.cs:
* UInt32.cs:
* UInt64.cs: added complex Parse ().

svn path=/trunk/mcs/; revision=3728

22 years agoWed Apr 10 12:57:31 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 10 Apr 2002 07:08:22 +0000 (07:08 -0000)]
Wed Apr 10 12:57:31 CEST 2002 Paolo Molaro <lupus@ximian.com>

* ILGenerator,cs: use a stack to keep track of exception blocks.

svn path=/trunk/mcs/; revision=3727

22 years ago2002-04-10 Patrik Torstensson
Patrik Torstensson [Wed, 10 Apr 2002 03:49:06 +0000 (03:49 -0000)]
2002-04-10 Patrik Torstensson

* Added myself as Author

svn path=/trunk/mcs/; revision=3726

22 years ago* Initial checkin for all interfaces *
Dennis Hayes [Tue, 9 Apr 2002 23:13:49 +0000 (23:13 -0000)]
* Initial checkin for all interfaces *

svn path=/trunk/mcs/; revision=3725

22 years ago2002/04/10 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 9 Apr 2002 22:17:48 +0000 (22:17 -0000)]
2002/04/10  Nick Drochak <ndrochak@gol.com>

* HttpServerUtility.cs: Fix build breaker.

svn path=/trunk/mcs/; revision=3724

22 years ago2002-04-09 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 9 Apr 2002 15:46:13 +0000 (15:46 -0000)]
2002-04-09  Miguel de Icaza  <miguel@ximian.com>

* parameter.cs (Parameters.ComputeParameterTypes): Flag the
failure, so we do not keep going afterwards.

svn path=/trunk/mcs/; revision=3720

22 years agoTue Apr 9 21:31:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 9 Apr 2002 15:42:40 +0000 (15:42 -0000)]
Tue Apr 9 21:31:16 CEST 2002 Paolo Molaro <lupus@ximian.com>

* appdomain.h: only io-layer.h is supposed to be included.
* icall.c: explicitly import environ. Fix warning.

svn path=/trunk/mono/; revision=3719

22 years agoAdded paragraphs on plagarism requested by Miguel.
John Barnette [Tue, 9 Apr 2002 13:52:16 +0000 (13:52 -0000)]
Added paragraphs on plagarism requested by Miguel.

svn path=/trunk/mono/; revision=3718

22 years agoAdded constructor that takes a HttpContext
Patrik Torstensson [Tue, 9 Apr 2002 13:23:04 +0000 (13:23 -0000)]
Added constructor that takes a HttpContext

svn path=/trunk/mcs/; revision=3717

22 years agoRemove conflict
Miguel de Icaza [Tue, 9 Apr 2002 12:10:36 +0000 (12:10 -0000)]
Remove conflict

svn path=/trunk/mcs/; revision=3716

22 years ago2002-04-09 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 9 Apr 2002 12:08:43 +0000 (12:08 -0000)]
2002-04-09  Miguel de Icaza  <miguel@ximian.com>

* expression.cs: (Invocation.OverloadResolve): I believe Ravi
wanted to pass `false' as the `is_delegate' argument.  If this is
the case, why not use delegate_type == null to mean `is_delegate =
false' and anything else as is_delegate = true.

svn path=/trunk/mcs/; revision=3715

22 years ago2002-04-10 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 9 Apr 2002 11:34:50 +0000 (11:34 -0000)]
2002-04-10  Nick Drochak  <ndrochak@gol.com>

* icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData) :
return true even if it's not Daylight Savings time.
Only return false for the case where the function isn't
implemented for a plaform (read Windows).

svn path=/trunk/mono/; revision=3714

22 years ago2002-04-09 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 9 Apr 2002 09:52:37 +0000 (09:52 -0000)]
2002-04-09  Nick Drochak  <ndrochak@gol.com>

* ArrayTest.cs: Remove BinarySearch test on unsorted arrays. The
behavior is undefined if the array isn't sorted.

svn path=/trunk/mcs/; revision=3713

22 years ago2002-04-09 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 9 Apr 2002 09:50:21 +0000 (09:50 -0000)]
2002-04-09  Nick Drochak  <ndrochak@gol.com>

* Array.cs (BinarySearch): Add checks on paramters before using them
and throw exceptions as needed.

* Enum.cs (Format): Check if [Flags] is applied to enum and convert
"G" format to "F" if so.

svn path=/trunk/mcs/; revision=3712

22 years agoTue Apr 9 05:40:12 2002 Piers Haken <piersh@friskit.com>
Piers Haken [Tue, 9 Apr 2002 08:43:36 +0000 (08:43 -0000)]
Tue Apr  9 05:40:12  2002 Piers Haken <piersh@friskit.com>

* statement.cs: fixed SimpleSwitchEmit to make 'goto case' goto the
code for the section, not the beginning of the tests.

svn path=/trunk/mcs/; revision=3711

22 years agoTue Apr 9 13:12:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 9 Apr 2002 07:22:59 +0000 (07:22 -0000)]
Tue Apr 9 13:12:09 CEST 2002 Paolo Molaro <lupus@ximian.com>

* MonoCustomAttrs.cs: return arrays of type Attribute[]
instead of object[].

svn path=/trunk/mcs/; revision=3710

22 years agoTue Apr 9 13:08:26 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 9 Apr 2002 07:19:31 +0000 (07:19 -0000)]
Tue Apr 9 13:08:26 CEST 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: make the interp thread-safe wrt the metadata lib.

svn path=/trunk/mono/; revision=3709

22 years agoTue Apr 9 13:05:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 9 Apr 2002 07:17:41 +0000 (07:17 -0000)]
Tue Apr 9 13:05:56 CEST 2002 Paolo Molaro <lupus@ximian.com>

* appdomain.h, appdomain.c, class.c, object.c: protect MonoDomain
data with a mutex.

svn path=/trunk/mono/; revision=3708

22 years ago2002/04/09 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 9 Apr 2002 06:37:25 +0000 (06:37 -0000)]
2002/04/09  Nick Drochak <ndrochak@gol.com>

* DecimalTest.cs: Use AssertEquals() for better diagnostic message.

svn path=/trunk/mcs/; revision=3707

22 years ago2002-04-09 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 9 Apr 2002 06:35:10 +0000 (06:35 -0000)]
2002-04-09  Dietmar Maurer  <dietmar@ximian.com>

* mempool.c (mono_mempool_alloc): only use g_malloc when
absolutely necessary.

svn path=/trunk/mono/; revision=3706

22 years ago2002-04-09 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 9 Apr 2002 05:41:09 +0000 (05:41 -0000)]
2002-04-09  Dietmar Maurer  <dietmar@ximian.com>

* delegate.c (arch_end_invoke): restore output arguments

svn path=/trunk/mono/; revision=3705

22 years agoInnerXml, OuterXml, WriteContentTo, and WriteTo for most XmlNode derivatives.
Kral Ferch [Tue, 9 Apr 2002 01:38:59 +0000 (01:38 -0000)]
InnerXml, OuterXml, WriteContentTo, and WriteTo for most XmlNode derivatives.

svn path=/trunk/mcs/; revision=3704

22 years agoInitial check-in.
Kral Ferch [Tue, 9 Apr 2002 01:37:48 +0000 (01:37 -0000)]
Initial check-in.

svn path=/trunk/mcs/; revision=3703

22 years ago2002/04/09 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 9 Apr 2002 01:15:37 +0000 (01:15 -0000)]
2002/04/09  Nick Drochak <ndrochak@gol.com>

* String.cs (Substring): Copy only non-null characters to the new
string.

svn path=/trunk/mcs/; revision=3702

22 years agoDebugger.cs: Added [MonoTODO] attribute to methods; modified IsLogging()
Jonathan Pryor [Mon, 8 Apr 2002 22:25:20 +0000 (22:25 -0000)]
Debugger.cs: Added [MonoTODO] attribute to methods; modified IsLogging()
and Log() so that System.Diagnostics.DefaultTraceListener could use them
without having NotImplementedException's thrown, as the functionality
DefaultTraceListener is using is non-critical.

The DefaultTraceListener simply checks to see if a debugger is attached, and
if so, invokes Log().  Since we don't currently support a debugger, we can
have IsLogging() simply return false, allowing DefaultTraceListener to
continue on its merry way.

The benefit of this is that when the Debugger class is fully functional, we
won't have to worry about correcting the DefaultTraceListener.  It should
"Just Work".  (Famous last words, I know...)

svn path=/trunk/mcs/; revision=3701

22 years ago2002-04-09 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 8 Apr 2002 22:14:10 +0000 (22:14 -0000)]
2002-04-09  Nick Drochak <ndrochak@gol.com>

* Activator.cs: Small header copy-paste error fix.

svn path=/trunk/mcs/; revision=3700

22 years agoThe 'Debugger' class (1) already exists (in the corlib assembly), and
Jonathan Pryor [Mon, 8 Apr 2002 22:13:22 +0000 (22:13 -0000)]
The 'Debugger' class (1) already exists (in the corlib assembly), and
(2) is supposed to be in the corlib assembly.  Two strikes against me for
not reading the @#$% docs closely enough to figure this out.

Remove the files I added, as they're unnecessary.

svn path=/trunk/mcs/; revision=3699

22 years agoAdded 'Debugger.cs', which is used by 'DefaultTraceListener'.
Jonathan Pryor [Mon, 8 Apr 2002 22:02:43 +0000 (22:02 -0000)]
Added 'Debugger.cs', which is used by 'DefaultTraceListener'.

It's just stubbed out for now.

svn path=/trunk/mcs/; revision=3698

22 years agoFix ASCIIEncoding.GetString(bytes[],index,count); it was misbehaving when index=0...
John Donagher [Mon, 8 Apr 2002 21:51:50 +0000 (21:51 -0000)]
Fix ASCIIEncoding.GetString(bytes[],index,count); it was misbehaving when index=0 and count=bytes.length

svn path=/trunk/mcs/; revision=3697

22 years ago2002-04-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 8 Apr 2002 20:26:36 +0000 (20:26 -0000)]
2002-04-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* SByte.cs:
* Int16.cs:
* Int32.cs:
* Int64.cs: added complex Parse ().

svn path=/trunk/mcs/; revision=3696

22 years agoalignment fixes
Dietmar Maurer [Mon, 8 Apr 2002 13:06:49 +0000 (13:06 -0000)]
alignment fixes

svn path=/trunk/mono/; revision=3695

22 years ago2002-04-08 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 8 Apr 2002 12:17:43 +0000 (12:17 -0000)]
2002-04-08  Dietmar Maurer  <dietmar@ximian.com>

* class.c (mono_class_vtable): use domain mempool to allocate vtable
(mono_class_proxy_vtable): use domain mempool

svn path=/trunk/mono/; revision=3694

22 years ago (mono_class_vtable): use g_malloc instead of GC_malloc when possible
Dietmar Maurer [Mon, 8 Apr 2002 12:00:47 +0000 (12:00 -0000)]
(mono_class_vtable): use g_malloc instead of GC_malloc when possible

svn path=/trunk/mono/; revision=3693

22 years ago2002-04-09 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 8 Apr 2002 12:00:29 +0000 (12:00 -0000)]
2002-04-09  Nick Drochak  <ndrochak@gol.com>

* ByteTest.cs: Use AssertEquals() for better diagnostic message.

svn path=/trunk/mcs/; revision=3692

22 years ago2002-04-09 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 8 Apr 2002 11:57:09 +0000 (11:57 -0000)]
2002-04-09  Nick Drochak  <ndrochak@gol.com>

* IntegerFormatter.cs: Don't use a format character to indicate a
custom format was passed in. It was using 'z' to indicate a custom
format, but really it should throw a format exception if the user
tries to use "z" as the format string. Now it does.

* Activator.cs: New File.

svn path=/trunk/mcs/; revision=3691

22 years agoMon Apr 8 17:15:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 8 Apr 2002 11:28:54 +0000 (11:28 -0000)]
Mon Apr 8 17:15:48 CEST 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: display return value with --trace.
Call mono_runtime_init ().

svn path=/trunk/mono/; revision=3690

22 years agoMon Apr 8 17:16:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 8 Apr 2002 11:28:49 +0000 (11:28 -0000)]
Mon Apr 8 17:16:40 CEST 2002 Paolo Molaro <lupus@ximian.com>

* jit.c: call mono_runtime_init ().

svn path=/trunk/mono/; revision=3689

22 years agoMon Apr 8 17:15:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 8 Apr 2002 11:28:28 +0000 (11:28 -0000)]
Mon Apr 8 17:15:04 CEST 2002 Paolo Molaro <lupus@ximian.com>

* main.c: removed unneeded runtime invoke support.

svn path=/trunk/mono/; revision=3688

22 years agoMon Apr 8 17:17:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 8 Apr 2002 11:28:27 +0000 (11:28 -0000)]
Mon Apr 8 17:17:04 CEST 2002 Paolo Molaro <lupus@ximian.com>

* appdomain.h, appdomain.c: split initialization that requires the
execution engine support into mono_runtime_init().

svn path=/trunk/mono/; revision=3687

22 years ago2002-04-08 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 8 Apr 2002 11:10:30 +0000 (11:10 -0000)]
2002-04-08  Nick Drochak  <ndrochak@gol.com>

* System.build: Build System.dll with mono's corlib.dll and
System.Xml.dll.

svn path=/trunk/mcs/; revision=3686

22 years ago2002-04-08 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 8 Apr 2002 11:06:59 +0000 (11:06 -0000)]
2002-04-08  Nick Drochak  <ndrochak@gol.com>

* DefaultMemberAttribute.cs: Add AttributeUsage attribute for class,
struct and interface.

svn path=/trunk/mcs/; revision=3685

22 years ago2002-04-08 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 8 Apr 2002 11:03:34 +0000 (11:03 -0000)]
2002-04-08  Nick Drochak  <ndrochak@gol.com>

* Marshal.cs: Make class public.
* ComVisible.cs: New File.

svn path=/trunk/mcs/; revision=3684

22 years ago2002-04-08 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 8 Apr 2002 11:00:33 +0000 (11:00 -0000)]
2002-04-08  Nick Drochak  <ndrochak@gol.com>

* UnicodeCategory.cs: Fix typos in enum names.

svn path=/trunk/mcs/; revision=3683

22 years ago2002-04-08 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 8 Apr 2002 10:58:19 +0000 (10:58 -0000)]
2002-04-08  Nick Drochak  <ndrochak@gol.com>

* ConditionalAttribute.cs: Add AttributeUsage attribute for methods.

svn path=/trunk/mcs/; revision=3682

22 years ago2002-04-08 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 8 Apr 2002 10:25:53 +0000 (10:25 -0000)]
2002-04-08  Dietmar Maurer  <dietmar@ximian.com>

* class.c (mono_class_init): don't include vtable inside MonoClass
to save some memory, gather some statistics.

svn path=/trunk/mono/; revision=3681

22 years ago2002-04-08 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 8 Apr 2002 09:51:33 +0000 (09:51 -0000)]
2002-04-08  Nick Drochak  <ndrochak@gol.com>

* Enum.cs (ToString): Big ugly fix for the case where [Flags] is
applied to an enum. Need to handle the different possible integer
types of an enum somehow.  Can anyone say generics?

svn path=/trunk/mcs/; revision=3680

22 years ago2002-04-08 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 8 Apr 2002 09:43:18 +0000 (09:43 -0000)]
2002-04-08  Nick Drochak  <ndrochak@gol.com>

* EnumTest.cs: Add a few tests for differently underlying types and
the [Flags] attribute to test ToString().

svn path=/trunk/mcs/; revision=3679

22 years ago*** empty log message ***
Piers Haken [Mon, 8 Apr 2002 09:24:11 +0000 (09:24 -0000)]
*** empty log message ***

svn path=/trunk/mcs/; revision=3678

22 years ago2002-04-08 Dick Porter <dick@ximian.com>
Dick Porter [Mon, 8 Apr 2002 08:34:29 +0000 (08:34 -0000)]
2002-04-08  Dick Porter  <dick@ximian.com>

* configure.in: Set -mno-cygwin here rather than in the build script

svn path=/trunk/mono/; revision=3677

22 years agoAdd new tests
Miguel de Icaza [Mon, 8 Apr 2002 08:29:31 +0000 (08:29 -0000)]
Add new tests

svn path=/trunk/mcs/; revision=3676

22 years ago2002-04-08 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 8 Apr 2002 08:29:02 +0000 (08:29 -0000)]
2002-04-08  Miguel de Icaza  <miguel@ximian.com>

* cfold.cs: Handle operator + (Enum x, Underlying x)

* expression.cs (Binary): same.  Warn about errors where we have
Enum/Enum in operator + as well.

svn path=/trunk/mcs/; revision=3675

22 years ago- added support for switch(bool)
Piers Haken [Mon, 8 Apr 2002 07:19:34 +0000 (07:19 -0000)]
- added support for switch(bool)
- optimize loading of I8/U8 constants (ldc.i4, iconv_i8)
- add TableSwitchEmit() to handle table-based switch statements

svn path=/trunk/mcs/; revision=3674

22 years agoadded LabelField.label_base to allow for arbitrary offsets (for switch statement)
Piers Haken [Mon, 8 Apr 2002 07:04:29 +0000 (07:04 -0000)]
added LabelField.label_base to allow for arbitrary offsets (for switch statement)

svn path=/trunk/mcs/; revision=3673

22 years agoswitched the To*(object) methods to use IConvertible directly instead of calling...
Piers Haken [Mon, 8 Apr 2002 07:02:12 +0000 (07:02 -0000)]
switched the To*(object) methods to use IConvertible directly instead of calling ChangeType

svn path=/trunk/mcs/; revision=3672

22 years ago2002-04-08 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 8 Apr 2002 05:50:04 +0000 (05:50 -0000)]
2002-04-08  Dietmar Maurer  <dietmar@ximian.com>

* invoke.c (arch_create_native_wrapper): special case EndInvoke -
we need to pass the MonoMethod pointer as first argument.

* delegate.c (mono_async_invoke): notify all listeners, not only a
single one.
(arch_end_invoke): we now pass a MonoMethod as first parameter and
use arch_method_call_message_new() to access the stack.
(arch_end_invoke): wait until we really finished processing
(async_invoke_abort): notify all listeners, not only a
single one.

svn path=/trunk/mono/; revision=3671