mono.git
20 years ago.cvsignore update
Ben Maurer [Mon, 25 Aug 2003 13:38:19 +0000 (13:38 -0000)]
.cvsignore update

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

20 years ago * object.h: Added call_type field to MonoMethodMessage and the corresponding
Lluis Sanchez [Mon, 25 Aug 2003 12:09:25 +0000 (12:09 -0000)]
* object.h: Added call_type field to MonoMethodMessage and the corresponding
enumeration of values. Removed fields to store remote call output values in
MonoAsyncResult. Not needed any more.
* object.c: Initialize call_type and async_result fields in mono_message_init.
* marshal.c: mono_delegate_begin_invoke(): for proxies, set call_type before
dispatching the message.
mono_delegate_end_invoke (): delegate to the proxy the work of waiting for the
async call to finish. To do it use a message with EndInvoke call type.

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

20 years ago * RemotingProxy.cs: Use CallType property to check the type of
Lluis Sanchez [Mon, 25 Aug 2003 11:32:52 +0000 (11:32 -0000)]
* RemotingProxy.cs: Use CallType property to check the type of
  the message.

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

20 years ago * AsyncResult.cs: Added method EndInvoke(). Fixed SyncProcessMessage().
Lluis Sanchez [Mon, 25 Aug 2003 11:31:16 +0000 (11:31 -0000)]
* AsyncResult.cs: Added method EndInvoke(). Fixed SyncProcessMessage().
* CallContext.cs: Clean current logical context before setting the new
  values form LogicalCallContext (SetCurrentCallContext).
* MonoMethodMessage.cs: Added new CallType field and enum.
* StackBuilderSink.cs: Improved error message.

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

20 years ago * ClientChannelSinkStack.cs: Implemented DispatchException.
Lluis Sanchez [Mon, 25 Aug 2003 11:23:33 +0000 (11:23 -0000)]
* ClientChannelSinkStack.cs: Implemented DispatchException.

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

20 years ago * RemotingServices.cs: Some small fixes.
Lluis Sanchez [Mon, 25 Aug 2003 11:21:55 +0000 (11:21 -0000)]
* RemotingServices.cs: Some small fixes.

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

20 years ago * SoapTypeMapper.cs: Added mappings for more primitive types.
Lluis Sanchez [Mon, 25 Aug 2003 11:13:56 +0000 (11:13 -0000)]
* SoapTypeMapper.cs: Added mappings for more primitive types.
* SoapWriter.cs: Use XmlSchema.Namespace and XmlSchema.InstanceNamespace
  instead of string constants.

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

20 years ago2003-08-25 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 25 Aug 2003 10:28:50 +0000 (10:28 -0000)]
2003-08-25  Zoltan Varga  <vargaz@freemail.hu>

* mono.pc.in: Added gthread-2.0.

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

20 years ago2003-08-25 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 25 Aug 2003 10:07:32 +0000 (10:07 -0000)]
2003-08-25  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_type_blittable): OBJECT is not blittable.
(mono_method_blittable): Methods which have marshalling descriptors
are not blittable either. Fixes #47842.

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

20 years ago * test-31.il: Added tests for static properties. Also made the code
Jackson Harper [Mon, 25 Aug 2003 00:49:08 +0000 (00:49 -0000)]
* test-31.il: Added tests for static properties. Also made the code
for methods verifiable IL.

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

20 years ago* RealProxy.cs, RemotingProxy.cs: move the LogicalCallContext
Vladimir Vukicevic [Sun, 24 Aug 2003 23:37:12 +0000 (23:37 -0000)]
* RealProxy.cs, RemotingProxy.cs: move the LogicalCallContext
setup/restoration into RealProxy's PrivateInvoke, so that custom
RealProxy's get a LogicalCallContext.

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

20 years agocompleted the set of floating point ops
ct [Sun, 24 Aug 2003 22:49:45 +0000 (22:49 -0000)]
completed the set of floating point ops

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

20 years agomodified to be compatible with specification
Alexandre Pigolkine [Sun, 24 Aug 2003 19:28:17 +0000 (19:28 -0000)]
modified to be compatible with specification

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

