mono.git
22 years agoMore corlib and System.Data compilation bugs:
Miguel de Icaza [Wed, 1 May 2002 21:02:36 +0000 (21:02 -0000)]
More corlib and System.Data compilation bugs:

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

* attribute.cs: Use proper cast for Events, since we use a MyEventBuilder.

* parameter.cs (ComputeParameterTypes,
ComputeAndDefineParameterTypes): Better error handling: now we
clear the `types' cache if we fail during any of the type lookups.
We also return the status code correctly to our caller

* delegate.cs: If we fail to define a delegate, abort the extra
steps.

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

22 years agoSmall changes to get things to compile with MCS. It compiles now,
Miguel de Icaza [Wed, 1 May 2002 20:29:29 +0000 (20:29 -0000)]
Small changes to get things to compile with MCS.  It compiles now,
but there are too many missing classes that need to be stubbed out.

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

22 years agoMiggy version
Miguel de Icaza [Wed, 1 May 2002 20:15:43 +0000 (20:15 -0000)]
Miggy version

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

22 years agoMiggy version
Miguel de Icaza [Wed, 1 May 2002 20:11:34 +0000 (20:11 -0000)]
Miggy version

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

22 years agoNew file
Miguel de Icaza [Wed, 1 May 2002 20:10:28 +0000 (20:10 -0000)]
New file

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

22 years ago2002-05-01 Rodrigo Moya <rodrigo@ximian.com>
Rodrigo Moya [Wed, 1 May 2002 19:26:06 +0000 (19:26 -0000)]
2002-05-01  Rodrigo Moya <rodrigo@ximian.com>

* doc/ado-net: updated a little bit.

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

22 years agoFlush
Miguel de Icaza [Wed, 1 May 2002 19:22:06 +0000 (19:22 -0000)]
Flush

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

22 years ago2002-05-01 Duncan Mak <duncan@ximian.com>
Duncan Mak [Wed, 1 May 2002 18:06:51 +0000 (18:06 -0000)]
2002-05-01  Duncan Mak  <duncan@ximian.com>

* ListSortDirection.cs: EnumChecked.

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

22 years ago2002-05-01 Rodrigo Moya <rodrigo@ximian.com>
Rodrigo Moya [Wed, 1 May 2002 17:58:24 +0000 (17:58 -0000)]
2002-05-01  Rodrigo Moya <rodrigo@ximian.com>

* ListSortDirection.cs: new enumeration. Please, somebody run
EnumCheck on it, as I don't have a windows machine.

* PropertyDescriptorCollection.cs: new class.

* ITypedList.cs:
* IBindingList.cs: new interfaces.

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

22 years ago (ArrayAccess.DoResolve): Array Access can operate on
Miguel de Icaza [Wed, 1 May 2002 17:49:55 +0000 (17:49 -0000)]
(ArrayAccess.DoResolve): Array Access can operate on
non-variables.

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

22 years ago2002-05-01 Rodrigo Moya <rodrigo@ximian.com>
Rodrigo Moya [Wed, 1 May 2002 17:49:21 +0000 (17:49 -0000)]
2002-05-01  Rodrigo Moya <rodrigo@ximian.com>

* System.Data.SqlClient/SqlClientPermission.cs: added missing
'using's.

* System.Data/MergeFailedEventArgs.cs: new class, contributed
by John Dugaw <jdugaw@unizenconsulting.com>.

* System.Data.build: excluded new files from build.

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

22 years agomore tests
Miguel de Icaza [Wed, 1 May 2002 17:35:57 +0000 (17:35 -0000)]
more tests

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

22 years ago2002-05-01 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Wed, 1 May 2002 17:33:01 +0000 (17:33 -0000)]
2002-05-01  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (Binary.ResolveOperator): for
operator==(object,object) and operator !=(object, object) we also
have to verify that there is an implicit conversion from one to
the other.

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

22 years agoSerialization constructors should be protected.
Duncan Mak [Wed, 1 May 2002 14:09:49 +0000 (14:09 -0000)]
Serialization constructors should be protected.

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

22 years agoWed May 1 17:07:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 1 May 2002 11:22:43 +0000 (11:22 -0000)]
Wed May 1 17:07:56 CEST 2002 Paolo Molaro <lupus@ximian.com>

* dump.c, dump.h, main.c: dump ExportedTypes table.
* get.c: fix get_module (), remove magic numbers.
* monodis.1: update manpage (hi miguel!:)

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

22 years agoWed May 1 17:05:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 1 May 2002 11:18:09 +0000 (11:18 -0000)]
Wed May 1 17:05:40 CEST 2002 Paolo Molaro <lupus@ximian.com>

* SortedList.cs: fix RemoveAt () to use the correct length in
Array.Copy.

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

22 years ago2002-05-01 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 1 May 2002 11:05:31 +0000 (11:05 -0000)]
2002-05-01  Nick Drochak  <ndrochak@gol.com>

* StreamReaderTest.cs:
* StreamWriterTest.cs: Catch and display exception info where it wasn't
being caught before.

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

22 years agoUse the cygwin stable autotools, code from Serge.
Dick Porter [Wed, 1 May 2002 10:50:54 +0000 (10:50 -0000)]
Use the cygwin stable autotools, code from Serge.

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

22 years ago2002-05-01 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 1 May 2002 10:31:43 +0000 (10:31 -0000)]
2002-05-01  Nick Drochak  <ndrochak@gol.com>

* ArrayListTest.cs (TestBinarySearch) : accomodate possible bug in
.NET runtime.

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

22 years ago2002-05-01 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 1 May 2002 10:28:01 +0000 (10:28 -0000)]
2002-05-01  Nick Drochak  <ndrochak@gol.com>

* ArrayList.cs (Add & AddRange) : Throw exceptions where needed.

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

22 years ago2002/05/01 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 1 May 2002 06:36:09 +0000 (06:36 -0000)]
2002/05/01  Nick Drochak <ndrochak@gol.com>

* ArrayListTest.cs (TestCopyTo) : Make assert messages unique and
avoid possible MS.NET bug when test is run on .NET.

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

22 years ago2002/05/01 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 1 May 2002 06:34:30 +0000 (06:34 -0000)]
2002/05/01  Nick Drochak <ndrochak@gol.com>

* ArrayList.cs (CopyTo) : Check parameters and throw exceptions
where needed.

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

22 years agonot yet used by Dns itself
Lawrence Pit [Wed, 1 May 2002 02:59:06 +0000 (02:59 -0000)]
not yet used by Dns itself

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

22 years ago2002-05-01 Duncan Mak <duncan@ximian.com>
Duncan Mak [Wed, 1 May 2002 01:43:51 +0000 (01:43 -0000)]
2002-05-01  Duncan Mak  <duncan@ximian.com>

* DebuggableAttribute.cs: Added missing AttributeUsage attribute.

* Convert.cs:
* Math.cs: Added missing CLSCompliant attributes where necessary.

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

22 years ago2002-05-01 Duncan Mak <duncan@ximian.com>
Duncan Mak [Wed, 1 May 2002 01:26:24 +0000 (01:26 -0000)]
2002-05-01  Duncan Mak  <duncan@ximian.com>

* DirectoryNotFoundException.cs (constructor): Added missing
serialization constructor.

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

22 years agoFix typos.
Duncan Mak [Wed, 1 May 2002 00:19:06 +0000 (00:19 -0000)]
Fix typos.

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

22 years ago2002-04-30 Duncan Mak <duncan@ximian.com>
Duncan Mak [Wed, 1 May 2002 00:13:08 +0000 (00:13 -0000)]
2002-04-30  Duncan Mak  <duncan@ximian.com>

* FileLoadException.cs (constructors): Added missing (string,
string) ctor, as well as (string, string, Exception) ctor.

(Message): Added more info to the error message

(ToString): Added. We'll need to add the StackTrace stuff when
that works.

* FileShare.cs: Add a missing field, Inheritable.

* TextReader.cs: Renamed Synchronised method to Synchronized.

* TextWriter.cs: Renamed Synchronised method to Synchronized.
Renamed protected member coreNewLine to CoreNewLine.

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

22 years ago2002-04-30 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 30 Apr 2002 23:13:38 +0000 (23:13 -0000)]
2002-04-30  Duncan Mak  <duncan@ximian.com>

* ArgumentException.cs (Message):
* ArgumentOutOfRangeException.cs (Message): Added.

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

22 years agoStyle updates from Tim Coleman.
Jason Diamond [Tue, 30 Apr 2002 22:56:21 +0000 (22:56 -0000)]
Style updates from Tim Coleman.

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

22 years ago2002-04-30 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 30 Apr 2002 21:57:42 +0000 (21:57 -0000)]
2002-04-30  Miguel de Icaza  <miguel@ximian.com>

* assign.cs (CompoundAssign): A new class used as a "flag" that
the assignment actually is happening as part of a compound
assignment operator.

During compound assignment, a few new rules exist to enable things
like:

byte b |= 1 + 2

From the spec:

x op= y can be evaluated as x = (T) (x op y) (ie, an explicit cast
to the type of x) if y is implicitly convertible to the type of x,
and the operator is a builtin operator and the return type of the
operator is explicitly convertible to the type of x.

* rootcontext.cs: Reset warning level to 2.  4 catches various
"interesting" features in mcs, we must clean this up at some
point, but currently am trying to kill other bugs ;-)

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

22 years ago2002-04-30 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Tue, 30 Apr 2002 19:35:31 +0000 (19:35 -0000)]
2002-04-30  Jeffrey Stedfast  <fejj@ximian.com>

* rand.c
(ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_GetBytes):
Make the prototypes match.
(ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_GetNonZeroBytes):
Same.

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

22 years ago2002-04-30 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Tue, 30 Apr 2002 19:30:06 +0000 (19:30 -0000)]
2002-04-30  Jeffrey Stedfast  <fejj@ximian.com>

* configure.in: Added checks for timezone stuff.

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

22 years ago2002-04-30 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Tue, 30 Apr 2002 19:29:33 +0000 (19:29 -0000)]
2002-04-30  Jeffrey Stedfast  <fejj@ximian.com>

* icall.c
(ves_icall_System_CurrentTimeZone_GetTimeZoneData): Fixed for
systems that use 'timezone' rather than tm.tm_gmtoff. Also, not
all systems have tm.tm_zone, so use strftime() with %Z to print
the timezone abreviation into a temp string.

* object.c (mono_ldstr): Fixed to use mono_string_chars() macro
rather than mono_array_addr() on a MonoString on Big Endian
machines.

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

22 years ago- wrong date in changelog
Daniel Stodden [Tue, 30 Apr 2002 19:27:41 +0000 (19:27 -0000)]
- wrong date in changelog
- backed out accidental commit in Test/AllTests.cs
- better going to sleep now, sorry

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

22 years agoadded delegate tests and changelog entries
Daniel Stodden [Tue, 30 Apr 2002 19:19:04 +0000 (19:19 -0000)]
added delegate tests and changelog entries

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

22 years ago- Fast RemoveImpl() for delegates, with test cases
Daniel Stodden [Tue, 30 Apr 2002 19:08:08 +0000 (19:08 -0000)]
- Fast RemoveImpl() for delegates, with test cases

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

22 years agosimple testcase for multicastdelegates::combine and ::remove
Daniel Stodden [Tue, 30 Apr 2002 18:47:33 +0000 (18:47 -0000)]
simple testcase for multicastdelegates::combine and ::remove

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

22 years ago2002-04-30 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 30 Apr 2002 18:40:32 +0000 (18:40 -0000)]
2002-04-30  Dick Porter  <dick@ximian.com>

* Thread.cs: If LocalDataStoreSlot already has data set, remove it
before adding a new one.

Use the Thread object destructor to tell the runtime to close the
thread handle.

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

22 years ago2002-04-30 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Tue, 30 Apr 2002 18:32:21 +0000 (18:32 -0000)]
2002-04-30  Jeffrey Stedfast  <fejj@ximian.com>

* atomic.c: Changed to use a normal mutex rather than a spinlock
since a lot of platforms seem to not have them :\

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

22 years ago2002-04-30 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 30 Apr 2002 17:09:00 +0000 (17:09 -0000)]
2002-04-30  Miguel de Icaza  <miguel@ximian.com>

* ecore.cs (SimpleName.SimpleNameResolve): Perform member lookups
in container classes as well.

* expression.cs (Binary.ResolveOperator): Handle string case
before anything else (as operator overloading does emit an error
before doing anything else).

This code could go away when we move to a table driven model, but
i could not come up with a good plan last night.

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

22 years ago * BinaryReader.cs: internal buffer fix. Little-endian conversions.
Sergey Chaban [Tue, 30 Apr 2002 14:32:21 +0000 (14:32 -0000)]
 * BinaryReader.cs: internal buffer fix. Little-endian conversions.
 * BinaryWriter.cs: little-endian conversions.

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

22 years ago2002-04-30 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 30 Apr 2002 13:07:29 +0000 (13:07 -0000)]
2002-04-30  Dietmar Maurer  <dietmar@ximian.com>

* string-icalls.c (ves_icall_System_String_InternalReplace_Str):
fix bug 24041

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

22 years ago2002-04-30 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 30 Apr 2002 12:17:27 +0000 (12:17 -0000)]
2002-04-30  Dick Porter  <dick@ximian.com>

* Completely rewrote the handle waiting code: removed the helper
thread and its attendant complexity.  All handle waiting is now
abstracted into the WaitForSingleObject() and
WaitForMultipleObjects() functions.

* Implemented inter-process sharing of handles using sysv shared
memory.  This makes handles even more opaque, with a handle now
just an index into an array.

2002-04-30  Dick Porter  <dick@ximian.com>

* socket-io.c: Cope with SOCKET being an integer rather than a
pointer now.

* threads.c: Added Thread_free_internal, to deal with thread
handle cleanup.  Moved calls to handle_store() and handle_remove()
to start_wrapper(), so each can only be called once.  Allocate
synchronisation blocks with GC_malloc(), and use GC finalisation
to close the handles.

* icall.c: added System.Threading.Thread::Thread_free_internal

2002-04-30  Dick Porter  <dick@ximian.com>

* acconfig.h:
* configure.in: Added option to disable using shared memory for
handles

2002-04-30  Dick Porter  <dick@ximian.com>

* shmdel.c:
* scratch.c:
* hps.c:
* Makefile.am: Some tools to help debug shared memory handles:
'hps' shows handle status, 'scratch' displays info about scratch
data (such as handle names), 'shmdel' deletes the shared memory
segment.

2002-04-30  Dick Porter  <dick@ximian.com>

* interp.c: Tell glib to not abort when g_log() etc print
recursively

2002-04-30  Dick Porter  <dick@ximian.com>

* mono.c (main): Tell glib to not abort when g_log() etc print
recursively

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

22 years agoCSharpName using regex, warninglevel set to 4 (= default), added null check for field...
Lawrence Pit [Tue, 30 Apr 2002 12:05:23 +0000 (12:05 -0000)]
CSharpName using regex, warninglevel set to 4 (= default), added null check for fields in Emit

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

22 years agoFix thinko pointed out by rxdan.
Paolo Molaro [Tue, 30 Apr 2002 10:34:00 +0000 (10:34 -0000)]
Fix thinko pointed out by rxdan.

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

22 years ago (MUL) use shift when possible.
Dietmar Maurer [Tue, 30 Apr 2002 05:17:47 +0000 (05:17 -0000)]
(MUL) use shift when possible.
(DIV) use shift when possible.
impl. various opt. with coni4

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

22 years ago2002/04/30 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 30 Apr 2002 03:51:49 +0000 (03:51 -0000)]
2002/04/30  Nick Drochak <ndrochak@gol.com>

* ArrayListTest.cs (TestInsertRange) : Make assert messages unique.

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

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

* ArrayList.cs (Clear) : Throw exception if ReadOnly or FixedSize.
(InsertRange) : Implement.
(SetRange) : Implement.

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

22 years ago2002-04-30 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 30 Apr 2002 03:18:46 +0000 (03:18 -0000)]
2002-04-30  Dietmar Maurer  <dietmar@ximian.com>

* x86.brg: opt. LDELEMA impl.

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

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

* exception.c (arch_handle_exception): use ctx->SC_EBP in
end_of_stack check as suggested by Linus Upson <linus@linus.com>

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

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

* typemanager.cs (CSharpName): reimplemented with Lupus
suggestion.

2002-04-28  Miguel de Icaza  <miguel@ximian.com>

* statement.cs (If): correclty implement Resolve, because we were
not catching sem errors in there.  The same process is needed
everywhere else.
(Return, StatementExpression, For, While, Do, Throw, Lock): Implement Resolve

(Statement.Warning_DeadCodeFound): Factorize code.
(While): Report dead code here too.

(Statement): Added Resolve virtual method to allow
for resolution split from the emit code.

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

22 years agoAdded System.Xml.Xsl stubs courtesy of Tim Coleman <tim@timcoleman.com>.
Jason Diamond [Mon, 29 Apr 2002 21:55:36 +0000 (21:55 -0000)]
Added System.Xml.Xsl stubs courtesy of Tim Coleman <tim@timcoleman.com>.

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

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

* ArrayListTest.cs (TestTrimToSize): Change test so that it doesn't
rely on the specific timing of a capacity change.  Our corlib doubles
capacity sooner than the reference system does.

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

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

* ArrayList.cs (TrimToSize) : Implement.

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

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

* MonoType.cs: Remove unused variable and eliminate a compiler warning.

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

22 years agoUpdate man page
Miguel de Icaza [Mon, 29 Apr 2002 12:18:06 +0000 (12:18 -0000)]
Update man page

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

22 years agoRecognise more arm system names.
Paolo Molaro [Mon, 29 Apr 2002 12:16:51 +0000 (12:16 -0000)]
Recognise more arm system names.

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

22 years agoRemoved mono_string_new_wrapper().
Paolo Molaro [Mon, 29 Apr 2002 12:14:39 +0000 (12:14 -0000)]
Removed mono_string_new_wrapper().

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

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

* UInt32Test.cs: More verbose on unexepected exception to eliminate
compiler warning.

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

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

* ArrayListTest.cs: Catch unexpected exception typs and report as
failures.

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

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

* IPAddressTest.cs: Remove unused code to eliminate compiler warnings.

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

22 years ago * x86.brg (LDLEN, UNBOX): removed unnecessary NULL check.
Dietmar Maurer [Mon, 29 Apr 2002 10:56:09 +0000 (10:56 -0000)]
* x86.brg (LDLEN, UNBOX): removed unnecessary NULL check.

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

22 years ago2002-04-29 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 29 Apr 2002 10:19:16 +0000 (10:19 -0000)]
2002-04-29  Dietmar Maurer  <dietmar@ximian.com>

* exception.c: included the Freebsd patch from Sandro Tolaini
<sandro@focuseek.com>

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

22 years agoMon Apr 29 15:32:02 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 29 Apr 2002 09:45:51 +0000 (09:45 -0000)]
Mon Apr 29 15:32:02 CEST 2002 Paolo Molaro <lupus@ximian.com>

* Environment.cs: support for Exit(), CommandLine, CommandLineArgs ().

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

22 years agoMon Apr 29 15:33:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 29 Apr 2002 09:45:44 +0000 (09:45 -0000)]
Mon Apr 29 15:33:27 CEST 2002 Paolo Molaro <lupus@ximian.com>

* icall.c: support Environment.Exit, CommandLineArgs().

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

22 years agoMon Apr 29 15:18:00 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 29 Apr 2002 09:30:04 +0000 (09:30 -0000)]
Mon Apr 29 15:18:00 CEST 2002 Paolo Molaro <lupus@ximian.com>

* mono.c, jit.c: use mono_runtime_run_main ().

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

22 years agoMon Apr 29 15:15:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 29 Apr 2002 09:28:49 +0000 (09:28 -0000)]
Mon Apr 29 15:15:57 CEST 2002 Paolo Molaro <lupus@ximian.com>

* object.c, object.h: added mono_runtime_run_main () and
mono_runtime_get_main_args () for use in System.Environment.

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

22 years agoFix sample code so that it has a chance of running.
Paolo Molaro [Mon, 29 Apr 2002 09:26:30 +0000 (09:26 -0000)]
Fix sample code so that it has a chance of running.

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

22 years ago * jit.c (mono_analyze_stack): dont call methods on Object with
Dietmar Maurer [Mon, 29 Apr 2002 09:03:04 +0000 (09:03 -0000)]
* jit.c (mono_analyze_stack): dont call methods on Object with
METHOD_ATTRIBUTE_FINAL directly because it breaks remoting.

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

22 years agox86.brg: added more CONV_U rules
Dietmar Maurer [Mon, 29 Apr 2002 08:12:43 +0000 (08:12 -0000)]
x86.brg: added more CONV_U rules

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

22 years agoMon Apr 29 13:45:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 29 Apr 2002 07:57:22 +0000 (07:57 -0000)]
Mon Apr 29 13:45:11 CEST 2002 Paolo Molaro <lupus@ximian.com>

* gc.c: fix thinko, enable actual finalization since the jit is now
fixed.

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

22 years ago(mono_analyze_stack): emit right CONV_UX opcodes: fixes bug 23547
Dietmar Maurer [Mon, 29 Apr 2002 07:55:08 +0000 (07:55 -0000)]
(mono_analyze_stack): emit right CONV_UX opcodes: fixes bug 23547

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

22 years agoSmall test updates.
Paolo Molaro [Mon, 29 Apr 2002 07:00:47 +0000 (07:00 -0000)]
Small test updates.

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

22 years agoMon Apr 29 12:47:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 29 Apr 2002 07:00:19 +0000 (07:00 -0000)]
Mon Apr 29 12:47:36 CEST 2002 Paolo Molaro <lupus@ximian.com>

* gc.c, object.c: take into account that an object may be offset wrt the address
returned by GC_malloc().

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

22 years ago2002-04-29 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 29 Apr 2002 06:27:31 +0000 (06:27 -0000)]
2002-04-29  Dietmar Maurer  <dietmar@ximian.com>

* jit.c (mono_analyze_stack): avoid recursive call of virtual
methods: fixes Bug #23778

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

22 years agoMon Apr 29 12:14:39 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 29 Apr 2002 06:27:09 +0000 (06:27 -0000)]
Mon Apr 29 12:14:39 CEST 2002 Paolo Molaro <lupus@ximian.com>

* image.c: handle files without entries in the assembly table (modules).

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

22 years agoMon Apr 29 12:12:35 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 29 Apr 2002 06:25:28 +0000 (06:25 -0000)]
Mon Apr 29 12:12:35 CEST 2002 Paolo Molaro <lupus@ximian.com>

* dump.c, dump.h, main.c: support for dumping the manifest resource table.

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

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

* exception.c (arch_handle_exception): only g_assert(cleanup) if
we really need it.

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

22 years ago2002-04-29 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Mon, 29 Apr 2002 03:31:13 +0000 (03:31 -0000)]
2002-04-29  Daniel Morgan <danmorg@sc.rr.com>

* Test/ReadPostgresData.cs: added - Uses the
PostgresLibrary to retrieve a recordset.
This is not meant to be used in Production, but as a
learning aid in coding
class System.Data.SqlClient.SqlDataReader.
This sample does work.

* Test/TestSqlDataReader.cs: added - used
to test SqlDataReader (does not work yet)
Forgot to add to ChangeLog on last commit.

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

22 years ago*** empty log message ***
Daniel Morgan [Sun, 28 Apr 2002 21:45:51 +0000 (21:45 -0000)]
*** empty log message ***

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

22 years ago2002-04-28 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sun, 28 Apr 2002 21:41:21 +0000 (21:41 -0000)]
2002-04-28  Duncan Mak  <duncan@ximian.com>

* ArrayList.cs (InsertRange):
(SetRange):
(Remove):
(TrimToSize): Throw exceptions where needed.

* DivideByZeroException.cs: Added missing serialization constructor.

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

22 years ago2002-04-29 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Sun, 28 Apr 2002 21:27:54 +0000 (21:27 -0000)]
2002-04-29  Nick Drochak  <ndrochak@gol.com>

* ArrayListTest.cs (TestBinarySearch): Catch the correct exception here.

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

22 years ago2002-04-29 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Sun, 28 Apr 2002 20:13:57 +0000 (20:13 -0000)]
2002-04-29  Nick Drochak  <ndrochak@gol.com>

* ArrayListTest.cs (): Remove test on unsorted array.  Behavior is
undefined according to docs. Re-added test that was commented out.

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

22 years ago2002-04-28 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sun, 28 Apr 2002 19:50:58 +0000 (19:50 -0000)]
2002-04-28  Duncan Mak  <duncan@ximian.com>

ArrayList.cs (InsertRange): Throw exceptions where needed.

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

22 years ago2002-04-29 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Sun, 28 Apr 2002 19:42:42 +0000 (19:42 -0000)]
2002-04-29  Nick Drochak  <ndrochak@gol.com>

* Hashtable.cs (CopyTo): Throw exceptions where needed.

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

22 years ago2002-04-28 Duncan Mak <duncan@ximian.com>;
Duncan Mak [Sun, 28 Apr 2002 19:38:48 +0000 (19:38 -0000)]
2002-04-28  Duncan Mak  <duncan@ximian.com>;

* XmlSignificantWhitespace.cs (Value):
* XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
block. Added new private method, IsValidWhitespaceChar, for
checking.

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

22 years agoCommit TODO
Miguel de Icaza [Sun, 28 Apr 2002 17:28:09 +0000 (17:28 -0000)]
Commit TODO

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

22 years ago2002-04-28 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 28 Apr 2002 15:55:06 +0000 (15:55 -0000)]
2002-04-28  Miguel de Icaza  <miguel@ximian.com>

* test-108.cs: Improve test

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

22 years ago2002-04-28 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 28 Apr 2002 15:54:18 +0000 (15:54 -0000)]
2002-04-28  Miguel de Icaza  <miguel@ximian.com>

* statement.cs (Statement.Warning_DeadCodeFound): Factorize code.
(While): Report dead code here too.

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

22 years agoAdd new test for dead code elimination
Miguel de Icaza [Sun, 28 Apr 2002 15:51:31 +0000 (15:51 -0000)]
Add new test for dead code elimination

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

22 years ago2002-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sun, 28 Apr 2002 15:51:25 +0000 (15:51 -0000)]
2002-04-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* configure.in: fix for conditional "THREADS_PTHREAD" was never
defined problem under cygwin with latest version of automake and
autoconf. Patch from Jeroen Janssen <japj@darius.demon.nl>.

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

22 years agoImplement Loop inversion for While statements and dead code elimination.
Miguel de Icaza [Sun, 28 Apr 2002 15:49:04 +0000 (15:49 -0000)]
Implement Loop inversion for While statements and dead code elimination.

2002-04-28  Miguel de Icaza  <miguel@ximian.com>

* statement.cs (Statement): Added Resolve virtual method to allow
for resolution split from the emit code.

2002-04-26  Miguel de Icaza  <miguel@ximian.com>

* statement.cs (EmitBoolExpression): No longer try to resolve the
expression here.
(MakeBoolean): New utility function that resolve, implicitly
converts to boolean and tags the expression.

(If, Do): Implement dead code elimination.
(While): Implement loop inversion

(Do, While, For, If): Resolve the expression prior to calling our
code generation.

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

22 years ago(FixedSize): Fixed typo.
Duncan Mak [Sun, 28 Apr 2002 15:37:12 +0000 (15:37 -0000)]
(FixedSize): Fixed typo.

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

22 years ago2002-04-28 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sun, 28 Apr 2002 15:34:40 +0000 (15:34 -0000)]
2002-04-28  Duncan Mak  <duncan@ximian.com>

* CollectionChangeAction.cs: Changed enum layout to fit the MS
implementation. Please use EnumCheck!

* UnauthorizedAccessException.cs: Added the missing
          Serializable attribute.

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

22 years ago2002-04-28 Rodrigo Moya <rodrigo@ximian.com>
Rodrigo Moya [Sun, 28 Apr 2002 15:31:30 +0000 (15:31 -0000)]
2002-04-28  Rodrigo Moya <rodrigo@ximian.com>

* System.Data/DataViewSetting.cs: new class.

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

22 years ago2002-04-28 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sun, 28 Apr 2002 15:29:07 +0000 (15:29 -0000)]
2002-04-28  Duncan Mak  <duncan@ximian.com>

* ArrayList.cs (ReadOnly):
(IList.ReadOnly): Implemented.

(Synchronized):
(IList.Synchronized): Implemented.

(ixedSize):
(IList.FixedSize): Implemented.

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

22 years agoExcluded files
Rodrigo Moya [Sun, 28 Apr 2002 15:23:23 +0000 (15:23 -0000)]
Excluded files

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

22 years agoExcluded files
Rodrigo Moya [Sun, 28 Apr 2002 15:22:14 +0000 (15:22 -0000)]
Excluded files

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

22 years ago2002-04-28 Rodrigo Moya <rodrigo@ximian.com>
Rodrigo Moya [Sun, 28 Apr 2002 15:02:31 +0000 (15:02 -0000)]
2002-04-28  Rodrigo Moya <rodrigo@ximian.com>

* System.Data/DataViewManager.cs: new class.

* System.Data.SqlTypes/INullable.cs: properties for interfaces
don't have implementation.

* System.Data.SqlTypes/SqlInt32.cs:
* System.Data.SqlTypes/SqlString.cs:
* System.Data.SqlTypes/SqlBoolean.cs: removed destructor, since
these are strctures.

* System.Data.SqlClient/SqlClientPermissionAttribute.cs: added
missing 'using's.

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

22 years ago2002-04-28 Rodrigo Moya <rodrigo@ximian.com>
Rodrigo Moya [Sun, 28 Apr 2002 13:31:38 +0000 (13:31 -0000)]
2002-04-28  Rodrigo Moya <rodrigo@ximian.com>

* CollectionChangeAction.cs: new enumeration.

* CategoryAttribute.cs: moved the 'return' keyword to the
end of the method, to avoid compilation errors on Linux for
all CategoryAttribute properties.

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