mono.git
22 years agoRemoved stale comments from Object.cs
Miguel de Icaza [Thu, 7 Mar 2002 22:59:52 +0000 (22:59 -0000)]
Removed stale comments from Object.cs

Lots of bug fixes today, including a major bugfix/upgrade to `foreach'.

2002-03-07  Miguel de Icaza  <miguel@ximian.com>

* statement.cs (Foreach): Lots of work to accomodate a particular
kind of foreach statement that I had not kept in mind.  It is
possible to have foreachs on classes that provide a GetEnumerator
method that return objects that implement the "pattern" for using
a foreach, there is no need to support GetEnumerator
specifically.

This is needed to compile nant.

* decl.cs: Only report 114 if the member is not `Finalize' and if
the warning level is at least 2.

* class.cs: Moved the compare function from Method to
MethodSignature.

(MethodSignature.InheritableMemberSignatureCompare): Add new
filter function that is used to extract inheritable methods from a
class.

(Method.Define): Use the new `inheritable_method_signature_filter'
delegate

* cs-tokenizer.cs (get_cmd_arg): Do not add white space to the
command.

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

22 years ago2002-03-07 Duncan Mak <duncan@ximian.com>
Duncan Mak [Thu, 7 Mar 2002 19:08:11 +0000 (19:08 -0000)]
2002-03-07  Duncan Mak  <duncan@ximian.com>

* Makefile.am: A small patch fixing errors in vpath-based builds (make clean
failing to rerun monoburg due to BUILT_SOURCES usage), committed
for Daniel Stodden <stodden@in.tum.de>.

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

22 years agoFlush
Miguel de Icaza [Thu, 7 Mar 2002 16:31:45 +0000 (16:31 -0000)]
Flush

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

22 years ago2002-03-07 Martin Baulig <martin@gnome.org>
Martin Baulig [Thu, 7 Mar 2002 14:45:27 +0000 (14:45 -0000)]
2002-03-07  Martin Baulig  <martin@gnome.org>

* StringTest.cs: Added a few more tests for the bug fixes I just
committed to String.cs.

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

22 years ago2002-03-07 Martin Baulig <martin@gnome.org>
Martin Baulig [Thu, 7 Mar 2002 14:44:09 +0000 (14:44 -0000)]
2002-03-07  Martin Baulig  <martin@gnome.org>

* String.cs (Join): Throw an ArgumentNullException.
(LastIndexOf (string,int,int)): This method does a backwards search,
so startIndex points to the end of value, not to its beginning. Don't
throw an exception if startIndex equals this.Length. Always return -1
if startIndex is smaller than the length of value.
(Replace (string,string)): Replace all occurences of oldValue.
If newValue is null, all occurences of oldValue are to be removed.
(Split (char[],int)): Return an empty array if maxCount is zero, throw
an ArgumentOutOfRangeException if it's less than zero. Return maxValue
elements, not maxValue+1.

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

22 years agoThu Mar 7 18:55:15 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 7 Mar 2002 14:04:48 +0000 (14:04 -0000)]
Thu Mar 7 18:55:15 CET 2002 Paolo Molaro <lupus@ximian.com>

* icall.c: update to the new mono_Array_class_get interface.

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

22 years agoSmall patch of love to MIS
Miguel de Icaza [Thu, 7 Mar 2002 13:53:20 +0000 (13:53 -0000)]
Small patch of love to MIS

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

22 years agoTest for method overloading resolution.
Paolo Molaro [Thu, 7 Mar 2002 13:00:46 +0000 (13:00 -0000)]
Test for method overloading resolution.

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

22 years agoThu Mar 7 17:19:44 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 7 Mar 2002 12:43:10 +0000 (12:43 -0000)]
Thu Mar 7 17:19:44 CET 2002 Paolo Molaro <lupus@ximian.com>

* configure.in: detect Boehm GC libs and add --with-gc switch.
Boehm GC needs to be explicitly enabled since the JIT currently fails
in some cases with it.

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

22 years agoThu Mar 7 17:22:52 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 7 Mar 2002 12:42:25 +0000 (12:42 -0000)]
Thu Mar 7 17:22:52 CET 2002 Paolo Molaro <lupus@ximian.com>

* jit.c: Boehm-GC enable.

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

22 years agoThu Mar 7 17:16:06 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 7 Mar 2002 12:42:17 +0000 (12:42 -0000)]
Thu Mar 7 17:16:06 CET 2002 Paolo Molaro <lupus@ximian.com>

* MonoType.cs: make GetEvents() an internal call.
* MulticastDelegate.cs: copy the passed in array.

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

22 years agoThu Mar 7 17:23:26 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 7 Mar 2002 12:41:42 +0000 (12:41 -0000)]
Thu Mar 7 17:23:26 CET 2002 Paolo Molaro <lupus@ximian.com>

* appdomain.c, object.c: Boehm-GC enable.
* icall.c: make get_data_chunk() support split data requests.
Ensure a class is initialized in more cases. Return only the first
property found in GetProperties() or the compiler gets confused.
Implemented GetEvents(). Temporary fix to GetType(), needs rewriting.
* reflection.h, reflection.c: add fixup mechanism for field and method
tokens. Initialize assembly->typeref in a single place. Output
properties after events. Support custom attributes for events, too.
Typo fix for paramter custom attrs.

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

22 years agoThu Mar 7 17:10:42 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 7 Mar 2002 12:41:37 +0000 (12:41 -0000)]
Thu Mar 7 17:10:42 CET 2002 Paolo Molaro <lupus@ximian.com>

* AssemblyBuilder.cs: allow saving bigger assemblies.
* ILGenerator.cs: add fixup table for fields and methods, since
at the end of the compile they may end up with a different table
index.
* ModuleBuilder.cs: add cache for type names to speed up the type
lookups from the compiler.
* TypeBuilder.cs: GetInterfaces () returns only interfaces in the
current type, not in parents (the docs are wrong).

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

22 years agoThu Mar 7 17:14:20 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 7 Mar 2002 12:40:45 +0000 (12:40 -0000)]
Thu Mar 7 17:14:20 CET 2002 Paolo Molaro <lupus@ximian.com>

* EventInfo.cs: add compiler needed methods.
* MonoMethod.cs: make ToString() return the return type name, too.

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

22 years agoThu Mar 7 17:20:59 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 7 Mar 2002 12:40:24 +0000 (12:40 -0000)]
Thu Mar 7 17:20:59 CET 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: Boehm-GC enable. Fix some overflow opcodes.

Thu Mar 7 17:21:52 CET 2002 Paolo Molaro <lupus@ximian.com>

* threads.c, timed-thread.c, wait.c: Boehm-GC anable.

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

22 years ago2002-03-08 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Thu, 7 Mar 2002 12:40:11 +0000 (12:40 -0000)]
2002-03-08  Nick Drochak  <ndrochak@gol.com>

* nunit.build: exclude all the obsolete stuff, and prevent csc from
linking any ms stuff to the dll and exe we are testing on Linux.

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

22 years ago2002-03-07 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Thu, 7 Mar 2002 12:20:53 +0000 (12:20 -0000)]
2002-03-07  Dietmar Maurer  <dietmar@ximian.com>

* x86.brg (SAVE_LFM): bug fix: patch the saved IP because we
realloc that code sometimes!

* emit-x86.c (mono_compute_branches): support several types of
jump infos

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

22 years agoSome doc fixes by Christophe
Dick Porter [Thu, 7 Mar 2002 12:04:28 +0000 (12:04 -0000)]
Some doc fixes by Christophe

Update the Linux build script to cope when pkg-config is missing but glib-2
is already installed

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

22 years agoUpdated.
Martin Baulig [Thu, 7 Mar 2002 09:24:59 +0000 (09:24 -0000)]
Updated.

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

22 years ago2002-03-07 Martin Baulig <martin@gnome.org>
Martin Baulig [Thu, 7 Mar 2002 09:24:24 +0000 (09:24 -0000)]
2002-03-07  Martin Baulig  <martin@gnome.org>

* ArrayTest.cs: Fixed the FIXME in test #E05.

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

22 years ago2002-03-06 Martin Baulig <martin@gnome.org>
Martin Baulig [Thu, 7 Mar 2002 09:19:29 +0000 (09:19 -0000)]
2002-03-06  Martin Baulig  <martin@gnome.org>

* Array.cs (Copy): Use FastCopy when appropriate and do correct
exception handling.

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

22 years ago2002-03-07 Martin Baulig <martin@gnome.org>
Martin Baulig [Thu, 7 Mar 2002 09:07:26 +0000 (09:07 -0000)]
2002-03-07  Martin Baulig  <martin@gnome.org>

* icall.c (ves_icall_System_Array_FastCopy): Small fix.

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

22 years ago2002-03-07 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Thu, 7 Mar 2002 06:39:57 +0000 (06:39 -0000)]
2002-03-07  Dietmar Maurer  <dietmar@ximian.com>

* class.c (mono_array_class_get): fix. for multi. dim. arrays

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

22 years ago2002/03/07 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Thu, 7 Mar 2002 03:31:29 +0000 (03:31 -0000)]
2002/03/07  Nick Drochak <ndrochak@gol.com>

* StreamingContextStates.cs: Add missing value (CrossAppDomain) and
adjust All value accordingly.

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

22 years agoRemoved redundant code.
Jason Diamond [Thu, 7 Mar 2002 03:06:52 +0000 (03:06 -0000)]
Removed redundant code.

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

22 years agoDisable warning CS0679.
Jason Diamond [Thu, 7 Mar 2002 02:42:29 +0000 (02:42 -0000)]
Disable warning CS0679.

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

22 years agorewrote XmlNode with touchups to XmlDocument, XmlElement, and XmlLinkedNode
Kral Ferch [Thu, 7 Mar 2002 02:32:39 +0000 (02:32 -0000)]
rewrote XmlNode with touchups to XmlDocument, XmlElement, and XmlLinkedNode

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

22 years ago2002/03/07 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 6 Mar 2002 21:42:58 +0000 (21:42 -0000)]
2002/03/07  Nick Drochak <ndrochak@gol.com>

* corlib_test.build: resolve chicken and egg problem. Only build and
execute test assemblies when 'make test' is specified. Need to do a
'make' first now before 'make test'.

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

22 years agoSmall bug fix
Miguel de Icaza [Wed, 6 Mar 2002 20:37:25 +0000 (20:37 -0000)]
Small bug fix

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

22 years agoCharEnumerator: stronger test, new failures, fixed them
Duco Fijma [Wed, 6 Mar 2002 16:09:59 +0000 (16:09 -0000)]
CharEnumerator: stronger test, new failures, fixed them

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

22 years ago2002-03-06 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Wed, 6 Mar 2002 15:58:25 +0000 (15:58 -0000)]
2002-03-06  Miguel de Icaza  <miguel@ximian.com>

* cs-parser.jay: Add opt_semicolon to the interface declaration.

* expression.cs: Pass location information to
ConvertImplicitStandard.

* class.cs: Added debugging code to track return values from
interfaces.

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

22 years ago* x86.brg: impl. MUL_OVF_UN (reg, reg)
Dietmar Maurer [Wed, 6 Mar 2002 13:38:45 +0000 (13:38 -0000)]
* x86.brg: impl. MUL_OVF_UN (reg, reg)

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

22 years ago2002-03-06 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Wed, 6 Mar 2002 13:21:22 +0000 (13:21 -0000)]
2002-03-06  Dietmar Maurer  <dietmar@ximian.com>

* Int64.cs (Parse): bug fix for max. negative value.

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

22 years ago2002-03-07 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 6 Mar 2002 11:59:16 +0000 (11:59 -0000)]
2002-03-07  Nick Drochak  <ndrochak@gol.com>

* makefile: Change order of build so corlib is built before nunit since
Nunit needs corlib now.

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

22 years ago2002-03-07 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 6 Mar 2002 11:54:46 +0000 (11:54 -0000)]
2002-03-07  Nick Drochak  <ndrochak@gol.com>

* .cvsignore: ignore *.pdb files
* nunit.build: Build a version of NUnitCore.dll and NUnitConsole.exe
using mono's corlib. Use this to test on Linux under mint and mono.

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

22 years ago2002-03-07 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 6 Mar 2002 11:43:16 +0000 (11:43 -0000)]
2002-03-07  Nick Drochak  <ndrochak@gol.com>

* RuntimeTypeHandle.cs: Add Serializable attribute as the docs say.
I need to understand what the difference between the attribute and
the interface is.

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

22 years ago2002-03-07 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 6 Mar 2002 11:38:54 +0000 (11:38 -0000)]
2002-03-07  Nick Drochak  <ndrochak@gol.com>

* FileMode.cs: Docs don't say this should be explicitly derived from
int, so just make it a normal Enum.

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

22 years ago2002-03-07 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 6 Mar 2002 11:20:46 +0000 (11:20 -0000)]
2002-03-07  Nick Drochak  <ndrochak@gol.com>

* BindingFlags.cs: Add missing enum values.  Thanks CorCompare.

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

22 years ago2002-03-06 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 6 Mar 2002 10:41:24 +0000 (10:41 -0000)]
2002-03-06  Martin Baulig  <martin@gnome.org>

* ArrayTest.cs (TestSetValue4): Added testcases #M94-#M96 for Array.Copy.

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

22 years ago2002-03-06 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 6 Mar 2002 10:40:05 +0000 (10:40 -0000)]
2002-03-06  Martin Baulig  <martin@gnome.org>

* Array.cs (Copy): Always throw an ArrayTypeMismatchException, not
an InvalidCastException if the widening conversion failed. See
testcases #M94-#M96.

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

22 years ago2002-03-06 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 6 Mar 2002 10:24:46 +0000 (10:24 -0000)]
2002-03-06  Martin Baulig  <martin@gnome.org>

* ArrayTest.cs (TestCopyTo): Added testcases #F10-#F13 for arrays with
non-zero lower bounds.

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

22 years ago2002-03-06 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 6 Mar 2002 10:23:33 +0000 (10:23 -0000)]
2002-03-06  Martin Baulig  <martin@gnome.org>

* icall.c (ves_icall_System_Array_CreateInstanceImpl): Make this work with
non-zero lower bounds. See testcases #F10-#F13.

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

22 years ago2002-03-06 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 6 Mar 2002 10:22:16 +0000 (10:22 -0000)]
2002-03-06  Martin Baulig  <martin@gnome.org>

* Array.cs (CopyTo): Bug fix from Ajay Dwivedi, correctly handle
arrays with non-zero lower bounds. Also adding testcases #F10-#F13
for this.

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

22 years ago2002-03-06 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 6 Mar 2002 09:56:42 +0000 (09:56 -0000)]
2002-03-06  Martin Baulig  <martin@gnome.org>

* ArrayTest.cs (TestCopyTo): Added test for copying an empty array
to an empty array.

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

22 years ago2002-03-06 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 6 Mar 2002 09:55:42 +0000 (09:55 -0000)]
2002-03-06  Martin Baulig  <martin@gnome.org>

* Array.cs (CopyTo): Reverted my last change, it was incorrect.
(Copy): Actually allow copying multi-dimensional arrays.

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

22 years ago2002-03-06 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 6 Mar 2002 09:42:20 +0000 (09:42 -0000)]
2002-03-06  Nick Drochak  <ndrochak@gol.com>

* nunit.build: Exclude obsolete class from build. Probably should
remove from cvs.

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

22 years agojit.c (mono_find_final_block): find correct finally handler.
Dietmar Maurer [Wed, 6 Mar 2002 08:55:39 +0000 (08:55 -0000)]
jit.c (mono_find_final_block): find correct finally handler.

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

22 years ago2002-03-06 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Wed, 6 Mar 2002 07:32:23 +0000 (07:32 -0000)]
2002-03-06  Dietmar Maurer  <dietmar@ximian.com>

* emit-x86.c (arch_create_jit_trampoline): bug fix: preserve
caller saved registers.

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

22 years ago2002-03-05 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Tue, 5 Mar 2002 22:42:24 +0000 (22:42 -0000)]
2002-03-05  Ravi Pratap  <ravi@ximian.com>

* test-81.cs : Add.

* makefile : Update accordingly as this test passes.

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

22 years agoFixed the build. Stupid typos.
Duncan Mak [Tue, 5 Mar 2002 22:11:23 +0000 (22:11 -0000)]
Fixed the build. Stupid typos.

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

22 years ago2002-03-05 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 5 Mar 2002 21:36:41 +0000 (21:36 -0000)]
2002-03-05  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (Is.DoResolve): If either side of the `is' is an
interface, do not flag the warning.