20 years ago2003-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sun, 24 Aug 2003 19:23:25 +0000 (19:23 -0000)]
2003-08-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* typemanager.cs: fixed the values of MethodFlags. Closes #47855 and
#47854.

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

20 years ago2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Sun, 24 Aug 2003 19:10:41 +0000 (19:10 -0000)]
2003-08-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* XmlValidatingReader.cs : Implemented SchemaType. Added support for
  ValidationType.Schema. Added support for XmlResolver. Fixed
  ReadTypedValue() not to consume EndElement.

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

20 years ago2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Sun, 24 Aug 2003 19:10:01 +0000 (19:10 -0000)]
2003-08-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* System.Xml.dll.sources : added XsdParticleValidationState.cs
  and XsdValidatingReader.cs.
* System.Xml_test.dll.sources : added XsdParticleValidationTests.cs
  and XsdValidatingReaderTests.cs.

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

20 years ago2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Sun, 24 Aug 2003 19:06:49 +0000 (19:06 -0000)]
2003-08-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* XsdValidatingReader.cs,
  XsdParticleValidationState.cs : Initial checkin.

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

20 years ago2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Sun, 24 Aug 2003 19:04:01 +0000 (19:04 -0000)]
2003-08-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* XmlAttributeTests.cs : Added DefaultAttributeRemoval() and
  EmptyStringHasTextNode().
* XmlElementTests.cs : Added RemoveDoesNotRemoveDefaultAttributes().
* XmlReaderCommonTests.cs : Added overroaded AssertNodeValues() and
  ReadAttributeValue().
* XmlTextReaderTests.cs :
  Added NotAllowedCharRef() and ExpandParameterEntity().
  Also added but ignored tests: UndeclaredEntityInIntSubsetOnlyXml()
  and UndeclaredEntityInStandaloneXml().
* XmlValidatingReaderTests.cs : TestAttributeDefaultContribution()
  refactory.
* Added XsdParticleValidationTests.cs and XsdValidatingReaderTests.cs.

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

20 years ago2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Sun, 24 Aug 2003 19:02:20 +0000 (19:02 -0000)]
2003-08-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* 1.xsd, 2.xsd, 3.xsd, 4.xsd : Initial checkin.

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

20 years agoadded rss -> text/xml mimetype
Gonzalo Paniagua Javier [Sun, 24 Aug 2003 17:21:49 +0000 (17:21 -0000)]
added rss -> text/xml mimetype

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

20 years agofixed the build on win
Gonzalo Paniagua Javier [Sun, 24 Aug 2003 17:19:32 +0000 (17:19 -0000)]
fixed the build on win

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

20 years ago* System.Drawing.dll.sources: Add Cairo implementation.
Duncan Mak [Sun, 24 Aug 2003 17:15:59 +0000 (17:15 -0000)]
* System.Drawing.dll.sources: Add Cairo implementation.

* cairo-api.cs: New file, replace Cairo.cs and cairo.cs. That
naming thing is just too confusing.

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

20 years agoMake all references to the enums (Cairo.Foo) be just
Duncan Mak [Sun, 24 Aug 2003 17:07:23 +0000 (17:07 -0000)]
Make all references to the enums (Cairo.Foo) be just
Foo. This should (hopefully) fix the build on Windows.

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

20 years agoFix the link to the ADO.Net and ASP.Net page; thanks to John Thomas
Duncan Mak [Sun, 24 Aug 2003 16:49:51 +0000 (16:49 -0000)]
Fix the link to the ADO.Net and ASP.Net page; thanks to John Thomas
<jcthomas5@bigpond.com> for noticing the bug.

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

20 years ago2003-08-24 Sebastien Pouliot <spouliot@videotron.ca>
Sebastien Pouliot [Sun, 24 Aug 2003 16:48:45 +0000 (16:48 -0000)]
2003-08-24  Sebastien Pouliot  <spouliot@videotron.ca>

* SymmetricAlgorithm.cs: Fixed IV length exception for stream ciphers
(e.g. RC4) which don't uses IV. This needs more tests for small IV...

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

20 years ago2003-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sun, 24 Aug 2003 16:13:43 +0000 (16:13 -0000)]
2003-08-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TcpListenerTest.cs: added more tests.

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

20 years ago2003-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sun, 24 Aug 2003 16:04:24 +0000 (16:04 -0000)]
2003-08-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TcpListener.cs: various fixes to make the new tests pass. Closes
bug #47848.

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

20 years ago2003-08-24 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sun, 24 Aug 2003 08:09:59 +0000 (08:09 -0000)]
2003-08-24  Duncan Mak  <duncan@ximian.com>

* ListControl.cs: Indentation, coding style fixes.

2003-08-24  Duncan Mak  <duncan@ximian.com>

Patches from Brian Takita <brian.takita@runbox.com>

* GroupBox.cs (OnPaintBackground): Commented out.
* ListControl.cs (DataSource): Fixed visibility of property and
field.
* MonthCalander.cs: Should match Specs better.

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

20 years ago2003-08-24 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sun, 24 Aug 2003 07:59:54 +0000 (07:59 -0000)]
2003-08-24  Duncan Mak  <duncan@ximian.com>

* System.Drawing.dll.sources: Add Cairo implementation.

2003-08-24  Duncan Mak  <duncan@ximian.com>

Initial checkin of System.Drawing.XrImpl ported to use Cairo.

* Graphics.cs (DrawCurve):
(DrawImageUnscaled):
(IsVisible):Implement the overloads in terms of the other overloads.

(FillClosedCurve): Implement the simple APIs, the default tension
is 0.5, the default FillMode is FillMode.Alternate.

* cairo.cs: A copy of the CairoAPI class from the Mono.Cairo
assembly, with some method parameter/return type changed to better
fit the usage within System.Drawing.

* gdk-helpers.cs: Emulate some of Gdk.Pixbuf's API here,
basically the same as XrImpl's GDKfunctions.cs, but the names of
the functions are nicer, with the help of the DllImportAttribute's
EntryPoint field.

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

20 years ago(FillEllipse): Implemented.
Duncan Mak [Sun, 24 Aug 2003 07:28:28 +0000 (07:28 -0000)]
(FillEllipse): Implemented.

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

20 years agoMoving build to use the 1.1 target, per Miguel's request.
Ben Maurer [Sun, 24 Aug 2003 04:37:00 +0000 (04:37 -0000)]
Moving build to use the 1.1 target, per Miguel's request.

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

20 years agoDebug output removed
Alexandre Pigolkine [Sat, 23 Aug 2003 23:57:21 +0000 (23:57 -0000)]
Debug output removed

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

20 years agoDrawRadioButton and DrawCheckBox improved
Alexandre Pigolkine [Sat, 23 Aug 2003 23:43:57 +0000 (23:43 -0000)]
DrawRadioButton and DrawCheckBox improved

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

20 years agoClear, DrawImage functions
Alexandre Pigolkine [Sat, 23 Aug 2003 23:40:43 +0000 (23:40 -0000)]
Clear, DrawImage functions

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

20 years agodelegate Clear to implementation
Alexandre Pigolkine [Sat, 23 Aug 2003 23:39:09 +0000 (23:39 -0000)]
delegate Clear to implementation

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

20 years agoset ImageFormat and PixelFormat in contstuctors, GetDeviceCaps function and parameters
Alexandre Pigolkine [Sat, 23 Aug 2003 09:39:37 +0000 (09:39 -0000)]
set ImageFormat and PixelFormat in contstuctors, GetDeviceCaps function and parameters

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

20 years ago2003-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sat, 23 Aug 2003 08:26:48 +0000 (08:26 -0000)]
2003-08-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* assembly.c: fix the build on windows.

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

20 years agoforgot to update this
Ben Maurer [Sat, 23 Aug 2003 02:12:01 +0000 (02:12 -0000)]
forgot to update this

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