* ecore.cs (ImplicitReferenceConversion): We need a separate test
for interfaces

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

22 years agoBug fixes and a couple of optimizations (used a nice profiler to find
Miguel de Icaza [Tue, 5 Mar 2002 21:28:50 +0000 (21:28 -0000)]
Bug fixes and a couple of optimizations (used a nice profiler to find
a few easy to fix hot spots):

2002-03-05  Miguel de Icaza  <miguel@ximian.com>

* typemanager.cs (NoTypes): Move the definition for the empty Type
array here.

* class.cs (TypeContainer.FindMembers): Also look for methods defined by
properties.
(TypeContainer.DefineProxy): New function used to proxy to parent
implementations when implementing interfaces.
(TypeContainer.ParentImplements): used to lookup if our parent
implements a public function that is required by an interface.
(TypeContainer.VerifyPendingMethods): Hook this up.

* typemanager.cs (TypeManager, AddModule, AddAssembly): Make the
`modules' and `assemblies' arraylists into arrays.  We only grow
these are the very early start up of the program, so this improves
the speedof LookupType (nicely measured).

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

22 years ago2002-03-05 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 5 Mar 2002 21:21:15 +0000 (21:21 -0000)]
2002-03-05  Duncan Mak  <duncan@ximian.com>

* Convert.cs:
(DBNull) Added the missing field.
(IsDBNull) Fixed typo.
(ToByte (string, int)) Implemented.
(ToString (byte, int)) Implemented.
(ConvertToBase)
(BuildConvertedString) internal functions used for converting values to
a specific base.

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