20 years agonew keyword added, SetBoundsCore for ComboBox, Enabled property in Control.cs
Alexandre Pigolkine [Fri, 22 Aug 2003 23:39:13 +0000 (23:39 -0000)]
new keyword added, SetBoundsCore for ComboBox, Enabled property in Control.cs

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

20 years ago64-bit related fixes from Laurent Morichetti
Duncan Mak [Fri, 22 Aug 2003 21:59:10 +0000 (21:59 -0000)]
64-bit related fixes from Laurent Morichetti
<l_m@pacbell.net>. Patch approval from Miguel.

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

20 years agoRemove HighWaterStack for the time being.
Ben Maurer [Fri, 22 Aug 2003 19:45:03 +0000 (19:45 -0000)]
Remove HighWaterStack for the time being.

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

20 years ago2003-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 22 Aug 2003 17:00:27 +0000 (17:00 -0000)]
2003-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpRequest.cs: quick way of checking that the path is within the
root for the application. Thanks to Johannes for reporting.

* HttpRuntime.cs: use the status code from teh exception when it'ss a
HttpException.

* StaticFileHandler.cs: forbidden is 403.

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

20 years ago2003-08-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 22 Aug 2003 16:51:00 +0000 (16:51 -0000)]
2003-08-22  Martin Baulig  <martin@ximian.com>

* class.cs (TypeManager.DefineType): When defining a nested type,
call DefineType() on our parent; fixes #47801.

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

20 years ago2003-08-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 22 Aug 2003 16:29:21 +0000 (16:29 -0000)]
2003-08-22  Martin Baulig  <martin@ximian.com>

* class.cs (MethodData.Define): While checking if a method is an
interface implementation, improve the test a bit more to fix #47654.

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

20 years agocompile time warning removed
Alexandre Pigolkine [Fri, 22 Aug 2003 16:28:20 +0000 (16:28 -0000)]
compile time warning removed

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

20 years ago2003-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 22 Aug 2003 16:27:53 +0000 (16:27 -0000)]
2003-08-22  Zoltan Varga  <vargaz@freemail.hu>

* main.c (dis_event_list): Same for event methods.

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

20 years agomodified to be compatible with specification
Alexandre Pigolkine [Fri, 22 Aug 2003 16:26:07 +0000 (16:26 -0000)]
modified to be compatible with specification

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

20 years ago2003-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 22 Aug 2003 16:24:06 +0000 (16:24 -0000)]
2003-08-22  Zoltan Varga  <vargaz@freemail.hu>

* get.c (dis_stringify_method_signature): New argument specifying
whenever to return a fully qualified method name.
* dump.c main.c: Updated to work with the new function.

* main.c (dis_property_methods): Print fully qualified method names
for property methods. Fixes #46221.

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

20 years ago2003-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 22 Aug 2003 15:21:29 +0000 (15:21 -0000)]
2003-08-22  Zoltan Varga  <vargaz@freemail.hu>

* driver.c mini.c: Use an environment variable instead of a global
variable. Also fix the build.

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

20 years ago2003-08-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 22 Aug 2003 14:57:12 +0000 (14:57 -0000)]
2003-08-22  Martin Baulig  <martin@ximian.com>

* expression.cs (Probe.DoResolve): Check whether `expr' resolved
correctly; fixes #47722.

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

20 years agoobject.cs: Fixed bug #47785.
Lluis Sanchez [Fri, 22 Aug 2003 14:14:29 +0000 (14:14 -0000)]
object.cs: Fixed bug #47785.

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

20 years ago * HttpClientChannel.cs: Changed text for user-agent header (removed references
Lluis Sanchez [Fri, 22 Aug 2003 14:09:48 +0000 (14:09 -0000)]
* HttpClientChannel.cs: Changed text for user-agent header (removed references
  to MS.NET).
  Removed try/catch from AsyncProcessRequest. If there is an exception it must
  flow to the caller.
  in AsyncRequestHandler, improved management of exceptions. HttpWebRequest
  throws an exception if the result code is 400, 500. Is is not a communication
  error, but an application or server error. The content of the body must be
  deserialized like in normal responses.
  In CreateWebRequest, if the stream being sent is a MemoryStream, use a more
  efficient way of writing the content.
  In SendAndRecieve, same as in AsyncRequestHandler. Also moved some code to a
  new method named ReceiveResponse, so it can be reused from AsyncRequestHandler.
* HttpHelper.cs: Removed some debugging code that is not needed.
* HttpServer.cs: Improved formatting of some code.
  In CheckRequest method, send a 100-continue response if the request has
  the header: expect:100-continue.
  Method SendResponse: the remoting formatter may include the result code and
  reason phrase to use in the transport headers. Used them if provided.
* HttpServerChannel.cs: Use ThreadPool to create the thread that will answer
  a request.

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

20 years ago2003-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 22 Aug 2003 13:57:44 +0000 (13:57 -0000)]
2003-08-22  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mini_init): Call g_thread_init () to make glib thread-safe.
Fixes #47682. Thanks to Laurent Morichetti (l_m@pacbell.net) for
reporting this.

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

20 years ago2003-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 22 Aug 2003 13:56:26 +0000 (13:56 -0000)]
2003-08-22  Zoltan Varga  <vargaz@freemail.hu>

* interp.c (main): Call g_thread_init () to make glib thread-safe.
Fixes #47682. Thanks to Laurent Morichetti (l_m@pacbell.net) for
reporting this.

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

20 years ago2003-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 22 Aug 2003 13:54:36 +0000 (13:54 -0000)]
2003-08-22  Zoltan Varga  <vargaz@freemail.hu>

* configure.in: Added gthread-2.0 to GLIB_CFLAGS and GLIB_LIBS, so we
can call g_thread_init ().

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

20 years ago * SoapClientFormatterSink.cs: Fixed a some bugs to make async calls work.
Lluis Sanchez [Fri, 22 Aug 2003 12:51:34 +0000 (12:51 -0000)]
* SoapClientFormatterSink.cs: Fixed a some bugs to make async calls work.
* SoapMessageFormatter.cs: Fixed some problems with out and ref parameters.
* SoapServerFormatterSink.cs: Improved catching of exceptions.

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

20 years ago2003-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 22 Aug 2003 12:42:17 +0000 (12:42 -0000)]
2003-08-22  Zoltan Varga  <vargaz@freemail.hu>

* driver.c mini.c: Added --with-valgrind option to turn off some
code which prevents mono from running under valgrind.

* mini.c (mono_emit_call_args): Fixed warning.

* mini.c (mono_emulate_opcode): Fixed warning.

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

20 years ago * System.Runtime.Remoting_test.dll.sources: Added DelegateCalls.cs test file.
Lluis Sanchez [Fri, 22 Aug 2003 12:39:22 +0000 (12:39 -0000)]
* System.Runtime.Remoting_test.dll.sources: Added DelegateCalls.cs test file.

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

20 years ago * BaseCalls.cs: Create 3 test remote objects, one for each kind of access,
Lluis Sanchez [Fri, 22 Aug 2003 12:39:02 +0000 (12:39 -0000)]
* BaseCalls.cs: Create 3 test remote objects, one for each kind of access,
  to avoid reuse of client proxies.
* CallSeq.cs: Now, "domain ID" is set manually.
* ContextsTest.cs: Added initialization of common domain id. Other small fixes.
* ReflectionCalls.cs: Get the method for the invoke for the correct type.
  GetType() for a proxy to interface always return MarshalByRefObject.
* TcpCalls.cs, HttpCalls.cs: Added delegate tests.
* DelegateCalls.cs: New test suite for calls using delegates.

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

20 years agomodifications for ComboBox sample
Alexandre Pigolkine [Fri, 22 Aug 2003 09:39:13 +0000 (09:39 -0000)]
modifications for ComboBox sample

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

20 years ago * string-icalls.c (StringReplace): If their are no occurances of
Jackson Harper [Fri, 22 Aug 2003 06:31:39 +0000 (06:31 -0000)]
    * string-icalls.c (StringReplace): If their are no occurances of
the old string found return a reference to the supplied
string. This saves some memory and matches MS behavoir.

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

20 years agoBrian Takita posted a revision to the winforms list.
Duncan Mak [Fri, 22 Aug 2003 04:44:40 +0000 (04:44 -0000)]
Brian Takita posted a revision to the winforms list.

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

20 years agoLate night patch applying actions ...
Duncan Mak [Fri, 22 Aug 2003 04:37:11 +0000 (04:37 -0000)]
Late night patch applying actions ...

The following two fixes bug #40315.

* Tds.cs (ProcessEndToken): RecordsAffected was not filled
correctly. I've found out that the record count was submitted for
TdsPacketSubType.Done. So I changed the behaviour to include this
(without deeper knowledge of the TDS protocol). Patch from J�rg
Rosenkranz <joergr@voelcker.com>.

* SqlCommand.cs (ExecuteNonQuery): Return
Connection.Tds.RecordsAffected if it is successful.  Patch from
J�rg Rosenkranz <joergr@voelcker.com>.

* ListControl.cs (DataSource): Implementation by Brian Takita
<brian.takita@runbox.com>.

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

20 years ago2003-08-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 22 Aug 2003 03:04:19 +0000 (03:04 -0000)]
2003-08-22  Martin Baulig  <martin@ximian.com>

* expression.cs (UnaryMutator.ResolveVariable): If the target is a
LocalVariableReference, ensure it's not read-only.  Fixes #47536.

* statement.cs (Fixed.DoResolve): Make all variables read-only.

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

20 years ago2003-08-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 22 Aug 2003 02:40:35 +0000 (02:40 -0000)]
2003-08-22  Martin Baulig  <martin@ximian.com>

* ecore.cs (FieldExpr.DoResolveLValue): Static read-only fields
can only be assigned in static constructors.  Fixes #47161.

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

20 years ago2003-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 22 Aug 2003 02:34:38 +0000 (02:34 -0000)]
2003-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* socket-io.c: fixed compilation for systems that define AF_INET6
and don't define SOL_IP/SOL_IPV6.

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

20 years ago2003-08-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 22 Aug 2003 02:17:22 +0000 (02:17 -0000)]
2003-08-22  Martin Baulig  <martin@ximian.com>

Rewrote and improved the flow analysis code.

* flowbranching.cs (FlowBranching): Make this class abstract.
(FlowBranching.CreateBranching): New static function to create a
new flow branching.
(FlowBranchingBlock, FlowBranchingException): New classes.
(FlowBranching.UsageVector.Type): New public readonly field.
(FlowBranching.UsageVector.Breaks): Removed the setter.
(FlowBranching.UsageVector.Returns): Removed the setter.
(FlowBranching.UsageVector): Added Break(), Return(),
NeverReachable() and Throw() methods to modify the reachability.
(FlowBranching.UsageVector.MergeChildren): Removed, this is now
done by FlowBranching.Merge().
(FlowBranching.UsageVector.MergeChild): New method; merges the
merge result into the current vector.
(FlowBranching.Merge): New abstract method to merge a branching.

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

20 years ago2003-08-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 22 Aug 2003 02:14:30 +0000 (02:14 -0000)]
2003-08-22  Martin Baulig  <martin@ximian.com>

* test-154.cs: Added testcase for bug #46949.

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

20 years ago2003-08-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 22 Aug 2003 02:12:21 +0000 (02:12 -0000)]
2003-08-22  Martin Baulig  <martin@ximian.com>

* test-154.cs: Added testcase for bug #47095.

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

20 years agoComment out unreachable code.
Martin Baulig [Fri, 22 Aug 2003 02:09:32 +0000 (02:09 -0000)]
Comment out unreachable code.

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

20 years ago2003-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 22 Aug 2003 00:34:14 +0000 (00:34 -0000)]
2003-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* StringTest.cs: added a couple of tests for Split. See bug #47802.

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

20 years ago2003-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 22 Aug 2003 00:32:29 +0000 (00:32 -0000)]
2003-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* String.cs: fixed bug #47802.

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

20 years ago2003-08-21 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Thu, 21 Aug 2003 18:52:53 +0000 (18:52 -0000)]
2003-08-21 Ben Maurer  <bmaurer@users.sourceforge.net>

* XslTransformProcessor.cs: evaluate variables at beginning
when / is current node.

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

20 years agoConsole.WriteLine strikes back
Gonzalo Paniagua Javier [Thu, 21 Aug 2003 18:44:45 +0000 (18:44 -0000)]
Console.WriteLine strikes back

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

20 years ago2003-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 21 Aug 2003 18:23:43 +0000 (18:23 -0000)]
2003-08-21  Zoltan Varga  <vargaz@freemail.hu>

* mono/tests/threadpool.cs mono/tests/threadpool1.cs: Make increments
of static variables atomic. Fixes bug #47683.

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

20 years ago2003-08-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Thu, 21 Aug 2003 18:05:46 +0000 (18:05 -0000)]
2003-08-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* XslVariable.cs : use newly introduced XmlNodeWriter.ctor(false) to
  support for tree fragment, not only for single element.

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

20 years ago2003-08-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Thu, 21 Aug 2003 18:05:03 +0000 (18:05 -0000)]
2003-08-21  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* XmlNodeWriter.cs : Extended to support for non-document entity.

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

20 years agoThu Aug 21 19:10:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 21 Aug 2003 17:26:35 +0000 (17:26 -0000)]
Thu Aug 21 19:10:08 CEST 2003 Paolo Molaro <lupus@ximian.com>

* inssel.brg: 64bit fixes from Laurent Morichetti <l_m@pacbell.net>.
* linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
regalloc.c, regalloc.h: specify available registers in arch-specific
code and support floats in the regallocator (patch by Laurent Morichetti
<l_m@pacbell.net>)

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

20 years agoGet attributes working correctly for text output (Oleg).
Ben Maurer [Thu, 21 Aug 2003 17:07:36 +0000 (17:07 -0000)]
Get attributes working correctly for text output (Oleg).

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

20 years ago2003-08-21 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Thu, 21 Aug 2003 16:59:10 +0000 (16:59 -0000)]
2003-08-21 Ben Maurer  <bmaurer@users.sourceforge.net>

* Compiler.cs, XsltCompiledContext.cs, XslTransformProcessorcs:
Fix up namespace handeling

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

20 years ago2003-08-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 21 Aug 2003 16:07:04 +0000 (16:07 -0000)]
2003-08-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Stack.cs: patch by JoergR@voelcker.com (Joerg Rosenkranz) that fixes
bug #47789.

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

20 years ago2003-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 21 Aug 2003 15:23:31 +0000 (15:23 -0000)]
2003-08-21  Zoltan Varga  <vargaz@freemail.hu>

* x86/tramp.c: Fixes from Bernie Solomon (bernard@ugsolutions.com).

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

20 years agoFixed dist target and updated version
Gonzalo Paniagua Javier [Thu, 21 Aug 2003 15:14:29 +0000 (15:14 -0000)]
Fixed dist target and updated version

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

20 years agoFixed (incorrect) magic number.
Paolo Molaro [Thu, 21 Aug 2003 14:57:28 +0000 (14:57 -0000)]
Fixed (incorrect) magic number.

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

20 years ago2003-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 21 Aug 2003 14:55:05 +0000 (14:55 -0000)]
2003-08-21  Zoltan Varga  <vargaz@freemail.hu>

* object.c (mono_object_isinst): Fix casts to TransparentProxy in
the interpreter. Patch by Bernie Solomon (bernard@ugsolutions.com).

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

20 years ago2003-08-21 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Thu, 21 Aug 2003 14:24:14 +0000 (14:24 -0000)]
2003-08-21 Ben Maurer  <bmaurer@users.sourceforge.net>

* String.cs: Created method FormatHelper that does formatting,
using a StringBuilder.
* StringBuilder.cs
(AppendFormat) Use FormatHelper in System.String to avoid
allocating an extra StringBuilder.
(Append string, int, int), (Append char, int): Both were
allocating extra strings.

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

20 years ago2003-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 21 Aug 2003 14:05:05 +0000 (14:05 -0000)]
2003-08-21  Zoltan Varga  <vargaz@freemail.hu>

* rawbuffer.c rawbuffer.h: Make this module thread safe.

* domain.c: Make this module thread safe.

* domain.c (mono_init): Call new initialization function.

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

20 years agolittle change for less mistakes on windows builds.
Johannes Roith [Thu, 21 Aug 2003 13:40:20 +0000 (13:40 -0000)]
little change for less mistakes on windows builds.

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

20 years ago2003-08-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 21 Aug 2003 11:32:09 +0000 (11:32 -0000)]
2003-08-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* LosFormatter.cs: handle Unit and FonrUnit as special cases as they
are not serializable. Fixes bug #47784.

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

20 years ago2003-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 21 Aug 2003 09:19:59 +0000 (09:19 -0000)]
2003-08-21  Zoltan Varga  <vargaz@freemail.hu>

* ArrayTest.cs: Added regression test for #38812.

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

20 years ago2003-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 21 Aug 2003 09:17:46 +0000 (09:17 -0000)]
2003-08-21  Zoltan Varga  <vargaz@freemail.hu>

* icall.c (ves_icall_System_Array_SetValueImpl): Check types for
reference types too. Fixes #38812.

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

20 years ago2003-08-21 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 21 Aug 2003 09:04:15 +0000 (09:04 -0000)]
2003-08-21  Zoltan Varga  <vargaz@freemail.hu>

* image.c (mono_image_init): Fixed warnings.

* class.c (mono_class_from_typeref): Handle assembly load failure
correctly.

* appdomain.c (add_assemblies_to_domain): Handle the case when
the references of an assembly are not yet loaded.

* metadata.c image.c assembly.c: Moved initialization of global
variables to a separate function called at startup since lazy
initialization of these variables is not thread safe.

* image.c assembly.c: Made this module thread safe by adding locks in
the appropriate places.

* domain.c (mono_init): Call the new initialization functions of the
three modules.

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

20 years agoAdded DictionaryBaseTest.cs
Duncan Mak [Thu, 21 Aug 2003 01:44:03 +0000 (01:44 -0000)]
Added DictionaryBaseTest.cs

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

20 years ago2003-08-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 21 Aug 2003 00:57:18 +0000 (00:57 -0000)]
2003-08-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* XslTransform.cs: commented out Cleanup () because of bug #47776.

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

20 years ago2003-08-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 21 Aug 2003 00:43:34 +0000 (00:43 -0000)]
2003-08-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Multiplexer.cs: fixed infinite recursion bug.

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

20 years agoSmall typo
Ben Maurer [Thu, 21 Aug 2003 00:19:05 +0000 (00:19 -0000)]
Small typo

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

20 years ago2003-08-20 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Wed, 20 Aug 2003 20:08:05 +0000 (20:08 -0000)]
2003-08-20 Ben Maurer  <bmaurer@users.sourceforge.net>

* Compiler.cs, XslStylesheet.cs, XsltCompiledContext.cs: Stubs for
format-number.
* XslDecimalFormat.cs: Stub for decimal-format.

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

20 years agoInitialize tls keys to -1, since 0 is a valid key value.
Paolo Molaro [Wed, 20 Aug 2003 17:22:56 +0000 (17:22 -0000)]
Initialize tls keys to -1, since 0 is a valid key value.

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

20 years agoWed Aug 20 19:02:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 20 Aug 2003 17:14:03 +0000 (17:14 -0000)]
Wed Aug 20 19:02:22 CEST 2003 Paolo Molaro <lupus@ximian.com>

* mini.c: mono_thread_current() can be called only after
mono_runtime_init(): rearrange code to not call it early on.

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

20 years ago2003-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 20 Aug 2003 16:45:08 +0000 (16:45 -0000)]
2003-08-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Array.cs: patch by lb@lb.ods.org that fixes bug #47707.

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