22 years ago2002-03-05 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 5 Mar 2002 20:11:00 +0000 (20:11 -0000)]
2002-03-05  Duncan Mak  <duncan@ximian.com>

* Int16.cs:
* Int32.cs:
* Int64.cs:
* Single.cs:
* UInt16.cs:
* UInt32.cs: Implement the IConvertible interface.

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

22 years ago2002-03-05 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 5 Mar 2002 19:30:53 +0000 (19:30 -0000)]
2002-03-05  Duncan Mak  <duncan@ximian.com>

* CharEnumerator.cs: Renamed to variables to be clearer and
changed some of the tests to conform to the 1.0 spec.

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

22 years ago2002-03-06 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 5 Mar 2002 19:18:53 +0000 (19:18 -0000)]
2002-03-06  Martin Baulig  <martin@gnome.org>

* ArrayTest.cs: Use unique labels for all the tests.
(TestSetValue4): A big new testcase.

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

22 years ago2002-03-06 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 5 Mar 2002 19:14:24 +0000 (19:14 -0000)]
2002-03-06  Martin Baulig  <martin@gnome.org>

* Array.cs (Copy): Calculate absolute array position here and use
GetValueImpl() and SetValueImpl() with that position. We can now
copy multi-dimensional arrays.
(CopyTo): Small bug fix.

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

22 years ago2002-03-05 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 5 Mar 2002 19:00:35 +0000 (19:00 -0000)]
2002-03-05  Martin Baulig  <martin@gnome.org>

* exception.c (mono_get_exception_argument_out_of_range): New exception.

* icall.c (ves_icall_System_Array_GetValue): Moved actual implementation to
ves_icall_System_Array_GetValue(), only calculate the absolute array position
here.
(ves_icall_System_Array_SetValue): Likewise.
(ves_icall_System_Array_GetValueImpl): New interncall. Takes an array position
as argument and does the actual work. This function is used when copying a
multi-dimensional array.
(ves_icall_System_Array_SetValueImpl): Almost completely rewrote this. It can
now do all the widening conversions of value types.
(ves_icall_System_Array_CreateInstanceImpl): Implemented.

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

22 years agoFixes for System.CharEnumerator and System.Version
Duco Fijma [Tue, 5 Mar 2002 18:20:41 +0000 (18:20 -0000)]
Fixes for System.CharEnumerator and System.Version

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

22 years agoTue Mar 5 20:33:14 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 5 Mar 2002 16:44:57 +0000 (16:44 -0000)]
Tue Mar 5 20:33:14 CET 2002 Paolo Molaro <lupus@ximian.com>

* TypeAttributes.cs, MethodImplAttributes.cs: updates to latest spec.

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

22 years agoUpdate news
Miguel de Icaza [Tue, 5 Mar 2002 16:08:47 +0000 (16:08 -0000)]
Update news

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

22 years agoUpdate index
Miguel de Icaza [Tue, 5 Mar 2002 16:06:08 +0000 (16:06 -0000)]
Update index

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

22 years agoSorry about that, differing times in machines made me commit this bug
Miguel de Icaza [Tue, 5 Mar 2002 14:40:08 +0000 (14:40 -0000)]
Sorry about that, differing times in machines made me commit this bug

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

22 years agoClass-status is an autogenerated file, remove
Miguel de Icaza [Tue, 5 Mar 2002 14:38:05 +0000 (14:38 -0000)]
Class-status is an autogenerated file, remove

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

22 years ago2002-03-05 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 5 Mar 2002 14:31:42 +0000 (14:31 -0000)]
2002-03-05  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (MakeByteBlob): Replaced unsafe code with
BitConverter, as suggested by Paolo.

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

22 years ago2002-03-05 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 5 Mar 2002 14:22:05 +0000 (14:22 -0000)]
2002-03-05  Miguel de Icaza  <miguel@ximian.com>

* cfold.cs (ConstantFold.Binary): Special case: perform constant
folding of string concatenation, but if either side is a string,
and the other is not, then return null, and let the runtime use
the concatenation on the string plus the object (using
`Object.ToString').

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

22 years agoAdd new documentation file on the compiler
Miguel de Icaza [Tue, 5 Mar 2002 13:58:13 +0000 (13:58 -0000)]
Add new documentation file on the compiler

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

22 years agoRemove another confusing file
Miguel de Icaza [Tue, 5 Mar 2002 13:54:05 +0000 (13:54 -0000)]
Remove another confusing file

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

22 years agoRemove this file, it was confusing
Miguel de Icaza [Tue, 5 Mar 2002 13:52:39 +0000 (13:52 -0000)]
Remove this file, it was confusing

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

22 years agoFlush
Miguel de Icaza [Tue, 5 Mar 2002 13:29:21 +0000 (13:29 -0000)]
Flush

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

22 years agoTue Mar 5 18:12:40 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 5 Mar 2002 13:27:52 +0000 (13:27 -0000)]
Tue Mar 5 18:12:40 CET 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: fix non-debug build and some more opcode work.

Tue Mar 5 18:11:01 CET 2002 Paolo Molaro <lupus@ximian.com>

* dump.c: print index of the methodsemantics table.
* main.cs: print event information.

Tue Mar 5 18:14:01 CET 2002 Paolo Molaro <lupus@ximian.com>

* class.c: remove some magic numbers and use the smbolic names,
instead. Added init_events() to load event info at class init time.
* metadata.h, metadata.c: added mono_metadata_events_from_typedef()
and mono_metadata_methods_from_event().
* reflection.h, reflection.c: added support for writing out the evnets
related information.

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

22 years agoTue Mar 5 18:09:34 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 5 Mar 2002 13:27:51 +0000 (13:27 -0000)]
Tue Mar 5 18:09:34 CET 2002 Paolo Molaro <lupus@ximian.com>

* EventBuilder.cs: implemented.
* TypeBuilder.cs: implemented DefineEvent() method and UnderlyingSystemType
property.

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

22 years agoTue Mar 5 17:34:14 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 5 Mar 2002 12:45:42 +0000 (12:45 -0000)]
Tue Mar 5 17:34:14 CET 2002 Paolo Molaro <lupus@ximian.com>

* SByte.cs, UInt64.cs: implement IConvertible interface. Nobody wants
to do this dirty work, but someone has to do it (and I need it to pass
the "200 sample tests compiled on linux" mark).

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

22 years ago2002-03-06 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 5 Mar 2002 12:44:03 +0000 (12:44 -0000)]
2002-03-06  Nick Drochak  <ndrochak@gol.com>

* VersionTest.cs: Fix for mscorlib behavior vs. docs. CompareTo(null)
is legal.

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

22 years ago2002-03-06 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 5 Mar 2002 12:08:17 +0000 (12:08 -0000)]
2002-03-06  Nick Drochak  <ndrochak@gol.com>

* Attribute.cs
* DecimalFormatter.cs
* Delegate.cs
* Double.cs
* GC.cs
* Int16.cs
* Int32.cs
* MonoType.cs
* RuntimeMethodHandle.cs
* RuntimeTypeHandle.cs
* String.cs
* Type.cs:
Add [MonoTODO]'s to places where we currently throw a
NotImplementedException.

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

22 years ago2002-03-06 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 5 Mar 2002 12:00:34 +0000 (12:00 -0000)]
2002-03-06  Nick Drochak  <ndrochak@gol.com>

* UInt16Test.cs:
* UInt32Test.cs:
* UInt64Test.cs: Use NumberFormatInfo.InvariantInfo.CurrencySymbol
where "$" was used. Should help suppress false negatives on systems
where "$" is not the currency symbol.

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

22 years ago2002-03-05 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Tue, 5 Mar 2002 11:48:06 +0000 (11:48 -0000)]
2002-03-05    Gaurav Vaish <gvaish@iitk.ac.in>

* ChangeLog:  My frustration appears here.

------------------------------------------------------------------
------------------------------------------------------------------
I AM TOTALLY SCREWED UP. NO GUESSES WHATSOEVER ON WHAT TO DO NOW!!
------------------------------------------------------------------
------------------------------------------------------------------

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

22 years ago2002-03-05 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Tue, 5 Mar 2002 11:46:49 +0000 (11:46 -0000)]
2002-03-05   Gaurav Vaish <gvaish@iitk.ac.in>

* I am screwed up. I will now go back and read some theory and develop
  some architecture before I proceed on.

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

22 years agoFix compilation, I did not finish upgrading a piece of the code
Miguel de Icaza [Tue, 5 Mar 2002 11:31:02 +0000 (11:31 -0000)]
Fix compilation, I did not finish upgrading a piece of the code

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

22 years ago2002-03-05 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Tue, 5 Mar 2002 11:21:09 +0000 (11:21 -0000)]
2002-03-05    Gaurav Vaish <gvaish@iitk.ac.in>

* System.Web.build -- Keep Web.Security stuff away from build for the
   time being.

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

22 years ago2002-03-05 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Tue, 5 Mar 2002 11:17:46 +0000 (11:17 -0000)]
2002-03-05      Gaurav Vaish <gvaish@iitk.ac.in>

* *.cs -- *EventHandler.cs - Minor Corrections.

* Others -- Either complete, or first draft.

* ChangeLog, TODO -- Updated in accordance.

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

22 years ago x86.brg: use x86_widen_reg for CONV opcodes
Dietmar Maurer [Tue, 5 Mar 2002 07:51:05 +0000 (07:51 -0000)]
x86.brg: use x86_widen_reg for CONV opcodes

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

22 years ago2002-03-05 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 5 Mar 2002 05:59:56 +0000 (05:59 -0000)]
2002-03-05  Dietmar Maurer  <dietmar@ximian.com>

* Int16.cs (Parse): do not overflow on max negative value

* Int32.cs (Parse): do not overflow on max negative value

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

22 years agoAdd Constant Folder
Miguel de Icaza [Tue, 5 Mar 2002 03:07:35 +0000 (03:07 -0000)]
Add Constant Folder

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

22 years ago2002-03-04 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 5 Mar 2002 02:09:36 +0000 (02:09 -0000)]
2002-03-04  Miguel de Icaza  <miguel@ximian.com>

Constant Folding has been implemented now.

* expression.cs (Unary.Reduce): Do not throw an exception, catch
the error instead on types that are not supported in one's
complement.

* constant.cs (Constant and all children): New set of functions to
perform implict and explicit conversions.

* ecore.cs (EnumConstant): Implement the new functions to perform
conversion by proxying to the child expression.

* codegen.cs: (ConstantCheckState): Constant evaluation has its
own separate setting that can not be turned off from the command
line using --unchecked or --checked and is only controlled using
the checked/unchecked statements and expressions.  This setting is
used by the constant folder to flag errors.

* expression.cs (CheckedExpr, UncheckedExpr): Set the
ConstantCheckState as well.

During Resolve, they also have to flag the state, because the
constant folder runs completely in the Resolve phase.

* statement.cs (Checked, Unchecked): Set the ConstantCheckState as
well.

2002-03-01  Miguel de Icaza  <miguel@ximian.com>

* cfold.cs: New file, this file contains the constant folder.

* ecore.cs (IMemoryLocation.AddressOf): Now takes an extra
argument to track whether we are using the resulting address to
load or store a value and provide better error messages.

(FieldExpr.Emit, FieldExpr.EmitAssign, FieldExpr.AddressOf): Use
new AddressOf arguments.

* statement.cs (Foreach.EmitCollectionForeach): Update

* expression.cs (Argument.Emit): Call AddressOf with proper
arguments to track usage.

(New.DoEmit): Call AddressOf with new arguments.

(Unary.Emit): Adjust AddressOf call.

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

22 years ago2002-03-05 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Tue, 5 Mar 2002 01:59:20 +0000 (01:59 -0000)]
2002-03-05      Gaurav Vaish <gvaish@iitk.ac.in>

* ChangeLog: What I am upto. READ THIS.

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

22 years ago2002-03-05 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Tue, 5 Mar 2002 01:57:41 +0000 (01:57 -0000)]
2002-03-05     Gaurav Vaish <gvaish@iitk.ac.in>

* Don't bother much right now. I am busy making a build. Hopefully, I will
  succeed..

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

22 years ago2002-03-05 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 5 Mar 2002 01:55:36 +0000 (01:55 -0000)]
2002-03-05  Duncan Mak  <duncan@ximian.com>

* ISymbolWriter.cs:
(DefineParameter) corrected typo in argument type.
(SetMethodSourceRange): Fixed typo in method name.

* ISymbolDocument.cs:
(CheckSumAlgorithmId) Fixed typo.

* ISymbolNamespace.cs:
(GetVariable) Added missing method.

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

22 years ago2002-03-05 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Tue, 5 Mar 2002 01:22:53 +0000 (01:22 -0000)]
2002-03-05    Gaurav Vaish <gvaish@iitk.ac.in>

* *.cs: First work, of delegates.

* ChangeLog, TODO: Details about the namespace.

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

22 years ago2002-03-05 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Tue, 5 Mar 2002 01:07:40 +0000 (01:07 -0000)]
2002-03-05    Gaurav Vaish <gvaish@iitk.ac.in>

* GenerateDelegate.cs -- Generate delegates at your whim. Quite useful tool.

* ChangeLog -- SHOULD NOT MISS IT. has description about the tool.

* makefile -- Makes it.

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

22 years ago2002-03-05 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Tue, 5 Mar 2002 00:44:49 +0000 (00:44 -0000)]
2002-03-05    Gaurav Vaish <gvaish@iitk.ac.in>

* .cvsignore: Obviously, the first file to go into commit.

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

22 years ago2002-03-05 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Mon, 4 Mar 2002 23:58:44 +0000 (23:58 -0000)]
2002-03-05     Gaurav Vaish <gvaish@iitk.ac.in>

* ChangeLog: Added System.Web.Security

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

22 years agoremove 'ghost' types from tree
Piers Haken [Mon, 4 Mar 2002 16:23:32 +0000 (16:23 -0000)]
remove 'ghost' types from tree

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

22 years agoMon Mar 4 20:34:52 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 4 Mar 2002 15:48:18 +0000 (15:48 -0000)]
Mon Mar 4 20:34:52 CET 2002 Paolo Molaro <lupus@ximian.com>

* ILGenerator.cs: make enough room in the byte array for string
tokens.
* TypeBuilder.cs: fixed GetInterfaces().

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

22 years agoMon Mar 4 20:32:43 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 4 Mar 2002 15:47:41 +0000 (15:47 -0000)]
Mon Mar 4 20:32:43 CET 2002 Paolo Molaro <lupus@ximian.com>

* reflection.h, icall.c: use a different method (GetInterfaces)
to gather interface info and add isbyref, isprimitive and
ispointer to the ves_icall_get_type_info() return value.

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

22 years agoMon Mar 4 20:36:05 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 4 Mar 2002 15:47:37 +0000 (15:47 -0000)]
Mon Mar 4 20:36:05 CET 2002 Paolo Molaro <lupus@ximian.com>

* Type.cs: fixed IsClass.
* MonoType.cs: fixed MemberType, IsPrimitiveImpl, IsPointerImpl,
IsByRefImpl. Added GetInterfaces().
* IServiceProvider.cs: compilation fix.

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

22 years ago2002-03-04 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Mon, 4 Mar 2002 15:06:29 +0000 (15:06 -0000)]
2002-03-04   Gaurav Vaish <gvaish@iitk.ac.in>

* Repeater.cs -- 90% done.

* ChangeLog -- DON'T MISS THIS UPDATE. This reveals a lot about what is done,
 is being done and what is left out.

************************************************************
THIS COMPLETES MY TASK IN WebControls for the time being.
************************************************************

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

22 years ago2002-03-04 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Mon, 4 Mar 2002 15:05:13 +0000 (15:05 -0000)]
2002-03-04      Gaurav Vaish <gvaish@iitk.ac.in>

* class.xml: Updation about the last class: Repeater

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

22 years agoMon Mar 4 18:37:03 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 4 Mar 2002 13:46:25 +0000 (13:46 -0000)]
Mon Mar 4 18:37:03 CET 2002 Paolo Molaro <lupus@ximian.com>

* Array.cs: allow copying an empty array to an empty array.

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

22 years agoMon Mar 4 17:59:16 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 4 Mar 2002 13:08:55 +0000 (13:08 -0000)]
Mon Mar 4 17:59:16 CET 2002 Paolo Molaro <lupus@ximian.com>

* String.cs: fixed LastIndexOf (string) to do a bit of argument
checking.

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