Compare commits

...
1042 Commits
Author SHA1 Message Date
nobody 4a048a798c This commit was manufactured by cvs2svn to create tag 'MCS_0_25'.
svn path=/tags/MCS_0_25/mcs/; revision=15656
2003-06-26 14:15:25 +00:00
Paolo Molaro e900dcab23 Thu Jun 26 16:06:35 CEST 2003 Paolo Molaro <[email protected]>
* FloatingPointFormatter.cs: use dec_len2 as default precision.

svn path=/trunk/mcs/; revision=15655
2003-06-26 14:15:25 +00:00
Paolo Molaro 15ed41cd9e Try to fix the mess for platforms where the included libgc doesn't compile.
svn path=/trunk/mono/; revision=15653
2003-06-26 13:29:46 +00:00
Paolo Molaro 6ce9805a33 Thu Jun 26 12:13:25 CEST 2003 Paolo Molaro <[email protected]>
* class.c: leak fix.

svn path=/trunk/mono/; revision=15652
2003-06-26 10:23:34 +00:00
Miguel de Icaza 2b82be2fbf Arghhhh
svn path=/trunk/mono/; revision=15650
2003-06-26 05:17:30 +00:00
Miguel de Icaza 88a54b5437 Flush
svn path=/trunk/mono/; revision=15648
2003-06-26 05:01:42 +00:00
Miguel de Icaza f5f3e5302d Port 22 instead of 2200
svn path=/trunk/mono/; revision=15646
2003-06-26 03:50:17 +00:00
Miguel de Icaza 7f3023d5fd Flush
svn path=/trunk/mono/; revision=15645
2003-06-26 03:48:14 +00:00
Gonzalo Paniagua Javier 1b462e1ef9 2003-06-26 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs: close the socket and connection when disposing.
	* WebRequest.cs: removed setter for RequestUri. Allow non-public ctors
	when creating instances.

	* HttpWebRequest.cs:
	* HttpWebResponse.cs:
	* FileWebRequest.cs: support serialization.

	* FileWebResponse.cs: support serialization and fixed dispose checks.

	* FileWebRequestCreator.cs:
	* HttpRequestCreator.cs: added internal .ctor.

svn path=/trunk/mcs/; revision=15644
2003-06-26 02:03:38 +00:00
Lluis Sanchez 438c7d60cb * SerializationInfo.cs: Fixed bug #44955
svn path=/trunk/mcs/; revision=15643
2003-06-25 23:39:41 +00:00
Lluis Sanchez 4217258761 * ObjRef.cs: Fixed bug #43187, based on the patch by Jean-Marc Andre
svn path=/trunk/mcs/; revision=15642
2003-06-25 23:21:32 +00:00
Lluis Sanchez 1c7df13cd0 * Hashtable.cs: Fixed bug when serializing and deserializing
a hashtable from which one element has been deleted. The Object instance
	  used as a removed marker is not detected as a such, since the
	  serializer creates a different instace.

svn path=/trunk/mcs/; revision=15641
2003-06-25 22:52:04 +00:00
Lluis Sanchez 4aba471e92 * Object.cs: Object must have the Serializable attribute.
* DateTime.cs: Fixed _DoParse() so it correctly applies the utc offset
	  to the resulting date. Also fixed _ToString so now correctly formates the
	  UTC offset.

svn path=/trunk/mcs/; revision=15640
2003-06-25 22:47:21 +00:00
Jean-Marc Andre 8f1e2b2402 2003-06-25: Jean-Marc Andr�� ([email protected])
SoapFormatter, SoapReader: SerializationBinder support added

svn path=/trunk/mcs/; revision=15637
2003-06-25 20:23:41 +00:00
Atsushi Eno 80f8dc00d4 2003-06-25 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
	  as non-empty, and XmlElement's IsEmpty is designed as such.
	  Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
	  doctype node.
	* XmlNode.cs : Fixed XPathNodeType. It should throw an exception
	  instead of returning undefined enum value.
	  Modified some code comments.
	* XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
	  when XmlReader's node is not at empty element or at EndElement.
	  Fixed XmlDeclaration's standalone check.

svn path=/trunk/mcs/; revision=15632
2003-06-25 17:31:57 +00:00
Dick Porter 47504ddaa6 2003-06-25 Dick Porter <[email protected]>
* WaitHandle.cs: Default handle value should be InvalidHandle, not
	Zero.

svn path=/trunk/mcs/; revision=15631
2003-06-25 17:04:15 +00:00
Dick Porter cd564de135 2003-06-25 Dick Porter <[email protected]>
* threadpool.c (mono_thread_pool_add): Don't set up a finaliser
	for the async object, the WaitHandle object will close the handle.
	Fixes bug 45321.

svn path=/trunk/mono/; revision=15630
2003-06-25 17:01:16 +00:00
Paolo Molaro e1b494c5c0 Wed Jun 25 18:12:29 CEST 2003 Paolo Molaro <[email protected]>
* class.c: in mono_array_class_get (), lookup from the hash with the
	same type we insert: this works around a bug in
	mono_metadata_type_hash() with SZARRAY and fixes a leak reported by
	lluis. The real fix will have to wait for after the release.

svn path=/trunk/mono/; revision=15629
2003-06-25 16:25:38 +00:00
Dietmar Maurer 6f4b0325d8 another test
svn path=/trunk/mono/; revision=15628
2003-06-25 16:09:56 +00:00
Nick Drochak ba23f7bf2b 2003-06-25 Nick Drochak <[email protected]>
* DateTimeTest.cs: Custom format string uses January of current Year.

svn path=/trunk/mcs/; revision=15627
2003-06-25 15:44:45 +00:00
Nick Drochak b0b0231d30 2003-06-25 Nick Drochak <[email protected]>
* DateTimeTest.cs: Re-enable test because bug #30030 is fixed.

svn path=/trunk/mcs/; revision=15626
2003-06-25 15:11:43 +00:00
Nick Drochak 09e6f5477b 2003-06-25 Nick Drochak <[email protected]>
* ByteTest.cs: Culture settings can affect where it puts the '%'.

svn path=/trunk/mcs/; revision=15624
2003-06-25 14:49:11 +00:00
Paolo Molaro 06a578bc8d FP control word enum.
svn path=/trunk/mono/; revision=15623
2003-06-25 13:18:00 +00:00
Paolo Molaro d37e8bc26f Wed Jun 25 13:19:25 CEST 2003 Paolo Molaro <[email protected]>
* mini.c, mini.h, mini.x86.c, mini-ppc.c: added facility so that
	arch code can setup the cpu for CLR execution, if needed.
	We use it on x86 to set the precision of FP operations.

svn path=/trunk/mono/; revision=15622
2003-06-25 11:29:33 +00:00
Paolo Molaro d42cc408b5 Wed Jun 25 13:14:41 CEST 2003 Paolo Molaro <[email protected]>
* icall.c: fix memory leak when getting type members.

svn path=/trunk/mono/; revision=15621
2003-06-25 11:23:47 +00:00
Miguel de Icaza 3117c69256 2003-06-24 Miguel de Icaza <[email protected]>
* cs-parser.jay: Applied patch from Jackson that adds support for
	extern and unsafe modifiers to destructor declarations.

svn path=/trunk/mcs/; revision=15616
2003-06-24 23:25:44 +00:00
Gonzalo Paniagua Javier de4b36fff1 Forgot these
svn path=/trunk/mcs/; revision=15615
2003-06-24 20:45:33 +00:00
Gonzalo Paniagua Javier d7c7c9ca73 2003-06-23 Andreas Nahr <[email protected]>
* DesignerAttribute.cs: Fixed AttributeUsage, implementation errors,
	better Hashcode generation
	* EditorAttribute.cs: Fixed AttributeUsage, implementation errors,
	better Hashcode generation
	* LicenseContext.cs: Added and implemented missing property
	* ListBindableAttribute.cs: Simplified implementation, removed
	unneccessary data.
	* ReadOnlyAttribute.cs: Better Hashcode generation
	* RunInstallerAttribute.cs: Better Hashcode generation, more robust
	Equals check.

	* LicenseProviderAttribute.cs: Fixed AttributeUsage, indentation
	* ProvidePropertyAttribute.cs: Fixed AttributeUsage
	* ToolboxItemFilterAttribute.cs: Fixed AttributeUsage

	* MarshalByValueComponent.cs:
	* IContainer.cs:
	* IComponent.cs: Added missing attribute(s)

svn path=/trunk/mcs/; revision=15614
2003-06-24 20:37:44 +00:00
Lluis Sanchez 1f3f6af70a * HttpWebRequest.cs: SetWriteStream(): SendRequestHeaders should be called
before asyncWrite.SetCompleted, to make sure that the waiting thread
	  does not start to send more information before SendRequestHeaders has
	  finished.

svn path=/trunk/mcs/; revision=15612
2003-06-24 16:35:57 +00:00
Lluis Sanchez 282c082c7d * XmlTypeMapElementInfo.cs: no need to compare nesting level in Equals.
* XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
	  array if the namespace is not specified in XmlArrayItemAttribute.

svn path=/trunk/mcs/; revision=15611
2003-06-24 16:28:14 +00:00
Aleksey Ryabchuk b815e6e4e9 * TreeNode.cs
* TreeNodeCollection.cs
	* TreeView.cs : more implementation added

svn path=/trunk/mcs/; revision=15609
2003-06-24 15:29:33 +00:00
Dietmar Maurer a31e6113cf increase length of localloc
svn path=/trunk/mono/; revision=15603
2003-06-24 08:40:22 +00:00
Nick Drochak e09ec3d431 2002-06-24 Nick Drochak <[email protected]>
* BasicOperationsTest.cs: Make test pass on .NET 1.1.

svn path=/trunk/mcs/; revision=15602
2003-06-24 05:06:48 +00:00
Miguel de Icaza 0f6db8c661 2003-06-24 Miguel de Icaza <[email protected]>
* expression.cs: Report error 21 if the user is trying to index a
	System.Array.

svn path=/trunk/mcs/; revision=15601
2003-06-24 04:33:19 +00:00
Miguel de Icaza 9208ad6917 Add another test
svn path=/trunk/mcs/; revision=15600
2003-06-24 04:32:48 +00:00
Miguel de Icaza 9002bba3b7 2003-06-24 Miguel de Icaza <[email protected]>
* class.cs (TypeContainer.Emit): Only call EmitFieldInitializers
	if we do not have a ": this ()" constructor initializer.  Fixes 45149

svn path=/trunk/mcs/; revision=15599
2003-06-24 04:16:55 +00:00
Miguel de Icaza 449faf136d update
svn path=/trunk/mcs/; revision=15598
2003-06-24 04:15:26 +00:00
Miguel de Icaza 98803e2a38 Add new test
svn path=/trunk/mcs/; revision=15597
2003-06-24 04:14:27 +00:00
Miguel de Icaza b7163f498c Flush
svn path=/trunk/mono/; revision=15594
2003-06-24 01:34:01 +00:00
Alexandre Pigolkine 815b68f252 bpp check in JPEGCodec
svn path=/trunk/mcs/; revision=15592
2003-06-23 23:51:24 +00:00
Alexandre Pigolkine 51964d6e93 pixel format check added, Jpeg encoder implemented
svn path=/trunk/mcs/; revision=15591
2003-06-23 23:39:57 +00:00
Gonzalo Paniagua Javier 33d2a980d3 implementation and fixes by Andreas Nahr.
svn path=/trunk/mcs/; revision=15582
2003-06-23 16:31:41 +00:00
Paolo Molaro 5917a7a177 Mon Jun 23 16:12:48 CEST 2003 Paolo Molaro <[email protected]>
* reflection.c: added more pubtoken special cases.

svn path=/trunk/mono/; revision=15577
2003-06-23 14:21:41 +00:00
Nick Drochak c03913b09d use correct bug #
svn path=/trunk/mcs/; revision=15576
2003-06-23 14:16:40 +00:00
Nick Drochak d4df3795ad 2003-06-23 Nick Drochak <[email protected]>
* ConvertTest.cs: Ignore and report bug in bugzilla #45066.

svn path=/trunk/mcs/; revision=15574
2003-06-23 14:14:37 +00:00
Paolo Molaro 9ea9d4c132 Test for bug#44294.
svn path=/trunk/mono/; revision=15571
2003-06-23 13:58:26 +00:00
Paolo Molaro d3c476489a Mon Jun 23 15:29:06 CEST 2003 Paolo Molaro <[email protected]>
* class.c: handle field offset correctly when class size
	is set (bug# 45182, partially from a patch by [email protected] (Jerome Laban)).

svn path=/trunk/mono/; revision=15570
2003-06-23 13:39:00 +00:00
Miguel de Icaza f3ae42b5f5 2003-06-14 Miguel de Icaza <[email protected]>
* namespace.cs: Add some information to reduce FAQs.

2003-06-13  Miguel de Icaza  <[email protected]>

	* cfold.cs (BinaryFold): BitwiseAnd, BitwiseOr: handle other
	underlying enumeration types.  Fixes #43915.

	* expression.cs: Treat ushort/short as legal values to be used in
	bitwise operations.

svn path=/trunk/mcs/; revision=15569
2003-06-23 12:38:53 +00:00
Gonzalo Paniagua Javier e885d25b85 2003-06-23 Gonzalo Paniagua Javier <[email protected]>
* System.ComponentModel/IExtenderProvider.cs: mono-stylized.
	* System.ComponentModel/IComNativeDescriptorHandler.cs:
	* System.ComponentModel/SyntaxCheck.cs: new files from Andreas Nahr.

svn path=/trunk/mcs/; revision=15567
2003-06-23 12:06:08 +00:00
Nick Drochak 9674fba1f6 2003-06-23 Nick Drochak <[email protected]>
* TimeZoneTest.cs: Make pass when on Tokyo Standard Time.

svn path=/trunk/mcs/; revision=15566
2003-06-23 07:11:34 +00:00
Nick Drochak 3fd73179b9 2003-06-23 Nick Drochak <[email protected]>
* MACTripleDESTest.cs: Adjust for .NET 1.1.

svn path=/trunk/mcs/; revision=15565
2003-06-23 07:02:56 +00:00
Nick Drochak 1fd297c00e 2003-06-23 Nick Drochak <[email protected]>
* ResourceReaderTest.cs: Put it back the way it was, doesn't work on
	.NET, and it works fine on both if you cd to the proper dir before
	running these tests.

svn path=/trunk/mcs/; revision=15564
2003-06-23 07:00:57 +00:00
Nick Drochak d90a65fa89 2003-06-23 Nick Drochak <[email protected]>
* DecimalTest.cs: Make pass on .NET 1.1
	* MarshalByRefObjectTest.cs: Avoid port conflict with other tests.
	* SingleFormatterTest.cs: Ignore user overridden settings.

svn path=/trunk/mcs/; revision=15563
2003-06-23 06:23:25 +00:00
Sebastien Pouliot 98c69f2f0e 2003-06-22 Sebastien Pouliot <[email protected]>
* DSACryptoServiceProvider.cs: Added UseMachineKeyStore property (1.1).
	* RSACryptoServiceProvider.cs: Added UseMachineKeyStore property (1.1).

svn path=/trunk/mcs/; revision=15562
2003-06-23 02:43:47 +00:00
Nick Drochak a7944b1891 2003-06-23 Nick Drochak <[email protected]>
* DateTimeTest.cs (TestOA): Compare DateTime values instead of strings
	to avoid "culture shock".  Made a new AssertEquals() that is more
	DateTime-friedly.

svn path=/trunk/mcs/; revision=15561
2003-06-23 02:37:55 +00:00
Alexandre Pigolkine ff1068bd5d font1.cs added
svn path=/trunk/mcs/; revision=15560
2003-06-22 21:26:39 +00:00
Alexandre Pigolkine d7a3e42f0b reordered, IDesignerHost.cs removed, new files added
svn path=/trunk/mcs/; revision=15559
2003-06-22 21:19:39 +00:00
Alexandre Pigolkine 37f6c4e6c7 DrawString implementation
svn path=/trunk/mcs/; revision=15558
2003-06-22 21:17:11 +00:00
Alexandre Pigolkine 78122da70f implementation added
svn path=/trunk/mcs/; revision=15557
2003-06-22 21:13:37 +00:00
Alexandre Pigolkine 7588178e02 file added
svn path=/trunk/mcs/; revision=15556
2003-06-22 21:11:13 +00:00
Alexandre Pigolkine e051b63bf0 calls to implementation added
svn path=/trunk/mcs/; revision=15555
2003-06-22 21:06:17 +00:00
Alexandre Pigolkine 78a8d6a17d first version
svn path=/trunk/mcs/; revision=15554
2003-06-22 21:04:19 +00:00
Alexandre Pigolkine b93dd1c0b7 switch to unix line terminators
svn path=/trunk/mcs/; revision=15553
2003-06-22 20:57:28 +00:00
Lluis Sanchez 2c5e9239d6 * WebConnectionStream.cs: Only increment pendingReads if an asynchronous read
is really needed.

svn path=/trunk/mcs/; revision=15552
2003-06-22 19:49:26 +00:00
Ben Maurer 8b0dafca9e 2003-06-20 Ben Maurer <[email protected]>
* NameTable.cs: Now uses a custom hashtable to implement. As a
	result, when Get (char[], int, int) is called, a string is only
	allocated if it is actually a new entry.
	(StrEqArray) Compares a string and a char[]
	(AddEntry) Adds a new entry to the hashtable
	(Entry) Represents a hashtable entry.

svn path=/trunk/mcs/; revision=15551
2003-06-22 18:32:39 +00:00
Rafael Teixeira 50edb7f71f trying to make it buildable and useable in linux
svn path=/trunk/mcs/; revision=15547
2003-06-22 14:39:16 +00:00
Lluis Sanchez 8b44cd634e * unix.args: added System.Runtime.Remoting/SoapServices.cs
svn path=/trunk/mcs/; revision=15546
2003-06-22 12:21:40 +00:00
Piers Haken 2ec292aacc make build platform agnostic
svn path=/trunk/mono/; revision=15545
2003-06-22 00:35:11 +00:00
Piers Haken b669c0546d new tool for performaing XSL tranformations
svn path=/trunk/mono/; revision=15544
2003-06-21 23:56:06 +00:00
Alexandre Pigolkine 9c62770cf5 checkin for Andreas Nahr <[email protected]>
svn path=/trunk/mcs/; revision=15543
2003-06-21 20:09:16 +00:00
Alexandre Pigolkine 7b1339aba0 checkin for Andreas Nahr <[email protected]>, see ChangeLog for details
svn path=/trunk/mcs/; revision=15541
2003-06-21 18:38:39 +00:00
Alexandre Pigolkine 74a7bb59f0 checkin for Andreas Nahr <[email protected]>, see ChangeLog for details
svn path=/trunk/mcs/; revision=15538
2003-06-21 17:39:54 +00:00
Alexandre Pigolkine f78c078d21 switch to unix line terminators
svn path=/trunk/mcs/; revision=15537
2003-06-21 16:50:32 +00:00
Gonzalo Paniagua Javier ae5983eb06 2003-06-21 Gonzalo Paniagua Javier <[email protected]>
* HttpWebClientProtocol.cs: handle cookies if the request is a
	HttpWebRequest. It gets the cookies set in the response and sends them
	on subsequent requests.

	* SoapHttpClientProtocol.cs:
	(GetWebRequest): just calls the base method.
	(SendRequest): set the method here.
	(Invoke): call GetWebResponse instead of request.GetResponse.

	* WebClientProtocol.cs:
	(GetWebRequest): set some properties of the request.
	(GetWebResponse): if we get a WebException containing a response, return
	that as the response and ignore the exception.
	(GetWebResponse (req, async)): only call EndGetResponse.

svn path=/trunk/mcs/; revision=15536
2003-06-21 15:42:13 +00:00
Gonzalo Paniagua Javier 89a8bd709d 2003-06-21 Gonzalo Paniagua Javier <[email protected]>
* ThreadPool.cs: correctly create a TimeSpan with provided the number of
	milliseconds.

	* WaitHandle.cs: fixes for WaitAny/All and TimeSpan.

svn path=/trunk/mcs/; revision=15535
2003-06-21 15:14:35 +00:00
Lluis Sanchez b0af2afe98 * unix.args: added HttpHelper.cs,HttpServer.cs,HttpThread.cs.
svn path=/trunk/mcs/; revision=15534
2003-06-21 12:49:59 +00:00
Lluis Sanchez eaac7d7745 * HttpChannel.cs, HttpClientChannel.cs, HttpHelper.cs, HttpServer.cs,
HttpServerChannel.cs, HttpThread.cs: added new implementation of the HttpChannel
	  by Ahmad Tantawy, Ahmad Kadry and Hussein Mehanna.

svn path=/trunk/mcs/; revision=15533
2003-06-21 12:49:23 +00:00
Atsushi Eno ce15139a53 2003-06-21 Atsushi Enomoto <[email protected]>
* XslTransform.cs : Fixed Transform (string, string) not to call
	  File.OpenWrite() that *appends* (not truncates) existing files.

svn path=/trunk/mcs/; revision=15532
2003-06-21 11:44:27 +00:00
Miguel de Icaza 74a525c78a Message
svn path=/trunk/mono/; revision=15531
2003-06-21 11:35:09 +00:00
Atsushi Eno c97844a111 2003-06-21 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
	  to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.

svn path=/trunk/mcs/; revision=15530
2003-06-21 07:22:57 +00:00
Alexandre Pigolkine 4f2d344f18 files added
svn path=/trunk/mcs/; revision=15529
2003-06-20 23:53:32 +00:00
Alexandre Pigolkine 144947e356 implementation added
svn path=/trunk/mcs/; revision=15528
2003-06-20 23:52:21 +00:00
Alexandre Pigolkine a547e00d1d properties added
svn path=/trunk/mcs/; revision=15527
2003-06-20 23:51:46 +00:00
Alexandre Pigolkine 74ea6e1302 first version
svn path=/trunk/mcs/; revision=15526
2003-06-20 23:49:00 +00:00
Alexandre Pigolkine 3ecae23ddb switch to unix line terminators
svn path=/trunk/mcs/; revision=15525
2003-06-20 23:42:15 +00:00
Atsushi Eno 7d140166d1 2003-06-20 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : quick fix for public ctor() BaseURI bug.

svn path=/trunk/mcs/; revision=15522
2003-06-20 19:12:57 +00:00
Martin Baulig b4cc1077d0 2003-06-20 Martin Baulig <[email protected]>
* mono-debug-debugger.h (MonoDebuggerSymbolFile): Added `MonoImage
	*image' field.

svn path=/trunk/mono/; revision=15520
2003-06-20 17:52:10 +00:00
Ben Maurer 3a76435d6d 2003-06-20 Ben Maurer <[email protected]>
* XmlTextReader.cs: Reduces memory allocation when the reader is
	not queried for some values.

svn path=/trunk/mcs/; revision=15518
2003-06-20 17:30:51 +00:00
Martin Baulig 60b1cf45cb 2003-06-20 Martin Baulig <[email protected]>
* image.h, mono-debug-debugger.h: Fixed compiler warnings.

svn path=/trunk/mono/; revision=15514
2003-06-20 16:40:27 +00:00
Martin Baulig dcad492367 2003-06-20 Martin Baulig <[email protected]>
* mono-debug.h (MONO_DEBUG_VAR_ADDRESS_MODE_STACK): Removed.  We
	just distinguish between variables in registers and variables at
	an offset relative to a register.

svn path=/trunk/mono/; revision=15509
2003-06-20 16:08:21 +00:00
Gonzalo Paniagua Javier b6f95ecdae 2003-06-20 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: fixed bug #43823.

svn path=/trunk/mcs/; revision=15508
2003-06-20 13:59:51 +00:00
Gonzalo Paniagua Javier c8c7a12b23 2003-06-20 Gonzalo Paniagua Javier <[email protected]>
* HtmlSelect.cs: fixed bug #44894.

svn path=/trunk/mcs/; revision=15507
2003-06-20 13:07:15 +00:00
Gonzalo Paniagua Javier c3029f11d9 2003-06-20 Gonzalo Paniagua Javier <[email protected]>
* icall.c: #ifdef out latest changes until mcs is fixed.

svn path=/trunk/mono/; revision=15506
2003-06-20 12:32:38 +00:00
Gonzalo Paniagua Javier 0067ecca7b 2003-06-20 Gonzalo Paniagua Javier <[email protected]>
* WebHeaderCollection.cs: prevent duplication headers used niternally.

svn path=/trunk/mcs/; revision=15505
2003-06-20 11:35:53 +00:00
Nick Drochak 8b636962f4 2003-06-20 Nick Drochak <[email protected]>
* SortedListTest.cs: Make it pass on .NET 1.1.

svn path=/trunk/mcs/; revision=15504
2003-06-20 03:41:17 +00:00
Atsushi Eno 4ddc13eced 2003-06-20 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : several ResolveUri() fix. e.g. for external URIs.

svn path=/trunk/mcs/; revision=15503
2003-06-19 20:00:43 +00:00
Atsushi Eno 3270f0aa90 2003-06-20 Atsushi Enomoto <[email protected]>
* System.XML_linux_test.args: added XmlUrlResolverTests.cs.
	* makefile.gnu: added reference to System.dll.

svn path=/trunk/mcs/; revision=15502
2003-06-19 20:00:03 +00:00
Atsushi Eno c9c12ba955 2003-06-20 Atsushi Enomoto <[email protected]>
* added XmlUrlResolverTests.cs.

svn path=/trunk/mcs/; revision=15501
2003-06-19 19:59:22 +00:00
Nick Drochak c4d0222e25 2003-06-19 Nick Drochak <[email protected]>
* StrongName.cs: Work around for mcs? bug 45127.

svn path=/trunk/mcs/; revision=15499
2003-06-19 15:10:56 +00:00
Nick Drochak 7f029090c2 Flush
svn path=/trunk/mcs/; revision=15498
2003-06-19 15:06:19 +00:00
Nick Drochak 8de34d0d61 2003-06-19 Nick Drochak <[email protected]>
* MakeCert.cs: Work around for mcs? bug 45127.

svn path=/trunk/mcs/; revision=15497
2003-06-19 15:06:01 +00:00
Nick Drochak d167326386 2003-06-19 Nick Drochak <[email protected]>
* DSAKeyValue.cs:
	* RSAKeyValue.cs: Work around for mcs? bug 45127.

svn path=/trunk/mcs/; revision=15496
2003-06-19 15:05:03 +00:00
Nick Drochak b1d5159de3 2003-06-19 Nick Drochak <[email protected]>
* CryptoConvert.cs: Work around for mcs? bug 45127.

svn path=/trunk/mcs/; revision=15495
2003-06-19 15:02:15 +00:00
Nick Drochak e4f5a1f684 2003-06-19 Nick Drochak <[email protected]>
* PrivateKey.cs: Work around for mcs? bug 45127.

svn path=/trunk/mcs/; revision=15494
2003-06-19 15:00:56 +00:00
Paolo Molaro b68c7ddfb6 Thu Jun 19 11:03:42 CEST 2003 Paolo Molaro <[email protected]>
* icall.c: return members in metadata order.

svn path=/trunk/mono/; revision=15492
2003-06-19 09:12:38 +00:00
Nick Drochak ed33ec778b 2003-06-19 Nick Drochak <[email protected]>
* ArrayTest.cs: Cleanup unused bits. Also get tests passing on .NET 1.1
	All tests pass here now.

svn path=/trunk/mcs/; revision=15491
2003-06-19 03:51:04 +00:00
Nick Drochak 58ae2da515 2003-06-19 Nick Drochak <[email protected]>
* RemotingServicesTest.cs: Lazy fix/workaround for "can't reuse
	channel" errors. Tests now pass.

	* RemotingConfigurationTest.cs: Don't rely on test order, and wrap some
	.NET 1.1 stuff.

svn path=/trunk/mcs/; revision=15490
2003-06-19 03:41:49 +00:00
Ben Maurer ef440e6c3a FINALLY!
2003-06-16  Ben Maurer <[email protected]>
        * XmlUrlResolver.cs: really fixed #44231

svn path=/trunk/mcs/; revision=15489
2003-06-19 00:22:50 +00:00
Paolo Molaro e7fd0ecfe0 Wed Jun 18 19:22:22 CEST 2003 Paolo Molaro <[email protected]>
* Enum.cs: fix race in cache (bug#41841).

svn path=/trunk/mcs/; revision=15486
2003-06-18 17:31:23 +00:00
Paolo Molaro 1d610f87f5 Wed Jun 18 19:08:40 CEST 2003 Paolo Molaro <[email protected]>
* io.c: never add write permission for group or others in
	SetFileAttributes ().

svn path=/trunk/mono/; revision=15485
2003-06-18 17:19:23 +00:00
Paolo Molaro ebdbaf3aa8 Wed Jun 18 18:52:11 CEST 2003 Paolo Molaro <[email protected]>
* FloatingPointFormatter.cs: if the precision is not specified, use
	the default precision for the data type.

svn path=/trunk/mcs/; revision=15484
2003-06-18 17:01:24 +00:00
Paolo Molaro 749d541fb4 Wed Jun 18 18:11:30 CEST 2003 Paolo Molaro <[email protected]>
* Array.cs: throw ArgumentOutOfRangeException in Copy if needed
	(patch by [email protected] (Thong (Tum) Nguyen)).

svn path=/trunk/mcs/; revision=15483
2003-06-18 16:20:25 +00:00
Nick Drochak 454914821d 2003-06-18 Nick Drochak <[email protected]>
* FileSystemInfoTest.cs: Simplify a bit.

svn path=/trunk/mcs/; revision=15482
2003-06-18 15:06:10 +00:00
Nick Drochak a2ea144248 2003-06-18 Nick Drochak <[email protected]>
* FileSystemInfo.cs: Refresh cache when changeing file times.

svn path=/trunk/mcs/; revision=15481
2003-06-18 15:04:28 +00:00
Dick Porter 7987a6c7d6 Cygwin build fix
svn path=/trunk/mono/; revision=15480
2003-06-18 14:18:56 +00:00
Paolo Molaro 0329cf4876 Wed Jun 18 15:26:58 CEST 2003 Paolo Molaro <[email protected]>
* icall.c: avoid infinite loop in GetTimeZoneData.

svn path=/trunk/mono/; revision=15479
2003-06-18 13:36:16 +00:00
Zoltan Varga 20f28369f6 2003-06-18 Zoltan Varga <[email protected]>
* RuntimeHelpers.cs: Wrap NET 1.1 methods with #if NET_1_1.

svn path=/trunk/mcs/; revision=15473
2003-06-18 12:12:27 +00:00
Paolo Molaro ecc1a0e42a Wed Jun 18 12:49:54 CEST 2003 Paolo Molaro <[email protected]>
* Marshal.cs: implemented Prelink with icalls.

svn path=/trunk/mcs/; revision=15472
2003-06-18 10:58:44 +00:00
Paolo Molaro ad2ed82064 Wed Jun 18 12:47:43 CEST 2003 Paolo Molaro <[email protected]>
* icall.c: added Marshal.Prelink/All icalls.

svn path=/trunk/mono/; revision=15471
2003-06-18 10:56:53 +00:00
Paolo Molaro dcc5d9ed8b Wed Jun 18 12:17:48 CEST 2003 Paolo Molaro <[email protected]>
* object.c, object.h: fix warnings and do some overflow checking
	when creating arrays.

svn path=/trunk/mono/; revision=15470
2003-06-18 10:30:25 +00:00
Nick Drochak e4bdec4b6a 2003-06-18 Nick Drochak <[email protected]>
* FileSystemInfoTest.cs: Works on .NET 1.1 now. If these values are
	different on 1.0 then we need to wrap with a #if NET_1_1.

svn path=/trunk/mcs/; revision=15469
2003-06-18 03:09:41 +00:00
Nick Drochak 1996506e82 2003-06-18 Nick Drochak <[email protected]>
* ArrayTest.cs: Add .NET 1.1 overload test, and fix build problem.

svn path=/trunk/mcs/; revision=15468
2003-06-18 03:06:05 +00:00
Alexandre Pigolkine 6492840010 small fix
svn path=/trunk/mcs/; revision=15467
2003-06-17 22:48:20 +00:00
Alexandre Pigolkine 6e7d3adab4 new file in list.unix
svn path=/trunk/mcs/; revision=15466
2003-06-17 22:46:41 +00:00
Alexandre Pigolkine d1e597b11b calls to implementation
svn path=/trunk/mcs/; revision=15465
2003-06-17 22:45:49 +00:00
Alexandre Pigolkine 6a7f4adcf7 implementation added
svn path=/trunk/mcs/; revision=15464
2003-06-17 22:44:56 +00:00
Alexandre Pigolkine d399f95a2a demo application added
svn path=/trunk/mcs/; revision=15463
2003-06-17 22:37:11 +00:00
Paolo Molaro 89e8c86969 Tue Jun 17 19:02:55 CEST 2003 Paolo Molaro <[email protected]>
* mini.c: disable some optimizations if we can guess they'll cost too
	much for a given method.

svn path=/trunk/mono/; revision=15461
2003-06-17 17:11:55 +00:00
Lluis Sanchez f213541b82 * XmlReflectionImporter.cs: Reset internal tables for each ImportMembersMapping call.
* XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
	  is not specified in the xsi attribute.
	* XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
	* XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.

svn path=/trunk/mcs/; revision=15459
2003-06-17 15:27:01 +00:00
Dick Porter 9ee715e269 2003-06-17 Dick Porter <[email protected]>
* io.c (SetFileAttributes): Implement the ReadOnly attribute, and
	ignore the unsupported ones ("fixes" bug 44977).

2003-06-17  Dick Porter  <[email protected]>

	* file-io.h:
	* file-io.c: File attributes need to be tweaked slightly when
	passed from the managed to the w32 world.

svn path=/trunk/mono/; revision=15458
2003-06-17 14:50:30 +00:00
Lluis Sanchez cb125b6483 * mics.c: fix bug in _wapi_calc_timeout. It gave wrong values for
high ms values (there was an overflow).

svn path=/trunk/mono/; revision=15457
2003-06-17 14:44:46 +00:00
Zoltan Varga ec4b84c3f4 2003-06-17 Zoltan Varga <[email protected]>
* mini.h mini.c: Rework last patch based on suggestions by Paolo.

svn path=/trunk/mono/; revision=15456
2003-06-17 14:18:04 +00:00
Zoltan Varga 2862aef58d 2003-06-17 Zoltan Varga <[email protected]>
* profiler.h profiler-private.h profiler.c: Rework last patch
	based on suggestion by Paolo.

svn path=/trunk/mono/; revision=15455
2003-06-17 14:16:04 +00:00
Rafael Teixeira adca663368 oops
svn path=/trunk/mcs/; revision=15452
2003-06-17 13:41:28 +00:00
Gaurav Vaish 558432237c 2003-06-17 Gaurav Vaish <gvaish_mono AT lycos.com>
* ChangeLog: Updated the date of action...

svn path=/trunk/mcs/; revision=15451
2003-06-17 12:29:03 +00:00
Gaurav Vaish 889b7a4712 2003-05-21 Gaurav Vaish <gvaish_mono AT lycos.com>
* HtmlControlAdapter.cs : A little more implementation.
* HtmlMobileTextWriter.cs,
* MultiPartWriter.cs,
* MobileTextWriter.cs   : Dummy implementation.
* MobileControl.cs      : Now implements IAttributeAccessor.
                          -- Commented out.

svn path=/trunk/mcs/; revision=15450
2003-06-17 12:26:17 +00:00
Zoltan Varga 4ad670959b 2003-06-17 Zoltan Varga <[email protected]>
* mini.h mini.c mini-x86.c: Added instruction level coverage
	info collection support.

svn path=/trunk/mono/; revision=15449
2003-06-17 11:56:07 +00:00
Zoltan Varga fb185c0c6e 2003-06-17 Zoltan Varga <[email protected]>
* profiler.h profiler-private.h profiler.c: Added infrastructure for
	instruction level coverage data collection.
	* profiler.h profiler.c (: Added new callback function which can be
	used by the profiler to limit which functions should have coverage
	instrumentation.
	* profiler.c (mono_profiler_load): Call g_module_build_path to
	generate the file name of the profiler library.

svn path=/trunk/mono/; revision=15448
2003-06-17 11:41:53 +00:00
Zoltan Varga ed8e576ceb 2003-06-17 Zoltan Varga <[email protected]>
* system.h (struct _WapiSystemInfo ): Fix warnings when using gcc-3.3.

svn path=/trunk/mono/; revision=15447
2003-06-17 11:33:24 +00:00
Lluis Sanchez 338698bd27 * ConfigurationSettings.cs: Avoid chicken-egg problem when reading machine.config.
Cannot use an uri to read mechine.config because web request module handelrs are
	  defined in machine.config.

svn path=/trunk/mcs/; revision=15446
2003-06-16 22:25:36 +00:00
Duncan Mak d3d5e4d825 Miguel forgot to commit this before leaving for Dublin.
svn path=/trunk/mono/; revision=15445
2003-06-16 20:57:57 +00:00
Lluis Sanchez f7f7a8627e added System.Xml.Serialization/XmlTypeMapMemberNamespaces.cs
svn path=/trunk/mcs/; revision=15444
2003-06-16 20:12:04 +00:00
Rafael Teixeira ba86e2775c 2003-06-16 Rafael Teixeira <[email protected]>
* OptionDetails.cs :
		- Now handles correctly options specifiying maxOccurs != 1 (that was preventing mbas from being useable)
		- Now indicates if option parsing consumed a parameter or not (also checks if it is available first)
		- Now multivalued options can either be given as many pairs option/parameter and also as a pair option/comma-separated-list, and both
			Example: -r System.Data -r System.Xml  or /r System.Data,System.Xml
		- Now it is more lax in the form matching: -r /r -reference --reference /reference are valid for a ('r',"reference") option
	* Options.cs : new BreakSingleDashManyLettersIntoManyOptions field to make more GNUish parsing of single letter options.
			Makes -zxf become -z -x -f if set to true

svn path=/trunk/mcs/; revision=15443
2003-06-16 19:41:53 +00:00
Paolo Molaro 4b013a5ae1 Updates and fixes.
svn path=/trunk/mono/; revision=15442
2003-06-16 17:26:21 +00:00
Atsushi Eno c196e56b6e 2003-06-16 Atsushi Enomoto <[email protected]>
* XmlSerializationReader.cs : Synchronous fix with
	  XmlElement.GetAttribute(name, ns) fix for GetNullAttr().
	* added XmlTypeMapMemberNamespace.cs.
	* XmlReflectionImporter,
	  XmlSerializationReaderInterpreter.cs,
	  XmlSerializationWriterInterpreter.cs,
	  XmlTypeMapping.cs : support for XmlNamespaceDeclarationAttribute.

svn path=/trunk/mcs/; revision=15441
2003-06-16 17:15:55 +00:00
Atsushi Eno c1afba2caf 2003-06-16 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
	  this method set current node null.
	* XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
	  String.Empty instead of null (expected value).
	* XmlTextReader.cs,
	  XmlUrlResolver.cs,
	  XmlInputStream.cs : fixed BaseURI problem (bug #44231).

svn path=/trunk/mcs/; revision=15440
2003-06-16 16:57:39 +00:00
Paolo Molaro b3afdb840e Mon Jun 16 18:21:26 CEST 2003 Paolo Molaro <[email protected]>
* mono-cov.c: coverage profiler.

svn path=/trunk/mono/; revision=15439
2003-06-16 16:31:08 +00:00
Paolo Molaro 7c83ee8de2 Mon Jun 16 18:13:29 CEST 2003 Paolo Molaro <[email protected]>
* driver.c, mini-ppc.c, mini-x86.c, mini.c, mini.h: the coverage stuff
	is now implemented in the profiling API. Get rid of a couple of
	unnecessary global variables.

svn path=/trunk/mono/; revision=15438
2003-06-16 16:25:58 +00:00
Paolo Molaro 186988ad99 Mon Jun 16 18:11:13 CEST 2003 Paolo Molaro <[email protected]>
* profiler.c, profiler.h, profiler-private.h: added basic block
	coverage profiling API.

svn path=/trunk/mono/; revision=15437
2003-06-16 16:20:55 +00:00
Tim Coleman 9c37a664fd 2003-06-16 Tim Coleman <[email protected]>
* System.Data.Common/DbDataAdapter.cs:
                Add the DataTable to the result set even if it contains
                no rows.  Based on report by Krieg Andreas.

svn path=/trunk/mcs/; revision=15436
2003-06-16 14:50:57 +00:00
Nick Drochak d30d8f7499 2003-06-16 Nick Drochak <[email protected]>
* ResourceReaderTest.cs: Help tests find input files.

svn path=/trunk/mcs/; revision=15435
2003-06-16 14:33:32 +00:00
Jackson Harper 4bb7dbaa16 * get.c: Fix modopt and modreq
svn path=/trunk/mono/; revision=15434
2003-06-16 13:38:04 +00:00
Sebastien Pouliot c8e7a90ddb 2003-06-15 Sebastien Pouliot <[email protected]>
* RSAManaged.cs: Now includes CRT (Chinese Remainder Theorem)
	optimization when using the private key (DecryptValue). This
	cut more than 5 seconds of nunit on my system (out of 14 sec
	for complete asymmetric tests). Thanks to Ben Maurer for help!

svn path=/trunk/mcs/; revision=15431
2003-06-16 01:10:18 +00:00
Alexandre Pigolkine 52df633060 fix to build with NAnt
svn path=/trunk/mcs/; revision=15430
2003-06-15 20:50:12 +00:00
Atsushi Eno f43b79af01 2003-06-16 Atsushi Enomoto <[email protected]>
* added nested-dtd-test.xml, nested-dtd-test.dtd, nested-included.dtd.

svn path=/trunk/mcs/; revision=15428
2003-06-15 18:40:59 +00:00
Atsushi Eno ccea621d22 2003-06-16 Atsushi Enomoto <[email protected]>
* added XmlCharTests.cs(separated XmlChar tests from XmlTextReaderTests)
	* XmlTextReaderTests.cs : added ExternalDocument() which will result
	  in BaseURI test and DTD parameter entity test.

svn path=/trunk/mcs/; revision=15427
2003-06-15 18:32:40 +00:00
Jackson Harper 2f31510739 * CodeGen.cs: Fix buglet in cache name creating (I will claim this
was a typo).

svn path=/trunk/mcs/; revision=15426
2003-06-15 18:21:08 +00:00
Atsushi Eno 0e0c9d2c03 2003-06-16 Atsushi Enomoto <[email protected]>
* XmlReaderCommonTests.cs : EmptyElementWithTwoAttributes() is now
	  EmptyElementWithAttributes() and was added namespaced attribute tests.
	* XmlTextWriterTests.cs : added WriteWhitespace().

svn path=/trunk/mcs/; revision=15425
2003-06-15 18:09:46 +00:00
Atsushi Eno b5e6098670 2003-06-16 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : some QName handling fix.

svn path=/trunk/mcs/; revision=15424
2003-06-15 17:42:41 +00:00
Zoltan Varga a3b158593e 2003-06-15 Zoltan Varga <[email protected]>
* EventBuilder.cs: Add argument checking to methods.

svn path=/trunk/mcs/; revision=15422
2003-06-15 15:40:02 +00:00
Zoltan Varga 69c12a2338 2003-06-15 Zoltan Varga <[email protected]>
* corlib_test.args: Added EventBuilderTest.cs.

svn path=/trunk/mcs/; revision=15421
2003-06-15 15:23:24 +00:00
Zoltan Varga 3a15928c20 2003-06-15 Zoltan Varga <[email protected]>
* EventBuilderTest.cs: New file.

svn path=/trunk/mcs/; revision=15420
2003-06-15 15:22:28 +00:00
Zoltan Varga 61562c125c 2003-06-15 Zoltan Varga <[email protected]>
* EventInfo.cs: Implement IsSpecialName.

svn path=/trunk/mcs/; revision=15419
2003-06-15 15:21:15 +00:00
Zoltan Varga 1234687ce1 2003-06-15 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_create_runtime_class): Add support
	for events in dynamically generated code.

svn path=/trunk/mono/; revision=15418
2003-06-15 15:12:57 +00:00
Zoltan Varga 05dfa47f8c 2003-06-15 Zoltan Varga <[email protected]>
* corlib_test.args: Added PropertyBuilderTest.cs.

svn path=/trunk/mcs/; revision=15417
2003-06-15 13:28:51 +00:00
Zoltan Varga e9d079a8ff 2003-06-15 Zoltan Varga <[email protected]>
* PropertyBuilderTest.cs: New file.

svn path=/trunk/mcs/; revision=15416
2003-06-15 13:27:34 +00:00
Zoltan Varga da09ce129c 2003-06-15 Zoltan Varga <[email protected]>
* gc.c: Start GCHandle indexes from 1, since 0 means the handle is
	not allocated.

svn path=/trunk/mono/; revision=15415
2003-06-15 13:13:09 +00:00
Nick Drochak fcc53981cf 2003-06-15 Nick Drochak <[email protected]>
* basic-long.cs: tests for negative values for bigmul, and unsigned.
	* cpu-g4.md: add op_bigmul and op_bigmul_un
	* cpu_pentium.md: add op_bigmul_un
	* inssel-long32.brg: add rule for unsigned bigmul
	* mini-ops.h: define OP_BIGMUL_UN
	* mini-x86.c: THE BUG: handle (un)signed properly
	* mini.c: choose unsigned opcode if needed.
	This set of patches fixes bug #44291

svn path=/trunk/mono/; revision=15414
2003-06-15 12:59:07 +00:00
Jackson Harper 431ded441e * CodeGen.cs: When creating nested types cache their names using
the parent/type method but emit their short name.

svn path=/trunk/mcs/; revision=15413
2003-06-15 07:49:31 +00:00
Atsushi Eno 0f270e7736 2003-06-15 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : this [name] and this [name, ns] (and
	  GetAttribute() methods in turn) returns null instead of String.Empty.
	* XmlTextWriter.cs : WriteStartAttribute() should try to use specified
	  prefix before auto-generating prefixes.
	  Implemented WriteBase64().

svn path=/trunk/mcs/; revision=15412
2003-06-15 04:15:36 +00:00
Sebastien Pouliot 5cb44614c0 2003-06-15 Sebastien Pouliot <[email protected]>
* corrected error in makefile (cp over gcertview.exe.config)
	and forgot to update ChangeLog

svn path=/trunk/mcs/; revision=15411
2003-06-15 04:08:29 +00:00
Sebastien Pouliot 8ad23cc8c8 2003-06-15 Sebastien Pouliot <[email protected]>
* .cvsignore: Ignore generated files (remove with make clean).
	* CertificateFormatter.cs: Commented 2 lines as it didn't compile
	with MCS (but did compile with CSC).
	* gcertview.cs: Change app.ico (non-existing) to mono.bmp (16x16).
	* gcertview.exe.config: New. Configuration file for gcertview (same
	as certview.exe.config except it reference gcertview.exe instead of
	certview.exe).
	* makefile: Updated for linux by Ben Maurer.

svn path=/trunk/mcs/; revision=15410
2003-06-15 03:46:31 +00:00
Alexandre Pigolkine 3751bfd7ed ilasm can compile this
svn path=/trunk/mcs/; revision=15409
2003-06-15 01:03:49 +00:00
Jackson Harper 56a13a2710 * ILParser.jay: Add set imagebase, subsystem, and corflags.
svn path=/trunk/mcs/; revision=15408
2003-06-15 00:57:48 +00:00
Jackson Harper d4fcf82d7b * ILTables.cs: Add imagebase keyword.
svn path=/trunk/mcs/; revision=15407
2003-06-15 00:56:06 +00:00
Jackson Harper 33c9ed2cc7 * CodeGen.cs: Add methods for setting corflags, subsystem, and corflags.
svn path=/trunk/mcs/; revision=15406
2003-06-15 00:54:17 +00:00
Alexandre Pigolkine 307c3ec75d example added
svn path=/trunk/mcs/; revision=15405
2003-06-15 00:39:36 +00:00
Alexandre Pigolkine 3458f9a3e9 cdeclCallbacks for libjpeg
svn path=/trunk/mcs/; revision=15404
2003-06-15 00:27:44 +00:00
Alexandre Pigolkine 69f6149288 files added, --unsafe flag, cdecl delegates
svn path=/trunk/mcs/; revision=15403
2003-06-15 00:19:16 +00:00
Jackson Harper 69d09b735c * ILParser.jay: Implement custom modified types.
svn path=/trunk/mcs/; revision=15402
2003-06-15 00:17:23 +00:00
Jackson Harper f054f6bf88 * ITypeRef.cs, PeapiTypeRef.cs, TypeRef.cs: Quick hack for custom
modified types.

svn path=/trunk/mcs/; revision=15401
2003-06-15 00:15:58 +00:00
Alexandre Pigolkine 59c1dc04d7 image painting, InternalImageInfo, image read/write
svn path=/trunk/mcs/; revision=15400
2003-06-15 00:14:37 +00:00
Alexandre Pigolkine 8a6e147a06 InternalImageInfo support
svn path=/trunk/mcs/; revision=15399
2003-06-15 00:13:17 +00:00
Alexandre Pigolkine cb912e1618 support of InternalImageInfo, image loading
svn path=/trunk/mcs/; revision=15398
2003-06-15 00:12:33 +00:00
Alexandre Pigolkine 9890b57fb1 properties uncommented
svn path=/trunk/mcs/; revision=15397
2003-06-15 00:11:40 +00:00
Alexandre Pigolkine 43148fc5c5 implementation added, see ChangeLog
svn path=/trunk/mcs/; revision=15396
2003-06-15 00:10:47 +00:00
Alexandre Pigolkine d150f157be first version of codecs
svn path=/trunk/mcs/; revision=15395
2003-06-15 00:06:47 +00:00
Alexandre Pigolkine a47e80ab7d switch to unix line terminators
svn path=/trunk/mcs/; revision=15394
2003-06-15 00:00:01 +00:00
Sebastien Pouliot a48b96aecd 2003-06-14 Sebastien Pouliot <[email protected]>
* list.unix. Added SubjectAltNameExtension.cs

svn path=/trunk/mcs/; revision=15393
2003-06-14 21:43:57 +00:00
Sebastien Pouliot fa6b9d2cb7 2003-06-14 Sebastien Pouliot <[email protected]>
* SubjectAltNameExtension.cs: New. Added for certview.

svn path=/trunk/mcs/; revision=15392
2003-06-14 21:41:58 +00:00
Sebastien Pouliot 2a276c19ad 2003-06-14 Sebastien Pouliot <[email protected]>
* mono.bmp: New. 16x16 bitmap for Mono::
	* mono.ico: New. 32x32 windows icon for Mono::
	* v1.bmp: New. 16x16 bitmap for X.509 v1 properties/extensions.
	* v2.bmp: New. 16x16 bitmap for X.509 v2 properties/extensions.
	* v3.bmp: New. 16x16 bitmap for X.509 v3 properties/extensions.
	* v3critical.bmp: New. 16x16 bitmap for X.509 v3 critical extensions.
	* wax-seal.png: New. Bitmap for valid certificate.
	* wax-seal-broken.png: Bitmap for invalid certificate.

svn path=/trunk/mcs/; revision=15391
2003-06-14 21:08:08 +00:00
Sebastien Pouliot ef17df7a3b 2003-06-14 Sebastien Pouliot <[email protected]>
* CertificateViewer.cs: New. SFW-based certificate viewer.
	* CertificateViewer.resx: New. SWF Resource file.
	* CertificateFormatter.cs: New. Not GUI specific.
	* certview.exe.config: New. Configuration file for certview.
	* certview.glade: New. GUI for GTK#.
	* certview.gladep: New. Project file for GLADE.
	* gcertview.cs: New. GTK#-based certificate viewer.
	* makefile: New. makefile for both SWF and GTK# viewers.
	* X509ExtensionsHandler.cs: Configuration file parser.

svn path=/trunk/mcs/; revision=15390
2003-06-14 21:06:44 +00:00
Paolo Molaro d0058bc691 Sat Jun 14 19:01:32 CEST 2003 Paolo Molaro <[email protected]>
* icall.c: when getting timezone info, return reasonable values if we
	can't get the actual data.

svn path=/trunk/mono/; revision=15384
2003-06-14 17:11:16 +00:00
Lluis Sanchez 5fbb899cb0 * Methods.cs: Added information about headers in MethodStubInfo. Added cache of serializers
in TypeStubInfo so serializers for headers they can be shared by several methods.
	* SoapClientMessage.cs: Headers added in the constructor.
	* SoapMessage.cs: Added header list initialization.
	* SoapHttpClientProtocol.cs: Added support soap headers.

svn path=/trunk/mcs/; revision=15382
2003-06-14 14:38:01 +00:00
Dick Porter 2a312f5b60 2003-06-14 Dick Porter <[email protected]>
* threads.c (start_wrapper): Remove the reference to the thread
	object in the TLS data, so the thread object can be finalized.
	This won't be reached if the thread threw an uncaught exception,
	so those thread handles will stay referenced :-( (This is due to
	missing support for scanning thread-specific data in the Boehm GC
	- the io-layer keeps a GC-visible hash of pointers to TLS data.)

svn path=/trunk/mono/; revision=15381
2003-06-14 14:27:42 +00:00
Dick Porter d4e303578e Make print_method_from_ip() print the pointer it's looking up, to make
later matching up of the output with the stack trace easier.

svn path=/trunk/mono/; revision=15380
2003-06-14 14:19:23 +00:00
Gonzalo Paniagua Javier 5f56352dc6 2003-06-14 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: if CookieContainer has not been set, make HttpWebResponse ignore
	Set-Cookie* headers.

	* HttpWebResponse.cs: Set-Cookie and Set-Cookie headers removed if CookieContainer have
	been provided to the request.

svn path=/trunk/mcs/; revision=15379
2003-06-14 13:22:53 +00:00
Paolo Molaro 608e73439a Sat Jun 14 13:16:17 CEST 2003 Paolo Molaro <[email protected]>
* reflection.c: ensure streams and tables are first allocated with
	ALLOC_ATOMIC (GC_realloc uses plain GC_malloc otherwise).

svn path=/trunk/mono/; revision=15378
2003-06-14 11:26:34 +00:00
Paolo Molaro a70c4462b8 Sat Jun 14 13:13:20 CEST 2003 Paolo Molaro <[email protected]>
* icall.c: fixed GetElementType for byrefs (bug# 44792).

svn path=/trunk/mono/; revision=15377
2003-06-14 11:22:11 +00:00
Duncan Mak 275bf30f56 Fixes the enumerator for SortedList.
2003-06-13  Herve Poussineau  <[email protected]>

	* SortedList.cs: Can enumerate on DictionaryEntries, not only on
	keys on values. Enumerate by default on DictionaryEntries.

2003-06-14  Duncan Mak  <[email protected]>

	* SortedListTest.cs
	(TestIndexer):
	(TestEnumerator): Incorporated these two tests from Philippe
	Lavoie <[email protected]>.

svn path=/trunk/mcs/; revision=15376
2003-06-14 04:37:26 +00:00
Lluis Sanchez 3e3e0841a4 * XmlSerializationReader.cs: Fixed error message.
* XmlSerializationReaderInterpreter.cs: Fixed bug when reading XmlQualifiedNames as attributes
	  Thanks to Atsushi!
	* XmlSerializationWriter.cs: Null check in FromXmlQualifiedName.

svn path=/trunk/mcs/; revision=15375
2003-06-13 22:30:24 +00:00
Zoltan Varga 22201010eb 2003-06-13 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_create_runtime_class): Add support for
	properties to dynamically created classes.
	* reflection.c: Fix a few places where non-MonoObjects were inserted
	into the tokens hashtable.

svn path=/trunk/mono/; revision=15371
2003-06-13 17:48:23 +00:00
Atsushi Eno 3bbfd8747a 2003-06-13 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : LookupNamespace () has refered invalid current
	  node for attributes. Modified to use private "document" property.

svn path=/trunk/mcs/; revision=15370
2003-06-13 17:33:41 +00:00
Paolo Molaro 2ed2d98966 Fri Jun 13 19:10:55 CEST 2003 Paolo Molaro <[email protected]>
* object.c: some support to handle out of memory exceptions.

svn path=/trunk/mono/; revision=15369
2003-06-13 17:19:18 +00:00
Lluis Sanchez 028bb2c2ca * XmlSerializationReader.cs: Fixed implementation of ReadElementQualifiedName() and ReadTypedPrimitive().
* XmlSerializationReaderInterpreter.cs: Improved serialization of XmlQualifiedNames.
	* XmlSerializationWriter.cs: implemented methods for reading XmlQualifiedNames.
	* XmlSerializationWriterInterpreter.cs: Improved deserialization of XmlQualifiedNames.

svn path=/trunk/mcs/; revision=15368
2003-06-13 16:09:27 +00:00
Gonzalo Paniagua Javier f67c16ea74 2003-06-13 Gonzalo Paniagua Javier <[email protected]>
* System.Net/AuthenticationManager.cs: get the list of authentication
	modules from the configuration files. Added Clear and fixed Unregister.

	* System.Net/BasicClient.cs: fully implemented.

	* System.Net/HttpWebRequest.cs: added support for Basic authentication
	when credentials are set.

	* System.Net/NetworkCredential.cs: fixed GetCredential.

	* System.Net.Configuration/NetAuthenticationModuleHandler.cs: register
	the modules using AuthenticationManager.

svn path=/trunk/mcs/; revision=15367
2003-06-13 16:01:42 +00:00
Lluis Sanchez 1b17c3d245 * Methods.cs: Added serializer to MethodStubInfo for deserializing faults.
* SoapHttpClientProtocol.cs: Added support for faults.

svn path=/trunk/mcs/; revision=15366
2003-06-13 15:30:58 +00:00
Paolo Molaro 0cfcc5a0f3 missing.
svn path=/trunk/mono/; revision=15365
2003-06-13 10:14:26 +00:00
Lluis Sanchez 014e3c71b3 * SchemaTypes.cs: Changed DataSet type for a more generic XmlSerializable.
* SoapReflectionImporter.cs: tiny fix.
	* XmlReflectionImporter.cs, TypeData.cs, XmlSerializationWriterInterpreter.cs,
	  XmlSerializationReaderInterpreter.cs: Added support for IXmlSerializable.
	* XmlSerializationReader.cs: Fixed implementation of ReadSerializable().
	* XmlSerializationWriter.cs: implemented WriteSerializable ().

svn path=/trunk/mcs/; revision=15364
2003-06-13 09:48:24 +00:00
Dietmar Maurer d366069d59 2003-06-13 Dietmar Maurer <[email protected]>
* mini.c (optimize_branches): improved to handle all kinds of
	conditional branches.

svn path=/trunk/mono/; revision=15363
2003-06-13 09:22:52 +00:00
Duncan Mak d6e894bb6b Fixes to various System.Collections class, with test cases included.
svn path=/trunk/mcs/; revision=15361
2003-06-13 08:40:21 +00:00
César Natarén 9925f72c0d I forgot to write and commit my ChangeLog entry from monday's changes.
svn path=/trunk/mcs/; revision=15358
2003-06-13 06:21:49 +00:00
Sebastien Pouliot 4dce7be6f7 2003-06-11 Sebastien Pouliot <[email protected]>
* SignedXml.cs: Changed USE_VERSION_1_0 for NET_1_0.
	* Transform.cs: Changed USE_VERSION_1_0 for NET_1_0.

svn path=/trunk/mcs/; revision=15357
2003-06-13 03:32:30 +00:00
Gonzalo Paniagua Javier 7944c86a9e 2003-06-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: *really* take care of requestSent to prevent
	sending the same request twice.
	* WebAsyncResult.cs: don't close the handle. Just Reset.
	* WebConnectionStream.cs: removed unneeded line.

svn path=/trunk/mcs/; revision=15354
2003-06-12 22:27:09 +00:00
Duncan Mak 1efe22b539 Fix the attribution.
svn path=/trunk/mcs/; revision=15353
2003-06-12 20:23:06 +00:00
Duncan Mak feeb2fccae 2003-06-12 Duncan Mak <[email protected]>
* UserPreferenceChangedEventArgs.cs
	* UserPreferenceChangingEventArgs.cs
	(Category): Fixed typo. Patch from A. Nahr.
	([email protected]>.

svn path=/trunk/mcs/; revision=15352
2003-06-12 20:16:26 +00:00
Gonzalo Paniagua Javier 020dbe1c8f 2003-06-12 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: use InternalClose when we are not going to send the
	rest of the request stream because of an error after sending the
	headers.

	* WebConnection.cs: check for completion after setting the response.
	Enable reading in NextRead.

	* WebConnectionStream.cs: re-fixed the count for partially buffered
	reads. If the network stream returns 0 bytes, we're done.

svn path=/trunk/mcs/; revision=15351
2003-06-12 20:00:09 +00:00
Lluis Sanchez 2abcd5c4c8 * XmlAnyElementAttribute.cs, XmlArrayItemAttribute.cs: Added AllowMultiple flag.
* XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs,
	  XmlSerializationReaderInterpreter.cs, XmlTypeMapElementInfo.cs,
	  XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added support for XmlTextAttribute.
	* XmlSerializationWriter.cs: small fix.

svn path=/trunk/mcs/; revision=15350
2003-06-12 19:34:16 +00:00
Atsushi Eno 790a5e224d 2003-06-13 Atsushi Enomoto <[email protected]>
* XSD2Class.cs: several changes.

svn path=/trunk/mcs/; revision=15349
2003-06-12 18:47:31 +00:00
Aleksey Ryabchuk dd87de0a39 create context menu using CreatePopupMenu function
svn path=/trunk/mcs/; revision=15347
2003-06-12 16:40:16 +00:00
Dietmar Maurer 4dc97a8698 bug fix
svn path=/trunk/mono/; revision=15346
2003-06-12 16:33:38 +00:00
Aleksey Ryabchuk 442d94c24a started impl. of TreeView control
svn path=/trunk/mcs/; revision=15345
2003-06-12 16:28:47 +00:00
Aleksey Ryabchuk 013b9219e9 * Control.cs : don't do anything if Anchor is set to default value
* SystemInformation.cs : return some system metrics
	* UserControl.cs : default size impl.

svn path=/trunk/mcs/; revision=15344
2003-06-12 14:48:33 +00:00
Dietmar Maurer 3c83adc0d4 2003-06-12 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): support reference
	return types

svn path=/trunk/mono/; revision=15343
2003-06-12 14:00:20 +00:00
Paolo Molaro 5de925a9f3 Wed Jun 11 18:32:51 CEST 2003 Paolo Molaro <[email protected]>
* object.h, object.c: more portability stuff from Bernie Solomon.
	Unexport mono_object_allocate(). Added mono_object_unbox ().
	Set exitcode when an unhandled exception is thrown.

svn path=/trunk/mono/; revision=15338
2003-06-12 10:11:46 +00:00
Zoltan Varga fd0306326e 2003-06-12 Zoltan Varga <[email protected]>
* FileStreamTest.cs: New tests for recently fixed bugs.

svn path=/trunk/mcs/; revision=15337
2003-06-12 08:43:33 +00:00
Zoltan Varga f2ba9b477a 2003-06-11 Zoltan Varga <[email protected]>
* FileStream.cs: Fix errors in previous checkins:
	(Write): Only take the shortcut route if the data is longer than the
	buffer length.
	(Write): Flush the buffer before writing out the new data
	(Write): Flush the buffer after writing out a segment since otherwise
	we will go into an infinite loop.
	(FlushBuffer): Remove my last change since it was clearly wrong.
	(Seek): Run FlushBuffer () after the in-buffer seek optimization.
	(Seek): Only use the in-buffer optimization if the buffer is not
	empty.
	(Length): Call FlushBuffer () since buffer data might change the size
	of the stream.

svn path=/trunk/mcs/; revision=15336
2003-06-12 08:35:22 +00:00
Sebastien Pouliot 4006f91139 2003-06-11 Sebastien Pouliot <[email protected]>
* AllTests2.cs: Converted tests to NUnit2 format.
	* RSACryptoServiceProviderTest.cs: Converted tests to NUnit2 format.
	* RSAPKCS1KeyExchangeDeformatterTest.cs: Converted tests to NUnit2 format.
	* RSAPKCS1KeyExchangeFormatterTest.cs: Converted tests to NUnit2 format.
	* RSAPKCS1SignatureDeformatterTest.cs: Converted tests to NUnit2 format.
	* RSAPKCS1SignatureFormatterTest.cs: Converted tests to NUnit2 format.

svn path=/trunk/mcs/; revision=15334
2003-06-12 02:03:46 +00:00
Francisco Figueiredo Jr. ec58312e9c 2003-06-11 Francisco Figueiredo Jr. <[email protected]>
* CommandTests.cs: Changed code to use parameter names starting with ':'. Added test for empty query.
	* DataReaderTests.cs: Added test for parameter names overlap. Added test for nonexistent parameter name.

svn path=/trunk/mcs/; revision=15333
2003-06-12 01:53:57 +00:00
Francisco Figueiredo Jr. 89ef9bd263 2003-06-11 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlCommand.cs: Fixed parameter replace bug when parameter names overlap. Thanks Ishpal Singh. Cleaned up the code.
	* NpgsqlDataReader.cs: Fixed NPE bug when handling queries which doesn't return anything.
	* NpgsqlParameter.cs: Added code to format parameter names to start with ':'.
	* NpgsqlParameterCollection.cs: Added code to format parameter names to start with ':'.

svn path=/trunk/mcs/; revision=15332
2003-06-12 01:49:20 +00:00
Sebastien Pouliot dc83d01c5e 2003-06-11 Sebastien Pouliot <[email protected]>
* crypto: Updated crypto status

svn path=/trunk/mono/; revision=15331
2003-06-12 01:33:25 +00:00
Sebastien Pouliot 71f2c5b03e 2003-06-11 Sebastien Pouliot <[email protected]>
* DSACryptoServiceProvider.cs: Refactored from orginal by splitting
	much core functionalities into DSAManaged.
	* RSACryptoServiceProvider.cs: Refactored from orginal by splitting
	much core functionalities into RSAManaged.
	* RSAPKCS1SignatureDeformatter.cs: Updated to use the new PKCS#1 API.
	Now works with any hash algorithm (which OID is defined in machine.config)
	* RSAPKCS1SignatureFormatter.cs: Updated to use the new PKCS#1 API.
	Now works with any hash algorithm (which OID is defined in machine.config)

svn path=/trunk/mcs/; revision=15330
2003-06-12 01:22:06 +00:00
Sebastien Pouliot 22fac787cf 2003-06-11 Sebastien Pouliot <[email protected]>
* unix.args: added Mono.Security.Cryptography/DSAManaged.cs and
	RSAManaged.cs

svn path=/trunk/mcs/; revision=15329
2003-06-12 01:14:03 +00:00
Sebastien Pouliot 11c7b2cc21 2003-06-11 Sebastien Pouliot <[email protected]>
* DSAManaged.cs: Refactored from DSACryptoServiceProvider.cs. Cannot
	be reused outside [ms]corlib because DSA constructor is internal :-(

	* PKCS1.cs: Now support any hash algorithm when encoding PKCS 1.5
	(i.e. not limited to pre-calculated values for known hashes). Some
	other API changes to ease the use of other hash algorithms.

	* RSAManaged.cs: Refactored from RSACryptoServiceProvider.cs. This
	class is required for custom PKCS#1 padding in SSL (which is not
	possible using RSACryptoServiceProvider).

svn path=/trunk/mcs/; revision=15328
2003-06-12 01:09:04 +00:00
Sebastien Pouliot d824e3aed9 2003-06-11 Sebastien Pouliot <[email protected]>
* BigInteger.cs: Added Clear to zeroize big integers and code to allow
	compares with null (because operators == and != are re-defined). Note:
	The class may still leak some private info in temp arrays (thanks Ben).

svn path=/trunk/mcs/; revision=15327
2003-06-12 00:35:48 +00:00
Lluis Sanchez 421c4a18e2 * XmlReflectionImporter.cs: Added support for XmlIgnoreAttribute in enum members.
Added support for DefaultValueAttribute.
	* XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
	  the value of an enum.
	* XmlTypeMapMember.cs: Added DefaultValue attribute.
	* XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
	  integer values.

svn path=/trunk/mcs/; revision=15326
2003-06-11 23:16:11 +00:00
Gonzalo Paniagua Javier 435ec337a7 2003-06-11 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: implemented UploadFile. Fixed SetupRequest to set the
	special headers *after* the others.

svn path=/trunk/mcs/; revision=15325
2003-06-11 20:48:43 +00:00
Tim Coleman c781795b3f 2003-06-11 Tim Coleman <[email protected]>
* SybaseConnection.cs:
                Make connection parameter parsing "more correct"
                and throw appropriate exceptions, similar to MS SqlClient
        * SybaseBinary.cs:
        * SybaseBoolean.cs:
        * SybaseByte.cs:
        * SybaseDateTime.cs:
        * SybaseDecimal.cs:
        * SybaseDouble.cs:
        * SybaseMoney.cs:
        * SybaseString.cs:
                Mass import of code from SqlClient to make this behave
                better.

svn path=/trunk/mcs/; revision=15324
2003-06-11 18:22:02 +00:00
Dick Porter 786185f8f6 Simple script to print a stack trace and also look up all the managed
frames

svn path=/trunk/mono/; revision=15320
2003-06-11 17:02:46 +00:00
Aleksey Ryabchuk 07d8828f50 * ContextMenu.cs : SourceControl, Show method
* Control.cs : ContextMenu, CanSelect, force parent to perform layout when Dock property changes
	* GroupBox.cs
	* Label.cs
	* Panel.cs
	* PictureBox.cs
	* Splitter.cs
	* ProgressBar.cs : remove Selectable style
	* RadioButton.cs : set TextAlign to MiddleLeft by default
	* tooltip.cs : override Dispose method
	* win32Enums.cs
	* win32functions.cs : flags and function for context menu

svn path=/trunk/mcs/; revision=15319
2003-06-11 16:36:24 +00:00
Paolo Molaro 1ca5dab777 Wed Jun 11 18:01:06 CEST 2003 Paolo Molaro <[email protected]>
* mini.c, mini.h, jit-icalls.c: speedup emulation of opcodes that
	don't raise exceptions.

svn path=/trunk/mono/; revision=15317
2003-06-11 16:12:19 +00:00
Miguel de Icaza a9972b269f Add markup
svn path=/trunk/mono/; revision=15303
2003-06-11 14:39:58 +00:00
Lluis Sanchez 9ac28c5b9b * XmlSerializationReader.cs: Minor fix.
svn path=/trunk/mcs/; revision=15302
2003-06-11 13:53:43 +00:00
Lluis Sanchez 4c174fcaa1 * XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs: Minor fixes.
svn path=/trunk/mcs/; revision=15301
2003-06-11 13:38:56 +00:00
Miguel de Icaza 667e000bf0 Flush
svn path=/trunk/mono/; revision=15300
2003-06-11 13:37:48 +00:00
Dick Porter d424a7866d 2003-06-11 Dick Porter <[email protected]>
* shared.c: Fix shared directory creation.  Patch from
	Pablo Baena <[email protected]>

svn path=/trunk/mono/; revision=15299
2003-06-11 12:39:20 +00:00
Dietmar Maurer cdf995e83c 2003-06-11 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): use custom
	marshaler for return types.

svn path=/trunk/mono/; revision=15296
2003-06-11 09:59:09 +00:00
Gonzalo Paniagua Javier 786993a318 2003-06-11 Gonzalo Paniagua Javier <[email protected]>
* MonoType.cs: don't throw nullref when the return type for a property
	is specified and the property doesn't have a get accessor.

svn path=/trunk/mcs/; revision=15293
2003-06-11 00:00:36 +00:00
Duncan Mak 0d0224aa93 2003-06-10 Duncan Mak <[email protected]>
* Array.cs (CreateInstance): Fixed a typo. It should throw
	ArgumentNullException instead of ArgumentException.

svn path=/trunk/mcs/; revision=15292
2003-06-10 22:56:27 +00:00
Gonzalo Paniagua Javier 224ee0e213 2003-06-11 Gonzalo Paniagua Javier <[email protected]>
* HashtableTest.cs: removed duplicate tests and unneeded inner class.

svn path=/trunk/mcs/; revision=15291
2003-06-10 22:42:04 +00:00
Ben Maurer 4b6d1164eb Change back the copyright. I guess I should not look for a carrear as a lawyer ;-)
svn path=/trunk/mcs/; revision=15290
2003-06-10 22:37:50 +00:00
Lluis Sanchez f8c86e3500 * Methods.cs: removed handler for UnknownNode event
svn path=/trunk/mcs/; revision=15289
2003-06-10 18:31:05 +00:00
Lluis Sanchez 64f5b2fde7 * SoapReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
* XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
	* XmlCustomFormatter.cs: small fixes.
	* XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
	* XmlSerializationWriter.cs: Implemented TopLevelElement().
	  WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
	  WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
	* XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
	  root elements.

svn path=/trunk/mcs/; revision=15288
2003-06-10 18:30:32 +00:00
Lluis Sanchez a3e2c2fc98 * XmlTextWriter.cs: when adding an attribute with a namespace, a prefix must be automaticaly
generated, and a namespace declaration must be added.
	* XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/

svn path=/trunk/mcs/; revision=15287
2003-06-10 18:13:55 +00:00
Paolo Molaro 3541f6416c Tue Jun 10 19:00:31 CEST 2003 Paolo Molaro <[email protected]>
* tramp-x86.c, tramp-ppc.c, debug-mini.c: move arch-specific code
	to arch-specific files.

svn path=/trunk/mono/; revision=15285
2003-06-10 17:09:45 +00:00
Dick Porter 7cbf993629 2003-06-10 Dick Porter <[email protected]>
* acconfig.h:
	* configure.in: Check for struct ip_mreq if struct ip_mreqn isn't
	available.

2003-06-10  Dick Porter  <[email protected]>

	* socket-io.c: Don't assume that one of struct ip_mreqn or struct
	ip_mreq is available

2003-06-10  Dick Porter  <[email protected]>

	* atomic.c: Delete the useless compile warning

svn path=/trunk/mono/; revision=15284
2003-06-10 17:02:25 +00:00
Nick Drochak 3f2ec8f426 2003-06-11 Nick Drochak <[email protected]>
* Added Paolo's comments about CVS commits and changing code.
	Also reorganized it a bit. Hopefully this is a more logical ordering.

svn path=/trunk/mono/; revision=15283
2003-06-10 16:44:00 +00:00
Aleksey Ryabchuk d38f9ee9b6 * Conrols.cs : Disposing property, Dispose method
* Cursor.cs  : Show, Hide, Copy cursor
	* NativeWindow.cs : destructor

svn path=/trunk/mcs/; revision=15282
2003-06-10 16:17:41 +00:00
Paolo Molaro 200f68ef8c Tue Jun 10 17:35:03 CEST 2003 Paolo Molaro <[email protected]>
* debug-mono-symfile.c, marshal.c, metadata.c, monitor.c,
	mono-debug-debugger.c, mono-debug.c, process.c: portability fixes
	by Bernie Solomon <[email protected]>.

svn path=/trunk/mono/; revision=15281
2003-06-10 15:45:18 +00:00
Martin Baulig 6da9c5e8d3 Removed the debugger download link from Mono 0.24 since that debugger version doesn't work with Mono 0.24.
svn path=/trunk/mono/; revision=15280
2003-06-10 14:59:15 +00:00
Zoltan Varga cb5190e4b3 2003-06-10 Zoltan Varga <[email protected]>
* gc.c (mono_gc_init): Avoid error message on shutdown when
	GC_DONT_GC=1 is used.

svn path=/trunk/mono/; revision=15275
2003-06-10 13:06:09 +00:00
Dick Porter 6102b277d7 Build fix
svn path=/trunk/mono/; revision=15274
2003-06-10 12:02:06 +00:00
Zoltan Varga 576b6ce714 2003-06-10 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_Module_GetGuidInternal):
	New icall to return the GUID of a module.

svn path=/trunk/mono/; revision=15273
2003-06-10 09:57:22 +00:00
Zoltan Varga 18a937ddee 2003-06-10 Zoltan Varga <[email protected]>
* Module.cs (Mono_GetGuid): New method to return the GUID of the
	module.

svn path=/trunk/mcs/; revision=15272
2003-06-10 09:55:48 +00:00
Zoltan Varga 3f5732eb75 2003-06-10 Zoltan Varga <[email protected]>
* XmlDocumentTests.cs: New test for null prefix and namespaceURI in
	CreateAttribute.

svn path=/trunk/mcs/; revision=15271
2003-06-10 09:52:57 +00:00
Zoltan Varga 5221236602 2003-06-10 Zoltan Varga <[email protected]>
* MonoSymbolFile.cs: Fix off-by-one error.

svn path=/trunk/mcs/; revision=15270
2003-06-10 09:51:09 +00:00
Zoltan Varga b1658fb138 2003-06-10 Zoltan Varga <[email protected]>
* XmlAttribute.cs: Accept a null prefix or namespaceURI.

svn path=/trunk/mcs/; revision=15269
2003-06-10 09:49:55 +00:00
Ville Palo 40284bfc2e 2003-06-10 Ville Palo <[email protected]>
* DateTimeTest.cs: more tests.

svn path=/trunk/mcs/; revision=15268
2003-06-10 09:49:41 +00:00
Zoltan Varga 14a03257ac 2003-06-10 Zoltan Varga <[email protected]>
* configure.in: Define HAVE_GC_GCJ_MALLOC for included libgc.

svn path=/trunk/mono/; revision=15267
2003-06-10 09:46:36 +00:00
Martin Baulig cac115908e 2003-06-10 Martin Baulig <[email protected]>
* configure.in: Fall back to boehm if we don't have a libgc
	subdirectory.

svn path=/trunk/mono/; revision=15266
2003-06-10 09:22:25 +00:00
Martin Baulig 2fd258752e 2003-06-10 Martin Baulig <[email protected]>
* configure.in: Make the libgc stuff actually work; we now create
	a shared libmonogc.so when using the included libgc.

svn path=/trunk/mono/; revision=15264
2003-06-10 08:36:20 +00:00
Duncan Mak 55448b57e3 2003-06-10 Duncan Mak <[email protected]>
* XmlDocumentNavigator.cs (GetNode): Make it implement
	IHasXmlNode.

        Hopefully I fixed the space/tab thing. Let's just all use
        spaces, it's just easier....

svn path=/trunk/mcs/; revision=15262
2003-06-10 06:07:01 +00:00
Nick Drochak 67ee24855f 2003-06-10 Nick Drochak <[email protected]>
* StackFrameTest.cs: More cleanups.  Now *all* tests pass.

svn path=/trunk/mcs/; revision=15261
2003-06-10 04:05:11 +00:00
Nick Drochak 0236bf7697 2003-06-10 Nick Drochak <[email protected]>
* StactFrameTest.cs: Cleanups.  Now tests pass.

svn path=/trunk/mcs/; revision=15260
2003-06-10 03:47:57 +00:00
Duncan Mak 9c0efe87a7 2003-06-09 Duncan Mak <[email protected]>
* ArrayTest.cs:
	(TestCreateInstance2):
	(TestLastIndexOf4):
	(TestLastIndexOf5):
	(MoreSort10): Added 4 new tests.

svn path=/trunk/mcs/; revision=15259
2003-06-10 03:09:31 +00:00
Gonzalo Paniagua Javier 690c7e98cb Really fix partial reads.
svn path=/trunk/mcs/; revision=15258
2003-06-10 02:48:11 +00:00
Nick Drochak 075c1ff713 2003-06-10 Nick Drochak <[email protected]>
* ArrayTest.cs: Cleanup some unused bits.

svn path=/trunk/mcs/; revision=15257
2003-06-10 02:44:07 +00:00
Gonzalo Paniagua Javier e384067e38 2003-06-10 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: when the read is partially filled from the
	initial buffer, add those bytes too. Thanks to Lluis for debugging this.

svn path=/trunk/mcs/; revision=15256
2003-06-10 01:08:18 +00:00
Sebastien Pouliot f032ef7fc5 2003-06-09 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Now support OID in machine.config.
	* DSACryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
	* KeySizes.cs: Changed USE_VERSION_1_0 for NET_1_0.
	* MD5CryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
	* RNGCryptoServiceProvider.cs: Changed USE_VERSION_

svn path=/trunk/mcs/; revision=15255
2003-06-10 00:47:37 +00:00
Paolo Molaro 679c5f13d3 Disable libgc here, too.
svn path=/trunk/mono/; revision=15254
2003-06-09 21:53:19 +00:00
Paolo Molaro 9354d51bbf Disable included libgc completely untils it's fixed.
svn path=/trunk/mono/; revision=15253
2003-06-09 21:42:26 +00:00
Gonzalo Paniagua Javier 346bb452a5 2003-06-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: added ExpectContinue property.
	* WebConnection.cs: allow 100 Continue to be delayed after waiting for
	it.

svn path=/trunk/mcs/; revision=15252
2003-06-09 19:59:08 +00:00
Paolo Molaro e157e59ca5 Mon Jun 9 20:21:47 CEST 2003 Paolo Molaro <[email protected]>
* cpu-pentium.md, mini-x86.c: fix (well, actually implement) OP_TAN
	and OP_ATAN (fixes bug#44293).

svn path=/trunk/mono/; revision=15251
2003-06-09 18:30:48 +00:00
Paolo Molaro 3090710ed7 Small updates.
svn path=/trunk/mono/; revision=15250
2003-06-09 18:28:54 +00:00
Gonzalo Paniagua Javier 0f11ceba7f Added webRequesModules configuration. Thanks to Lluis for pointing this out
svn path=/trunk/mono/; revision=15249
2003-06-09 18:10:18 +00:00
Paolo Molaro ac3283997b Mon Jun 9 19:33:51 CEST 2003 Paolo Molaro <[email protected]>
* class.c: ensure instance size always includes the parent's size
	even whem class size is set explicitly (fixes bug#44294).

svn path=/trunk/mono/; revision=15248
2003-06-09 17:43:50 +00:00
Paolo Molaro f523e9fa81 Mon Jun 9 19:00:56 CEST 2003 Paolo Molaro <[email protected]>
* Makefile.am, mini-x86.c: rename cpu description array to
	pentium_desc, since some compilers define the 'pentium' preprocessor
	symbol.

svn path=/trunk/mono/; revision=15247
2003-06-09 17:10:48 +00:00
Dick Porter bd3b07be68 2003-06-09 Dick Porter <[email protected]>
* daemon.c: Lookup env as a string array.  Fixes bug 44289.  Also
	make setting the process handle value in the environment actually
	work.

	* processes.c: Pretty up the process name, if it happens to be
	"mono" such as when another mono process forks "mono foo.exe"

svn path=/trunk/mono/; revision=15246
2003-06-09 17:01:42 +00:00
Aleksey Ryabchuk d8192cb9f4 * Control.cs : Cursor property, handle WM_SETCURSOR
* Cursor.cs : started implementation
	* Cursors.cs : load system cursor types
	* win32functions.cs : DestroyCursor function

svn path=/trunk/mcs/; revision=15245
2003-06-09 16:22:45 +00:00
Paolo Molaro bac76e8acf Go back to the external libgc until this is properly tested.
svn path=/trunk/mono/; revision=15244
2003-06-09 14:50:31 +00:00
Miguel de Icaza bceb317a25 Small touch ups
svn path=/trunk/mono/; revision=15243
2003-06-09 13:50:36 +00:00
Aleksey Ryabchuk bec8f85309 fixed typo, implementation added
svn path=/trunk/mcs/; revision=15242
2003-06-09 13:34:53 +00:00
Paolo Molaro 368ff35e3f jit/Makefile is no more.
svn path=/trunk/mono/; revision=15241
2003-06-09 13:00:26 +00:00
Ville Palo 43fa96bc77 2003-06-09 Ville Palo <[email protected]>
* FileStream.cs:
	- removed unusefull bugfix (DirectoryNotFoundException)
	- Flush before seek.

svn path=/trunk/mcs/; revision=15240
2003-06-09 10:03:25 +00:00
Aleksey Ryabchuk 1c4ae8642c fixed issues breaking the build
svn path=/trunk/mcs/; revision=15239
2003-06-09 09:21:08 +00:00
Ville Palo db08db8d36 2003-06-09 Ville Palo <[email protected]>
* FileStream.cs: Check buffer size before append/read -exceptios

svn path=/trunk/mcs/; revision=15238
2003-06-09 08:50:20 +00:00
Ville Palo 9e610b8307 2003-06-09 Ville Palo <[email protected]>
* FileStream.cs: Check DirectoryNotFound before FileNotFound.

svn path=/trunk/mcs/; revision=15237
2003-06-09 08:02:51 +00:00
Dennis Hayes c28ee0df3f 2003-06-09 Dennis Hayes <[email protected]>
for Gopal V <[email protected]>
	* MonthCalendar.cs
	* AxHost.cs
	Fixed overrides

svn path=/trunk/mcs/; revision=15236
2003-06-09 07:38:51 +00:00
César Natarén 50d2c06985 Added SymbolTable and IdentificationTable
svn path=/trunk/mcs/; revision=15235
2003-06-09 07:29:50 +00:00
César Natarén 3190c90684 Added Semantic Analyzer stub
svn path=/trunk/mcs/; revision=15234
2003-06-09 07:22:11 +00:00
César Natarén 37a2fdee77 Added some new files to unix.args (see ChangeLog entry)
svn path=/trunk/mcs/; revision=15233
2003-06-09 07:02:40 +00:00
Ville Palo 3441fc4647 2003-06-09 Ville Palo <[email protected]>
* FileStream.cs: Does not anymore flush while writing

svn path=/trunk/mcs/; revision=15232
2003-06-09 06:48:35 +00:00
César Natarén 1bf8e84b1b Added FormalParameterList class
svn path=/trunk/mcs/; revision=15231
2003-06-09 06:43:23 +00:00
César Natarén 55b9909312 Added VariableStatement class
svn path=/trunk/mcs/; revision=15230
2003-06-09 06:41:01 +00:00
César Natarén 0b890a96b1 Added Statement class (logical representation of an Ecmascript statement
svn path=/trunk/mcs/; revision=15229
2003-06-09 06:39:09 +00:00
Duncan Mak f692ce2584 2003-06-09 Duncan Mak <[email protected]>
* Array.cs: Revert the last revert. I fixed it.

	Here's a lesson: only commit the patches that you're absolutely
	sure about. See, I committed 3 changes below, the Sort change
	being the last one, and I was the least confident with it. But I
	committed them all anyway. Big mistake.

	So here we go again:

	(Sort): Put a try-catch block around qsort, and wrap whatever
	Exception we get into a InvalidOperationException.

svn path=/trunk/mcs/; revision=15228
2003-06-09 06:37:54 +00:00
César Natarén 8bc1ed2a11 Added VariableDeclaration AST representation
svn path=/trunk/mcs/; revision=15227
2003-06-09 06:35:19 +00:00
César Natarén f4a57ec95d Added Visitor interface
svn path=/trunk/mcs/; revision=15226
2003-06-09 06:32:36 +00:00
César Natarén 6b3597b01d reflect changes on grammar file
svn path=/trunk/mcs/; revision=15225
2003-06-09 06:26:57 +00:00
César Natarén 577eec116d Added some instructions to build the AST of a program (for testing).
svn path=/trunk/mcs/; revision=15224
2003-06-09 06:25:58 +00:00
César Natarén 0fc3c3646b Added AST support for program, source_element, statement, variable_statement, variable_declaration (and dependencies), function_declaration (and dependencies)
svn path=/trunk/mcs/; revision=15223
2003-06-09 06:19:42 +00:00
César Natarén 85ff9b8757 Added abstract Visit method, for Semantic Analysis
svn path=/trunk/mcs/; revision=15222
2003-06-09 06:16:16 +00:00
César Natarén c2b3a9580a Added Visit method, for Semantic Analysis
svn path=/trunk/mcs/; revision=15221
2003-06-09 06:13:59 +00:00
César Natarén 67980e7881 header style correction
svn path=/trunk/mcs/; revision=15220
2003-06-09 06:08:04 +00:00
César Natarén 10868c5080 added Visit method for Semantic Analysis
svn path=/trunk/mcs/; revision=15219
2003-06-09 06:06:45 +00:00
César Natarén 602a38a684 added initial support for Semantic Analysis
svn path=/trunk/mcs/; revision=15218
2003-06-09 06:03:45 +00:00
César Natarén d215be3d88 added initial support for Semantic Analysis
svn path=/trunk/mcs/; revision=15217
2003-06-09 05:45:10 +00:00
Jackson Harper 234536090b * EventDef.cs: Only add one method for addon, fire, other, and
removeon

svn path=/trunk/mcs/; revision=15216
2003-06-09 02:58:45 +00:00
Jackson Harper 7e981be113 * Array.cs: Revert last patch, it broke some other functionality.
svn path=/trunk/mcs/; revision=15215
2003-06-09 02:07:52 +00:00
Jackson Harper 913d435af0 * AssemblyInfo.cs: Bump version number up (way up) lots of
features have been implemented since last version.

svn path=/trunk/mcs/; revision=15214
2003-06-09 01:28:59 +00:00
Jackson Harper 3764edd976 Another test.
svn path=/trunk/mcs/; revision=15213
2003-06-09 01:26:11 +00:00
Jackson Harper 68c8a3615d * ILParser.jay: Implement properties
svn path=/trunk/mcs/; revision=15212
2003-06-09 01:25:21 +00:00
Jackson Harper fc5943ad95 Add property def to build
svn path=/trunk/mcs/; revision=15211
2003-06-09 01:23:45 +00:00
Jackson Harper 1286fc2f4b * TypeDef.cs: Add properties to types.
* PropertyDef.cs: New file - Implementation of a type property feature

svn path=/trunk/mcs/; revision=15210
2003-06-09 01:23:12 +00:00
Duncan Mak 2e57f3eafd 2003-06-08 Duncan Mak <[email protected]>
* Array.cs: Throw more exceptions. This fixes the errors we see
	from the Rotor testsuite.

	(CreateInstance): Throw ArgumentNullException when the input are
	null. Throw ArgumentOutOfRangeException when bounds + length is
	greater than Int32.MaxValue.
	(LastIndexOf): Throw ArgumentOutOfRangeException if index is outside
	the valid range of indices of array.
	(Sort): Throw InvalidOperationException when comparer is null and
	none of the elements in keys implements IComparable.

svn path=/trunk/mcs/; revision=15209
2003-06-09 01:13:29 +00:00
Ben Maurer d53b17791a Oops, wrong format.
svn path=/trunk/mcs/; revision=15208
2003-06-09 00:43:28 +00:00
Ben Maurer 9102ceb52e 2003-06-08 Ben Maurer <[email protected]>
* StringCollection.cs: Rewrote. Now uses ArrayList. Fixes up quite
	a few Rotor bugs.
	* ArrayList.cs, Hashtable.cs, SortedList.cs: Enumerator fixes, error
	checking
We are now passing 37% of the System.Collections.* tests that were failing!

svn path=/trunk/mcs/; revision=15207
2003-06-09 00:41:39 +00:00
Jackson Harper dde324a12b * TypeDef.cs: Fix silly null reference bug.
svn path=/trunk/mcs/; revision=15206
2003-06-08 23:32:35 +00:00
Jackson Harper bf98018d1b More tests
svn path=/trunk/mcs/; revision=15205
2003-06-08 23:25:34 +00:00
Jackson Harper 646c03ac77 * ILParser.jay: Add generic type parameters to types. Implement events.
svn path=/trunk/mcs/; revision=15204
2003-06-08 23:23:57 +00:00
Jackson Harper baba1e8abc Add eventdefs and feature attrs to build
svn path=/trunk/mcs/; revision=15203
2003-06-08 23:23:13 +00:00
Jackson Harper 4006fc1cf9 * EventDef.cs: New file - An event definition.
* FeatureAttr.cs: New file - Attributes for features (events and
	properties)
	* MethodRef.cs: Only resolve methods once.
	* TypeDef.cs: Allow Events to be added to types. Also add
	functionality to add generic type parameters to types. The
	actually emission of these type parameters is commented out untill
	I commit my patches to PEAPI and work out the syntax of constraints.

svn path=/trunk/mcs/; revision=15202
2003-06-08 23:22:26 +00:00
Martin Baulig 4295c22ac5 Ooops, this was wrong since we already include libgc.la in libmonoutils.la.
svn path=/trunk/mono/; revision=15190
2003-06-08 20:26:50 +00:00
Martin Baulig 90000ff951 2003-06-08 Martin Baulig <[email protected]>
* configure.in: Tell libgc's configure about our threads library.

svn path=/trunk/mono/; revision=15186
2003-06-08 20:10:01 +00:00
Martin Baulig 5e2afe9a5f 2003-06-08 Martin Baulig <[email protected]>
* libgc/: Integrate the libgc module here.

	[Note: A simple `cvs update' won't work this time; you either need
	to re-checkout the `mono' module or manually move the `libgc'
	module here.]

	* configure.in (--with-gc): Added `included' option to use the
	included libgc.  This is now also the default.
	(LIBGC_CFLAGS, LIBGC_LIBS): Put the libgc stuff here and AC_SUBST it.
	(INCLUDED_LIBGC): New automake conditional.
	(USE_INCLUDED_LIBGC): #define this if appropriate.

	* autogen.sh: Run libgc/autogen.sh.

	* Makefile.am (SUBDIRS): Added libgc.

svn path=/trunk/mono/; revision=15185
2003-06-08 19:54:30 +00:00
Duncan Mak 6f98282e4c (CreateInstance): Throw a TypeLoadException if the
Length of the input array 'lengths' is greater than 255 so that we
won't see the g_assert that is in mono_array_class_get in class.c.

svn path=/trunk/mcs/; revision=15183
2003-06-08 19:25:55 +00:00
Ville Palo 8782c126a7 2003-06-08 Ville Palo <[email protected]>
* BinaryWriterTest.cs:
	* BinaryReaderTest.cs:
	* DirectoryTest.cs:
	* FileTest.cs: now works with ms.net, clean ups, nunit2, ...

svn path=/trunk/mcs/; revision=15182
2003-06-08 15:59:52 +00:00
Gonzalo Paniagua Javier f8dbb61730 This compiled ok with mcs. Preparing bugreport.
svn path=/trunk/mcs/; revision=15181
2003-06-08 13:53:02 +00:00
Gonzalo Paniagua Javier ddf5ef623a 2003-06-08 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: don't send "Expect: 100-continue" is the server
	is known not to respond to that.

	* ServicePoint.cs: added SendContinue property.

	* WebConnection.cs: only wait 2 seconds for a continue reply. If it
	timeouts, set SendContinue to false and proceeed sending data.

	* WebConnectionStream.cs: if 100-continue is not received and instead we
	get a 417 or anything else, don't send the data.

	* WebClient.cs: implemented all missing properties and methods except
	UploadFile.

svn path=/trunk/mcs/; revision=15180
2003-06-08 13:47:28 +00:00
Ben Maurer 3710444b29 2003-06-07 Ben Maurer <[email protected]>
* Stack.cs: Contains (null) works correctly. We never have the
	array sized less than 16, so that the doubling logic works no
	matter what. The enumerator is IClonable, like in ms. The
	Enumerator correctly throws an exception if Current is called
	before the enumerator is started. We now pass all the Rotor tests
	for this file!

svn path=/trunk/mcs/; revision=15179
2003-06-07 18:55:38 +00:00
Ben Maurer 54c4ccfe2c 2003-06-07 Ben Maurer <[email protected]>
* Stack.cs: Contains (null) works correctly.
	* StackTest.cs: Added test for Contains (null)

svn path=/trunk/mcs/; revision=15177
2003-06-07 17:07:25 +00:00
Marco Ridoni 4de5b76427 - ReDim() was added
- Throw was added
- Multi-line statements partly implemented (still choking on some constructs)
- Fixed line continuation character ('_')
- Fixed Mod operator
- New runtime conversion (String -> CharArray) supported
- Array declaration code was completely rewritten to allow for expressions
  to be used in a declaration
- Many sparse grammar fixes
- Started work to make the resolver case-insensitive (partially working)

svn path=/trunk/mcs/; revision=15176
2003-06-07 13:31:19 +00:00
Gonzalo Paniagua Javier 56e8733931 2003-06-07 Gonzalo Paniagua Javier <[email protected]>
* Stack.cs: fixed Clone ().

svn path=/trunk/mcs/; revision=15175
2003-06-07 12:25:45 +00:00
Alexandre Pigolkine bfc2dcfe7e DockStyle.None & AnchorStyles
svn path=/trunk/mcs/; revision=15174
2003-06-07 07:44:39 +00:00
Alexandre Pigolkine d520d70774 sample added
svn path=/trunk/mcs/; revision=15171
2003-06-06 22:02:48 +00:00
Alexandre Pigolkine 42e50e9a98 stubs for Save functions
svn path=/trunk/mcs/; revision=15170
2003-06-06 21:59:11 +00:00
Alexandre Pigolkine 02d890a4ee declare Save functions
svn path=/trunk/mcs/; revision=15169
2003-06-06 21:58:22 +00:00
Alexandre Pigolkine 5d870cfcdd call implementation
svn path=/trunk/mcs/; revision=15168
2003-06-06 21:57:12 +00:00
Alexandre Pigolkine 6b39f27b81 files added
svn path=/trunk/mcs/; revision=15167
2003-06-06 21:54:52 +00:00
Alexandre Pigolkine 83f385bf61 first version
svn path=/trunk/mcs/; revision=15166
2003-06-06 21:49:59 +00:00
Paolo Molaro b798d40ba0 Fri Jun 6 19:09:51 CEST 2003 Paolo Molaro <[email protected]>
* mono-logger.h, mono-logger.c, Makefile.am: added
	selective logging code by Jerome Laban <[email protected]>.

svn path=/trunk/mono/; revision=15162
2003-06-06 17:22:19 +00:00
Aleksey Ryabchuk 33bdbad4cb started implementation of scrollbar classes
svn path=/trunk/mcs/; revision=15161
2003-06-06 16:18:01 +00:00
Gonzalo Paniagua Javier ca0ecfd1a2 2003-06-06 Gonzalo Paniagua Javier <[email protected]>
* list.unix: added files.

	* System.Net/FileWebRequestCreator.cs: splitted from WebRequest.
	* System.Net/HttpRequestCreator.cs: splitted fromWebRequest.
	* System.Net/WebRequest.cs: added methods that are used by the new
	configuration handler to set prefix/type name requests creators.

	* System.Net.Configuration/WebRequestModuleHandler.cs: handles
	system.net/webRequestModules configuration section.

svn path=/trunk/mcs/; revision=15160
2003-06-06 16:15:21 +00:00
Dietmar Maurer e5492b0828 2003-05-28 Dietmar Maurer <[email protected]>
* mini.c (mini_select_instructions): add explicit branch if the
	following block is not the false target of a conditional branch -
	we need this with any optimization that reorder or remove bblocks

	* mini.c (optimize_branches): bug fixes

svn path=/trunk/mono/; revision=15159
2003-06-06 15:20:31 +00:00
Aleksey Ryabchuk eb48d7bb85 * Form.cs : MaximumSize, MinimumSize, TopMost were implemented, small fixes and improvements
* win32Structs.cs: WINDOWPOS structure

svn path=/trunk/mcs/; revision=15158
2003-06-06 15:09:27 +00:00
Dietmar Maurer b277d2897d 2003-06-06 Dietmar Maurer <[email protected]>
* mini.c (mono_method_to_ir): inline static readonly fields

	* ssa.c (fold_tree): start cfold support for long (very simple
	cases only)

	* cfold.c (mono_constant_fold_inst): opt. CEE_CONV_I8 (OP_ICONST)

svn path=/trunk/mono/; revision=15157
2003-06-06 13:05:31 +00:00
Gonzalo Paniagua Javier c285b7f200 2003-06-06 Gonzalo Paniagua Javier <[email protected]>
* WaitHandle.cs: checks and exceptions.

svn path=/trunk/mcs/; revision=15155
2003-06-06 10:13:32 +00:00
Paolo Molaro c3f20d0650 Fri Jun 6 11:41:18 CEST 2003 Paolo Molaro <[email protected]>
* inssel.brg: fixed memcpy (bug #44219).

svn path=/trunk/mono/; revision=15153
2003-06-06 09:49:59 +00:00
Gonzalo Paniagua Javier 73699ceef6 csc complained about this
svn path=/trunk/mcs/; revision=15152
2003-06-06 08:22:31 +00:00
Gonzalo Paniagua Javier 7b3d025036 added authentionModules and defaultProxy sections
svn path=/trunk/mono/; revision=15151
2003-06-06 07:00:57 +00:00
Gonzalo Paniagua Javier 217d1621f7 Crap. Forgot to restore the original timeout value. I knew it was gonna happen.
svn path=/trunk/mcs/; revision=15150
2003-06-06 06:58:56 +00:00
Gonzalo Paniagua Javier cc8432099d Reworked HttpWebRequest and related classes.
svn path=/trunk/mcs/; revision=15149
2003-06-06 06:57:36 +00:00
Duncan Mak 63e8dbfc22 (Requires): Add libxml2 and libxslt dependency on
the package.

svn path=/trunk/mono/; revision=15143
2003-06-06 03:16:13 +00:00
Dick Porter eae652e79a 2003-06-05 Dick Porter <[email protected]>
* driver.c: Set the glib log levels to not abort if g_message
	recurses.

	g_set_prgname() has to happen before mini_init() so that the
	process handle gets the info.

svn path=/trunk/mono/; revision=15139
2003-06-05 21:03:19 +00:00
Dick Porter 8794a5fe0b 2003-06-05 Dick Porter <[email protected]>
* hps.c:
	* shmdel.c:
	* scratch.c: Update to new api

svn path=/trunk/mono/; revision=15138
2003-06-05 21:02:47 +00:00
Dick Porter a577324eef 2003-06-05 Dick Porter <[email protected]>
* processes.c (process_set_current): Don't do an expensive handle
	search at application startup, check the environment to see if the
	process handle has already been created.

	* io.c: Don't do an expensive handle search when creating stdin,
	stdout and stderr handles, just create them all the first time one
	is requested.

	* wapi-private.h:
	* shared.c:
	* shared.h:
	* handles.c:
	* handles-private.h:
	* daemon-messages.h:
	* daemon-private.h:
	* daemon.c: Support for "unlimited" number of handles and scratch
	data.

	Speed up application startup by passing process handle in the
	environment, rather than let the app scan all handles (which gets
	really slow when there are more than a few thousand to check.)

	Initialise some structs passed to syscalls, noticed by valgrind.

svn path=/trunk/mono/; revision=15137
2003-06-05 21:02:19 +00:00
Paolo Molaro e26abc51cf duh.
svn path=/trunk/mono/; revision=15136
2003-06-05 19:49:16 +00:00
Paolo Molaro a6698ddec4 Thu Jun 5 20:18:55 CEST 2003 Paolo Molaro <[email protected]>
* AssemblyBuilder.cs: implemented DefineResource ().

svn path=/trunk/mcs/; revision=15135
2003-06-05 18:26:59 +00:00
Paolo Molaro 01f9704eac Thu Jun 5 20:11:29 CEST 2003 Paolo Molaro <[email protected]>
* driver.c: add intrins to the default optimizations to get wider
	exposure.

svn path=/trunk/mono/; revision=15134
2003-06-05 18:19:45 +00:00
Lluis Sanchez 72630f1d6f * added System.Xml.Serialization/ReflectionHelper.cs to list.unix
svn path=/trunk/mcs/; revision=15133
2003-06-05 18:19:18 +00:00
Lluis Sanchez 634e8a23dd * Methods.cs: added support for encoded format
svn path=/trunk/mcs/; revision=15132
2003-06-05 18:18:50 +00:00
Lluis Sanchez 117b91daf9 * XmlTextWriter.cs : Fixed bug. After calling for example WriteStartElement ("pref","ln","ns");
a call to LookupPrefix ("pref") when still writting attributes should
	  return "ns", and it didn't.

svn path=/trunk/mcs/; revision=15131
2003-06-05 18:18:05 +00:00
Lluis Sanchez 8e18d03529 * SoapReflectionImporter.cs: implemented.
* TypeTranslator.cs: added IsPrimitive() method
	* TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
	  used by that one. Also added Format property, that can be literal or encoded.
	* XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
	* XmlReflectionMember.cs: added constructor that accepts SoapAttributes
	* XmlSerializationReader.cs: implemented many methods needed to support encoded format.
	* XmlSerializationReaderInterpreter.cs: added support for encoded format.
	* XmlSerializationWriter.cs: added support for encoded format.
	* XmlSerializationWriterInterpreter.cs: added support for encoded format.
	* XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
	* XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
	  and a map is needed for them).
	* XmlTypeMapMemberElement.cs: small fixes.
	* XmlTypeMapping.cs: added some properties and methods needed to support encoded format
	* ReflectionHelper.cs: added. Has some methods shared by the reflection importers.

svn path=/trunk/mcs/; revision=15130
2003-06-05 18:17:28 +00:00
Paolo Molaro c19e0bae31 Bare-bones sample loadable profiler.
svn path=/trunk/mono/; revision=15129
2003-06-05 18:08:01 +00:00
Paolo Molaro 20693e93ea Thu Jun 5 19:51:49 CEST 2003 Paolo Molaro <[email protected]>
* profiler.h, profiler.c: made the simple profiler thread-safe,
	get more accurate timing info. Allow the loading of an
	externally-developed profiler module.

svn path=/trunk/mono/; revision=15128
2003-06-05 18:05:21 +00:00
Aleksey Ryabchuk e9550df38d * Form.cs : ControlBox, HelpButton, MaximizeBox, MinimizeBox, maximumSize
* win32Structs.cs: MINMAXINFO structure

svn path=/trunk/mcs/; revision=15127
2003-06-05 16:44:50 +00:00
Nick Drochak fc97537458 2003-06-05 Nick Drochak <[email protected]>
* UTF8Encoding.cs: Cleanups according to class status page

svn path=/trunk/mcs/; revision=15126
2003-06-05 14:41:13 +00:00
Nick Drochak b5cbfa23ff 2003-06-05 Nick Drochak <[email protected]>
* UnitySerializataionHolder.cs: Cleanups according to class status page

svn path=/trunk/mcs/; revision=15125
2003-06-05 14:36:29 +00:00
Dietmar Maurer c87f4891e1 (mono_marshal_get_native_wrapper): better string marshaling support.
svn path=/trunk/mono/; revision=15124
2003-06-05 14:29:30 +00:00
Dietmar Maurer a04209646d add pinvoke14.cs
svn path=/trunk/mono/; revision=15123
2003-06-05 13:34:28 +00:00
Dietmar Maurer 4928bfbf65 2003-06-05 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): improved
	class/byref arguments.

svn path=/trunk/mono/; revision=15122
2003-06-05 13:24:27 +00:00
Paolo Molaro 1873ba3824 Thu Jun 5 12:36:34 CEST 2003 Paolo Molaro <[email protected]>
* OpCode.cs: implemented Equals/GetHashCode.

svn path=/trunk/mcs/; revision=15119
2003-06-05 10:45:01 +00:00
Dietmar Maurer b62f3cf956 more tests
svn path=/trunk/mono/; revision=15118
2003-06-05 10:19:08 +00:00
Jackson Harper 71680c9655 * ILParser.jay: Assembly and module names may have dashes in them
(like gtk-sharp.dll).

svn path=/trunk/mcs/; revision=15116
2003-06-05 03:32:27 +00:00
Ben Maurer 74c9dc4554 2003-06-04 Ben Maurer <[email protected]>
* DictionaryEntry.cs: Throw exception if key == null. Fixes Rotor
	failures

svn path=/trunk/mcs/; revision=15112
2003-06-04 22:29:05 +00:00
Philip Van Hoof b0619189f3 StatusBar control
svn path=/trunk/mcs/; revision=15111
2003-06-04 18:56:22 +00:00
Philip Van Hoof 9eb37f9a80 Added a comment
svn path=/trunk/mcs/; revision=15110
2003-06-04 18:42:46 +00:00
Philip Van Hoof 85b0d30464 Prepared everything to start working on the StatusBar-control in SWF/Gtk/
svn path=/trunk/mcs/; revision=15109
2003-06-04 18:37:12 +00:00
Dietmar Maurer 19a56434b9 (mono_arch_output_basic_block): fix bug 43499
svn path=/trunk/mono/; revision=15108
2003-06-04 17:58:49 +00:00
Paolo Molaro 6108278ba1 Wed Jun 4 19:47:57 CEST 2003 Paolo Molaro <[email protected]>
* mini.h: some large basic blocks will overflow a 16-bit
	integers for symbolic registers.

svn path=/trunk/mono/; revision=15107
2003-06-04 17:56:52 +00:00
Aleksey Ryabchuk 74c9c777f9 KeyPreview, ShowInTaskBar implemented
svn path=/trunk/mcs/; revision=15106
2003-06-04 16:46:37 +00:00
Paolo Molaro ea2cf5a3d0 Wed Jun 4 18:01:22 CEST 2003 Paolo Molaro <[email protected]>
* class.c: ensure .pack and .size are handled correctly and
	simplified layout of static fields.

svn path=/trunk/mono/; revision=15105
2003-06-04 16:10:59 +00:00
Dietmar Maurer 86b380613d 2003-06-04 Dietmar Maurer <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): revert previous fprem changes.

svn path=/trunk/mono/; revision=15104
2003-06-04 15:22:31 +00:00
Paolo Molaro 57259eb6e3 Wed Jun 4 16:59:39 CEST 2003 Paolo Molaro <[email protected]>
* ArgIterator.cs, TypedReference.cs, RuntimeArgumentHandle.cs,
	RuntimeTypeHandle.cs: implemented the needed stuff to handle
	vararg calls.

svn path=/trunk/mcs/; revision=15103
2003-06-04 15:11:22 +00:00
Paolo Molaro e22ec8f4bb Yet another exclude.
svn path=/trunk/mcs/; revision=15102
2003-06-04 15:10:39 +00:00
Dietmar Maurer 0d4b3b6f53 2003-06-04 Dietmar Maurer <[email protected]>
* appdomain.c
	(ves_icall_System_AppDomainSetup_InitAppDomainSetup): fix for bug 42934

svn path=/trunk/mono/; revision=15101
2003-06-04 13:10:54 +00:00
Paolo Molaro 57a542d037 Wed Jun 4 13:19:04 CEST 2003 Paolo Molaro <[email protected]>
* delegate.cs: transfer custom attributes for paramenters from
	the delegate declaration to Invoke and BeginInvoke.

svn path=/trunk/mcs/; revision=15099
2003-06-04 11:28:42 +00:00
Paolo Molaro 8981edd419 Wed Jun 4 13:13:52 CEST 2003 Paolo Molaro <[email protected]>
* mini.c: kill duplicated definition of mono_debug_format.

svn path=/trunk/mono/; revision=15098
2003-06-04 11:22:46 +00:00
Paolo Molaro 0195c8d1e0 Wed Jun 4 13:09:51 CEST 2003 Paolo Molaro <[email protected]>
* mini-x86.c, arrays.cs: fixed register allocation bug.

svn path=/trunk/mono/; revision=15097
2003-06-04 11:18:33 +00:00
Dietmar Maurer 5a55bb5e3b 2003-06-04 Dietmar Maurer <[email protected]>
* loader.c (mono_lookup_pinvoke_call): look for modules in the
	current directory (fix bug 44008)

svn path=/trunk/mono/; revision=15096
2003-06-04 10:38:21 +00:00
Dietmar Maurer d8932f802f 2003-06-04 Dietmar Maurer <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): use IEEE compatible fprem1

	* mini.c (mini_get_opcode_for_method): inline IEEERemainder

svn path=/trunk/mono/; revision=15095
2003-06-04 09:57:47 +00:00
Gonzalo Paniagua Javier 96b1d5d21c 2003-06-04 Gonzalo Paniagua Javier <[email protected]>
* ArrayList.cs: nullify the array in Clear ().
	* Queue.cs: nullify the array in Dequeue ().
	* Stack.cs: nullify the array in Pop ().

svn path=/trunk/mcs/; revision=15094
2003-06-04 09:01:10 +00:00
Gonzalo Paniagua Javier 1a453b2403 Fixed compilation of sample
svn path=/trunk/mono/; revision=15093
2003-06-04 04:14:52 +00:00
Gonzalo Paniagua Javier 9249edf9bb 2003-06-04 Gonzalo Paniagua Javier <[email protected]>
* mini.c:
	(print_method_from_ip): also print source location information if
	available.

svn path=/trunk/mono/; revision=15091
2003-06-04 01:44:51 +00:00
Ville Palo 940ba904d5 2003-06-03 Ville Palo <[email protected]>
* SqlBinary.cs: Changed one SqlTypeException --> IndexOutOfRange
	* SqlMoney.cs: checkings

svn path=/trunk/mcs/; revision=15090
2003-06-03 18:42:43 +00:00
Atsushi Eno 72d640f0cb 2003-06-04 Atsushi Enomoto <[email protected]>
* (temporarily) added XSD2Class.cs.

svn path=/trunk/mcs/; revision=15089
2003-06-03 18:33:03 +00:00
Dietmar Maurer 98bbb89ac6 new test
svn path=/trunk/mono/; revision=15088
2003-06-03 17:06:49 +00:00
Dietmar Maurer 416964aeb4 (mono_delegate_to_ftnptr): consider marshalling specifications
svn path=/trunk/mono/; revision=15087
2003-06-03 14:25:13 +00:00
Dietmar Maurer 6ea4de67e6 2003-06-03 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): started support for
	custom marshalers.

svn path=/trunk/mono/; revision=15086
2003-06-03 11:31:00 +00:00
Paolo Molaro 0e2fac458f Fixlet.
svn path=/trunk/mono/; revision=15085
2003-06-03 09:32:26 +00:00
Paolo Molaro 33ff71f264 Tue Jun 3 11:17:02 CEST 2003 Paolo Molaro <[email protected]>
* reflection.c, reflection.h: emit custom marshal info.

svn path=/trunk/mono/; revision=15084
2003-06-03 09:27:33 +00:00
Paolo Molaro f57a1d467a Tue Jun 3 11:14:51 CEST 2003 Paolo Molaro <[email protected]>
* ILGenerator.cs, OpCode.cs: optimize opcode space usage.

svn path=/trunk/mcs/; revision=15083
2003-06-03 09:23:48 +00:00
Paolo Molaro 845568cc86 Tue Jun 3 11:13:22 CEST 2003 Paolo Molaro <[email protected]>
* UnmanagedMarshal.cs: add ability to define custom attributes (the MS
	runtime doesn't support this).

svn path=/trunk/mcs/; revision=15082
2003-06-03 09:22:39 +00:00
Paolo Molaro 28a4f2fe00 Tue Jun 3 11:11:08 CEST 2003 Paolo Molaro <[email protected]>
* attribute.cs: handle custom marshalers and emit marshal info
	for fields, too.

svn path=/trunk/mcs/; revision=15081
2003-06-03 09:20:19 +00:00
Dennis Hayes fd4eb782a0 see last msg
svn path=/trunk/mcs/; revision=15080
2003-06-03 03:20:31 +00:00
Dennis Hayes 07b6e08058 Cosmetic issues with member signitures
commented out things that should be inhereted
	un-commented things that now have their dependaces at least stubbed.

	* AccessibleObject.cs
	* AccessibleStates.cs
	* Application.cs
	* AxHost.cs
	* BindingContext.cs
	* BindingMemberInfo.cs
	* BindingsCollection.cs
	* Button.cs
	* ButtonBase.cs
	* ComboBox.cs
	* ContainerControl.cs
	* cvs.txt
	* DataGrid.cs
	* FormBorderStyle.cs
	* GridItem.cs
	* GridItemCollection.cs
	* Help.cs
	* HelpEventHandler.cs
	* HelpProvider.cs
	* ImageList.cs
	* InputLanguageChangingEventArgs.cs
	* InputLanguageCollection.cs
	* LinkArea.cs
	* ListBindingConverter.cs
	* ListBox.cs
	* ListControl.cs
	* ListView.cs
	* ListViewItem.cs
	* ListViewItemConverter.cs
	* MenuItem.cs
	* Message.cs
	* MessageBox.cs
	* MonthCalendar.cs
	* ScrollableControl.cs

svn path=/trunk/mcs/; revision=15079
2003-06-03 03:19:41 +00:00
Sebastien Pouliot 5f2325ca06 2003-06-02 Sebastien Pouliot <[email protected]>
* RandomTest.cs: Added a test to compare Mono's random streams with
	MS implementation (framework and Rotor). Converted to NUnit2 format.

svn path=/trunk/mcs/; revision=15078
2003-06-03 01:41:11 +00:00
Sebastien Pouliot e56091f5ad 2003-06-02 Sebastien Pouliot <[email protected]>
* Random.cs: New implementation based on Knuth ran3 to fix #43597.
	See http://www.library.cornell.edu/nr/bookcpdf/c7-1.pdf. Commited
	for Ben Maurer after review and testing.

svn path=/trunk/mcs/; revision=15077
2003-06-03 01:40:35 +00:00
Sebastien Pouliot 25624320ca 2003-06-02 Sebastien Pouliot <[email protected]>
* X509Certificate.cs: Implements X509Certificate(IntPtr)
	constructor for compatibility with CryptoAPI.

svn path=/trunk/mcs/; revision=15076
2003-06-03 00:48:22 +00:00
Sebastien Pouliot 72aa4bf29f 2003-06-02 Sebastien Pouliot <[email protected]>
* KeyInfoRetrievalMethodTest.cs: Changed RetrievalElement to
	RetrievalMethod to match W3C specification and framework 1.1.

svn path=/trunk/mcs/; revision=15075
2003-06-03 00:36:47 +00:00
Ben Maurer d143b05664 2003-06-02 Ben Maurer <[email protected]>
* Queue.cs: Added argument checking in constructors according to
	specs. Also changed default size to 32 as required by the specs.

svn path=/trunk/mcs/; revision=15074
2003-06-02 23:42:37 +00:00
Alexandre Pigolkine 54d1de0fa0 change to ContainsFocus/Focused properties
svn path=/trunk/mcs/; revision=15073
2003-06-02 19:50:53 +00:00
Gonzalo Paniagua Javier 0d4db04781 2003-06-02 Gonzalo Paniagua Javier <[email protected]>
* NativeEventCalls.cs: added CloseEvent_intenal.
	* WaitHandle.cs: call CloseEvent_internal when disposing.

svn path=/trunk/mcs/; revision=15072
2003-06-02 19:07:52 +00:00
Gonzalo Paniagua Javier 426d7ca171 2003-06-02 Gonzalo Paniagua Javier <[email protected]>
* icall.c: added CloseEvent_internal.
	* object.c: free the GError.
	* threads.[ch]:
	(ves_icall_System_Threading_Events_CloseEvent_internal): new internal
	call.

svn path=/trunk/mono/; revision=15071
2003-06-02 19:07:09 +00:00
Nick Drochak 0d13cab5ce 2003-06-02 Nick Drochak <[email protected]>
* FileInfo.cs (MoveTo): Throw exceptions when dest exists, and check
	for null too.

svn path=/trunk/mcs/; revision=15070
2003-06-02 14:18:03 +00:00
Ville Palo d6ca05d52a 2003-06-02 Ville Palo <[email protected]>
* All files except SqlGuidTest.cs: Now works fine on ms.net 1.1

svn path=/trunk/mcs/; revision=15069
2003-06-02 10:53:01 +00:00
Dietmar Maurer c62b3dc646 2003-06-02 Dietmar Maurer <[email protected]>
* mini.c (mono_find_block_region): bug fix in region code
	(mini_method_compile): enable removing unreachable code again, but
	only in methods without exception clauses.

svn path=/trunk/mono/; revision=15068
2003-06-02 09:49:09 +00:00
Ville Palo fa887396f8 2003-06-02 Ville Palo <[email protected]>
* SqlStringTest.cs: exception tests to nunit2

svn path=/trunk/mcs/; revision=15067
2003-06-02 09:02:17 +00:00
Ville Palo 8405692d8b 2003-06-02 Ville Palo <[email protected]>
* SqlString.cs: implementes less than and greater than operators.
	Added some checks to ctor.

svn path=/trunk/mcs/; revision=15066
2003-06-02 07:26:48 +00:00
Ville Palo ed57a89be1 2003-06-02 Ville Palo <[email protected]>
* SqlStringTest.cs: added one exception test. And some exception tests
	to nunit2

svn path=/trunk/mcs/; revision=15065
2003-06-02 07:22:20 +00:00
Atsushi Eno f8f3f154d2 2003-06-02 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
	* XmlConvert.cs : fixed VerifyNCName() to check correctly.

svn path=/trunk/mcs/; revision=15064
2003-06-02 03:02:55 +00:00
Pedro Martínez Juliá 4cad5a4c71 2003-06-01 Pedro Mart�nez Juli� <[email protected]>
* DoubleFormatterTest.cs: added the last changes from the author of
    this test (Patrick Kalkman <[email protected]>).

    * SingleFormatterTest.cs: added the first release of this test from
    the same author: Patrick Kalkman <[email protected]>.

svn path=/trunk/mcs/; revision=15063
2003-06-01 18:45:38 +00:00
Miguel de Icaza 7f9dc7bfb9 Ref system.xml
svn path=/trunk/mcs/; revision=15060
2003-06-01 18:00:58 +00:00
Francisco Figueiredo Jr. 8ac35044a9 2003-06-01 Francisco Figueiredo Jr. <[email protected]>
* Added new tests for time, date datatypes and Listen/Notify support.

svn path=/trunk/mcs/; revision=15059
2003-06-01 16:23:59 +00:00
Francisco Figueiredo Jr. 8a9afd8df9 2003-06-01 Francisco Figueiredo Jr. <[email protected]>
* Added NpgsqlNotificationEventArgs file to build list.

svn path=/trunk/mcs/; revision=15058
2003-06-01 16:20:56 +00:00
Francisco Figueiredo Jr. 391f3eba94 2003-06-01 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlNotificationEventArgs.cs: Initial import

svn path=/trunk/mcs/; revision=15057
2003-06-01 16:17:28 +00:00
Francisco Figueiredo Jr. eba23112b5 2003-06-01 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlTypes/NpgsqlTypesHelper.cs: Added support for date and time datatypes. Changed timestamp parsing code.

svn path=/trunk/mcs/; revision=15055
2003-06-01 16:14:26 +00:00
Joel Basson dd197b432d small cleanup of MenuItem.cs
svn path=/trunk/mcs/; revision=15054
2003-06-01 16:12:24 +00:00
Francisco Figueiredo Jr. 4707a3eadb 2003-06-01 Francisco Figueiredo Jr <[email protected]>
* NpgsqlCommand.cs NpgsqlConnection.cs NpgsqlMediator.cs NpgsqlState.cs: Added Listen/Notify support. Thanks Wojtek Wierzbicki.

svn path=/trunk/mcs/; revision=15053
2003-06-01 16:10:06 +00:00
Joshua Tauberer 6710d25d5c 2003-06-01 Joshua Tauberer <[email protected]>
* XslTransform.cs: Cache extension object delegates
        between calls to Transform.

svn path=/trunk/mcs/; revision=15051
2003-06-01 15:39:08 +00:00
Ville Palo 3d754c63ca 2003-06-01 Ville Palo <[email protected]>
* SqlStringTest.cs: one exception test to nunit2

svn path=/trunk/mcs/; revision=15048
2003-06-01 13:17:02 +00:00
Ville Palo f2501ffb9b 2003-06-01 Ville Palo <[email protected]>
* SqlString.cs: added null checking

svn path=/trunk/mcs/; revision=15047
2003-06-01 13:06:26 +00:00
Zoltan Varga e9caa789c2 2003-06-01 Zoltan Varga <[email protected]>
* loader.c (mono_method_get_signature): Add support for dynamic
	assemblies.

svn path=/trunk/mono/; revision=15046
2003-06-01 11:17:20 +00:00
Jackson Harper 180731f2f2 * ILParser.jay: Set assembly names. When looking up types in the
form [assembly]name first check if the assembly is this
	assembly. Implement scope_blocks, and implement scope block form
	exception handling.

svn path=/trunk/mcs/; revision=15045
2003-06-01 07:02:34 +00:00
Jackson Harper 009f9f7544 * CodeGen.cs: Allow this assembly name to be set.
* HandlerBlock.cs: Make label fields public so they can be
	accessed in a TryBlocks constructor.
	* MethodDef.cs: Allow random labels to be inserted at the current
	position. These are use for scope blocks.
	* TryBlock.cs: New constructor takes from and to labels as a HandlerBlock

svn path=/trunk/mcs/; revision=15044
2003-06-01 06:53:24 +00:00
Miguel de Icaza ad4eb580a7 We now do the call correctly (thanks to Lluis input on the namespace issue) to Google,
but my response serializer still can not cope with the <return> feature of the RPC
model.

2003-06-01  Miguel de Icaza  <[email protected]>

	* Methods.cs (MethodStubInfo): If creating an RPC call, pass an
	optional XmlElementAttribute with the namespace set to null;  Use
	this on each element of the request and response serializers.

	(MakeRequestSerializer, MakeResponseSerializer): Use the empty
	element for the return values.

	* SoapRpcMethodAttribute.cs: Drop the default name on the
	SoapRpcMethodAttribute, it was incorrectly given a default name.

svn path=/trunk/mcs/; revision=15043
2003-06-01 06:36:12 +00:00
Miguel de Icaza f709954efc 2003-06-01 Miguel de Icaza <[email protected]>
* XmlSerializationReader.cs (UnknownAttribute, UnknownNode,
	UnknownElement): Add line number information.

svn path=/trunk/mcs/; revision=15042
2003-06-01 06:09:28 +00:00
Atsushi Eno 2b885bd987 2003-06-01 Atsushi Enomoto <[email protected]>
* XPathNavigatorTests.cs : added DocumentWithProcessingInstruction().

svn path=/trunk/mcs/; revision=15041
2003-06-01 05:58:05 +00:00
Atsushi Eno 5364030666 2003-06-01 Atsushi Enomoto <[email protected]>
* XmlConvertTests.cs : added VerifyNCName().

svn path=/trunk/mcs/; revision=15040
2003-06-01 05:57:26 +00:00
Atsushi Eno 30cfd0b479 2003-06-01 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Compute document node one time.
	  MoveToFirstChild() should move to PIs and comments.

svn path=/trunk/mcs/; revision=15039
2003-06-01 05:56:49 +00:00
Joel Basson c15622c571 Added Click event to menus
svn path=/trunk/mcs/; revision=15038
2003-06-01 03:02:11 +00:00
Piers Haken c8d8830004 more error filters
svn path=/trunk/mcs/; revision=15037
2003-05-31 23:31:21 +00:00
Ben Maurer 2ff510738e 2003-05-31 Ben Maurer <[email protected]>
* BitArray.cs: Rewrote, as it was failing most of the Rotor
	tests. It now passes them 100%. Also fixes bug #43667.

svn path=/trunk/mcs/; revision=15036
2003-05-31 22:08:45 +00:00
Miguel de Icaza 14b9548f8a update
svn path=/trunk/mcs/; revision=15035
2003-05-31 19:13:17 +00:00
Miguel de Icaza 89902bf34a The gethostname fix
svn path=/trunk/mcs/; revision=15034
2003-05-31 19:13:00 +00:00
Jackson Harper 007fcee3b8 * ILParser.jay: Use type instead of params for calli signatures.
svn path=/trunk/mcs/; revision=15033
2003-05-31 19:03:00 +00:00
Gonzalo Paniagua Javier 69859026e2 small update
svn path=/trunk/mono/; revision=15032
2003-05-31 18:58:38 +00:00
Miguel de Icaza c8b1ca793c Add nice link
svn path=/trunk/mono/; revision=15031
2003-05-31 18:35:27 +00:00
Jackson Harper d3b1e7e2d3 more tests
svn path=/trunk/mcs/; revision=15030
2003-05-31 18:26:30 +00:00
Miguel de Icaza 73536f1916 Add nice link
svn path=/trunk/mono/; revision=15029
2003-05-31 18:16:20 +00:00
Jackson Harper 2d62b2137b misc diff tests, proper tests to come soon.
svn path=/trunk/mcs/; revision=15028
2003-05-31 17:57:39 +00:00
Jackson Harper 038700cf8c * ILParser.jay: When looking up types first check to see if this
is actually a primitive object type (System.String,
	System.Object). Add custom attributes to types. Handle the il
	keyword the exact same way as cil. Add ellipsises to param and sig
	lists. Add an optional name to typelists, this is just parsed it
	is not implemented properly. Add custom attributes to
	methods. Implement custom types (just methodrefs to ctors).

svn path=/trunk/mcs/; revision=15027
2003-05-31 17:54:53 +00:00
Jackson Harper f92497855a Add custom attributes to build.
svn path=/trunk/mcs/; revision=15026
2003-05-31 17:54:10 +00:00
Jackson Harper 5e099e6c27 * CustomAttr.cs: New file - Custom attributes
* InstrTable.cs: Add stelem.r4 and stelem.r8 instructions. Add
	. tail to unaligned modifier.
	* LdtokenInstr.cs: Add type tokens.
	* MethodDef.cs: Fix IsVararg, add method to add custom attributes,
	emitting custom attributes when writing code, allow for Ellipsises
	in param lists, add coma between args in signatures.
	* ParamDef.cs: Add the Ellipsis pseudo param
	* PrimitiveTypeRef.cs: System.String and System.Object can be
	referenced without an [mscorlib] assembly prefix.
	* TypeDef.cs: Add Custom attributes.

svn path=/trunk/mcs/; revision=15025
2003-05-31 17:53:45 +00:00
Jackson Harper 5fb2801ac1 * ILTables.cs: Add refany keyword which is just an alias for typedref.
svn path=/trunk/mcs/; revision=15024
2003-05-31 17:14:21 +00:00
Philip Van Hoof d18cab9739 Color fixes
svn path=/trunk/mcs/; revision=15023
2003-05-31 17:07:24 +00:00
Philip Van Hoof 59b57c8e2e Fore -BackColor fixes
svn path=/trunk/mcs/; revision=15022
2003-05-31 17:05:44 +00:00
Philip Van Hoof c6456499db Color demo
svn path=/trunk/mcs/; revision=15021
2003-05-31 17:04:10 +00:00
Jackson Harper 9b10796541 * PEAPI.cs: Initial work on implementing custom
attributes. Attributes can now be added to ClassDefs and
	MethodDefs. Still need to implement for other metadata elements.
	Added the stele.r4 and stelem.r8 instructions, this should also
	shift the stelem.ref instruction to the proper value (0xA2)

svn path=/trunk/mcs/; revision=15020
2003-05-31 16:49:50 +00:00
Paolo Molaro c9a1454cf8 Sat May 31 15:22:07 CEST 2003 Paolo Molaro <[email protected]>
* reflection.c: fixed bug #43905.

svn path=/trunk/mono/; revision=15018
2003-05-31 13:31:18 +00:00
Paolo Molaro befb14c947 Sat May 31 12:21:21 CEST 2003 Paolo Molaro <[email protected]>
* System.Resources/ResXResourceReader.cs: get simple reading and error
	checks working.

svn path=/trunk/mcs/; revision=15017
2003-05-31 10:30:52 +00:00
Gonzalo Paniagua Javier aae4dddbe3 2003-05-31 Gonzalo Paniagua Javier <[email protected]>
* RegisteredWaitHandle.cs: check that the callback is not null before
	invoking.

	* ThreadPool.cs: fixed timeout -> TimeSpan conversions (closes bug
	#43963). Queue the item before setting the handle. If there's a timeout,
	avoid trying to Dequeue, getting the exception et al, just continue the
	loop.

svn path=/trunk/mcs/; revision=15016
2003-05-31 02:34:28 +00:00
Miguel de Icaza d40e781521 First set of attempts to do RPC, but I need to prefix the method name only,
not the parameters.   So still confused.  Only needed for Google

2003-05-30  Miguel de Icaza  <[email protected]>

	* Methods.cs (MethodStubInfo): Start support for RPC style as well
	as Literal style.  Take an object instead of a
	SoapDocumentMethodAttribute, and allow the value to be also a
	SoapRpcMethodAttribute.  Pull data from both.

	Kill SoapBindingUse, we only use this during validation.

	Turn out Google uses RPC/Literal, and its a good demo.

svn path=/trunk/mcs/; revision=15014
2003-05-31 00:47:21 +00:00
Miguel de Icaza 98a9809816 2003-05-30 Miguel de Icaza <[email protected]>
* Methods.cs (MakeResponseSerializer): OneWay is not the only
	condition to catch;  Also void return types are not required to
	have a response.

	(MakeRequestSerializer): InParameters *might* be ref parameters,
	deal with that here too.

	Add some debugging code for tracking down missing implementation
	details in serialization creation.

svn path=/trunk/mcs/; revision=15013
2003-05-30 20:08:41 +00:00
Miguel de Icaza 5fdf41d47c 2003-05-30 Miguel de Icaza <[email protected]>
* HttpWebRequest.cs (EndGetResponse): Do not throw exceptions on
	InternalServerError (500)

svn path=/trunk/mcs/; revision=15012
2003-05-30 20:07:54 +00:00
Miguel de Icaza c668eb05ea 2003-05-30 Miguel de Icaza <[email protected]>
* Methods.cs (MakeResponseSerializer): DUH.  Use the
	ResponseName/ResponseNamespace for the member import, not the
	RequestName and RequestNamespace.  The bugs of cut-and-paste.

svn path=/trunk/mcs/; revision=15011
2003-05-30 19:03:12 +00:00
Miguel de Icaza 7c59f4adac maybe this is part of the problem
svn path=/trunk/mcs/; revision=15010
2003-05-30 18:20:31 +00:00
Paolo Molaro e2c4c2cc56 Fri May 30 18:40:24 CEST 2003 Paolo Molaro <[email protected]>
* mini.c, mini-ops.h, cpu-pentium.md, inssel.brg, mini-x86.c, mini.h:
	Implemented arglist opcode and handling of TypedReference type.
	Fixed x86 call convention when a structure is returned.
	Minimal support for calling static vararg methods.

svn path=/trunk/mono/; revision=15009
2003-05-30 17:05:32 +00:00
Dietmar Maurer aa40d2dc7b disable the previous patch
svn path=/trunk/mono/; revision=15008
2003-05-30 16:25:38 +00:00
Aleksey Ryabchuk 9c067d4b35 * GroupBox.cs : take BackColor into account
svn path=/trunk/mcs/; revision=15007
2003-05-30 13:51:24 +00:00
Zoltan Varga 954d3c50b6 2003-05-30 Zoltan Varga <[email protected]>
* TypeBuilder.cs: Implement DefineTypeInitializer.

svn path=/trunk/mcs/; revision=15006
2003-05-30 13:40:12 +00:00
Paolo Molaro 09e6cb1cff Fri May 30 12:56:29 CEST 2003 Paolo Molaro <[email protected]>
* class.c, domain.c, icall.c, metadata.h, object.h: support for
	handling TypedReference and ArgIterator.
	* loader.c, loader.h: added function to get signature at call site.

svn path=/trunk/mono/; revision=15005
2003-05-30 11:09:00 +00:00
Dietmar Maurer 297f8236e3 2003-05-30 Dietmar Maurer <[email protected]>
* mini.c (mini_method_compile):  always remove unreachable code,
	because the code in them may be inconsistent  (access to dead
	variables for example).

svn path=/trunk/mono/; revision=15004
2003-05-30 09:13:26 +00:00
Miguel de Icaza a3508aac7a Thanks to Lluis' work on the XmlSerializer it is now possible to perform
a Soap invocation.

The result is still not handled though.

2003-05-29  Miguel de Icaza  <[email protected]>

	* SoapHttpClientProtocol.cs (CreateMessage): Kill.  Move
	functionality to Invoke.

	(Invoke): Use new TypeStubInfo/MethodStubInfo instead.

	* SoapClientMessage.cs: Drop old mechanism, use MethodStubInfo instead.

	* Methods.cs: New file.  Contains the managed for TypeStubs and
	MethodInfoStubs.

	A MethodInfoStub contains the serializers we use for the SOAP
	request.

	* SoapClientMessage.cs: Drop parameters from the clientmessage, it
	does not belong here.  Drop oneway, we canextract that from the
	SoapDocumentMethodAttribute class that we pass.

svn path=/trunk/mcs/; revision=15003
2003-05-30 04:32:14 +00:00
Miguel de Icaza a7c9af9a14 2003-05-30 Miguel de Icaza <[email protected]>
* XmlReader.cs (ReadStartElement): Improve error message.

svn path=/trunk/mcs/; revision=15001
2003-05-30 04:16:52 +00:00
Miguel de Icaza bd2c60b6ed 2003-05-29 Miguel de Icaza <[email protected]>
* HttpWebRequest.cs (Close): Move the code that accumulates the
	output to Close from Flush.  Flush could have been called in the
	middle of the processing, and would have generated invalid results
	(which it did).

svn path=/trunk/mcs/; revision=15000
2003-05-30 02:45:46 +00:00
Sebastien Pouliot 9b1dc34f42 2003-05-29 Sebastien Pouliot <[email protected]>
* PKCS1MaskGenerationMethodTest.cs: Added [Ignore] to vector test
	(as it's result isn't valid on both framework 1.0 and 1.1).
	* RSAPKCS1SignatureDeformatter.cs: Splitting the test for NUnit2
	cloned the previous error into many more tests. Hopefully fixed.

svn path=/trunk/mcs/; revision=14999
2003-05-30 01:43:17 +00:00
Lluis Sanchez ac9dfbe8c5 * TypeData.cs, TypeTranslator.cs: Renamed some properties.
* XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
	* XmlMapping.cs: Added internal property.
	* XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
	* XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
	* XmlReflectionMember.cs: XmlAttributes are now created by default
	* XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
	* XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
	  Implemented support for XmlMembersMapping.
	* XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.

svn path=/trunk/mcs/; revision=14997
2003-05-29 20:14:18 +00:00
Miguel de Icaza 839a0fe5ca Add licenses
svn path=/trunk/mcs/; revision=14995
2003-05-29 16:06:30 +00:00
Nick Drochak 85a7b2a87e 2003-05-29 Nick Drochak <[email protected]>
* BinaryReaderTest.cs: fix my oversight
	* BinaryWriterTest.cs: cleanups
	* BufferedStreamTest.cs: cleanups
	* DirectoryInfoTest.cs: cleanups
	* DirectoryTest.cs: cleanups
	* FileStreamTest.cs: cleanups

svn path=/trunk/mcs/; revision=14994
2003-05-29 15:09:51 +00:00
Nick Drochak f3c7e8d029 2003-05-29 Nick Drochak <[email protected]>
* ms_run_test.sh: added .NET verion of helper script

svn path=/trunk/mcs/; revision=14993
2003-05-29 15:05:36 +00:00
Nick Drochak 0bea9169f8 2003-05-29 Nick Drochak <[email protected]>
* makefile.gnu: turn on debug since it works again.

svn path=/trunk/mcs/; revision=14992
2003-05-29 13:29:10 +00:00
Dick Porter 3731e020b6 Updated URL
svn path=/trunk/mono/; revision=14991
2003-05-29 12:28:05 +00:00
Paolo Molaro 47e7b594aa Thu May 29 12:52:40 CEST 2003 Paolo Molaro <[email protected]>
* opcode.def, cil-opcodes.xml: fix opcode entries.

svn path=/trunk/mono/; revision=14990
2003-05-29 11:02:35 +00:00
Paolo Molaro 7393a68a27 Thu May 29 12:21:47 CEST 2003 Paolo Molaro <[email protected]>
* dump.c, get.c: misc fixes.

svn path=/trunk/mono/; revision=14989
2003-05-29 10:30:30 +00:00
Paolo Molaro d672847f87 Thu May 29 11:44:49 CEST 2003 Paolo Molaro <[email protected]>
* driver.c, debug-mini.c: warning fixes.

svn path=/trunk/mono/; revision=14988
2003-05-29 09:53:39 +00:00
Paolo Molaro 6d1d55b332 Thu May 29 11:34:55 CEST 2003 Paolo Molaro <[email protected]>
* metadata.c, metadata.h, private.h, tokentype.h, loader.c: make more
	data readonly. Buglets and warning fixes. Some MethodSpec support.

svn path=/trunk/mono/; revision=14987
2003-05-29 09:46:04 +00:00
Miguel de Icaza 1d8eb38926 Add my scratch pad for web services notes
svn path=/trunk/mcs/; revision=14986
2003-05-29 05:39:03 +00:00
Miguel de Icaza cffe10d6e1 2003-05-28 Miguel de Icaza <[email protected]>
* LogicalMethodInfo.cs (Create): Implement begin/end method
	pairing.
	(Name): Implement.
	(EndMethodInfo): Always return end_method_info.

svn path=/trunk/mcs/; revision=14985
2003-05-29 03:24:48 +00:00
Gonzalo Paniagua Javier bb8ed7f2b7 2003-05-29 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: fixed delegate type for SortCommand.

svn path=/trunk/mcs/; revision=14984
2003-05-29 03:00:05 +00:00
Ben Maurer 94dd863e28 2003-05-28 Ben Maurer <[email protected]>
* Array.cs: Added better argument checking to Array.Sort () (approved by Gonzalo)
	* DBNull.cs: Made the conversions throw like they do in MS.

svn path=/trunk/mcs/; revision=14983
2003-05-29 02:32:38 +00:00
Sebastien Pouliot 0ae922c7dd 2003-05-28 Sebastien Pouliot <[email protected]>
* RSAPKCS1SignatureDeformatter.cs: Fixed (well I hope so) a test
	which doesn't throw the same exception under 1.1. Also converted
	the tests to NUnit2 format.

svn path=/trunk/mcs/; revision=14982
2003-05-29 01:10:57 +00:00
Gonzalo Paniagua Javier 0435b11abc mmm, mcs does not compile this. csc does.
svn path=/trunk/mcs/; revision=14981
2003-05-29 00:56:08 +00:00
Gonzalo Paniagua Javier ac95d72a76 2003-05-29 Gonzalo Paniagua Javier <[email protected]>
* ArrayTest.cs: added more tests for bug 43783.

svn path=/trunk/mcs/; revision=14980
2003-05-29 00:53:45 +00:00
Philip Van Hoof 256a982d04 Added System.Data t AssemblyInfo.cs in the makefile
svn path=/trunk/mcs/; revision=14979
2003-05-29 00:37:23 +00:00
Lluis Sanchez 2ce77c20e0 * TypeData.cs, TypeTranslator.cs: Added support for enums. Added method for translating
from xml type to clr type.
	* XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
	* XmlReflectionMember.cs: Added default constructor.
	* XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
	* XmlSerializationWriter.cs: Several fixes.
	* XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
	  XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
	  Added support for enums. Added support for XmlElement and XmlNode.
	  Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.

svn path=/trunk/mcs/; revision=14977
2003-05-28 22:30:06 +00:00
Philip Van Hoof 6ef1e77c55 Added setters of ForeColor and BackColor
svn path=/trunk/mcs/; revision=14976
2003-05-28 22:21:48 +00:00
Lluis Sanchez 5584fe9d90 * XmlTextReader.cs : MoveToAttribute methods must set the enumerator to the right
position, since MoveToNextAttribute may be called after it.
	  SetProperties(): attributes do not "inherit" the namespace.
	* XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.

svn path=/trunk/mcs/; revision=14975
2003-05-28 22:13:28 +00:00
Aleksey Ryabchuk adc477939f * Control.cs : helper method getParentForm
* Form.cs : ActiveForm , FormBorderStyle implemented
	* GroupBox.cs : some chages in drawing code, don't register another window class
	* FormBorderStyle.cs : fixed typo
	* win32functions.cs : UpdateWindowExStyle added, new prototypes for GetActiveWindow, GetForegroundWindow

svn path=/trunk/mcs/; revision=14974
2003-05-28 16:13:10 +00:00
Jean-Marc Andre f20708b9cf 2003-05-28 Jean-Marc Andre <[email protected]>
ServeurFault.cs:  finishing implementation
	SoapFault.cs:  finishing implementation
	SoapMessage.cs:  finishing implementation

svn path=/trunk/mcs/; revision=14973
2003-05-28 15:45:18 +00:00
Nick Drochak dfada10b44 2003-05-29 Nick Drochak <[email protected]>
* BinaryReaderTest.cs:
	* BinaryWriterTest.cs:
	* DirectoryInfoTest.cs:
	* DirectoryTest.cs:
	* FileInfoTest.cs:
	* FileStreamTest.cs:
	* FileSystemInfoTest.cs: Stop throwing exceptions on windows, and sub-
	class from Assertion for brevity.

svn path=/trunk/mcs/; revision=14972
2003-05-28 15:39:52 +00:00
Gonzalo Paniagua Javier 88d8e975a1 added entry for Joshua's changes
svn path=/trunk/mcs/; revision=14971
2003-05-28 14:59:09 +00:00
Gonzalo Paniagua Javier 2d4cd7c975 2003-05-28 Gonzalo Paniagua Javier <[email protected]>
* XslTransform.cs: fixed NullReferenceExceptions after the last
	change (which, btw, should have included a ChangeLog entry).

svn path=/trunk/mcs/; revision=14970
2003-05-28 14:55:46 +00:00
Ville Palo 1ea805478b 2003-05-28 Ville Palo <[email protected]>
* XmlDataDocumentTest.cs: fixed some tests. Now works better on ms.net

svn path=/trunk/mcs/; revision=14969
2003-05-28 12:47:12 +00:00
Dick Porter 76bbbeaf0d Build fix
svn path=/trunk/mcs/; revision=14968
2003-05-28 12:16:15 +00:00
Aleksey Ryabchuk d9db64bfda changed to use base implementation of CreateParams
svn path=/trunk/mcs/; revision=14967
2003-05-28 10:39:55 +00:00
Aleksey Ryabchuk ad116f2c28 include PictureBox.cs to the build
svn path=/trunk/mcs/; revision=14966
2003-05-28 09:59:10 +00:00
Ville Palo db1425a690 2003-05-28 Ville Palo <[email protected]>
* SqlMoney.cs: little fixes and clean ups

svn path=/trunk/mcs/; revision=14965
2003-05-28 09:55:35 +00:00
Paolo Molaro 17611d6385 Wed May 28 11:19:15 CEST 2003 Paolo Molaro <[email protected]>
* Makefile.am, jit.h, mini.h: install header for embedding mono.

svn path=/trunk/mono/; revision=14964
2003-05-28 09:33:15 +00:00
Ville Palo 91a2b57741 2003-05-28 Ville Palo <[email protected]>
* SqlInt16.cs: more checked fixes.
	* SqlInt64.cs: checked fixes.
	* SqlSingle.cs: checked fixes.

svn path=/trunk/mcs/; revision=14963
2003-05-28 09:20:11 +00:00
Ville Palo 537929587c 2003-05-28 Ville Palo <[email protected]>
* SqlInt16.cs: little fixes.

svn path=/trunk/mcs/; revision=14962
2003-05-28 08:10:33 +00:00
Ville Palo 4f7e50b2a5 2003-05-28 Ville Palo <[email protected]>
* SqlDouble.cs: Some fixes. Mostly infinity checks
	* SqlSingle.cs: tiny fixes.
	* SqlInt64.cs: checked fix.

svn path=/trunk/mcs/; revision=14961
2003-05-28 07:51:40 +00:00
Hector E. Gomez Morales c7db5d2857 *makefile.gnu: Added anonymous.cs to the compiler sources.
svn path=/trunk/mcs/; revision=14960
2003-05-28 07:45:09 +00:00
Ville Palo 4f4a7506d1 2003-05-28 Ville Palo <[email protected]>
* ChangeLog: Added this.
	* SqlByte.cs: Fixed checked parts

svn path=/trunk/mcs/; revision=14959
2003-05-28 07:06:18 +00:00
Miguel de Icaza 435926b249 update todo
svn path=/trunk/mcs/; revision=14958
2003-05-28 05:23:07 +00:00
Miguel de Icaza f80306044f 2003-05-28 Miguel de Icaza <[email protected]>
* iterators.cs: Change the name of the proxy class to include two
	underscores.

svn path=/trunk/mcs/; revision=14957
2003-05-28 05:09:55 +00:00
Miguel de Icaza de115999a9 2003-05-28 Miguel de Icaza <[email protected]>
* cs-parser.jay: Update grammar to include anonymous methods.

	* anonymous.cs: new file.

svn path=/trunk/mcs/; revision=14956
2003-05-28 05:00:13 +00:00
Ben Maurer c91f2d0cb5 2003-05-27 Ben Maurer <[email protected]>
* XslTransform.cs: unsafe classes need unsafe!

svn path=/trunk/mcs/; revision=14954
2003-05-28 01:45:40 +00:00
Jean-Marc Andre dbed9ccc44 2003-05-27 Jean-Marc Andre <[email protected]>
Bugs fixed
	Preparing the SoapFormatter for remoting

svn path=/trunk/mcs/; revision=14952
2003-05-28 00:25:04 +00:00
Joshua Tauberer 54d44a9ba1 2003-05-27 Joshua Tauberer <[email protected]>
* XslTransform.cs: Initial support for extension objects.
                Known issues:
                        Extension method signatures must match exactly to the
                        types of parameters that the method is called with from the stylesheet.
                        Node set parameters are converted to an ArrayList of strings.
        * makefule.gnu: Added -unsafe flag, required by the above stuff.
        * System.XML.build: Added /unsafe flag.  Hope this is the right place.

svn path=/trunk/mcs/; revision=14951
2003-05-28 00:23:51 +00:00
Philip Van Hoof 907d738c8b Small code-formatting changes to the Demo2.cs
svn path=/trunk/mcs/; revision=14950
2003-05-27 22:16:53 +00:00
Philip Van Hoof 32b3bbe886 *** empty log message ***
svn path=/trunk/mcs/; revision=14949
2003-05-27 22:13:09 +00:00
Philip Van Hoof dd63b887f6 Little changes to the demo-application
svn path=/trunk/mcs/; revision=14948
2003-05-27 21:39:12 +00:00
Philip Van Hoof 545fb516c1 Proof-demo that the scrollbar works
svn path=/trunk/mcs/; revision=14947
2003-05-27 21:36:03 +00:00
Philip Van Hoof 04576706da Event fix
svn path=/trunk/mcs/; revision=14946
2003-05-27 21:30:44 +00:00
Miguel de Icaza 968c2830f9 2003-05-27 Miguel de Icaza <[email protected]>
* class.cs (Field.Define): Add missing test for pointers and
	safety.

svn path=/trunk/mcs/; revision=14945
2003-05-27 21:03:55 +00:00
Ravi Pratap M a413ef7e77 2003-05-27 Ravi Pratap <[email protected]>
* expression.cs (ArrayAccess.GetStoreOpCode): For System.IntPtr,
	we use the stobj opcode.

	(ArrayCreation.EmitDynamicInitializers): Revert Miguel's patch
	since it wasn't the correct fix.

	It still is puzzling that we are required to use stobj for IntPtr
	which seems to be a ValueType.

svn path=/trunk/mcs/; revision=14944
2003-05-27 20:01:56 +00:00
Ravi Pratap M b95b5744f3 2003-05-27 Ravi Pratap <[email protected]>
* test-45.cs : Enable code which tests IntPtr array
	initialization. This automatically serves as a test case for bug
	#36030.

	Improve test.

svn path=/trunk/mcs/; revision=14943
2003-05-27 20:01:34 +00:00
Philip Van Hoof c0b131dd3d Changed - Event of the ScrollBar Control
svn path=/trunk/mcs/; revision=14942
2003-05-27 19:23:13 +00:00
Philip Van Hoof f30a7591c0 Added a small sample to test a single widget
svn path=/trunk/mcs/; revision=14941
2003-05-27 19:10:55 +00:00
Philip Van Hoof 62135fe319 Added widget: VScrollBar
svn path=/trunk/mcs/; revision=14940
2003-05-27 18:59:51 +00:00
Philip Van Hoof cc0bd4631e Added widgets: ScrollBar, HScrollBar, VScrollBar
Code reflow of the demo.cs-file
Added a HScrollBar and a VScrollBar to the demo.cs-file

svn path=/trunk/mcs/; revision=14939
2003-05-27 18:58:48 +00:00
Paolo Molaro 16caf992e8 Tue May 27 17:56:12 CEST 2003 Paolo Molaro <[email protected]>
* mini.c: thread-static fields are registered in mono_class_vtable(),
	so ensure the function is called before checking for them.

svn path=/trunk/mono/; revision=14937
2003-05-27 16:05:11 +00:00
Aleksey Ryabchuk 6bac16d87e * Control.cs : implemented GetChildIndex, BringToFront, UpdateZOrder, update z-order when recreating handle,
* win32Strcuts.cs
	* win32Enums.cs : use ansi CharSet for tooltips

svn path=/trunk/mcs/; revision=14936
2003-05-27 15:28:59 +00:00
Nick Drochak bcd9847a67 2003-05-28 Nick Drochak <[email protected]>
* MethodBuilderTest: correct order of expected and actual values.

svn path=/trunk/mcs/; revision=14935
2003-05-27 15:26:34 +00:00
Lluis Sanchez 2638575dba * BinaryReader.cs: underlaying stream don't need to be seekable to use PeekChar.
svn path=/trunk/mcs/; revision=14934
2003-05-27 15:04:43 +00:00
Paolo Molaro 2aa5d4912d Tue May 27 16:34:39 CEST 2003 Paolo Molaro <[email protected]>
* class.h, class.c, object.c: remove relative numbering support.

svn path=/trunk/mono/; revision=14933
2003-05-27 14:52:27 +00:00
Paolo Molaro 292801ba4a Tue May 27 16:36:41 CEST 2003 Paolo Molaro <[email protected]>
* interp.c: don't use relative numbering stuff.

svn path=/trunk/mono/; revision=14932
2003-05-27 14:45:41 +00:00
Aleksey Ryabchuk d4bb2d4d08 * Contols.cs : changes to SetVisibleCore, Invalidate (bool) is implemented
* NativeWindow.cs : don't use CS_VREDRAW and CS_HREDRAW flags
	* ImageList.cs
	* ImageListStreamer.cs : small fixes
	* TabControl.cs
	* TabPage.cs : image list support was added

svn path=/trunk/mcs/; revision=14931
2003-05-27 12:26:20 +00:00
Dietmar Maurer aaabd3e03d 2003-05-27 Dietmar Maurer <[email protected]>
* mini.c (optimize_branches): fix for bug 43586

svn path=/trunk/mono/; revision=14930
2003-05-27 12:12:53 +00:00
Paolo Molaro 4783b1c05a Farewell, mono jit,
warts and all it has been fun.
mini stole your heart.

svn path=/trunk/mono/; revision=14929
2003-05-27 10:57:03 +00:00
Paolo Molaro 91bc790088 Tue May 27 12:18:44 CEST 2003 Paolo Molaro <[email protected]>
* interp.c: update for mono_class_vtable() changes.

svn path=/trunk/mono/; revision=14928
2003-05-27 10:27:29 +00:00
Aleksey Ryabchuk e5a29143c2 Added missing Serializable attributes, fixed field names
svn path=/trunk/mcs/; revision=14927
2003-05-27 10:14:11 +00:00
Dietmar Maurer 7a261a2298 2003-05-27 Dietmar Maurer <[email protected]>
* jit-icalls.c (mono_llmult_ovf): added an additional check for
	overflow (fixes Bug #43639)

svn path=/trunk/mono/; revision=14926
2003-05-27 10:09:26 +00:00
Paolo Molaro 906cf81b7e Tue May 27 11:33:53 CEST 2003 Paolo Molaro <[email protected]>
* mini.c, objects.cs: allow the use of stobj for primitive types.

svn path=/trunk/mono/; revision=14925
2003-05-27 09:42:44 +00:00
Paolo Molaro 2516457aec Tue May 27 10:33:53 CEST 2003 Paolo Molaro <[email protected]>
* mini.c: be less strict about argument checking until we support
	running the verifier.

svn path=/trunk/mono/; revision=14924
2003-05-27 08:42:44 +00:00
Miguel de Icaza d8fa0cd6ab 2003-05-26 Miguel de Icaza <[email protected]>
* ecore.cs (SimpleName.SimpleNameResolve): Consider using aliases
	during regtular simple name resolution.   Now, the trick is that
	instead of returning for processing the simplename, we do a
	TypeManager.LookupType (ie, a rooted lookup as opposed to a
	contextual lookup type).   If a match is found, return that, if
	not, return for further composition.

	This fixes long-standing 30485.

svn path=/trunk/mcs/; revision=14916
2003-05-27 01:12:47 +00:00
Miguel de Icaza d90b6829ee Improve the using-alias test to include the sample from Zoltan (IKVM)
svn path=/trunk/mcs/; revision=14915
2003-05-27 01:12:15 +00:00
Sebastien Pouliot 70d5a29a29 2003-05-26 Sebastien Pouliot <[email protected]>
* X509CertificateTest.cs: Commented some tests in Certificate13 (the
	DSA certificate without any key parameters) because MS implementation
	cannot use the X509Certificate(X509Certificate) to instance it.

svn path=/trunk/mcs/; revision=14914
2003-05-27 01:07:45 +00:00
Nick Drochak 48e2b2a3bf 2003-05-27 Nick Drochak <[email protected]>
* basic-long.cs: tests for (ulong)int * (ulong)int also
	* mini.c: use the same trick for (ulong)int * (ulong)int

svn path=/trunk/mono/; revision=14910
2003-05-26 22:43:34 +00:00
Miguel de Icaza 7923990716 A better fix: do not kill the code, just ifdef it out
2003-05-26  Miguel de Icaza  <[email protected]>

	* marshal.c (mono_marshal_get_native_wrapper): For now, do not
	free the string, until we get a chance to fix Gtk#

svn path=/trunk/mono/; revision=14909
2003-05-26 22:33:54 +00:00
Gonzalo Paniagua Javier 342c2d1c7f 2003-05-27 Gonzalo Paniagua Javier <[email protected]>
* marshal.c: revert last patch.

svn path=/trunk/mono/; revision=14908
2003-05-26 22:26:02 +00:00
Nick Drochak 64c8427a92 2003-05-27 Nick Drochak <[email protected]>
* basic-long.cs: add regression test for (long)int * (long)int
	* cpu-pentium.md: add op_bigmul specification
	* inssel-long32.brg: add OP_BIGMUL rule
	* mini-ops.h: add OP_BIGMUL
	* mini-x86.c: register allocator: handle case where src1 needs to be
	in EAX.
	* mini.c: substitute special BIGMUL opcode in the tree for
	(long)int * (long)int

svn path=/trunk/mono/; revision=14907
2003-05-26 21:59:11 +00:00
Joel Basson 2cdbb8f847 A small addition to Demo2.cs
svn path=/trunk/mcs/; revision=14906
2003-05-26 21:49:38 +00:00
Miguel de Icaza 643dd9343f Improve test
svn path=/trunk/mcs/; revision=14905
2003-05-26 21:35:00 +00:00
Miguel de Icaza 4ada58ec15 2003-05-26 Miguel de Icaza <[email protected]>
* expression.cs (ArrayCreation.EmitDynamicInitializers): When

svn path=/trunk/mcs/; revision=14904
2003-05-26 21:30:14 +00:00
Miguel de Icaza f7e8ab83cf Improved version
svn path=/trunk/mcs/; revision=14903
2003-05-26 21:24:59 +00:00
Ben Maurer 27ccae5025 2003-05-26 Ben Maurer <[email protected]>
* DataViewTest.cs: Added new test from
        Patrick Kalkman
	* data_linux_test.args: Updated for new test in System.Data

svn path=/trunk/mcs/; revision=14902
2003-05-26 21:22:36 +00:00
Alexandre Pigolkine 72d5e44a4c small fix
svn path=/trunk/mcs/; revision=14901
2003-05-26 20:47:00 +00:00
Alexandre Pigolkine 6e0f133877 analyse environment variable/machine.config for implementation, PixelFormat property, ctor calls
svn path=/trunk/mcs/; revision=14900
2003-05-26 20:29:38 +00:00
Philip Van Hoof 0c0fb7391d Added a .cvsignore-file for SWF/Gtk
svn path=/trunk/mcs/; revision=14899
2003-05-26 19:59:51 +00:00
Miguel de Icaza 8e08696464 Improve test
svn path=/trunk/mcs/; revision=14898
2003-05-26 19:00:21 +00:00
Miguel de Icaza c311b54fa9 2003-05-26 Miguel de Icaza <[email protected]>
* expression.cs (IndexerAccess.Emit, IndexerAccess.EmitAssign):
	Pass `is_base_indexer' to Invocation.EmitCall instead of false.
	Because if we are a BaseIndexerAccess that value will be true.
	Fixes 43643.

svn path=/trunk/mcs/; revision=14897
2003-05-26 18:58:43 +00:00
Miguel de Icaza 66502e8421 2003-05-26 Miguel de Icaza <[email protected]>
* statement.cs (GotoCase.Resolve): Return after reporting an
	error, do not attempt to continue.

svn path=/trunk/mcs/; revision=14896
2003-05-26 18:50:22 +00:00
Miguel de Icaza c57f13b699 2003-05-26 Miguel de Icaza <[email protected]>
* expression.cs (PointerArithmetic.Emit): If our operand is a
	long, convert our constants to match the operand before
	multiplying.  Convert to I type before adding.   Fixes 43670.

svn path=/trunk/mcs/; revision=14895
2003-05-26 18:46:48 +00:00
Miguel de Icaza 5fcaed7422 Improve test
svn path=/trunk/mcs/; revision=14894
2003-05-26 18:45:46 +00:00
Paolo Molaro a0f943e703 Mon May 26 20:21:52 CEST 2003 Paolo Molaro <[email protected]>
* icall.c: updates for new mono_class_vtable() not calling
	the type constructor anymore.

svn path=/trunk/mono/; revision=14893
2003-05-26 18:31:27 +00:00
Paolo Molaro a7ba98e8f3 Mon May 26 20:20:13 CEST 2003 Paolo Molaro <[email protected]>
* jit-icalls.c: call the type ctor on field access if needed.

svn path=/trunk/mono/; revision=14892
2003-05-26 18:29:13 +00:00
Atsushi Eno 5ca10162aa 2003-05-27 Atsushi Enomoto <[email protected]>
* NameTable.cs : Add() sets the given name string interned.
	* XmlParserContext.cs : added internal PushScope() and PopScope() to
	  hold stacks of xml:base, xml:lang and xml:space.
	* XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
	  property for stacked attributes). Renamed Initialize() to Initialize-
	  Context(). Modified to use XmlParserContext.PushScope()/PopScope().

svn path=/trunk/mcs/; revision=14891
2003-05-26 17:59:08 +00:00
Miguel de Icaza c399f70311 Update faq
svn path=/trunk/mono/; revision=14890
2003-05-26 17:44:33 +00:00
Dietmar Maurer b793c5e4cc 2003-05-26 Dietmar Maurer <[email protected]>
* graph.c (cfg_emit_one_loop_level): loop over all blocks. use
	colors to show exception handler blocks.

svn path=/trunk/mono/; revision=14889
2003-05-26 16:53:40 +00:00
Aleksey Ryabchuk 3278a0e202 * ImageListStreamer.cs: added deserialization code
* win32functions.cs : added some prototypes required for ImageList impl.
	* win32strcuts.cs : added new structs, switched to CharSet.Ansi for TCITEM struct
	* win32Enums.cs : use ansi messages for tab control

svn path=/trunk/mcs/; revision=14888
2003-05-26 16:14:23 +00:00
Paolo Molaro 1b2f2407f7 Missing conv.ovf.i8.
svn path=/trunk/mono/; revision=14887
2003-05-26 15:37:35 +00:00
Lluis Sanchez 49193cc3db * XmlReader.cs: Little fix to WriteAttributeString()
svn path=/trunk/mcs/; revision=14886
2003-05-26 14:54:14 +00:00
Lluis Sanchez c287de26ba * XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
	  XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added

svn path=/trunk/mcs/; revision=14885
2003-05-26 14:35:16 +00:00
Lluis Sanchez 63d68c4130 * TypeData.cs, TypeTranslator.cs: Implemented some methods.
* XmlCustomFormatter.cs: Added formatting methods.
	* XmlReflectionImporter.cs, XmlSerializer.cs: New implementation.
	* XmlReflectionMember.cs: Added new constructor.
	* XmlSerializationReader.cs, XmlSerializationWriter.cs: Implemented some methods.
	* XmlSerializationWriterInterpreter.cs, XmlSerializationReaderInterpreter.cs
	  XmlTypeMapElementInfo.cs, XmlTypeMapMember.cs, XmlTypeMapMemberAttribute.cs
	  XmlTypeMapMemberElement.cs, XmlTypeMapping.cs: Added

svn path=/trunk/mcs/; revision=14884
2003-05-26 14:34:44 +00:00
Paolo Molaro 122c748e35 Mon May 26 15:21:21 CEST 2003 Paolo Molaro <[email protected]>
* mini-ops.h, mini.c, inssel.brg, exceptions.cs: validate arguments passed
	to a method (including results of ldelema, bug#43207).

svn path=/trunk/mono/; revision=14883
2003-05-26 14:25:45 +00:00
Dietmar Maurer 16df612ff8 2003-05-26 Dietmar Maurer <[email protected]>
* inssel-x86.brg (OP_OUTARG_VT): dont push zero sized structures
	(fix for pinvoke7.cs).

svn path=/trunk/mono/; revision=14882
2003-05-26 13:26:44 +00:00
Paolo Molaro da402a52a0 missing.
svn path=/trunk/mono/; revision=14881
2003-05-26 13:15:16 +00:00
Paolo Molaro da756b6eff Mon May 26 12:11:53 CEST 2003 Paolo Molaro <[email protected]>
* mini.h, mini.c: ensure correct initialization order for types that
	require it. Prepare for lazy compilation of jit icall wrappers.
	Provide a name for opcode emulation to reduce unneeded mallocing.

svn path=/trunk/mono/; revision=14880
2003-05-26 10:24:16 +00:00
Paolo Molaro e952d46d0f Mon May 26 12:10:35 CEST 2003 Paolo Molaro <[email protected]>
* object.h, object.c: separate vtable creation from type
	initialization. Make running the .cctor thread safe.

svn path=/trunk/mono/; revision=14879
2003-05-26 10:24:08 +00:00
Dietmar Maurer 87b40f0226 2003-05-26 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): free string return values.

svn path=/trunk/mono/; revision=14878
2003-05-26 10:03:08 +00:00
Paolo Molaro 42869dc750 One more class init order test case (to test when inlining is involved).
svn path=/trunk/mono/; revision=14877
2003-05-26 09:50:20 +00:00
Sebastien Pouliot 6383ee3cb3 2003-05-25 Sebastien Pouliot <[email protected]>
* XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
	to match framework 1.1 (this was a bug in framework 1.0).

svn path=/trunk/mcs/; revision=14876
2003-05-26 01:40:35 +00:00
Joel Basson 7d0843f59e small update to demo.cs
svn path=/trunk/mcs/; revision=14872
2003-05-25 21:19:37 +00:00
Joel Basson fcf9af31a8 2003-05-25 Joel Basson <[email protected]>
* PictureBoxSizeMode.cs
* Added relevent functions to PictureBox.cs
* Updated demo.cs

svn path=/trunk/mcs/; revision=14871
2003-05-25 21:04:21 +00:00
Jackson Harper f96d77c780 * ILParser.jay: Pass call conv to methoref constructors. Add the
ELLIPSIS to type_lists, this is for vararg methods

svn path=/trunk/mcs/; revision=14870
2003-05-25 20:08:49 +00:00
Jackson Harper 3a1afe8c2d * CodeGen.cs: Add method to resolve global vararg methods.
* ExternMethodRef.cs: Resolve vararg methods
	* GlobalMethodRef.cs: Set calling conventions, add vararg methods
	* MethodDef.cs: Set calling conventions, add vararg methods
	* MethodRef.cs: Set calling conventions, add vararg methods
	* TypeDef.cs: Resolve vararg methods
	* TypeRef.cs: Add Ellipsis pseudo type, this should never really
	be used as a type, but is stored in arrays with other types. Pass
	call convs to methodref constructor.

svn path=/trunk/mcs/; revision=14869
2003-05-25 20:08:19 +00:00
Miguel de Icaza fa1f0b3644 Fix link
svn path=/trunk/mono/; revision=14868
2003-05-25 19:57:40 +00:00
Jackson Harper 733e2ea360 * PEAPI.cs: Create a list of vararg signatures and add them all to
tables. this allows more then one vararg signature to be created
	per method.

svn path=/trunk/mcs/; revision=14867
2003-05-25 18:58:33 +00:00
Philip Van Hoof c266b967bd Shortcut fixes in MenuItem.cs
svn path=/trunk/mcs/; revision=14866
2003-05-25 17:47:28 +00:00
Philip Van Hoof ab8b618b4d More Shortcut-types added
svn path=/trunk/mcs/; revision=14865
2003-05-25 17:41:38 +00:00
Philip Van Hoof 5da301ecc8 More Shortcut-types added
svn path=/trunk/mcs/; revision=14864
2003-05-25 17:30:30 +00:00
Philip Van Hoof c9db396299 Shortcut helper class
svn path=/trunk/mcs/; revision=14863
2003-05-25 17:07:20 +00:00
Joel Basson 4f307969a8 2003-05-25 Joel Basson <[email protected]>
* Shortcut.cs

svn path=/trunk/mcs/; revision=14861
2003-05-25 13:26:10 +00:00
Miguel de Icaza 76e50a6470 Update
svn path=/trunk/mono/; revision=14860
2003-05-25 13:13:23 +00:00
Francisco Figueiredo Jr. 8bcac6b7eb 2003-05-25 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlDataReader.cs: Fixed an invalid index exception when processing 0 rows queries.

svn path=/trunk/mcs/; revision=14859
2003-05-25 03:51:45 +00:00
Francisco Figueiredo Jr. 055b2abeea 2003-05-25 Francisco Figueiredo Jr. <[email protected]>
* Importacao inicial dos testes unitarios para NUnit 2.0

svn path=/trunk/mcs/; revision=14858
2003-05-25 03:42:54 +00:00
Francisco Figueiredo Jr. d75b805ec9 2003-05-25 Francisco Figueiredo Jr. <[email protected]>
* Fixed an invalid index exception when processing 0 rows queries.

svn path=/trunk/mcs/; revision=14857
2003-05-25 03:38:05 +00:00
Joel Basson b1b6871ca3 2003-05-25 Joel Basson <[email protected]>
* Added Shortcut and Checked property to MenuItem.cs
* Updated Demo2.cs to demonstrate new properties

svn path=/trunk/mcs/; revision=14856
2003-05-25 01:17:25 +00:00
Philip Van Hoof 438a6e93a8 Changed my E-mail adres in the ChangeLog-file
svn path=/trunk/mcs/; revision=14855
2003-05-25 00:35:00 +00:00
Philip Van Hoof 6d4f94b510 Changed my email adres in the ChangeLog-file
svn path=/trunk/mcs/; revision=14854
2003-05-25 00:34:09 +00:00
Jackson Harper 49632f675f * CatchBlock.cs: Remove typo causing to labels to be the same as
from labels.
	* FaultBlock.cs: Remove typo causing to labels to be the same as
	from labels.
	* FilterBlock.cs: Remove typo causing to labels to be the same as
	from labels.
	* MethodDef.cs: Allow for multiple labels to point to the same
	line. ie:
	END_BLOCK:
	PASS:
	do stuff

svn path=/trunk/mcs/; revision=14853
2003-05-24 18:25:08 +00:00
Philip Van Hoof 9c0a4ec07b Menu fixes
svn path=/trunk/mcs/; revision=14852
2003-05-24 17:00:59 +00:00
Pedro Martínez Juliá df40bc1b3e 2003-05-24 Philip Van Hoof <[email protected]>
* Math.cs: Add the MS.NET 1.1 methods (BigMul, DivRem, DivRem).

svn path=/trunk/mcs/; revision=14851
2003-05-24 15:38:17 +00:00
Philip Van Hoof b52d820f9b Added Demo2.exe to the makefile
svn path=/trunk/mcs/; revision=14850
2003-05-24 15:34:00 +00:00
Joel Basson 92a430bf6d *** empty log message ***
svn path=/trunk/mcs/; revision=14849
2003-05-24 15:29:49 +00:00
Philip Van Hoof 4988c71412 Commented something that has not yet been implemented in gtk-sharp
svn path=/trunk/mcs/; revision=14848
2003-05-24 15:23:38 +00:00
Philip Van Hoof 083b5c22c5 updated the demo application
svn path=/trunk/mcs/; revision=14847
2003-05-24 15:22:56 +00:00
Philip Van Hoof 5526bfdcc7 TextBoxBase.cs fixes by Philip Van Hoof and Menu fixes By Joel
svn path=/trunk/mcs/; revision=14846
2003-05-24 15:20:56 +00:00
Joel Basson e7f5c90645 *** empty log message ***
svn path=/trunk/mcs/; revision=14845
2003-05-24 15:13:33 +00:00
Joel Basson 8084361f36 *** empty log message ***
svn path=/trunk/mcs/; revision=14844
2003-05-24 15:05:52 +00:00
Joel Basson 55a17580fc 2003-05-24 Joel Basson <[email protected]>
* MainMenu.cs
* MenuItems.cs
* Some more work done to MessageBox.cs

svn path=/trunk/mcs/; revision=14843
2003-05-24 14:58:25 +00:00
Miguel de Icaza f8250b2369 Update
svn path=/trunk/mono/; revision=14842
2003-05-24 14:30:11 +00:00
Jackson Harper dab45bedf0 * ILParser.jay: Remove top secret debugging code.
svn path=/trunk/mcs/; revision=14841
2003-05-24 07:00:51 +00:00
Marco Ridoni c21aafc850 Variables defned in Catch blocks are now correctly typed
svn path=/trunk/mcs/; revision=14839
2003-05-23 23:05:18 +00:00
Marco Ridoni e281dd824d Some runtime conversion fixes
svn path=/trunk/mcs/; revision=14838
2003-05-23 23:03:22 +00:00
Atsushi Eno 7ff3fe6a23 2003-05-24 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs,
	  XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs,
	  XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs,
	  XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs:
	  Reverted the recent accessibility mistake (5/16).
	* XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic
	  from XmlNode to XmlDocument.

svn path=/trunk/mcs/; revision=14836
2003-05-23 16:38:07 +00:00
Aleksey Ryabchuk 8efe1dfbd0 small changes
svn path=/trunk/mcs/; revision=14835
2003-05-23 16:20:51 +00:00
Paolo Molaro ad392424e4 Fri May 23 16:08:54 CEST 2003 Paolo Molaro <[email protected]>
* mini-x86.c: better register restoring code and profiling
	support for tail calls.

svn path=/trunk/mono/; revision=14834
2003-05-23 14:17:34 +00:00
Paolo Molaro 175d4b589d Fri May 23 15:30:53 CEST 2003 Paolo Molaro <[email protected]>
* mini.h, driver.c: prepare for leaf methods optimization.

svn path=/trunk/mono/; revision=14833
2003-05-23 13:39:27 +00:00
Paolo Molaro 655d235a8e Fri May 23 15:28:32 CEST 2003 Paolo Molaro <[email protected]>
* mini.c: get targets of branches before converting a method.

svn path=/trunk/mono/; revision=14832
2003-05-23 13:38:12 +00:00
Aleksey Ryabchuk a8d06898e1 Added missing Serializable attributes, deserialization constructors etc.
svn path=/trunk/mcs/; revision=14831
2003-05-23 11:30:56 +00:00
Zoltan Varga ab011f278f 2003-05-23 Zoltan Varga <[email protected]>
* Dns.cs (GetHostByAddress): Return the local host when called with
	IF_ANY.

svn path=/trunk/mcs/; revision=14830
2003-05-23 11:07:21 +00:00
Dietmar Maurer 8a6339ae53 2003-05-23 Dietmar Maurer <[email protected]>
* mini.c (optimize_branches): added some experimental code (disbaled)

svn path=/trunk/mono/; revision=14829
2003-05-23 08:08:21 +00:00
Jackson Harper 4e35d8ab8a * ILParser.jay: Implement label form structured exception handling.
svn path=/trunk/mcs/; revision=14828
2003-05-23 07:29:15 +00:00
Jackson Harper 47ab229522 add new files to build.
svn path=/trunk/mcs/; revision=14827
2003-05-23 07:27:23 +00:00
Jackson Harper d67093c906 * CatchBlock.cs: New file - Initial implementation of a catch
block
	* FaultBlock.cs: New file - Initial implementation of a fault
	block
	* FilterBlock.cs: New file - Initial implementation of a filter
	block
	* FinallyBlock.cs: New file - Initial implementation of a finally
	block
	* HandlerBlock.cs: New file - A handler block is the block
	assosciated with a SEH clause
	* ISehClause: New file - Interface that structured exception
	handling clauses must implement.
	* TryBlock.cs: New file - Initial implementation only supports
	label form SEH. This TryBlock is added to a method as an
	instruction out of convenience, tryblock is not an instruction.

svn path=/trunk/mcs/; revision=14826
2003-05-23 07:26:42 +00:00
Jackson Harper 519afc81e8 * ILTokenizer.cs: When building instructions allow the '.' char so
complex instructions like conv.ovf.u.un can be created.

svn path=/trunk/mcs/; revision=14825
2003-05-23 04:56:47 +00:00
Jackson Harper d203f47029 * InstrTable.cs: Add unsigned conversion instructions.
svn path=/trunk/mcs/; revision=14824
2003-05-23 04:50:18 +00:00
Jackson Harper c1718e4676 * ILParser.jay: Comment out K_IMF and K_NAN these are not used in
the grammar.

svn path=/trunk/mcs/; revision=14823
2003-05-23 04:05:29 +00:00
Jackson Harper 3c9a713840 * ILTables.cs: Comment out nan and inf keywords, these are not
referenced in the grammar. need to check if these keywords work on
	MS ilasm.
	* NumberHelper.cs: Parse numbers as Unsigned then cast to long
	otherwise an overflow exception is thrown. (is this a classlib bug?)

svn path=/trunk/mcs/; revision=14822
2003-05-23 04:02:21 +00:00
Ben Maurer 5450b55618 2003-05-22 Ben Maurer <[email protected]>
StringWriterTest.cs: Added tests from bug #43431 (by Ian MacLean).

svn path=/trunk/mcs/; revision=14821
2003-05-23 03:48:43 +00:00
Gonzalo Paniagua Javier 9f88f4eefb 2003-05-23 Gonzalo Paniagua Javier <[email protected]>
* Path.cs: fixed bug #42631.

svn path=/trunk/mcs/; revision=14820
2003-05-23 02:29:57 +00:00
Gonzalo Paniagua Javier 319381dcf4 forgot this one
svn path=/trunk/mcs/; revision=14808
2003-05-22 18:05:08 +00:00
Gonzalo Paniagua Javier 1bdb5e794c Copy the signature file to ../lib
svn path=/trunk/mcs/; revision=14807
2003-05-22 17:44:20 +00:00
Gonzalo Paniagua Javier 84f53f2c6d 2003-05-22 Gonzalo Paniagua Javier <[email protected]>
* TempFileCollection.cs: fixed the build under windows.

svn path=/trunk/mcs/; revision=14806
2003-05-22 17:40:52 +00:00
Dietmar Maurer a5ee113652 2003-05-22 Dietmar Maurer <[email protected]>
* mini.c (optimize_branches): fix branch to branch optimization

svn path=/trunk/mono/; revision=14805
2003-05-22 16:56:30 +00:00
Dietmar Maurer 99ea65fc97 *** empty log message ***
svn path=/trunk/mono/; revision=14804
2003-05-22 16:11:51 +00:00
Dietmar Maurer 9bc145b02b 2003-05-22 Dietmar Maurer <[email protected]>
* exceptions-x86.c (mono_arch_handle_exception): bug fix.

	* more docu

svn path=/trunk/mono/; revision=14803
2003-05-22 16:04:53 +00:00
Nick Drochak f4656c2d26 2003-05-22 Nick Drochak <[email protected]>
* ArrayTest.cs: Add conditional compile for 1.1

svn path=/trunk/mcs/; revision=14802
2003-05-22 15:50:04 +00:00
Dietmar Maurer e546140b86 *** empty log message ***
svn path=/trunk/mono/; revision=14801
2003-05-22 15:10:10 +00:00
Nick Drochak 8f495974eb 2003-05-22 Nick Drochak <[email protected]>
* StreamReaderTest.cs:
	* StreamWriterTest.cs: Forgot nunit v2 TestFixture attribute

svn path=/trunk/mcs/; revision=14800
2003-05-22 14:59:09 +00:00
Dietmar Maurer c2e395049f added infos about exception handling
svn path=/trunk/mono/; revision=14799
2003-05-22 14:48:41 +00:00
Dietmar Maurer 5964ed275a update
svn path=/trunk/mono/; revision=14798
2003-05-22 14:22:54 +00:00
Dietmar Maurer e7bb3eb619 only add START_HANDLER for finally/filter clauses
svn path=/trunk/mono/; revision=14797
2003-05-22 14:01:42 +00:00
Dietmar Maurer d816fc03a7 2003-05-22 Dietmar Maurer <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): cleanup up exception code

	* inssel-x86.brg: added OP_START_HANDLER, CEE_ENDFINALLY, OP_ENDFILTER

	* mini-x86.c (mono_arch_allocate_vars): only reserve space for lmf
	if needed.

svn path=/trunk/mono/; revision=14796
2003-05-22 12:18:54 +00:00
Zoltan Varga 9490d3d5c7 2003-05-22 Zoltan Varga <[email protected]>
* File.cs (Move): Allow moving of directories.
	Fix 'destination is a directory' test.

svn path=/trunk/mcs/; revision=14795
2003-05-22 11:46:09 +00:00
Zoltan Varga f1de5fa45c 2003-05-22 Zoltan Varga <[email protected]>
* FileTest.cs: Added tests for moving directories.

svn path=/trunk/mcs/; revision=14794
2003-05-22 11:43:16 +00:00
Gonzalo Paniagua Javier 7247844c56 2003-05-22 Gonzalo Paniagua Javier <[email protected]>
* CachingCompiler.cs: fixed bug #43477.

svn path=/trunk/mcs/; revision=14793
2003-05-22 11:20:20 +00:00
Jackson Harper 32f3f06c4f * ILParser.jay: Add ldc.r4 to INSTR_R int also fix cast to double.
svn path=/trunk/mcs/; revision=14792
2003-05-22 05:33:26 +00:00
Jackson Harper 0712073981 * ILParser.jay: When converting from int32 to int64 do an exact
bit conversion, not a numerical conversion.

svn path=/trunk/mcs/; revision=14791
2003-05-22 03:42:07 +00:00
Jackson Harper 6193279a28 * InstrTable.cs: ldc.i8 is a TOKEN_I8 and should be given the
MiscToken.ldc_i8 value.

svn path=/trunk/mcs/; revision=14790
2003-05-22 02:25:03 +00:00
Jackson Harper b5ef900768 * ILParser.jay: INT_I8s are not int instructions, currently the
only INT_I8 instruction is ldc.i8 so this new code does more
	checks then needed but is written in anticipation of some new long
	instructions being found. Implement signature instructions, token
	instructions, and signatures. Convert INT32s masquerading as
	INT64s to Int64.

svn path=/trunk/mcs/; revision=14789
2003-05-22 02:22:46 +00:00
Jackson Harper 996b71b661 Add new instructions to build
svn path=/trunk/mcs/; revision=14788
2003-05-22 02:17:11 +00:00
Jackson Harper b0a25a0cda * CalliInstr.cs: New file - The calli instruction
* Ldtoken.cs: New file - The ldtoken instruction
	* InstrTable.cs: ldc.i8 is a TOKEN_I8 and should be given the
	MiscToken.ldc_i8 value.

svn path=/trunk/mcs/; revision=14787
2003-05-22 02:16:44 +00:00
Francisco Figueiredo Jr. 038977978f Synchronized files from gborg repository
svn path=/trunk/mcs/; revision=14786
2003-05-22 02:00:49 +00:00
Francisco Figueiredo Jr. 95e123dcdd Synchronized files from gborg repository
svn path=/trunk/mcs/; revision=14785
2003-05-22 01:54:17 +00:00
Francisco Figueiredo Jr. ecaa0244fc Added key for strong name assembly.
svn path=/trunk/mcs/; revision=14784
2003-05-22 01:48:06 +00:00
John Luke de6d7a5cce add myself
svn path=/trunk/mono/; revision=14783
2003-05-22 01:47:25 +00:00
Francisco Figueiredo Jr. 4f7ebed335 Updated Npgsql version
svn path=/trunk/mcs/; revision=14782
2003-05-22 01:30:47 +00:00
Gonzalo Paniagua Javier bb14252e09 2003-05-22 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs:
	* AspTokenizer.cs: fixed bugs #43206 and #43371.

svn path=/trunk/mcs/; revision=14781
2003-05-21 23:27:12 +00:00
Ben Maurer 6591828e4c 2003-05-21 Ben Maurer <[email protected]>
StringWriter.cs: Fixed bug #43379 "Missing WebException.Response
	property."

svn path=/trunk/mcs/; revision=14780
2003-05-21 23:04:17 +00:00
Ben Maurer faf781c2e1 2003-05-21 Ben Maurer <[email protected]>
* StringWriter.cs: Fixed bug #43431: "StringWriter
	.ctor(CultureInfo) does not create a new StringBuilder ()"

svn path=/trunk/mcs/; revision=14779
2003-05-21 22:11:17 +00:00
Miguel de Icaza 5dae90ef21 Flush
svn path=/trunk/mono/; revision=14778
2003-05-21 21:45:34 +00:00
Dietmar Maurer aefc542ff8 2003-05-21 Dietmar Maurer <[email protected]>
* loader.c (mono_get_method): consider calling convention

svn path=/trunk/mono/; revision=14774
2003-05-21 19:08:19 +00:00
Ravi Pratap M a58b293978 2003-05-14 Ravi Pratap <[email protected]>
* enum.cs (ImplicitConversionExists) : Rename to
	ImplicitEnumConversionExists to remove ambiguity.

	* ecore.cs (NullCast): New type of cast expression class which
	basically is very similar to EmptyCast with the difference being
	it still is a constant since it is used only to cast a null to
	something else
	(eg. (string) null)

	* convert.cs (ImplicitReferenceConversion): When casting a null
	literal, we return a NullCast.

	* literal.cs (NullLiteralTyped): Remove - I don't see why this
	should be around anymore.

	The renaming (reported was slightly wrong). Corrections:

	ConvertImplicitStandard -> ImplicitConversionStandard
	ConvertExplicitStandard -> ExplicitConversionStandard

	* expression.cs (StaticCallExpr.MakeSimpleCall): Resolve arguments
	before passing them in !

	* convert.cs (ImplicitConversionStandard): When comparing for
	equal expr and target types, ensure that expr is not a
	NullLiteral.

	In general, we must not be checking (expr_type ==
	target_type) in the top level conversion methods
	(ImplicitConversion, ExplicitConversion etc). This checking is
	done in the methods that they delegate to.

svn path=/trunk/mcs/; revision=14773
2003-05-21 18:55:34 +00:00
Ravi Pratap M 23643a122c 2003-05-17 Ravi Pratap <[email protected]>
* test-194.cs: New test for bug #39108

	* README.tests : Update accordingly.

	* makefile : Add new test.

svn path=/trunk/mcs/; revision=14772
2003-05-21 18:43:53 +00:00
Paolo Molaro c2369aad9f Enable JIT build on PPC.
svn path=/trunk/mono/; revision=14770
2003-05-21 17:58:02 +00:00
Paolo Molaro 9e1ca2996e Some fixes and more complete support.
svn path=/trunk/mono/; revision=14769
2003-05-21 17:57:05 +00:00
Paolo Molaro 76dec3b1e5 Wrong prototype...
svn path=/trunk/mono/; revision=14768
2003-05-21 17:27:44 +00:00
Paolo Molaro 851db1da49 Function to flush the icache (empty for x86).
svn path=/trunk/mono/; revision=14767
2003-05-21 17:25:23 +00:00
Paolo Molaro 00898a74e0 Use instructions that set the carry/borrow if needed.
svn path=/trunk/mono/; revision=14766
2003-05-21 17:23:35 +00:00
Paolo Molaro f985427860 Use otool to disassemble on macosx.
svn path=/trunk/mono/; revision=14765
2003-05-21 17:22:27 +00:00
Paolo Molaro b73e79be35 Two ppc-specific instructions.
svn path=/trunk/mono/; revision=14764
2003-05-21 17:21:14 +00:00
Paolo Molaro 1987130f48 Some PPC WIP.
svn path=/trunk/mono/; revision=14763
2003-05-21 17:16:18 +00:00
Aleksey Ryabchuk 4e3d50c17b some new implementation was added
svn path=/trunk/mcs/; revision=14762
2003-05-21 16:22:51 +00:00
Dietmar Maurer eafd0b00fd 2003-05-21 Dietmar Maurer <[email protected]>
* mini.c (mono_method_to_ir): call handle_loaded_temps before inlining.
	enable use of interface variables again.

svn path=/trunk/mono/; revision=14761
2003-05-21 14:21:05 +00:00
Zoltan Varga 2b5281083b 2003-05-21 Zoltan Varga <[email protected]>
* corlib_test.args: Added ModuleTest.cs and ModuleBuilderTest.cs

svn path=/trunk/mcs/; revision=14760
2003-05-21 13:30:02 +00:00
Zoltan Varga 170e3afb99 2003-05-21 Zoltan Varga <[email protected]>
* ModuleTest.cs: New file.

svn path=/trunk/mcs/; revision=14759
2003-05-21 13:29:23 +00:00
Zoltan Varga f443d83d90 2003-05-21 Zoltan Varga <[email protected]>
* ModuleBuilderTest.cs: New file.

svn path=/trunk/mcs/; revision=14758
2003-05-21 13:28:46 +00:00
Dietmar Maurer 608af00120 2003-05-21 Dietmar Maurer <[email protected]>
* mini-x86.c (mono_arch_get_allocatable_int_vars): dont allocate
	I1 to registers because there is no simply way to sign extend 8bit
	quantities in caller saved registers on x86.

	* inssel-float.brg: set costs of some rules to 2 so
	that monobure always select the arch. specific ones if supplied,
	regardless of the order we pass the files to monoburg.

svn path=/trunk/mono/; revision=14757
2003-05-21 12:45:22 +00:00
Paolo Molaro 94c74c2919 Don't install genmdesc.
svn path=/trunk/mono/; revision=14756
2003-05-21 11:55:53 +00:00
Zoltan Varga a97c9d002b 2003-05-21 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_Module_GetGlobalType): New icall
	to return the invisible global type for a module.

	* reflection.c (mono_image_build_metadata): Emit global fields too.

svn path=/trunk/mono/; revision=14755
2003-05-21 11:31:58 +00:00
Zoltan Varga bada8fd193 2003-05-21 Zoltan Varga <[email protected]>
* Module.cs: Implement GetField and its friends.

svn path=/trunk/mcs/; revision=14754
2003-05-21 11:30:34 +00:00
Zoltan Varga 9a2a2063a1 2003-05-21 Zoltan Varga <[email protected]>
* reflection.c (mono_image_build_metadata): Emit global fields too.

svn path=/trunk/mono/; revision=14753
2003-05-21 10:33:32 +00:00
Zoltan Varga 723bfb79f6 2003-05-21 Zoltan Varga <[email protected]>
* ModuleBuilder.cs:
	- Implement DefineInitializedData in terms of DefineUninitializedData
	- Name the types of global fields $ArrayType$<len> to cut back on the
	number of types created
	- Add argument checking

svn path=/trunk/mcs/; revision=14752
2003-05-21 10:29:30 +00:00
Aleksey Ryabchuk 216aa0a887 fixed some issues causing problems when running SWF on Linux
svn path=/trunk/mcs/; revision=14751
2003-05-21 10:15:23 +00:00
Gaurav Vaish de6245596d 2003-05-21 Gaurav Vaish <gvaish_mono AT lycos.com>
* HtmlControlAdapter.cs : Partial implementation.
* HtmlFormAdapter.cs    : Initial implementation.
* HtmlPageAdapter.cs    : Initial implementation.

svn path=/trunk/mcs/; revision=14749
2003-05-21 06:17:03 +00:00
Miguel de Icaza 41ffe597a5 Ooops, do not force this on everyone
svn path=/trunk/mcs/; revision=14748
2003-05-21 00:36:41 +00:00
Miguel de Icaza d518db9455 For now, do not reference the Shell, but Mono should be changed to not warn
svn path=/trunk/mcs/; revision=14747
2003-05-21 00:29:25 +00:00
Miguel de Icaza 67b157bc4a Change casing
svn path=/trunk/mcs/; revision=14746
2003-05-21 00:13:40 +00:00
Miguel de Icaza 712b7abcad Flush
svn path=/trunk/mono/; revision=14745
2003-05-20 23:56:44 +00:00
Miguel de Icaza c84fba9ca3 Flush
svn path=/trunk/mono/; revision=14744
2003-05-20 23:53:42 +00:00
Miguel de Icaza 93636941d5 Flush
svn path=/trunk/mono/; revision=14743
2003-05-20 23:40:20 +00:00
Pedro Martínez Juliá 750d91afa1 2003-05-21 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Take care with the explicit precision
    and round the number to that precision.

    * DoubleFormatter.cs: Adapt to the two level precision (15 - 17).

    * SingleFormatter.cs: Adapt to the two level precision (7 - 8).

svn path=/trunk/mcs/; revision=14742
2003-05-20 23:16:41 +00:00
Daniel Morgan e8629311df update my location and email
svn path=/trunk/mono/; revision=14741
2003-05-20 23:10:12 +00:00
Miguel de Icaza 7e53f8dfc8 Update with more tests
svn path=/trunk/mcs/; revision=14740
2003-05-20 22:20:38 +00:00
Miguel de Icaza e05f252b59 Add new tests
svn path=/trunk/mcs/; revision=14739
2003-05-20 22:09:03 +00:00
Miguel de Icaza b4a3f27b45 Add DoubleFormatterTest
svn path=/trunk/mcs/; revision=14738
2003-05-20 22:05:28 +00:00
Miguel de Icaza be1d1032f0 Remap gtkhtml-3.0 to a version with .so.1
svn path=/trunk/mono/; revision=14737
2003-05-20 22:03:25 +00:00
Miguel de Icaza 46c4f62656 Add UnicodeEncodingTest.cs from Patrick Kalkman
svn path=/trunk/mcs/; revision=14736
2003-05-20 21:44:42 +00:00
Miguel de Icaza 5d8c2faca4 Add DecimalFormatterTest.cs from Patrick Kalkman
svn path=/trunk/mcs/; revision=14735
2003-05-20 21:43:31 +00:00
Peter Williams e7b987bc15 2003-05-20 Peter Williams <[email protected]>
* loader.c (mono_lookup_internal_call): Add a few newlines.

svn path=/trunk/mono/; revision=14734
2003-05-20 21:19:47 +00:00
Miguel de Icaza 1c88e7e5b2 2003-05-20 Philip Van Hoof <[email protected]>
* DateTime.cs (FromOADate, GetDateTimeFormats, ToOADate):
	Implemented.

svn path=/trunk/mcs/; revision=14733
2003-05-20 21:07:58 +00:00
Peter Williams 4fef0fcc65 2003-05-16 Peter Williams <[email protected]>
* main.c (print_skel_dir): New function called when jay is
	passed '-p'; prints the directory where the default skeleton
	files are installed ($(prefix)/share/jay).

	* makefile (CFLAGS): Add a -DSKEL_DIRECTORY to support
	print_skel_dir.

	* jay.1: Document the -p parameter.

svn path=/trunk/mcs/; revision=14732
2003-05-20 21:06:47 +00:00
Paolo Molaro 825682bfc9 Automake-fu to easily add more jit ports.
svn path=/trunk/mono/; revision=14731
2003-05-20 19:21:21 +00:00
Paolo Molaro 8e147f4b57 Define a symbol for arch that have the jit ported.
svn path=/trunk/mono/; revision=14730
2003-05-20 19:20:16 +00:00
Miguel de Icaza e00a3a7788 2003-05-20 Miguel de Icaza <[email protected]>
* convert.cs: Move Error_CannotConvertType,
	ImplicitReferenceConversion, ImplicitReferenceConversionExists,
	ImplicitNumericConversion, ImplicitConversionExists,
	ImplicitUserConversionExists, StandardConversionExists,
	FindMostEncompassedType, FindMostSpecificSource,
	FindMostSpecificTarget, ImplicitUserConversion,
	ExplicitUserConversion, GetConversionOperators,
	UserDefinedConversion, ConvertImplicit, ConvertImplicitStandard,
	TryImplicitIntConversion, Error_CannotConvertImplicit,
	ConvertImplicitRequired, ConvertNumericExplicit,
	ExplicitReferenceConversionExists, ConvertReferenceExplicit,
	ConvertExplicit, ConvertExplicitStandard from the ecore.cs into
	its own file.

	Perform the following renames:

	StandardConversionExists -> ImplicitStandardConversionExists
	ConvertImplicit -> ImplicitConversion
        ConvertImplicitStandard -> ImplicitStandardConversion
        TryImplicitIntConversion -> ImplicitIntConversion
        ConvertImplicitRequired -> ImplicitConversionRequired
        ConvertNumericExplicit -> ExplicitNumericConversion
        ConvertReferenceExplicit -> ExplicitReferenceConversion
        ConvertExplicit -> ExplicitConversion
        ConvertExplicitStandard -> ExplicitStandardConversion

svn path=/trunk/mcs/; revision=14729
2003-05-20 18:40:44 +00:00
Miguel de Icaza e555cf53ab Add missing field
svn path=/trunk/mono/; revision=14728
2003-05-20 17:34:15 +00:00
Aleksey Ryabchuk 3d1cab7074 * FileDialog.cs : more implementation added
* win32Enums.cs : added some error codes  for common dialogs
	* win32functions.cs : added prototype for CommDlgExtendedError

svn path=/trunk/mcs/; revision=14727
2003-05-20 16:32:37 +00:00
Zoltan Varga d7f9021110 2003-05-20 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_lookup_dynamic_token): Intern dynamic
	literal strings.

	* appdomain.c (set_domain_search_path): Recalculate search path when
	AppDomainSetup.PrivateBinPath changes.

	* object.c (mono_class_compute_gc_descriptor): It turns out some
	parts of the class libs (like System.Thread) holds pointers to
	GC_MALLOC()-d memory in IntPtrs, which is wrong. The workaround is
	to treat native int a pointer type here.

svn path=/trunk/mono/; revision=14726
2003-05-20 16:21:28 +00:00
Paolo Molaro 5d223fcd22 Tue May 20 17:19:14 CEST 2003 Paolo Molaro <[email protected]>
* mini.c, mini-x86.c: since the magic trampoline for jumps
	can't patch the code directly, we do it as soon as the
	method gets compiled.

svn path=/trunk/mono/; revision=14725
2003-05-20 15:28:32 +00:00
Paolo Molaro 16adfe22c8 Tue May 20 17:18:16 CEST 2003 Paolo Molaro <[email protected]>
* appdomain.h, domain.c: add hashtable for jump target resolution.

svn path=/trunk/mono/; revision=14724
2003-05-20 15:26:35 +00:00
Paolo Molaro 0546faa7b4 Tail recursion test case.
svn path=/trunk/mono/; revision=14723
2003-05-20 14:23:47 +00:00
Paolo Molaro 6d00cb6ea6 Tue May 20 16:02:52 CEST 2003 Paolo Molaro <[email protected]>
* mini-x86.c, mini.h: introduce a new patching method
	to support CEE_JMP and tail calls.
	* mini.c: obey tail.call. Don't precompile methods target
	of CEE_JMP.
	* tramp-x86.c: new trampoline code to handle methods
	reached through a jump.

svn path=/trunk/mono/; revision=14722
2003-05-20 14:20:31 +00:00
Dick Porter 930e432283 2003-05-20 Dick Porter <[email protected]>
* io.c (FindFirstFile): Include . files in the glob.  Fixes bug
	43229.

svn path=/trunk/mono/; revision=14721
2003-05-20 12:14:14 +00:00
Dietmar Maurer 83741724e0 2003-05-20 Dietmar Maurer <[email protected]>
* mini-x86.c (mono_arch_get_allocatable_int_vars): allocate 8/16
	bit values to registers

svn path=/trunk/mono/; revision=14720
2003-05-20 10:44:31 +00:00
Zoltan Varga f498c22f40 2003-05-20 Zoltan Varga <[email protected]>
* AppDomainSetup.cs: Added new field which is used to notify the
	runtime that the search path has changed.

svn path=/trunk/mcs/; revision=14719
2003-05-20 10:33:21 +00:00
Zoltan Varga 553513d370 2003-05-20 Zoltan Varga <[email protected]>
* TypeBuilderTest.cs: More tests.

svn path=/trunk/mcs/; revision=14718
2003-05-20 10:29:41 +00:00
Zoltan Varga 559cc6ec9f 2003-05-20 Zoltan Varga <[email protected]>
* Assembly.cs (GetManifestResourceStream): Moved handling of
	linked resources into managed code using the newly implemented
	GetManifestResourceInfo () method.

svn path=/trunk/mcs/; revision=14717
2003-05-20 10:27:51 +00:00
Nick Drochak aed9b02192 2003/05/20 Nick Drochak <[email protected]>
* FileTest.cs:
	* StreamReaderTest.cs:
	* StreamWriterTest.cs: Workaround for process holding on to directory
	that prevented cleanup and deletion.

svn path=/trunk/mcs/; revision=14715
2003-05-20 05:29:20 +00:00
Atsushi Eno c0645bd71d 2003-05-20 Atsushi Enomoto <[email protected]>
* added DeserializeTests.cs and XmlAttributesTest.cs

svn path=/trunk/mcs/; revision=14714
2003-05-20 03:54:35 +00:00
Jackson Harper 9756ef10f5 * Driver.cs: Exit with 1 return code when no arguments are supplied.
svn path=/trunk/mcs/; revision=14713
2003-05-20 03:50:40 +00:00
Jackson Harper 7346fea630 * Driver.cs: Add command switch to delete output files created if
there is an error.

svn path=/trunk/mcs/; revision=14711
2003-05-19 23:05:58 +00:00
Jackson Harper 8f9f0a479c * ILParser.jay: Same as below but with float64 ()
svn path=/trunk/mcs/; revision=14710
2003-05-19 22:14:18 +00:00
Jackson Harper 74bace4ec0 * ILParser.jay: When the float32 (0xFFFFFF) syntax is used the hex
value represents the exact byte value of a float NOT an integer
	value that is converted to a float.

svn path=/trunk/mcs/; revision=14708
2003-05-19 18:38:37 +00:00
Jackson Harper 6fdad4010f * Driver.cs: Print error exception when compilation fails.
svn path=/trunk/mcs/; revision=14707
2003-05-19 18:34:15 +00:00
Zoltan Varga eb75d3f356 2003-05-19 Zoltan Varga <[email protected]>
* ConstructorBuilder.cs MethodBuilder.cs: Remove unnecessary MonoTODO
	attributes.

	* TypeBuilder.cs: "Implement" various methods not supported under
	MS.NET.

	* AssemblyBuilder.cs: Implement GetDynamicModule. "Implement" various
	methods not supported under MS.NET.

svn path=/trunk/mcs/; revision=14706
2003-05-19 17:24:20 +00:00
Zoltan Varga bef0980eee 2003-05-19 Zoltan Varga <[email protected]>
* AssemblyBuilderTest.cs: More tests.

svn path=/trunk/mcs/; revision=14705
2003-05-19 16:40:24 +00:00
Zoltan Varga 19f21d2775 2003-05-19 Zoltan Varga <[email protected]>
* AssemblyBuilder.cs: Implement GetDynamicModule. "Implement" various
	methods not supported under MS.NET.

svn path=/trunk/mcs/; revision=14704
2003-05-19 16:35:09 +00:00
Aleksey Ryabchuk 44a9556933 more implementation added
svn path=/trunk/mcs/; revision=14703
2003-05-19 16:20:54 +00:00
Dietmar Maurer 965fb782bf disable the intvar code because it breaks mcs compilation
svn path=/trunk/mono/; revision=14702
2003-05-19 15:47:50 +00:00
Ville Palo 6ba538c2ea 2003-05-19 Ville Palo <[email protected]>
* DirectoryTest.cs: Added tests for GetDirectories() and
	GetFiles ()

svn path=/trunk/mcs/; revision=14701
2003-05-19 14:41:21 +00:00
Dick Porter 6ed9b99e65 2003-05-19 Dick Porter <[email protected]>
* jit.c:
	* configure.in: Netbsd build fix by [email protected].

svn path=/trunk/mono/; revision=14700
2003-05-19 13:58:08 +00:00
Dick Porter 23ead4f8f4 2003-05-19 Dick Porter <[email protected]>
* threads.c: Set the new thread's stack size to 2M.  Fix needed
	for BSD, reported by Martin Dvorak <[email protected]>

svn path=/trunk/mono/; revision=14699
2003-05-19 13:48:05 +00:00
Zoltan Varga 0934a02332 Missing file from last checkin.
svn path=/trunk/mcs/; revision=14697
2003-05-19 12:28:03 +00:00
Zoltan Varga 04881a6d10 2003-05-19 Zoltan Varga <[email protected]>
* reflection.h reflection.c icall.c: Added new icalls
	GetManifestResourceInfoInternal, GetModulesInternal and support
	infrastructure.

svn path=/trunk/mono/; revision=14696
2003-05-19 12:23:52 +00:00
Zoltan Varga bbf72c64b8 2003-05-19 Zoltan Varga <[email protected]>
* Module.cs: Implemented IsResource.

	* Assembly.cs: Implemented GetManifestResourceInfo, GetModules,
	GetModule, GetLoadedModules methods.
	* Assembly.cs (GetManifestResourceStream): Added support for
	resources in extern assemblies.

	CORLIB OUT-OF-SYNC WARNING!

svn path=/trunk/mcs/; revision=14695
2003-05-19 12:23:27 +00:00
Zoltan Varga 78cf96d137 2003-05-19 Zoltan Varga <[email protected]>
* FileStreamTest.cs: New test for FileStream.Seek() bug.

svn path=/trunk/mcs/; revision=14694
2003-05-19 12:05:59 +00:00
Zoltan Varga 8e15532f3c 2003-05-11 Zoltan Varga <[email protected]>
* FileStream.cs (FlushBuffer): After a flush, the buffer should be
	advanced by buf_offset bytes, not buf_length bytes.

svn path=/trunk/mcs/; revision=14693
2003-05-19 12:02:10 +00:00
Dietmar Maurer 45d2b4cffa 2003-05-19 Dietmar Maurer <[email protected]>
* mini.c (mono_compile_get_interface_var): share interface
	variables if possible.

svn path=/trunk/mono/; revision=14692
2003-05-19 10:33:01 +00:00
Paolo Molaro de705e73e7 Mon May 19 09:07:45 CEST 2003 Paolo Molaro <[email protected]>
* Monitor.cs: removed test_owner, the check is already done in the
	icall.

svn path=/trunk/mcs/; revision=14690
2003-05-19 07:16:29 +00:00
Martin Baulig 1e5acd9078 2003-05-19 Martin Baulig <[email protected]>
* statement.cs (TypeInfo.StructInfo): Made this type protected.
	(TypeInfo): Added support for structs having structs as fields.

	* ecore.cs (FieldExpr): Implement IVariable.
	(FieldExpr.DoResolve): Call VariableInfo.GetSubStruct() to get the
	VariableInfo for the field.

svn path=/trunk/mcs/; revision=14686
2003-05-19 01:05:57 +00:00
Jackson Harper 79c9348aa2 * Driver.cs: Return an error code if any errors occur during
compiling. Also print a success or error message.

svn path=/trunk/mcs/; revision=14685
2003-05-19 00:59:15 +00:00
Martin Baulig 55ce465556 Added another testcase.
svn path=/trunk/mcs/; revision=14684
2003-05-19 00:59:11 +00:00
Jackson Harper 75aa535622 * ILParser.jay: Use new methods for converting types to
classrefs. Expand grammar for locals.

svn path=/trunk/mcs/; revision=14683
2003-05-19 00:50:48 +00:00
Jackson Harper 21a2e74f99 * ExternMethodRef.cs: Accept and add calling conventions. Add
methods using array methods if owners are arrays, resolve methods
	named <init> as .ctor.
	* ExternTable.cs: Add method to get value classes.
	* ExternTypeRef.cs: Add AsClassRef method, GetMethodRef now takes
	calling conventions.
	* IClassRef.cs: GetMethodRef now takes calling conventions
	* ITypeRef.cs: Add IsArray IsRef and AsClassRef methods
	* MethodRef.cs: Change <init> to .ctor
	* PeapiTypeRef.cs: This class is no longer an ITypeRef because it
	cannot be converted to a IClassRef. Add IsArray and IsRef, use new
	Class::GetArray* methods to convert to arrays.
	* PrimitiveTypeRef.cs: Add method to convert to an IClassRef
	* TypeRef.cs: Add IsArray and IsRef, add method to convert to
	IClassRef. GetMethodRef now takes calling conventions

svn path=/trunk/mcs/; revision=14682
2003-05-19 00:50:16 +00:00
Martin Baulig 20f57c9a07 Ooops, put back test-15, that was an accident.
svn path=/trunk/mcs/; revision=14681
2003-05-19 00:23:13 +00:00
Jackson Harper 2434602c3a * PEAPI.cs: Add methods to allow methods to be added to arrays.
svn path=/trunk/mcs/; revision=14680
2003-05-19 00:19:20 +00:00
Martin Baulig 1772a12cd2 2003-05-19 Martin Baulig <[email protected]>
* test-162.cs: Added testcases for structs containing other
	structs as fields.  Bug #42597.

svn path=/trunk/mcs/; revision=14679
2003-05-19 00:10:39 +00:00
Martin Baulig 35dda65fc1 2003-05-18 Martin Baulig <[email protected]>
* test-154.cs: Added the contents of test-189.cs as a new testcase
	to this test.

	* test-189.cs: Removed, let's keep the flow analysis tests in one
	single test file.

svn path=/trunk/mcs/; revision=14678
2003-05-19 00:10:24 +00:00
Jackson Harper d3dd211147 * ILParser.jay: Convert cast integers to floats.
svn path=/trunk/mcs/; revision=14677
2003-05-18 23:33:22 +00:00
Jackson Harper 6bfa16ab4c * ILTokenizer.cs: If toen.token does not create a keyword return
the first token as an id, not a keyword ie (add.exe should return
	"ID period ID" not "ADD period ID"

svn path=/trunk/mcs/; revision=14676
2003-05-18 23:27:28 +00:00
Martin Baulig ab602ff16e 2003-05-18 Martin Baulig <[email protected]>
* test-154.cs: Added testcase for bug #41657.

svn path=/trunk/mcs/; revision=14675
2003-05-18 21:16:51 +00:00
Martin Baulig 153d55acac 2003-05-18 Martin Baulig <[email protected]>
* test-154.cs: Added the contents of test-189.cs as a new testcase
	to this test.

	* test-189.cs: Removed, let's keep the flow analysis tests in one
	single test file.

svn path=/trunk/mcs/; revision=14674
2003-05-18 21:14:45 +00:00
Martin Baulig 416ab32ade 2003-05-18 Martin Baulig <[email protected]>
* expression.cs (This.DoResolve): Report a CS0027 if we're
	emitting a field initializer.

svn path=/trunk/mcs/; revision=14672
2003-05-18 19:16:34 +00:00
Martin Baulig 724786e3a5 2003-05-18 Martin Baulig <[email protected]>
* expression.cs (This.ResolveBase): New public function.
	(This.DoResolve): Check for CS0188.

	* codegen.cs (EmitContext.This): Just call This.ResolveBase(), not
	This.Resolve().

	* ecore.cs (MethodGroupExpr.DoResolve): Set the
	`instance_expression' to null if we don't have any non-static
	methods.

svn path=/trunk/mcs/; revision=14671
2003-05-18 19:04:26 +00:00
Martin Baulig fd39b4c920 2003-05-18 Martin Baulig <[email protected]>
* error-3.cs: Added testcase for CS0188.

svn path=/trunk/mcs/; revision=14670
2003-05-18 18:49:41 +00:00
Lluis Sanchez 3defd1bb27 * XmlQualifiedName.cs : Fixed bug in equality operator.
svn path=/trunk/mcs/; revision=14669
2003-05-18 18:16:18 +00:00
Ben Maurer 219fafa72b 2003-05-18 Ben Maurer <[email protected]>
* *.cs Cleaned up tests to work around bug that prevented
	System.IO from seeing directories starting with '.'

svn path=/trunk/mcs/; revision=14668
2003-05-18 18:10:01 +00:00
Atsushi Eno 51448d9e0d 2003-05-19 Atsushi Enomoto <[email protected]>
* RelaxngReader.cs :
	  + Now skips immaterial content correctly.
	  + Removed MoveToContent().
	  + Trimming attribute values and names.
	  + Fixed ReadNameClassChoice(), ReadNameClassExcept(),
	    ReadPatternExcept (). They require one or more contents.
	  + QName resolver fix.
	  + ReadListPattern() failed to read actual content.
	* RelaxngValidatingReader.cs :
	  + Fixed incorrect error message.
	  + Fixed incorrect attribute namespace handling.
	* RngGrammar.cs : Some simplification stuff fix.
	  Support for illegal recursion check.
	* RngNameClass.cs : fixed RngNsName ctor() (argument not passed).
	* RngPattern.cs : fixed ParentRef.Compile() (was treated same as Ref).

svn path=/trunk/mcs/; revision=14667
2003-05-18 17:53:15 +00:00
Atsushi Eno 13fd0e3b1d 2003-05-19 Atsushi Enomoto <[email protected]>
* RdpPattern.cs : Some method name capitalization.
	  Fixed RdpInterleave.StartTagOpenDeriv() which is logically incorrect.

svn path=/trunk/mcs/; revision=14666
2003-05-18 17:52:12 +00:00
Martin Baulig 6ea722d4d8 2003-05-18 Martin Baulig <[email protected]>
* error-4.cs: Renamed to cs1502-2.cs.

svn path=/trunk/mcs/; revision=14665
2003-05-18 17:47:02 +00:00
Martin Baulig 0e3afebbef Oooops, of course, we expect a CS0165 here.
svn path=/trunk/mcs/; revision=14664
2003-05-18 17:35:35 +00:00
Martin Baulig 2aae2352ff 2003-05-18 Martin Baulig <[email protected]>
* makefile: Ignore CS0162 and CS0169.

svn path=/trunk/mcs/; revision=14663
2003-05-18 17:33:18 +00:00
Martin Baulig 4594ec5108 Added another testcase.
svn path=/trunk/mcs/; revision=14662
2003-05-18 17:32:24 +00:00
Martin Baulig e00c69f957 2003-05-18 Martin Baulig <[email protected]>
Reworked the way how local variables and parameters are handled by
	the flow analysis code.

	* statement.cs (TypeInfo, VariableMap): New public classes.
	(VariableInfo): New public class.  This is now responsible for
	checking whether a variable has been assigned.  It is used for
	parameters and local variables.
	(Block.EmitMeta): Take the InternalParameters as argument; compute
	the layout of the flow vectors here.
	(Block.LocalMap, Block.ParameterMap): New public properties.
	(FlowBranching): The .ctor doesn't get the InternalParameters
	anymore since Block.EmitMeta() now computes the layout of the flow
	vector.
	(MyStructInfo): This class is now known as `StructInfo' and nested
	in `TypeInfo'; we don't access this directly anymore.

	* ecore.cs (IVariable): Added `VariableInfo VariableInfo'
	property and removed IsAssigned(), IsFieldAssigned(),
	SetAssigned() and SetFieldAssigned(); we now call them on the
	VariableInfo so we don't need to duplicate this code everywhere.

	* expression.cs (ParameterReference): Added `Block block' argument
	to the .ctor.
	(LocalVariableReference, ParameterReference, This): The new
	VariableInfo class is now responsible for all the definite
	assignment stuff.

	* codegen.cs (EmitContext.IsVariableAssigned, SetVariableAssigned,
	IsParameterAssigned, SetParameterAssigned): Removed.

svn path=/trunk/mcs/; revision=14661
2003-05-18 17:30:05 +00:00
Atsushi Eno 45d32bf07c 2003-05-18 Atsushi Enomoto <[email protected]>
* XmlSerializerTests.cs : fixed some AssertEquals() argument orders.
	  and replaced some Assert() with AssertEquals().
	  Applied USE_VERSION_1_1 to TestConstructor().

svn path=/trunk/mcs/; revision=14660
2003-05-18 17:08:01 +00:00
Martin Baulig e51510233e 2003-05-18 Martin Baulig <[email protected]>
* AssemblyBuilder.cs (corlib_void_type): New internal field.
	(SetCorlibTypeBuilders): Added overloaded version which takes 4
	arguments to set the `corlib_void_type'.

	* TypeBuilder.cs: Use `pmodule.assemblyb.corlib_void_type' instead
	of `typeof (void)' to make this work when compiling corlib.

svn path=/trunk/mcs/; revision=14659
2003-05-18 14:33:00 +00:00
Martin Baulig 34603b5c26 2003-05-18 Martin Baulig <[email protected]>
* typemanager.cs (InitCoreTypes): Try calling
	SetCorlibTypeBuilders() with 4 args; if that fails, fall back to
	the 3-args-version.  Corlib now also needs our `void_type'.
	(GetMethod): Added overloaded version which takes an optional
	`bool report_errors' to allow lookups of optional methods.

svn path=/trunk/mcs/; revision=14658
2003-05-18 14:30:40 +00:00
Atsushi Eno 1d6b0bbb13 2003-05-18 Atsushi Enomoto <[email protected]>
* XmlTextWriterTests.cs : added FlushDoesnTCloseTag() and
	  WriteWhitespaceCloseTag() (patch by Jonathan Hogg).
	  added more tests to AttributeWriteAttributeString().
	* XmlAttributeTests.cs : SetInnerTextAndXml() rewrite.

svn path=/trunk/mcs/; revision=14657
2003-05-18 07:36:51 +00:00
Atsushi Eno bcadf3a21e 2003-05-18 Atsushi Enomoto <[email protected]>
* added XmlSecureResolver.cs to list.unix.

svn path=/trunk/mcs/; revision=14656
2003-05-18 07:30:36 +00:00
Atsushi Eno c80e582449 2003-05-18 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
	  any open attributes or elements. WriteWhitespace() checks state and
	  closes start tag.  Fixed WriteStringInternal() to replace CR/LF chars
	  when it is called inside attribute value.
	* XmlException.cs : added .NET 1.1 .ctor.
	* added XmlSecureResolver.cs (only stubbing).
	* XmlAttribute.cs : set_InnerXml() should remove children.
	* XmlAttribute.cs,
	  XmlElement.cs,
	  XmlDocumentFragment.cs,
	  XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
	* XmlNode.cs : RemoveAll() should also remove all attributes.
	* XmlTextRader.cs : .ctor() for attribute value reader should add
	  quotations at initialization, since it requires quote chars.
	* XmlWriter.cs : WriteAttributeString() more correct xmlns check.

svn path=/trunk/mcs/; revision=14655
2003-05-18 07:30:05 +00:00
Pedro Martínez Juliá 6b4fb6fdce 2003-05-18 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Fixed NullReferenceException bug I've
    introduced the last change I've done.

svn path=/trunk/mcs/; revision=14654
2003-05-18 06:55:39 +00:00
Ben Maurer 35d836e034 2003-05-17 Ben Maurer <[email protected]>
* CSharpCodeGenerator.cs: implemented GenerateLinePragma{Start, End}.
	Marked GenerateEvent as MonoTODO.

svn path=/trunk/mcs/; revision=14653
2003-05-17 23:08:29 +00:00
Ben Maurer 8bfe592d25 2003-05-17 Ben Maurer <[email protected]>
* Array.cs Fixed SyncRoot to behave like MS (return this). Removed
	MonoTODO from SyncRoot (because fixed) and IsSynchronized (it was
	behaving correctly).

svn path=/trunk/mcs/; revision=14652
2003-05-17 22:48:10 +00:00
Pedro Martínez Juliá 8a69f4f8cd 2003-05-17 Pedro Martnez Juli <[email protected]>
* FloatingPointFormatter.cs: Fixed little format mismatches.

svn path=/trunk/mcs/; revision=14651
2003-05-17 17:57:10 +00:00
Marco Ridoni cee05dc859 Compiler directives now are not case-sensitive
svn path=/trunk/mcs/; revision=14650
2003-05-17 15:41:41 +00:00
Sebastien Pouliot 3b1287bfe3 2003-05-16 Sebastien Pouliot <[email protected]>
* X509CertificateTest.cs: Added DSA certificate without any key
	parameters (shared group is available in the issuer certificate).

svn path=/trunk/mcs/; revision=14642
2003-05-16 23:22:44 +00:00
Sebastien Pouliot 239cb6f4b8 2003-05-16 Sebastien Pouliot <[email protected]>
* X509Certificate.cs: Added support for "really" NULL key parameters
	(i.e. not ASN.1	encoded NULL).

svn path=/trunk/mcs/; revision=14641
2003-05-16 23:22:08 +00:00
Martin Baulig b2318d5e9f 2003-05-16 Martin Baulig <[email protected]>
* debug-mini.c (mono_init_debugger): New function to initialize
	the debugger.  This is not in the debugger since it needs to
	access some of mini's internals.

svn path=/trunk/mono/; revision=14637
2003-05-16 21:20:19 +00:00
Martin Baulig b10713f352 Reverted this:
2003-05-04  Martin Baulig  <[email protected]>

	* Makefile.am: Install mini.h, regalloc.h and mini-ops.h.

svn path=/trunk/mono/; revision=14636
2003-05-16 21:13:21 +00:00
Peter Williams c8a5cb4235 2003-05-16 Peter Williams <[email protected]>
* makefile (install): Call the install in makefile.gnu

	* makefile.gnu (install): Actually install jay and its skeleton
	files. (and docs, and manpage...)

svn path=/trunk/mcs/; revision=14635
2003-05-16 18:58:59 +00:00
Pedro Martínez Juliá 460c19371b 2003-05-16 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Fixed "-0" result emited.

svn path=/trunk/mcs/; revision=14633
2003-05-16 18:03:50 +00:00
Aleksey Ryabchuk cf1f786935 * CommonDialog.cs
* FileDialog.cs
	* win32Enums.cs
	* win32functions.cs : started impl. of OpenFile dialog

svn path=/trunk/mcs/; revision=14632
2003-05-16 16:17:40 +00:00
Dietmar Maurer d447d6cf9c 2003-05-16 Dietmar Maurer <[email protected]>
* mini.c (mono_method_to_ir): inlining fixes/cleanups

svn path=/trunk/mono/; revision=14631
2003-05-16 14:42:53 +00:00
Aleksey Ryabchuk b9fe8b7043 * DomainUpDown.cs : changes to OnTextBoxKeyDown
* UpDownBase.cs : added impl. to BackColor and BackgroundImage

svn path=/trunk/mcs/; revision=14630
2003-05-16 13:38:29 +00:00
Dick Porter 7e502bc936 2003-05-16 Dick Porter <[email protected]>
* TempFileCollection.cs: Implement

svn path=/trunk/mcs/; revision=14629
2003-05-16 12:15:07 +00:00
Dick Porter 9da1dc86f5 2003-05-16 Dick Porter <[email protected]>
* XmlSerializerTests.cs: Test what happens when nulls are passed
	to the constructor

svn path=/trunk/mcs/; revision=14628
2003-05-16 12:07:26 +00:00
Dick Porter 88fba9d239 2003-05-16 Dick Porter <[email protected]>
* Socket.cs: Use Mono.Posix.UnixEndPoint if its available

svn path=/trunk/mcs/; revision=14627
2003-05-16 12:03:57 +00:00
Dick Porter fbc3d50964 2003-05-16 Dick Porter <[email protected]>
* UnixEndPoint.cs: New property to get and set the filename, like
	the IPEndPoint has for the IP address.  Also implement ToString().

svn path=/trunk/mcs/; revision=14626
2003-05-16 11:59:26 +00:00
Dick Porter 3797edd7df 2003-05-16 Dick Porter <[email protected]>
* MonoIO.cs: Implement GetTempPath

svn path=/trunk/mcs/; revision=14625
2003-05-16 11:56:32 +00:00
Dick Porter e25baab849 2003-05-16 Dick Porter <[email protected]>
* io.h:
	* io.c: Implement GetTempPath()

2003-05-16  Dick Porter  <[email protected]>

	* icall.c:
	* file-io.h:
	* file-io.c: Implement System.IO.MonoIO::GetTempPath

svn path=/trunk/mono/; revision=14624
2003-05-16 11:52:43 +00:00
Dick Porter ebcd0ffed1 2003-05-16 Dick Porter <[email protected]>
* processes.c (CreateProcess): Set some error codes

svn path=/trunk/mono/; revision=14623
2003-05-16 11:49:04 +00:00
Paolo Molaro bdf9314bc8 Fri May 16 13:27:23 CEST 2003 Paolo Molaro <[email protected]>
* mini.c, mini-opts.h, inssel.brg: inline small memcpy
	for value type handling.

svn path=/trunk/mono/; revision=14622
2003-05-16 11:36:57 +00:00
Dietmar Maurer ce0f9cfe02 (mono_method_check_inlining): enable inlining of all kinds of wrappers
svn path=/trunk/mono/; revision=14621
2003-05-16 11:08:38 +00:00
Dietmar Maurer 5c2cf73514 2003-05-16 Dietmar Maurer <[email protected]>
* mini.c (mono_method_to_ir): inline LDFLD/STFLD wrappers

svn path=/trunk/mono/; revision=14620
2003-05-16 08:59:13 +00:00
Jean-Marc Andre f1a9278655 2003-5-15: Jean-Marc Andre <[email protected]>
removing old files

svn path=/trunk/mcs/; revision=14619
2003-05-16 00:22:52 +00:00
Jean-Marc Andre b5d70e673a 2003-5-15: Jean-Marc Andre <[email protected]>
svn path=/trunk/mcs/; revision=14618
2003-05-16 00:09:11 +00:00
Jean-Marc Andre 5a9541583a 2003-5-15: Jean-Marc Andre <[email protected]>
ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
								ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
									ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
										ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
											ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
												ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
													ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
														ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
															ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																	ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																								ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																									ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																										ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																											ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																												ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																													ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																														ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																															ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																	ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																								ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																									ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																										ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																											ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																												ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																													ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																														ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																															ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																	ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																								ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																									ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																										ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																											ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																												ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																													ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																														ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																															ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																	ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																								ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																									ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																										ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																											ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																												ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																													ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																														ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																															ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																	ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																								ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																									ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																										ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																											ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																												ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																													ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																														ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																															ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																	ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																								ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																									ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																										ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																											ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																												ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																													ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																														ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																															ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																	ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																								ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																									ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																										ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																											ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																												ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																													ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																														ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																															ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																	ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																								ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																									ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																										ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																											ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																												ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																													ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																														ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																															ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																	ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																								ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																									ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																										ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																											ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																												ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																													ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																														ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																															ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																	ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																								ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																									ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																										ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																											ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																												ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																													ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																														ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																															ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																	ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																								ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																									ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																										ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																											ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																												ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																													ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																														ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																															ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																																ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																																	ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																																		ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																																			ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																																				ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																																					ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																																						ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																																							ChangeLog updated2003-5-15: Jean-Marc Andre <[email protected]>
																																																																																																																																																																																																								ChangeLog updated

svn path=/trunk/mcs/; revision=14617
2003-05-15 23:02:42 +00:00
Jean-Marc Andre ecd1369e88 2003-5-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter installed

svn path=/trunk/mcs/; revision=14616
2003-05-15 22:44:05 +00:00
Jean-Marc Andre 7a69877c1f 2003-5-15: Jean-Marc ANDRE ([email protected])
test udpated

svn path=/trunk/mcs/; revision=14615
2003-05-15 22:42:00 +00:00
Jean-Marc Andre a37cca9881 2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
								new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
									new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
										new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
											new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
												new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
													new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
														new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
															new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																	new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																								new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																									new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																										new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																											new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																												new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																													new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																														new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																															new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																	new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																								new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																									new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																										new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																											new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																												new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																													new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																														new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																															new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																	new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																								new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																									new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																										new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																											new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																												new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																													new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																														new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																															new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																	new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																								new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																									new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																										new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																											new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																												new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																													new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																														new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																															new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																	new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																								new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																									new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																										new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																											new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																												new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																													new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																														new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																															new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																	new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																								new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																									new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																										new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																											new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																												new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																													new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																														new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																															new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																	new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																								new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																									new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																										new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																											new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																												new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																													new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																														new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																															new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																	new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																								new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																									new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																										new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																											new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																												new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																													new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																														new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																															new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																	new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																								new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																									new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																										new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																											new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																												new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																													new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																														new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																															new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																	new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																								new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																									new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																										new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																											new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																												new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																													new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																														new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																															new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																	new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																								new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																									new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																										new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																											new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																												new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																													new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																														new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																															new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																																new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																																	new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																																		new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																																			new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																																				new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																																					new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																																						new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																																							new version of the SoapFormatter added2003-05-15:	Jean-Marc ANDRE ([email protected])
																																																																																																																																																																																																								new version of the SoapFormatter added

svn path=/trunk/mcs/; revision=14614
2003-05-15 22:39:32 +00:00
Atsushi Eno d758de53b7 2003-05-16 Atsushi Enomoto <[email protected]>
* changed XPathNodeType modifier to internal *protected* override.
	* XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
	* XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
	* XmlAttributeCollection.cs : removed some incorrect TODO attributes.
	* XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
	  when the argument is "xmlns".
	* XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
	* XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
	* XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
	* XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
	  not to set error state for non-started XmlNodeReader.
	* XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
	  BaseURI support. Fixed Initialize() to handle Attribute correctly.
	  SetProperty for attribute auto-completes xmlns NSURI.
	  Attribute and whitespace handling became more correct.
	  Don't parse external DTD if XmlResolver is null.
	* XmlTextWriter.cs : implemented WriteEntityRef().
	  WriteStartAttribute() checks if ns does not equal to that of xmlns.
	* XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).

svn path=/trunk/mcs/; revision=14613
2003-05-15 20:13:22 +00:00
Atsushi Eno 817c8a5db6 2003-05-16 Atsushi Enomoto <[email protected]>
* XmlSerializerTests.cs : fixed some argument orders and fixed
	  timezone dependent part of TestSerializeDateTime().

svn path=/trunk/mcs/; revision=14612
2003-05-15 19:13:49 +00:00
Atsushi Eno 8f3bc364db 2003-05-16 Atsushi Enomoto <[email protected]>
* XPathNavigatorTests.cs : fixed not well-formed xml of
	  DocumentWithXmlDeclaration().

svn path=/trunk/mcs/; revision=14611
2003-05-15 19:11:17 +00:00
Atsushi Eno df14a8aaf0 2003-05-16 Atsushi Enomoto <[email protected]>
* XmlAttributeTests.cs : added NamespaceAttributes() and WriteTo().
	* XmlDocumentTests.cs : fixed invalid xml of DocumentWithDoctypeDecl()
	  and not well-formed xml of OuterXmlWithDefaultXmlns().
	* XmlElementTests.cs : added IsEmpty(). fixed not well-formed xml of
	  WriteToWithDefaultNamespace().
	* XmlNodeReaderTests.cs : fixed incorrect result expectation of
	  ReadInnerXmlWrongInit().
	* XmlNodeTets.cs : applied USE_VERSION_1_1 for InsertBefore()/-After().
	* XmlReaderCommonTests.cs,
	  XmlTextReaderTests.cs : moved EntityReference() and EntityReference-
	  InsideText() to XmlTextReaderTests.cs, since XmlNodeReader is expected
	  to resolve these entity references.
	* XmlTextWriterTests.cs : removed English-dependent error message check.
	  fixed incorrect state-check ignorant blocks of WriteAttributes ().
	* XmlWriterTests.cs : modified WriteNodeFullDocument() and WriteNode-
	  XmlDecl() as MS.NET results in.

svn path=/trunk/mcs/; revision=14610
2003-05-15 19:09:10 +00:00
Paolo Molaro 9a3bead0ce Thu May 15 19:16:54 CEST 2003 Paolo Molaro <[email protected]>
* MethodBuilder.cs: off by one in CreateMethodBody().
	* TypeBuilder.cs: if the return type for a method is null, use void.

svn path=/trunk/mcs/; revision=14609
2003-05-15 17:25:33 +00:00
Lluis Sanchez 36b8366fb8 no message
svn path=/trunk/mono/; revision=14608
2003-05-15 16:15:05 +00:00
Dick Porter 5d70169b84 Build fixes
svn path=/trunk/mono/; revision=14607
2003-05-15 15:55:06 +00:00
Paolo Molaro 2494ec951b Thu May 15 17:17:27 CEST 2003 Paolo Molaro <[email protected]>
* jit-icalls.c, inssel.brg: fixes to array element address
	calculations.

svn path=/trunk/mono/; revision=14606
2003-05-15 15:27:49 +00:00
Gonzalo Paniagua Javier 262415c0c6 Ignore test that doesn't work under windows.
svn path=/trunk/mcs/; revision=14603
2003-05-15 13:55:58 +00:00
Dietmar Maurer 3e14438423 2003-05-15 Dietmar Maurer <[email protected]>
* mini-x86.c (is_regsize_var): allocate pointer to registers

svn path=/trunk/mono/; revision=14602
2003-05-15 11:29:34 +00:00
Paolo Molaro cb28d68c2a A wicked dwarf committed the previous patch to this file...
svn path=/trunk/mono/; revision=14601
2003-05-15 11:19:39 +00:00
Paolo Molaro 8dccd80b71 typo.
svn path=/trunk/mono/; revision=14600
2003-05-15 11:17:39 +00:00
Paolo Molaro a402dbe87f Thu May 15 13:04:02 CEST 2003 Paolo Molaro <[email protected]>
* driver.c: fixed typo, added intrins to the set of optimizations
	tested with regressions.

svn path=/trunk/mono/; revision=14599
2003-05-15 11:14:45 +00:00
Paolo Molaro 78eef5dc71 Thu May 15 11:57:42 CEST 2003 Paolo Molaro <[email protected]>
* mini-ops.h, mini.c, inssel.brg: optimize access to 2D arrays.
	* jit-icalls.c, exceptions.cs: fixed index out of range checks, added
	test case.

svn path=/trunk/mono/; revision=14598
2003-05-15 11:04:39 +00:00
Ville Palo 4407e82632 2003-05-15 Ville Palo <[email protected]>
* FileStreamTest.cs: more cleaning

svn path=/trunk/mcs/; revision=14597
2003-05-15 10:55:52 +00:00
Ville Palo 9dc3d018ae 2003-05-15 Ville Palo <[email protected]>
* StreamWriterTest.cs: now use temp-dir

svn path=/trunk/mcs/; revision=14596
2003-05-15 10:50:27 +00:00
Paolo Molaro 62ad9bd33d I was supposed to commit this change with:
Wed May 14 12:40:31 CEST 2003 Paolo Molaro <[email protected]>

	* inssel-x86.brg: fixed thinko in int to double conversions.

svn path=/trunk/mono/; revision=14595
2003-05-15 10:04:25 +00:00
Ville Palo d2cd5b7653 2003-05-15 Ville Palo <[email protected]>
* StreamReaderTest.cs:
	* StreamWriterTest.cs: now use temp-dir

svn path=/trunk/mcs/; revision=14593
2003-05-15 07:52:57 +00:00
Ville Palo 134e735cdc 2003-05-15 Ville Palo <[email protected]>
* BinaryReaderTest.cs:
	* BinaryWriterTest.cs:
	* BufferedStreamTest.cs:
	* DirectoryInfoTest.cs:
	* DirectoryTest.cs:
	* FileInfoTest.cs:
	* FileSystemInfoTest.cs: clean up, now use temp-dir

svn path=/trunk/mcs/; revision=14592
2003-05-15 06:22:55 +00:00
Nick Drochak 97ac927a90 2003-05-15 Nick Drochak <[email protected]>
* System.XML.build: exclude standalone tests from dll build.

svn path=/trunk/mcs/; revision=14590
2003-05-15 03:23:25 +00:00
Nick Drochak cf93f43647 Fix build. LDAP uses the Todo attribute, so we need a copy here.
svn path=/trunk/mcs/; revision=14589
2003-05-15 03:14:31 +00:00
Paolo Molaro 204f7ba769 Make MonoTODO attributes internal.
svn path=/trunk/mcs/; revision=14587
2003-05-14 20:02:29 +00:00
Gonzalo Paniagua Javier 923769916a 2003-05-14 Gonzalo Paniagua Javier <[email protected]>
* DirectoryInfo.cs: fixed bug #42991.
	* Path.cs:
	(CanonicalizePath): store the value of the trimmed input string. Make it
	work with paths such as "/home/xxx/.".

svn path=/trunk/mcs/; revision=14585
2003-05-14 18:30:11 +00:00
Gonzalo Paniagua Javier 727b7c4751 2003-05-14 Gonzalo Paniagua Javier <[email protected]>
* PathTest.cs: added test for GetFullPath (".") and ".."

svn path=/trunk/mcs/; revision=14584
2003-05-14 18:27:03 +00:00
Paolo Molaro e276e26955 Object construction.
svn path=/trunk/mono/; revision=14582
2003-05-14 16:34:10 +00:00
Lluis Sanchez 865299428e * object.c: mono_store_remote_field: little fix to previous patch.
svn path=/trunk/mono/; revision=14581
2003-05-14 16:30:13 +00:00
Paolo Molaro 831820d652 Wed May 14 18:10:42 CEST 2003 Paolo Molaro <[email protected]>
* class.c: add constructors to array classes.
	* icall.c: special case array construction for InternalInvoke (),

svn path=/trunk/mono/; revision=14580
2003-05-14 16:19:54 +00:00
Dietmar Maurer 57419beea7 2003-05-14 Dietmar Maurer <[email protected]>
* inssel.brg: remove some common pop instructions without side effects

svn path=/trunk/mono/; revision=14579
2003-05-14 14:39:53 +00:00
Zoltan Varga 791fc8888d 2003-05-12 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Comment out test which fails because of a mono
	extension to DefineParameter.

svn path=/trunk/mcs/; revision=14578
2003-05-14 14:17:44 +00:00
Zoltan Varga 9dd69a145a 2003-05-14 Zoltan Varga <[email protected]>
* class.h class.c reflection.c object.c: Added support for field
	defaults in dynamically generated classes.

svn path=/trunk/mono/; revision=14577
2003-05-14 14:16:08 +00:00
Dietmar Maurer e118704b2e added another inlining test
svn path=/trunk/mono/; revision=14576
2003-05-14 13:14:24 +00:00
Dick Porter dc76fa7dd4 Warning fixes
svn path=/trunk/mono/; revision=14575
2003-05-14 12:58:17 +00:00
Dick Porter 9a6cb33158 Serialization tests
svn path=/trunk/mcs/; revision=14574
2003-05-14 12:56:51 +00:00
Paolo Molaro c55633fabb Wed May 14 13:35:27 CEST 2003 Paolo Molaro <[email protected]>
* reflection.c: properly encode charset for ddlimport.

svn path=/trunk/mono/; revision=14572
2003-05-14 11:44:00 +00:00
Paolo Molaro 992a48854e Wed May 14 12:40:31 CEST 2003 Paolo Molaro <[email protected]>
* inssel-x86.brg: fixed thinko in int to double conversions.

svn path=/trunk/mono/; revision=14571
2003-05-14 10:49:13 +00:00
Paolo Molaro 7910d87644 Wed May 14 12:01:58 CEST 2003 Paolo Molaro <[email protected]>
* mini.c, jit-icalls.c: added runtime thread-static variable support.

svn path=/trunk/mono/; revision=14570
2003-05-14 10:10:35 +00:00
Paolo Molaro 1d4ad54c56 Added thread-static variable test.
svn path=/trunk/mono/; revision=14569
2003-05-14 10:08:44 +00:00
Dick Porter 95b0d6ae35 2003-05-12 Dick Porter <[email protected]>
* misc.c (_wapi_calc_timeout): Cope with overflowing tv_nsec.
	Patch from Martin Dvorak <[email protected]>.

svn path=/trunk/mono/; revision=14568
2003-05-14 09:25:15 +00:00
Paolo Molaro 51f61a63ea Wed May 14 11:14:54 CEST 2003 Paolo Molaro <[email protected]>
* threads.c: allow compiling without GC.

svn path=/trunk/mono/; revision=14567
2003-05-14 09:23:26 +00:00
Gonzalo Paniagua Javier bdb911a7f2 2003-05-14 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/BaseParser.cs: fixed MapPath for non-rooted files.
	* System.Web.UI/PageParser.cs: don't pass a non-virtual file around.
	* System.Web.UI/TemplateControlParser.cs: InputFile uses MapPath now.
	Take care of the exception teh may be throw by MapPath on an invalid
	path.

	* System.Web.UI/TemplateParser.cs: removed unused method.
	* System.Web.UI/UserControlParser.cs: modified inputfile. The result is
	the same, but this one is better.
	* System.Web.Util/UrlUtils.cs: fixed Combine and reworked Reduce.

svn path=/trunk/mcs/; revision=14566
2003-05-14 09:07:11 +00:00
Lluis Sanchez b82c7aca2d * AppDomain.cs: Added null argument check in Load().
* Activator.cs: fixed bug #39926.

svn path=/trunk/mcs/; revision=14563
2003-05-13 22:27:51 +00:00
Lluis Sanchez 04b647b2f2 * BinaryServerFormatterSink.cs: The uri of the target object is now assigned
to the message through the HeaderHandler delegate.

svn path=/trunk/mcs/; revision=14561
2003-05-13 20:56:25 +00:00
Lluis Sanchez 2c730aa422 * MethodCall.cs: ResolveMethod now uses the type of the target object (identified
by the uri) instead of the type specified by TypeName (only if both types have
	  the same name).

svn path=/trunk/mcs/; revision=14560
2003-05-13 20:55:43 +00:00
Lluis Sanchez 3989b96cc8 * ObjectReader.cs: Changed signature of ReadObjectGraph, so now it returns the
deserialized object and the headers.
    * MessageFormatter.cs: The result of the call to the HeaderHandler delegate is
      now interpreted as the uri of the target object. This seems to be MS.NET
      behavior.
	* BinaryFormatter.cs: Deserialize now calls the HeaderHandler delegate,
	  if provided.

svn path=/trunk/mcs/; revision=14559
2003-05-13 20:55:05 +00:00
Martin Willemoes Hansen ba234c2a4a * Tests inherits from Assertion and Assertion. prefixes removed
svn path=/trunk/mcs/; revision=14558
2003-05-13 20:41:56 +00:00
Martin Willemoes Hansen 477a49931c * Tests inherits from Assertion and Assertion. prefix is removed.
svn path=/trunk/mcs/; revision=14557
2003-05-13 20:29:09 +00:00
Martin Willemoes Hansen e852991b2c * Tests inherits from Assertion and Assertion. prefix is removed
svn path=/trunk/mcs/; revision=14556
2003-05-13 20:23:05 +00:00
Martin Willemoes Hansen 544bfe0af2 Assertion ran away
svn path=/trunk/mcs/; revision=14555
2003-05-13 20:15:05 +00:00
Martin Willemoes Hansen 21e89c6946 * All tests inherits from Assertion, and
Assertion. prefixes removed

svn path=/trunk/mcs/; revision=14554
2003-05-13 20:12:53 +00:00
Paolo Molaro f77081047d Tue May 13 22:02:06 CEST 2003 Paolo Molaro <[email protected]>
* inssel-long32.brg: two more missing instructions.

svn path=/trunk/mono/; revision=14553
2003-05-13 20:11:01 +00:00
Martin Willemoes Hansen 88656104b2 * Mono.Security_test.args: Added
* makefile.gnu: Added
        * Mono.Security/StrongNameTest.cs,
          Mono.Security.Authenticode/PrivateKeyTest.cs,
          Mono.Security.Authenticode/SoftwarePublisherCertificateTest.cs,
          Mono.Security.Cryptography/ARC4ManagedTest.cs,
          Mono.Security.Cryptography/MD2ManagedTest.cs,
          Mono.Security.Cryptography/MD2Test.cs: Test classes inherits from
          Assertion, Assertion. prefix removed.

svn path=/trunk/mcs/; revision=14552
2003-05-13 19:51:51 +00:00
Martin Willemoes Hansen 2a8ea433b3 * Test/Mono.Directory.LDAP/BindSimpleTest.cs: Removed unused setup and teardown methods
Test/Mono.Directory.LDAP/QueryRootDSETest.cs: Removed unused setup and teardown methods

svn path=/trunk/mcs/; revision=14551
2003-05-13 19:38:38 +00:00
Martin Willemoes Hansen b92acded0d * CollectionTest.cs ConversionTest.cs DateAndTimeTest.cs
Inherited from Assertion and removed
          Assertion. prefix from assertions

svn path=/trunk/mcs/; revision=14550
2003-05-13 19:26:25 +00:00
Ville Palo d0f17062dd 2003-05-13 Ville Palo <[email protected]>
* FileStreamTest.cs:
	* FileTest.cs: Clean up. Now use temp directory. also some nunit2
	changes

svn path=/trunk/mcs/; revision=14549
2003-05-13 19:04:25 +00:00
Gonzalo Paniagua Javier 352bb3329e GONspell
svn path=/trunk/mono/; revision=14548
2003-05-13 18:59:39 +00:00
Paolo Molaro 52c463d784 Added the mini porting guide.
svn path=/trunk/mono/; revision=14547
2003-05-13 17:44:29 +00:00
Gonzalo Paniagua Javier f0ea73cd36 2003-05-13 Gonzalo Paniagua Javier <[email protected]>
* AssemblyTest.cs: New file.

svn path=/trunk/mcs/; revision=14546
2003-05-13 17:20:27 +00:00
Marco Ridoni 6bab06a399 Fixed overloaded constructor invocation
svn path=/trunk/mcs/; revision=14545
2003-05-13 16:49:26 +00:00
Dietmar Maurer 81a40d7a12 2003-05-13 Dietmar Maurer <[email protected]>
* mini.c (mono_emit_call_args): set the cil_code for all arguments
	if not already set.

svn path=/trunk/mono/; revision=14544
2003-05-13 15:54:39 +00:00
Gonzalo Paniagua Javier ecf1d9db4e 2003-05-13 Gonzalo Paniagua Javier <[email protected]>
* Assembly.cs: fixed bug #42833.

svn path=/trunk/mcs/; revision=14543
2003-05-13 15:47:03 +00:00
Gonzalo Paniagua Javier e3d1364738 2003-05-13 Gonzalo Paniagua Javier <[email protected]>
* Enum.cs: fixed bugs #41522 and #42879.

svn path=/trunk/mcs/; revision=14542
2003-05-13 15:37:39 +00:00
Gonzalo Paniagua Javier 01decbedfc 2003-05-13 Gonzalo Paniagua Javier <[email protected]>
* EnumTest.cs: added tests from bug #41522.

svn path=/trunk/mcs/; revision=14541
2003-05-13 15:33:48 +00:00
Nick Drochak 12def19be4 2003-05-14 Nick Drochak <[email protected]>
* corlib_linux_test.args:
	* corlib_test.args: Add UTF?EncodingTest(s) to build

svn path=/trunk/mcs/; revision=14540
2003-05-13 15:31:00 +00:00
Nick Drochak 87fc1a27ee flush
svn path=/trunk/mcs/; revision=14539
2003-05-13 15:28:49 +00:00
Nick Drochak dc91409cfd 2003-05-14 Nick Drochak <[email protected]>
* UTF7EncodingTest.cs:
	* UTF8EncodingTest.cs: added from Patrick Kalkman <[email protected]>

svn path=/trunk/mcs/; revision=14538
2003-05-13 15:28:26 +00:00
Paolo Molaro 30d667ea7a Tue May 13 16:43:18 CEST 2003 Paolo Molaro <[email protected]>
* interp.c: handle thread static fields.

svn path=/trunk/mono/; revision=14537
2003-05-13 14:51:07 +00:00
Paolo Molaro dcdd5a25d9 Tue May 13 16:41:49 CEST 2003 Paolo Molaro <[email protected]>
* appdomain.h, object.c, object.h, threads.c, threads.h: added
	handling of thread static data.

svn path=/trunk/mono/; revision=14536
2003-05-13 14:50:08 +00:00
Paolo Molaro ce91f5c41e Tue May 13 16:36:08 CEST 2003 Paolo Molaro <[email protected]>
* reflection.h, reflection.c: added mono_custom_attrs_free ().

svn path=/trunk/mono/; revision=14535
2003-05-13 14:48:56 +00:00
Martin Willemoes Hansen 4876f02294 * RdpPatternTests.cs, RelaxngReaderTests.cs:
Removed Assertion. prefixes and made them inherit from Assertion.

svn path=/trunk/mcs/; revision=14534
2003-05-13 13:50:35 +00:00
Paolo Molaro 52aa31c42b Tue May 13 15:34:29 CEST 2003 Paolo Molaro <[email protected]>
* Thread.cs: added missing field used by the runtime and
	a new field to support thread-static data.

svn path=/trunk/mcs/; revision=14533
2003-05-13 13:48:08 +00:00
Martin Willemoes Hansen 61511fa0b1 * makefile.gnu: Fixed name of assembly was changed
from Mono.Xml.Relaxng to
                        Commons.Xml.Relaxng.

svn path=/trunk/mcs/; revision=14532
2003-05-13 13:45:18 +00:00
Paolo Molaro 53ebbd3e31 Don't propagate string format and layout flags from element type to its array.
svn path=/trunk/mono/; revision=14531
2003-05-13 11:00:37 +00:00
Dietmar Maurer 2f723104ad 2003-05-13 Dietmar Maurer <[email protected]>
(mono_array_class_get): always set the SEALED attribute for array types

svn path=/trunk/mono/; revision=14530
2003-05-13 10:06:33 +00:00
Dietmar Maurer ad3ddd0b30 fix for the previous fix
svn path=/trunk/mono/; revision=14529
2003-05-13 09:52:42 +00:00
Dietmar Maurer 3f1e1e4fc6 2003-05-13 Dietmar Maurer <[email protected]>
* class.c (mono_array_class_get): consider the serializable flags

svn path=/trunk/mono/; revision=14528
2003-05-13 09:47:03 +00:00
Gonzalo Paniagua Javier 0eed706b62 removed writelines
svn path=/trunk/mcs/; revision=14527
2003-05-13 04:12:22 +00:00
Gonzalo Paniagua Javier be56d93873 2003-05-13 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs:
	* System.Web/HttpApplicationFactory.cs:
	* System.Web.SessionState/SessionStateModule.cs: fire
	application start and session start/end events.

svn path=/trunk/mcs/; revision=14526
2003-05-13 04:08:50 +00:00
Gonzalo Paniagua Javier 9aa2e854ab renamed SessionStateModule to Session
svn path=/trunk/mono/; revision=14525
2003-05-13 04:05:45 +00:00
Sebastien Pouliot 64ebc69352 2003-05-12 Sebastien Pouliot <[email protected]>
* PKCS1MaskGenerationMethodTest.cs: Uncommented PKCS#1 v.2.1 vector
	unit test (will work on Mono but fails with MS implementation).
	* RSAOAEPKeyExchangeDeformatterTest.cs: Updated tests vectors for
	both Mono and MS (under Windows XP) generated OAEP results.
	* RSAOAEPKeyExchangeFormatterTest.cs: Update exception handling.

svn path=/trunk/mcs/; revision=14524
2003-05-13 01:50:58 +00:00
Sebastien Pouliot 316dab3714 2003-05-12 Sebastien Pouliot <[email protected]>
* PKCS1MaskGenerationMethod.cs: Added comment to justify why
	the class is no more compatible with MS implementation (the bug
	was preventing OAEP to work properly).

svn path=/trunk/mcs/; revision=14523
2003-05-13 01:46:52 +00:00
Sebastien Pouliot 73bfb00ae9 2003-05-12 Sebastien Pouliot <[email protected]>
* PKCS1.cs: Corrected I2OSP to match PKCS#1 v.2.1 test vector
	and fix the OAEP incompatibility issue.

svn path=/trunk/mcs/; revision=14522
2003-05-13 01:44:47 +00:00
Aleksey Ryabchuk 84b329c11c * Control.cs : ResizeRedraw, removed some unused code
* DomainUpDown.cs :
	* UpDownBase.cs : some improvements

svn path=/trunk/mcs/; revision=14521
2003-05-12 17:42:03 +00:00
Dietmar Maurer 1201444dcf 2003-05-12 Dietmar Maurer <[email protected]>
* loader.c (mono_lookup_pinvoke_call): consider Ansi/Unicode
	attributes (fix for bug 42021).

svn path=/trunk/mono/; revision=14520
2003-05-12 16:01:05 +00:00
Nick Drochak 654c1f8009 2003-05-13 Nick Drochak <[email protected]>
* corlib_linux_test.args: Remove AllTests.cs's and add DictionaryEntry
	* corlib_test.args: Add DictionaryEntry
	* makefile.gnu: compile with debug
	* DictionaryEntry.cs: Added test

svn path=/trunk/mcs/; revision=14519
2003-05-12 15:31:47 +00:00
Dick Porter 8760a62912 2003-05-12 Dick Porter <[email protected]>
* gc.c: Don't run finalizers when the finalizer thread is
	finishing up, because the default domain has already been
	destroyed.

svn path=/trunk/mono/; revision=14518
2003-05-12 15:12:24 +00:00
Rafael Teixeira 550427cc8a Fix: preprocessing directives ARE case insensitive, now.
svn path=/trunk/mcs/; revision=14516
2003-05-12 14:15:27 +00:00
Martin Baulig 591b50dae5 2003-05-12 Martin Baulig <[email protected]>
* statement.cs (VariableInfo): Renamed to LocalInfo since it's
	only used for locals and not for parameters.

svn path=/trunk/mcs/; revision=14515
2003-05-12 13:03:17 +00:00
Zoltan Varga 32047fdf1e 2003-05-12 Zoltan Varga <[email protected]>
* StringTest.cs: New tests for IndexOf and LastIndexOf + conversion
	to Nunit 2.

svn path=/trunk/mcs/; revision=14514
2003-05-12 10:51:46 +00:00
Zoltan Varga 940ce5653f 2003-05-12 Zoltan Varga <[email protected]>
* String.cs: Tweak IndexOf and LastIndexOf to match specification and
	undocumented MS behaviour.

svn path=/trunk/mcs/; revision=14513
2003-05-12 10:47:16 +00:00
Zoltan Varga 6abcc4441e 2003-05-12 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Handle negative zero
	correctly.

	* basic-float.cs: Added tests for negative zero.

svn path=/trunk/mono/; revision=14512
2003-05-12 10:07:14 +00:00
Aleksey Ryabchuk 53655138f1 changes in the code for TAB key handling
svn path=/trunk/mcs/; revision=14511
2003-05-12 10:04:30 +00:00
Miguel de Icaza 80003a0489 Fixes for compiling mPhoto:
2003-05-12  Miguel de Icaza  <[email protected]>

	* support.cs (InternalParameters.ParameterType): Return the
	ExternalType of the parameter.

	* parameter.cs (Parameter.ExternalType): drop the two arguments,
	they were unused.

svn path=/trunk/mcs/; revision=14509
2003-05-12 04:23:41 +00:00
Ben Maurer 542859b1cc 2003-05-11 Ben Maurer <[email protected]>
* *Calendar.cs: Implemented the TwoDigitYearMax property.

svn path=/trunk/mcs/; revision=14508
2003-05-12 03:42:56 +00:00
Gonzalo Paniagua Javier 200ee1f1e8 don't exclude these 2 files any more
svn path=/trunk/mcs/; revision=14507
2003-05-12 02:25:53 +00:00
Miguel de Icaza d54411de4f 2003-05-11 Miguel de Icaza <[email protected]>
* class.cs (MethodData.Define): Do not set the `newslot' on
	interface members, if they are also flagged as "override".

	* expression.cs (UnaryMutator.EmitCode): Simple workaround to emit
	better code for ++i and i++.  This only works for static fields
	and local variables.

svn path=/trunk/mcs/; revision=14506
2003-05-12 00:09:43 +00:00
Miguel de Icaza 54104e1aa1 2003-05-11 Miguel de Icaza <[email protected]>
* string-icalls.c (ves_icall_System_String_ctor_chara_int_int): if
	value is null, we should throw an exception.   This is slightly
	different than the other conventions used for the constructor.

svn path=/trunk/mono/; revision=14505
2003-05-11 23:52:40 +00:00
Gonzalo Paniagua Javier 4cecdbb0fb 2003-05-12 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: fixed windows build.

svn path=/trunk/mono/; revision=14504
2003-05-11 23:40:52 +00:00
Jackson Harper e9ee0b6cd3 * MethodDef.cs: Add named param table and methods to get named param
positions. Add method to get named local variables slot
	number. Make sure param_lists aren't null when defining them. Add
	specialname and rtspecialname attributes if the method being
	defined is named '.ctor' or '.cctor'. Add new method for creating
	signatures using a list of typerefs.
	* GlobalMethodRef.cs: Use new CreateSignature method that takes an
	array of typerefs.
	* MethodRef.cs: Use new CreateSignature method
	* InstrTable.cs: Use INSTR_LOCAL and INSTR_PARAM tokens for
	instructions that take local and param operands.

svn path=/trunk/mcs/; revision=14503
2003-05-11 23:38:53 +00:00
Jackson Harper 7127df5812 * ILParser.jay: Add tokens for instructions that take param and
local args. Do not create empty lists for sig_args and
	type_lists. Add param and local instructions.

svn path=/trunk/mcs/; revision=14502
2003-05-11 23:37:23 +00:00
Jackson Harper 873a4d0b4a * TypeDef.cs: Add named param table and methods to get named param
positions. Add method to get named local variables slot
	number. Make sure param_lists aren't null when defining them. Add
	specialname and rtspecialname attributes if the method being
	defined is named '.ctor' or '.cctor'. Add new method for creating
	signatures using a list of typerefs.
	* GlobalMethodRef.cs: Use new CreateSignature method that takes an
	array of typerefs.
	* MethodRef.cs: Use new CreateSignature method
	* InstrTable.cs: Use INSTR_LOCAL and INSTR_PARAM tokens for
	instructions that take local and param operands.

svn path=/trunk/mcs/; revision=14501
2003-05-11 23:36:35 +00:00
Miguel de Icaza 86ae020cb4 Fix test
svn path=/trunk/mcs/; revision=14500
2003-05-11 22:45:42 +00:00
Miguel de Icaza 89793e13c8 2003-05-11 Miguel de Icaza <[email protected]>
* typemanager.cs (LookupDeclSpace): Add new method, sometimes we
	want to pull the DeclSpace out of the builder_to_declspace instead
	of the TypeBuilder (like in TypeContainer.FindMembers).

	* class.cs (TypeContainer.FindMembers): Use LookupDeclSpace
	instead of LookupTypeContainer.  Fixes the crash on .NET for
	looking up interface members.

svn path=/trunk/mcs/; revision=14499
2003-05-11 21:38:54 +00:00
Miguel de Icaza df07cbcc73 2003-05-11 Miguel de Icaza <[email protected]>
* const.cs: Create our own emit context during the Definition
	stage, so that constants are evaluated in the proper context, when
	a recursive definition happens.

svn path=/trunk/mcs/; revision=14498
2003-05-11 21:10:16 +00:00
Miguel de Icaza fc0570d6c7 Flooosh
svn path=/trunk/mono/; revision=14497
2003-05-11 20:21:36 +00:00
Martin Baulig f30ecb39d1 2003-05-11 Martin Baulig <[email protected]>
* test-193.cs: New test for bug #39828.

svn path=/trunk/mcs/; revision=14496
2003-05-11 20:08:53 +00:00
Martin Baulig 048c6c0601 2003-05-11 Martin Baulig <[email protected]>
* statement.cs (Block.CreateSwitchBlock): New method.  Creates a
	new block for a switch section.
	(Block.AddLabel, Block.LookupLabel): If we're a switch section, do
	the adding/lookup in the switch block.  Fixes #39828.

svn path=/trunk/mcs/; revision=14495
2003-05-11 20:07:59 +00:00
Gonzalo Paniagua Javier c1cd932f7a Really revert Jaime's patch
svn path=/trunk/mcs/; revision=14493
2003-05-11 17:36:53 +00:00
Jaime Anguiano Olarra 5881f36bab Fixed.
svn path=/trunk/mcs/; revision=14492
2003-05-11 16:57:06 +00:00
Gonzalo Paniagua Javier e1dee28d8a 2003-05-11 Gonzalo Paniagua Javier <[email protected]>
* XslTransform.cs: fixed bug #42739.

svn path=/trunk/mcs/; revision=14491
2003-05-11 16:36:02 +00:00
Miguel de Icaza d0c3b87e3a Various changes, they send the the SOAP request, now XmlSerialization is required
+2003-04-30  Miguel de Icaza  <[email protected]>
+
+	* SoapHttpClientProtocol.cs: Flag the methods in the chain that
+	gets the caller method as non-inlineable.

svn path=/trunk/mcs/; revision=14490
2003-05-11 16:15:05 +00:00
Jackson Harper ff7d0ad6ad * ILParser.jay: Set size and packing information for types
svn path=/trunk/mcs/; revision=14489
2003-05-11 16:09:38 +00:00
Jackson Harper 017fbd9bfd * TypeDef.cs: Add size and packing information
svn path=/trunk/mcs/; revision=14488
2003-05-11 16:08:10 +00:00
Jackson Harper 9c86be20de * PEAPI.cs: The class size in class layout metadata table is a
uint not a short.

svn path=/trunk/mcs/; revision=14487
2003-05-11 15:56:06 +00:00
Nick Drochak 1394470891 Oops
svn path=/trunk/mono/; revision=14486
2003-05-11 13:58:20 +00:00
Nick Drochak c349751d28 Modernize a bit. Remove all nunit v1 references.
svn path=/trunk/mono/; revision=14485
2003-05-11 13:53:30 +00:00
Paolo Molaro 4bf93d5c5c Sun May 11 14:56:27 CEST 2003 Paolo Molaro <[email protected]>
* inssel-long32.brg, basic-long.cs, exceptions.cs: handle
	a couple of missing operations for long casts, with test cases.

svn path=/trunk/mono/; revision=14484
2003-05-11 13:06:12 +00:00
Jaime Anguiano Olarra 0b0a16e733 One check we were missing in one of the CreateInstance() methods
svn path=/trunk/mcs/; revision=14483
2003-05-11 12:54:24 +00:00
Miguel de Icaza 94620f56f6 2003-05-11 Miguel de Icaza <[email protected]>
* Binder.cs (ChangeType): Very simplistic change.  Am not sure if
	it is correct, but it makes RemotingCorba move along a bit more
	(Remoting.Corba invokes Binder.ConvertArgs, which calls
	Binder.ChangeType with an Attribute [] to Object []).

svn path=/trunk/mcs/; revision=14482
2003-05-11 05:51:07 +00:00
Gonzalo Paniagua Javier a1c7a02f7d 2003-05-11 Gonzalo Paniagua Javier <[email protected]>
* XslTransform.cs: fixed bug #42747.

svn path=/trunk/mcs/; revision=14479
2003-05-11 05:25:41 +00:00
Jackson Harper 3388de5307 * ILParser.jay: Add field instructions
svn path=/trunk/mcs/; revision=14478
2003-05-11 04:01:18 +00:00
Jackson Harper 1c36df336a Add field types to build.
svn path=/trunk/mcs/; revision=14477
2003-05-11 04:00:38 +00:00
Jackson Harper 046907b25f * IFieldRef.cs: New file - interface field references must implement
* ExternFieldRef.cs: New file - Reference to a field in another
	assembly
	* FieldRef.cs: New file - Reference to a field in this assembly
	* GlobalFieldRef.cs: New file - Reference to a global field
	* FieldInstr.cs: New file - Instruction that takes a field
	instruction
	* CodeGen.cs: Add method to resolve global methods
	* ExternTypeRef.cs: Add method to get method references
	* FieldDef.cs: Allow methods to be resolved before being defined
	* IClassRef.cs: Add method to get field references.
	* TypeDef.cs: Add method to resolve member fields.
	* TypeRef.cs: Add method to get field references

svn path=/trunk/mcs/; revision=14476
2003-05-11 04:00:02 +00:00
Gonzalo Paniagua Javier 7707a5ccea 2003-05-11 Gonzalo Paniagua Javier <[email protected]>
* exceptions-x86.c: fixed small leaks in mono_arch_handle_exception.

svn path=/trunk/mono/; revision=14475
2003-05-11 02:54:06 +00:00
Gonzalo Paniagua Javier 5c81aecb4d Added Lupus' bug check list to be used when reporting bugs
svn path=/trunk/mono/; revision=14474
2003-05-11 02:35:23 +00:00
Gonzalo Paniagua Javier 9c16eea9ca 2003-05-11 Gonzalo Paniagua Javier <[email protected]>
* FormatterServices.cs: patch from Jean Marc that fixes bug #42742.

svn path=/trunk/mcs/; revision=14473
2003-05-11 01:58:21 +00:00
Miguel de Icaza 210c381642 2003-05-10 Miguel de Icaza <[email protected]>
* Encoding.cs (GetEncoding): Add all the aliases documented in the
	framework.  We were missing a few.

	Reorganize the table.  Also, convert the input name into the
	lower-case - to _ before we compare against our table.

svn path=/trunk/mcs/; revision=14472
2003-05-11 01:43:08 +00:00
Gonzalo Paniagua Javier 79e63b244b 2003-05-11 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: patch by Jerome Laban that fixes bug #42393.

svn path=/trunk/mono/; revision=14471
2003-05-11 01:34:59 +00:00
Gonzalo Paniagua Javier 30f84fcee3 2003-05-11 Gonzalo Paniagua Javier <[email protected]>
* MulticastOption.cs: patch by Jerome Laban included in bug #42393.

svn path=/trunk/mcs/; revision=14469
2003-05-11 01:32:44 +00:00
Jackson Harper 217f715190 * CodeGen.cs: Store global methods and fields in hashtables to
make lookup easier. Add method to resolve global methods.

svn path=/trunk/mcs/; revision=14468
2003-05-10 21:07:42 +00:00
Jackson Harper ba2604940e * ILParser.jay: Add global method references
svn path=/trunk/mcs/; revision=14467
2003-05-10 21:06:12 +00:00
Jackson Harper 1687268a86 Add global method refs to build.
svn path=/trunk/mcs/; revision=14466
2003-05-10 21:04:45 +00:00
Jackson Harper 0bbdc5cd51 * GlobalMethodRef.cs: New file - A reference to a global method
* CodeGen.cs: Store global methods and fields in hashtables to
	make lookup easier. Add method to resolve global methods.

svn path=/trunk/mcs/; revision=14465
2003-05-10 21:04:14 +00:00
Jackson Harper e9030842b5 * MethodDef.cs: Allways set max stack
svn path=/trunk/mcs/; revision=14464
2003-05-10 20:33:22 +00:00
Jackson Harper 9a4ba1a8cb * ExternTable.cs: Alias corlib to mscorlib since these seem to get
used interchangably

svn path=/trunk/mcs/; revision=14463
2003-05-10 19:38:34 +00:00
Jackson Harper 143d5b2d55 * MethodRef.cs: New file - Reference to a method in this assembly.
svn path=/trunk/mcs/; revision=14462
2003-05-10 19:35:49 +00:00
Jackson Harper 9b3e91165a * ExternTypeRef.cs: Add methods to get classref and methodrefs
svn path=/trunk/mcs/; revision=14461
2003-05-10 19:33:49 +00:00
Jackson Harper ef1312079e * ILParser.jay: Add locals, method references, and method instructions
svn path=/trunk/mcs/; revision=14460
2003-05-10 19:32:05 +00:00
Jackson Harper 57df8f4343 Add new files to build.
svn path=/trunk/mcs/; revision=14459
2003-05-10 19:31:25 +00:00
Jackson Harper 4f2e00496e * IMethodRef.cs: New file - Interface that method references must
implement
	* ExternMethodRef.cs: New file - Reference to a method in another
	assembly
	* Local.cs: New file - A Local variable
	* MethodInstr.cs: New file - an instruction that takes a method
	reference operand
	* IClassRef.cs: Add method to get a method reference from a class
	reference
	* MethodDef.cs: Add ability to resolve methods before defining
	them, add max stack, locals, and entry point. Make CreateSignature
	method public and static so other classes can use it.
	* TypeDef.cs: Store methods and fields in hashtables so they can
	be easily retrieved, add method to resolve member methods.
	* TypeRef.cs: Add method for resolving member methods.

svn path=/trunk/mcs/; revision=14458
2003-05-10 19:30:52 +00:00
Miguel de Icaza f127a45f78 flooosh
svn path=/trunk/mono/; revision=14457
2003-05-10 18:39:44 +00:00
Gonzalo Paniagua Javier 706b73b52b Don't use -C here
svn path=/trunk/mcs/; revision=14456
2003-05-10 14:59:39 +00:00
Gonzalo Paniagua Javier 2a1c8fc40f 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* makefile:
	* makefile.gnu: don't use -C when running make.

svn path=/trunk/mcs/; revision=14455
2003-05-10 14:51:56 +00:00
Sebastien Pouliot 801391605d 2003-05-10 Sebastien Pouliot <[email protected]>
* SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
	documentation (no public declaration).
	* Transform.cs: Added property XmlResolver Resolver as per framework 1.1
	documentation (no public declaration).

svn path=/trunk/mcs/; revision=14454
2003-05-10 14:47:44 +00:00
Jaime Anguiano Olarra 1e09ac3fab Added missing reference to VBBinder.cs
svn path=/trunk/mcs/; revision=14453
2003-05-10 11:58:16 +00:00
Marco Ridoni 2790d061ce Added GetType
svn path=/trunk/mcs/; revision=14452
2003-05-10 11:24:11 +00:00
Marco Ridoni e16f36ded6 Some late binding changes which somehow got lost on their way to CVS
svn path=/trunk/mcs/; revision=14451
2003-05-10 10:53:41 +00:00
Marco Ridoni 94bc5ac1b0 First implementation for LateIndexGet/Set. Probably missing several special cases
svn path=/trunk/mcs/; revision=14450
2003-05-10 10:42:11 +00:00
Marco Ridoni 04449060d4 First implementation. Probably overlooks many special cases.
svn path=/trunk/mcs/; revision=14449
2003-05-10 10:41:08 +00:00
Gonzalo Paniagua Javier 8a0ad928cb 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
	of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
	reporting.

svn path=/trunk/mcs/; revision=14448
2003-05-10 09:52:59 +00:00
Dick Porter e2323b9814 2003-05-10 Dick Porter <[email protected]>
* io.c (CopyFile): Copy file mode as well as file data.  Based on
	suggestion by Giuseppe Greco <[email protected]>, bug
	42706.

svn path=/trunk/mono/; revision=14447
2003-05-10 09:43:27 +00:00
Zoltan Varga fe8647ed77 2003-05-10 Zoltan Varga <[email protected]>
* object.c (mono_string_new_wrapper): Compatibility fix for MS
	compilers.

svn path=/trunk/mono/; revision=14446
2003-05-10 09:16:43 +00:00
Marco Ridoni e33b741601 Small fixes for the case when no main class is supplied
svn path=/trunk/mcs/; revision=14445
2003-05-10 08:58:28 +00:00
Marco Ridoni 10c2432620 Small fixes for #End Region / #End If
svn path=/trunk/mcs/; revision=14444
2003-05-10 08:50:29 +00:00
Marco Ridoni f9ae1ad45d Fixed Not operator
It is possible to get a New instance without parentheses

svn path=/trunk/mcs/; revision=14443
2003-05-10 08:49:56 +00:00
Martin Willemoes Hansen 16eb52c822 * scripts/Makefile.am: Added monoresgen secutil sqlsharp
shell wrapper scripts.

svn path=/trunk/mono/; revision=14442
2003-05-10 08:32:48 +00:00
Gonzalo Paniagua Javier 5b714e8683 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* Activator.cs: applied patch for bug #39926. Thanks to Jean Marc and
	Jaime.

svn path=/trunk/mcs/; revision=14441
2003-05-10 03:46:41 +00:00
Gonzalo Paniagua Javier 9f9e776fc6 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* StringBuilder.cs: fixed bug #41397.

svn path=/trunk/mcs/; revision=14440
2003-05-10 03:24:31 +00:00
Gonzalo Paniagua Javier b334f97c1a 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* StringBuilderTest.cs: added replace tests from bug #41397 by
	<[email protected]>>.

svn path=/trunk/mcs/; revision=14439
2003-05-10 03:23:01 +00:00
Sebastien Pouliot 8ae5c2587f 2003-05-09 Sebastien Pouliot <[email protected]>
* DSACryptoServiceProvider.cs: Class is now sealed in v.1.1.
	* KeySizes.cs: Class is now sealed in v.1.1.
	* MD5CryptoServiceProvider.cs: Class is now sealed in v.1.1.
	* RNGCryptoServiceProvider.cs: Class is now sealed in v.1.1.

svn path=/trunk/mcs/; revision=14438
2003-05-10 03:20:48 +00:00
Gonzalo Paniagua Javier c6a26cbde5 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* String.cs: fixed bug #41411 and another similar problem in
	LastIndexOf (string).

svn path=/trunk/mcs/; revision=14437
2003-05-10 03:03:16 +00:00
Sebastien Pouliot b5136ff9d7 2003-05-09 Sebastien Pouliot <[email protected]>
* unix.args: added System.Security/AllowPartiallyTrustedCallersAttribute.cs

svn path=/trunk/mcs/; revision=14436
2003-05-10 02:55:24 +00:00
Sebastien Pouliot 8d194cc69b 2003-05-09 Sebastien Pouliot <[email protected]>
* AllowPartiallyTrustedCallersAttribute.cs: New. Class was missing
	from original 1.0 documentation (but inclufed in framework 1.0)

svn path=/trunk/mcs/; revision=14435
2003-05-10 02:54:16 +00:00
Gonzalo Paniagua Javier 4b2478eb6b 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* Binder.cs:
	(check_type): fixed bug #41655.

svn path=/trunk/mcs/; revision=14433
2003-05-10 02:28:49 +00:00
Gonzalo Paniagua Javier 3e59c573a2 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* list.unix: added missing file.
	* System.Xml.Serialization/XmlReflectionImporter.cs: created an
	instance field because GetTypeData method of TypeTranslator is not
	static.

	This just fixes the build, but the changes may NOT be correct.

svn path=/trunk/mcs/; revision=14432
2003-05-10 01:57:04 +00:00
Gonzalo Paniagua Javier 679d579ad0 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* String.cs: patch by Jean Marc <[email protected]> that fixes
	bug #42695.

svn path=/trunk/mcs/; revision=14431
2003-05-10 01:07:20 +00:00
Sergey Chaban 76c57c0f02 Compatibility fixes for MS compilers and WinCE build;
svn path=/trunk/mono/; revision=14430
2003-05-09 22:40:32 +00:00
Atsushi Eno 4a45acd2ca 2003-05-10 Atsushi Enomoto <[email protected]>
* Added TypeTableEntry.cs.
	* TypeTranslator.cs : changed for non-static use.
	* XmlAttributes.cs : XmlType attribute support for GetAttributeName()
	  and GetElementName(). Bugfix so that if any XmlElementAttribute
	  exists after non-typed XmlElementAttribute then it might be ignored.
	  Added GetElementIsNullable().
	* XmlSerializer.cs :
	  Introduced TypeTablePool and TypeTableEntry and erased ambiguous
	  Object memberObj[4].
	  Deserialize() now uses XmlReader.Depth to check its depth.
	  Serialize() for non-XmlReader arguments now always write xmldecl.
	  SerializeBuiltin() now explicitly requires Type to support xsi:nil,
	  and handles XmlQualifiedName.
	  Separated SerializeType () from Serialize().
	  Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
	  IsPropertyTypeSerializable() from SerializeMembers().
	  SerializeMembers() is now capable of null value and actual type,
	  which should be included by XmlIncludeAttribute and so on.
	  Renamed SerializeArray() to SerializeArrayContent(), and added
	  SerializeCollectionContent().
	  SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
	  FillTypeTable() is now aware of XmlInclude attributes.
	  FillEnum() should not have different type table content from others.

svn path=/trunk/mcs/; revision=14429
2003-05-09 19:14:16 +00:00
Atsushi Eno 305ab3083d 2003-05-10 Atsushi Enomoto <[email protected]>
* added XmlSerializationWriterTests.cs. (by Erik)

svn path=/trunk/mcs/; revision=14428
2003-05-09 19:11:25 +00:00
Miguel de Icaza 93c6cb5fff 2003-05-09 Miguel de Icaza <[email protected]>
* expression.cs (UnaryMutator.LoadOneAndEmitOp): Missing
	functionality: I needed to convert the data after I had performed
	the add/sub operation into the operands type size.

svn path=/trunk/mcs/; revision=14427
2003-05-09 18:10:10 +00:00
Miguel de Icaza 3b89e5ad49 2003-05-09 Miguel de Icaza <[email protected]>
* ecore.cs (ImplicitReferenceConversion): When boxing an interface
	pass the type for the box operation, otherwise the resulting
	object would have been of type object.

	(BoxedCast): Add constructor to specify the type to box as.

svn path=/trunk/mcs/; revision=14426
2003-05-09 17:33:31 +00:00
Miguel de Icaza be610e10fe Improve test
svn path=/trunk/mcs/; revision=14425
2003-05-09 17:33:11 +00:00
Aleksey Ryabchuk 845923bbfb * Control.cs
* Form.cs
	* GroupBox.cs
	* Label.cs
	* UpDownBase.cs : some new stuff related to focus movement by the TAB key

svn path=/trunk/mcs/; revision=14423
2003-05-09 16:24:24 +00:00
Gonzalo Paniagua Javier 837fb01764 2003-05-09 Gonzalo Paniagua Javier <[email protected]>
* DataGridColumnCollection.cs: added missing return in RemoveAt.

svn path=/trunk/mcs/; revision=14422
2003-05-09 15:47:30 +00:00
Gonzalo Paniagua Javier cc4bff9ea0 2003-05-09 Gonzalo Paniagua Javier <[email protected]>
* DataGridColumnCollection.cs: fixed LoadViewState for the columns.
	Don't save ViewState is the number of columns is 0.

svn path=/trunk/mcs/; revision=14421
2003-05-09 15:33:44 +00:00
Zoltan Varga 31d5f8d979 2003-05-09 Zoltan Varga <[email protected]>
* MulticastDelegate.cs (GetInvocationList): Avoid ArrayList
	construction if the delegate list only has one element.

svn path=/trunk/mcs/; revision=14420
2003-05-09 15:05:05 +00:00
Zoltan Varga 2433678f67 2003-05-09 Zoltan Varga <[email protected]>
* class.c (mono_class_layout_fields): Add experimental GC aware
	auto layout facility. Requires class library changes to work correctly.

	(mono_class_setup_vtable): Avoid overriding explicit interface
	method implementations. Fixes iface3.exe test.

	* object.c (mono_class_compute_gc_descriptor): Type I can't hold an
	object reference.
	(mono_array_new_specific): Add MONO_ARCH_SAVE_REGS.
	(mono_string_new_wrapper): Add MONO_ARCH_SAVE_REGS.

	* metadata.h: Add new type classification macro which determines
	whenever the type holds an object reference.

svn path=/trunk/mono/; revision=14419
2003-05-09 14:07:49 +00:00
Dietmar Maurer 4b11af3382 2003-05-09 Dietmar Maurer <[email protected]>
* mini-x86.c (mono_arch_emit_prolog): avoid reallocs with better
	code size estimation.

svn path=/trunk/mono/; revision=14418
2003-05-09 13:38:34 +00:00
Atsushi Eno 3e9ed3ed09 2003-05-09 Atsushi Enomoto <[email protected]>
* XmlSerializer.cs : this time, only replaced spaces with tabs.

svn path=/trunk/mcs/; revision=14414
2003-05-09 02:49:33 +00:00
Ben Maurer 9efcf7d116 2003-05-08 Ben Maurer <[email protected]>
* Path.cs
	(CanonicalizePath) Fixed bug #42631, which duplicated the
	root part of the path under Windows.

svn path=/trunk/mcs/; revision=14412
2003-05-09 02:06:31 +00:00
Gonzalo Paniagua Javier 13c51db2b2 added new handler for machine.config
svn path=/trunk/mcs/; revision=14411
2003-05-09 00:00:16 +00:00
Gonzalo Paniagua Javier b124445a1b fixed non ASCII chars
svn path=/trunk/mono/; revision=14410
2003-05-08 23:55:14 +00:00
Joel Basson 59e37d24bb 2003-05-09 Joel Basson <[email protected]>
* Added many new properties to Combo.cs
* Fixed the TextBox.Text get property
* Fixed some properties in Form.cs
* Small code cleanups

svn path=/trunk/mcs/; revision=14409
2003-05-08 23:54:15 +00:00
Joel Basson 8c28f08ba3 *** empty log message ***
svn path=/trunk/mono/; revision=14408
2003-05-08 23:36:03 +00:00
Gonzalo Paniagua Javier 35245b3929 added section
svn path=/trunk/mono/; revision=14407
2003-05-08 23:34:40 +00:00
Zoltan Varga 25ffc8bd72 2003-05-08 Zoltan Varga <[email protected]>
* mono/tests/Makefile.am:
	- Compile with mcs.
	- Disable some warnings.
	- Added executables to clean target.
	- Make testjit the default target.
	- Print list of failed tests at the end of a test run.
	- Abort tests when Ctrl-C is pressed.

	* mono/tests/test-driver: Return with a special exit code when
	SIGINT is detected.

	* mono/tests/checked.cs: Make it compile.

svn path=/trunk/mono/; revision=14406
2003-05-08 21:33:17 +00:00
Marco Ridoni 1314549912 Commented out some debugging output
svn path=/trunk/mcs/; revision=14404
2003-05-08 21:24:56 +00:00
Marco Ridoni d4aabcd209 Added OrElse/AndAlso (still not working correctly, though)
svn path=/trunk/mcs/; revision=14403
2003-05-08 21:24:32 +00:00
Marco Ridoni a8ca133aa4 Fixed Is operator
Fixed And/Or operator

svn path=/trunk/mcs/; revision=14402
2003-05-08 21:07:54 +00:00
Marco Ridoni f1acfa637c Added a special case for keywords used in qualified identifiers
svn path=/trunk/mcs/; revision=14400
2003-05-08 21:00:31 +00:00
Marco Ridoni 7391a8e07e Methods with no arguments can be invoked without parentheses
svn path=/trunk/mcs/; revision=14399
2003-05-08 20:54:28 +00:00
Marco Ridoni 496951de64 Improved handling of MainClass
svn path=/trunk/mcs/; revision=14398
2003-05-08 20:52:46 +00:00
Ville Palo d7744f61d7 2003-05-08 Ville Palo <[email protected]>
* corlib_test.args: added System.IO.FileSystemInfoTest
	* corlib_linux_test_args: added System.IO.FileSystemInfoTest

svn path=/trunk/mcs/; revision=14394
2003-05-08 19:12:47 +00:00
Ville Palo 5d5db19925 2003-05-08 Ville Palo <[email protected]>
* FileSystemInfo.cs: Added 1.1 properties LastAccessTimeUtc,
	LastWriteTimeUtc and CreationTimeUtc

svn path=/trunk/mcs/; revision=14393
2003-05-08 19:05:01 +00:00
Ville Palo 079b762a6c 2003-05-98 Ville Palo <[email protected]>
* FileSystemInfoTest.cs; new file

svn path=/trunk/mcs/; revision=14392
2003-05-08 18:01:14 +00:00
Aleksey Ryabchuk b0435a19af * Control.cs : started implementation of keyboard handling
* CroupBox.cs : set UserPaint style
	* TextBoxBase.cs : set subclass flag to allow catching of keyboard events

svn path=/trunk/mcs/; revision=14391
2003-05-08 16:43:28 +00:00
Dietmar Maurer 5a615a1e68 2003-05-08 Dietmar Maurer <[email protected]>
* mini.c (mono_jit_create_remoting_trampoline): make it work with
	abstract methods (fix bug 42542)

svn path=/trunk/mono/; revision=14390
2003-05-08 13:37:44 +00:00
Dietmar Maurer 557cdba479 2003-05-08 Dietmar Maurer <[email protected]>
* aot.c: add ability to handle array types

svn path=/trunk/mono/; revision=14389
2003-05-08 13:08:32 +00:00
Zoltan Varga 2371f8899a 2003-05-08 Zoltan Varga <[email protected]>
* mini.c: Call the _specific versions of the object allocation
	functions if possible.

svn path=/trunk/mono/; revision=14388
2003-05-08 11:23:12 +00:00
Martin Willemoes Hansen bccc2466ab * da-DK.xml: Updated
* da.xml: Updated

svn path=/trunk/mcs/; revision=14387
2003-05-08 11:18:44 +00:00
Dietmar Maurer 9a49e79b00 2003-05-08 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): cleanups

svn path=/trunk/mono/; revision=14386
2003-05-08 09:44:15 +00:00
Ben Maurer 513d98ab98 2003-05-07 Ben Maurer <[email protected]>
* Path.cs
	(GetPathRoot) Added support for UNC paths.
	(CanonicalizePath) Added optimizations per Miguel's requests.

	* UriTest.cs: added tests for UNIX file paths.

svn path=/trunk/mcs/; revision=14384
2003-05-08 03:11:04 +00:00
Ben Maurer 347a32ffdd 2003-05-07 Ben Maurer <[email protected]>
* Path.cs
	(GetPathRoot) Added support for UNC paths.
	(CanonicalizePath) Added optimizations per Miguel's requests.
	* PathTest.cs
	Even more GetFullPath () tests. Includes UNC tests.

svn path=/trunk/mcs/; revision=14383
2003-05-08 03:08:52 +00:00
Jackson Harper 15e99f6774 * ILParser.jay: Add type instructions. NOTE - type_spec is not
fully implemented yet, so this has some explosive potential.

svn path=/trunk/mcs/; revision=14382
2003-05-08 03:00:23 +00:00
Jackson Harper c3991b2790 Add TypeInstr to build.
svn path=/trunk/mcs/; revision=14381
2003-05-08 02:58:02 +00:00
Jackson Harper 0d5a6bfb8a * TypeInstr.cs: New file - implementation of instructions that
take a single type instruction.

svn path=/trunk/mcs/; revision=14380
2003-05-08 02:56:52 +00:00
Miguel de Icaza aadd306436 Update
svn path=/trunk/mono/; revision=14379
2003-05-07 20:29:12 +00:00
Miguel de Icaza 45888a27e1 2003-05-07 Miguel de Icaza <[email protected]>
Patches from Igor Nosyryev <[email protected]>

	* TdsComm.cs: (GetString): GetString adds extra byte to a string
	at end. It suppose to be '\0', but '\0' is valid value in .NET
	string, so this byte must not be used.

	* Tds.cs (GetDecimalValue):Method reads extra byte if a DECIMAL
	field contains NULL. As a result server's response is parsed
	incorrectly and this method fires an exception.

svn path=/trunk/mcs/; revision=14378
2003-05-07 19:53:50 +00:00
Paolo Molaro dfed541c90 Build fix for the no gc case.
svn path=/trunk/mono/; revision=14377
2003-05-07 16:33:29 +00:00
Zoltan Varga aef841ed37 2003-05-07 Zoltan Varga <[email protected]>
* gc.c (finalizer_thread): Work around a GC bug.

svn path=/trunk/mono/; revision=14376
2003-05-07 15:36:55 +00:00
Dietmar Maurer d199ad6aa9 2003-05-07 Dietmar Maurer <[email protected]>
* marshal.c (emit_struct_conv): allow unions

svn path=/trunk/mono/; revision=14375
2003-05-07 15:25:24 +00:00
Dietmar Maurer fefae3e10a 2003-05-07 Dietmar Maurer <[email protected]>
* class.c (class_compute_field_layout): added patches from Jerome Laban <[email protected]>

svn path=/trunk/mono/; revision=14374
2003-05-07 15:03:47 +00:00
Paolo Molaro 17c4f0c367 Wed May 7 16:50:00 CEST 2003 Paolo Molaro <[email protected]>
* main.c: output custom attributes for method parameters.

svn path=/trunk/mono/; revision=14373
2003-05-07 14:58:17 +00:00
Miguel de Icaza 070bffbeb3 2003-05-07 Miguel de Icaza <[email protected]>
* iterators.cs: I was reusing the `count' variable inadvertently,
	take steps to not allow this to happen.

svn path=/trunk/mcs/; revision=14372
2003-05-07 14:49:15 +00:00
Aleksey Ryabchuk 0993779588 * Control.cs : static RegisterDefaultWindowClass method was added
* ScrollableControl.cs : registration of "mono_scrollable_control" was moved to Control class
	* win32functions.cs : new constant DEFAULT_WINDOW_CLASS
	* PictureBox.cs : implemented

svn path=/trunk/mcs/; revision=14371
2003-05-07 14:46:24 +00:00
Ville Palo aa71caf8c6 2003-05-06 Ville Palo <[email protected]>
* BufferedStream.cs:
	  - Removed unusefull code.
	  - Added ObjectDisposedException to Position
	  - Dont flush if stream is allready closed.
	  - Flush throws also ObjectDisposedException.
	* Directory.cs:
	  - GetFileSystemEtries: ArgumentNullException if pattern is null
	* DirectoryInfo.cs: Fixed little MoveTo () bug.
	* FileInfo.cs:
	  - Exists: If file does not exists when instance is created the
	  value of the Exists property does not change even if file is created
	  afterwards.
	  - Delete: If path is a directory UnauthorizedException is thrown.
	  - CopyTo: Now we can overwrite file if wanted.
	* Path.cs:
	  - GetFullPath: Now throws exception when path is "   ".

svn path=/trunk/mcs/; revision=14370
2003-05-07 14:43:29 +00:00
Paolo Molaro be7c5698cf Wed May 7 16:24:43 CEST 2003 Paolo Molaro <[email protected]>
* main.c: output nested types inside their nesting class.

svn path=/trunk/mono/; revision=14369
2003-05-07 14:32:35 +00:00
Johannes Roith 384f4a2aa3 workaround to get the 0.24 release working.
svn path=/trunk/mcs/; revision=14368
2003-05-07 14:15:52 +00:00
Aleksey Ryabchuk 5901036069 * Control.cs : use WS_OVERLAPPED instead of WS_OVERLAPPEDWINDOW, update text field in get Text property
* TextBox.cs : use styles provided by TextBoxBase
	* TextBoxBase.cs : more methods and properties were implemented
	* win32enums.cs  : messages and notifications for EDIT control

svn path=/trunk/mcs/; revision=14367
2003-05-07 11:36:41 +00:00
Jackson Harper 13df7316a9 * ILParser.jay: Remove dotted_name, it is not used at all
anymore. vtattr only take an int64 param, this fix gets rid of all
	of the remaining reduce/reduce conflicts

svn path=/trunk/mcs/; revision=14365
2003-05-07 07:25:20 +00:00
Jackson Harper 570b2a420b * ILParser.jay: Remove extraneous dotted_name, also make comp_name
contain dotted_name logic. Oh how I will miss the 301
	reduce/reduce conflicts these small changes fixed :-)

svn path=/trunk/mcs/; revision=14364
2003-05-07 07:11:54 +00:00
Sergey Chaban 02df3b63e1 util.c: added GetModuleFilenameWrapper for WinCE;
svn path=/trunk/mono/; revision=14363
2003-05-07 06:44:17 +00:00
Joel Basson 26d486557a 2003-05-07 Joel Basson <[email protected]>
* Added ComboBox.Items.Add and ComboBox.Items.Add to ComboBox.cs
* FontDialog.cs
* Added new Demo2.cs test app

svn path=/trunk/mcs/; revision=14362
2003-05-07 04:24:23 +00:00
Miguel de Icaza 0bd53791c3 More candy
svn path=/trunk/mono/; revision=14361
2003-05-07 03:44:12 +00:00
Miguel de Icaza f0822f0c7d Spice up
svn path=/trunk/mono/; revision=14360
2003-05-07 03:28:55 +00:00
Miguel de Icaza f31e039622 Flush main page
svn path=/trunk/mono/; revision=14359
2003-05-07 03:25:20 +00:00
Joel Basson dd3ab2a7d7 2003-05-07 Joel Basson <[email protected]>
* Just a bugfix to demo.cs

svn path=/trunk/mcs/; revision=14358
2003-05-06 23:54:19 +00:00
Miguel de Icaza 6324991ff7 Remove team
svn path=/trunk/mono/; revision=14356
2003-05-06 21:33:02 +00:00
nobody 4e4824afab This commit was manufactured by cvs2svn to create branch 'SAVANNAH_CVS'.
svn path=/branches/SAVANNAH_CVS/mcs/; revision=6844
2002-08-21 10:08:33 +00:00
1374 changed files with 96743 additions and 41045 deletions

No files matched your search

+75
View File
@@ -1,3 +1,78 @@
2003-06-10 Dick Porter <[email protected]>
* acconfig.h:
* configure.in: Check for struct ip_mreq if struct ip_mreqn isn't
available.
2003-06-10 Zoltan Varga <[email protected]>
* configure.in: Define HAVE_GC_GCJ_MALLOC for included libgc.
2003-06-10 Martin Baulig <[email protected]>
* configure.in: Fall back to boehm if we don't have a libgc
subdirectory.
2003-06-10 Martin Baulig <[email protected]>
* configure.in: Make the libgc stuff actually work; we now create
a shared libmonogc.so when using the included libgc.
2003-06-09 Martin Baulig <[email protected]>
* configure.in: Only check for gc if --with-gc=boehm.
2003-06-08 Martin Baulig <[email protected]>
* configure.in: Tell libgc's configure about our threads library.
2003-06-08 Martin Baulig <[email protected]>
* libgc/: Integrate the libgc module here.
[Note: A simple `cvs update' won't work this time; you either need
to re-checkout the `mono' module or manually move the `libgc'
module here.]
* configure.in (--with-gc): Added `included' option to use the
included libgc. This is now also the default.
(LIBGC_CFLAGS, LIBGC_LIBS): Put the libgc stuff here and AC_SUBST it.
(INCLUDED_LIBGC): New automake conditional.
(USE_INCLUDED_LIBGC): #define this if appropriate.
* autogen.sh: Run libgc/autogen.sh.
* Makefile.am (SUBDIRS): Added libgc.
2003-06-05 Duncan Mak <[email protected]>
* mono.spec.in (Requires): Add libxml2 and libxslt dependency on
the package.
2003-05-19 Dick Porter <[email protected]>
* configure.in: Netbsd build fix by [email protected].
2003-05-10 Martin Willemoes Hansen <[email protected]>
* scripts/Makefile.am: Added monoresgen secutil sqlsharp
shell wrapper scripts.
2003-05-08 Zoltan Varga <[email protected]>
* mono/tests/Makefile.am:
- Compile with mcs.
- Disable some warnings.
- Added executables to clean target.
- Make testjit the default target.
- Print list of failed tests at the end of a test run.
- Abort tests when Ctrl-C is pressed.
* mono/tests/test-driver: Return with a special exit code when
SIGINT is detected.
* mono/tests/checked.cs: Make it compile.
2003-05-02 Miguel de Icaza <[email protected]>
* runtime/Makefile.am ($(monobins_DATA)): Use explicit file names
+3 -1
View File
@@ -1,6 +1,8 @@
AUTOMAKE_OPTIONS = foreign
SUBDIRS = mono doc docs runtime scripts man data
SUBDIRS = @libgc_dir@ mono doc docs runtime scripts man data
dnl EXTRA_SUBDIRS = libgc
EXTRA_DIST= mono.pc.in mono.spec.in
+4
View File
@@ -5,6 +5,7 @@
#undef HAVE_SOL_TCP
#undef HAVE_IP_PKTINFO
#undef HAVE_STRUCT_IP_MREQN
#undef HAVE_STRUCT_IP_MREQ
#undef HAVE_PTHREAD_MUTEX_TIMEDLOCK
#undef USE_MONO_MUTEX
#undef HAVE_LARGE_FILE_SUPPORT
@@ -13,9 +14,12 @@
#undef NAME_DEV_RANDOM
#undef HAVE_CRYPT_RNG
#undef HAVE_BOEHM_GC
#undef USE_INCLUDED_LIBGC
#undef DISABLE_SHARED_HANDLES
#undef HAVE_TIMEZONE
#undef HAVE_TM_GMTOFF
#undef MONO_SIZEOF_SUNPATH
#undef NEED_LINK_UNLINK
#undef PTHREAD_POINTER_ID
#undef HAVE_GC_H
#undef HAVE_GC_GCJ_MALLOC
+6
View File
@@ -117,6 +117,12 @@ automake --add-missing --gnu $am_opt ||
echo "Running autoconf ..."
autoconf || { echo "**Error**: autoconf failed."; exit 1; }
if test -d $srcdir/libgc; then
echo Running libgc/autogen.sh ...
(cd $srcdir/libgc ; NOCONFIGURE=1 ./autogen.sh "$@")
echo Done running libgc/autogen.sh ...
fi
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
+99 -28
View File
@@ -1,9 +1,23 @@
AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono,0.24)
AM_INIT_AUTOMAKE(mono,0.25)
AM_MAINTAINER_MODE
dnl
dnl libgc checks
dnl
gc_headers=no
gc=included
use_included_gc=no
if test -d $srcdir/libgc ; then
gc_default=included
else
gc_default=boehm
fi
#
# These are the flags that need to be stored in the mono.pc file for
# compiling code that will embed Mono
@@ -15,6 +29,7 @@ AC_SUBST(libmono_ldflags)
# Thread configuration inspired by sleepycat's db
AC_MSG_CHECKING([host platform characteristics])
libgc_threads=no
case "$host" in
*-*-mingw*|*-*-cygwin*)
platform_win32=yes
@@ -23,8 +38,20 @@ case "$host" in
HOST_CC="gcc"
CPPFLAGS="$CPPFLAGS -DGC_WIN32_THREADS -DWIN32_THREADS"
libdl=
libgc_threads=win32
gc_default=boehm
;;
*-*-*bsd*)
*-*-*netbsd*)
platform_win32=no
CPPFLAGS="$CPPFLAGS -D_REENTRANT"
libmono_cflags="-D_REENTRANT"
LDFLAGS="$LDFLAGS -pthread"
libmono_ldflags="-pthread"
AC_DEFINE(NEED_LINK_UNLINK)
libdl=
libgc_threads=pthreads
;;
*-*-*freebsd*|*-*-*openbsd*)
platform_win32=no
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
libmono_cflags="-D_THREAD_SAFE"
@@ -33,6 +60,7 @@ case "$host" in
AC_DEFINE(NEED_LINK_UNLINK)
AC_DEFINE(PTHREAD_POINTER_ID)
libdl=
libgc_threads=pthreads
;;
*-*-linux*)
platform_win32=no
@@ -40,12 +68,14 @@ case "$host" in
libmono_cflags="-DMONO_USE_EXC_TABLES -fexceptions -D_REENTRANT"
libmono_ldflags="-lpthread"
libdl="-ldl"
libgc_threads=pthreads
;;
*-*-solaris*)
platform_win32=no
CPPFLAGS="$CPPFLAGS -DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT"
AC_DEFINE(NEED_LINK_UNLINK)
libmono_cflags="-D_REENTRANT"
libgc_threads=solaris
;;
*-*-darwin*)
platform_win32=no
@@ -56,6 +86,8 @@ case "$host" in
AC_DEFINE(NEED_LINK_UNLINK)
AC_DEFINE(PTHREAD_POINTER_ID)
libdl=
libgc_threads=no
gc_default=none
;;
*)
AC_MSG_WARN([*** Please add $host to configure.in checks!])
@@ -148,16 +180,18 @@ AC_SUBST(GLIB_LIBS)
AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_LIBS)
gc_headers=no
AC_CHECK_HEADERS(gc.h gc/gc.h, gc_headers=yes)
AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes",,$libdl)
gc=auto
AC_ARG_WITH(gc, [ --with-gc=boehm,none],[gc=$with_gc])
AC_ARG_WITH(gc, [ --with-gc=boehm,included,none],[gc=$with_gc],[gc=$gc_default])
LIBGC_CFLAGS=
LIBGC_LIBS=
libgc_dir=
case "x$gc" in
xboehm|xbohem|xyes)
AC_CHECK_HEADERS(gc.h gc/gc.h, gc_headers=yes)
AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes",,$libdl)
if test "x$found_boehm" != "xyes"; then
AC_MSG_ERROR("GC requested but libgc not found!")
AC_MSG_ERROR("GC requested but libgc not found! Install libgc or run configure with --with-gc=none.")
fi
if test "x$gc_headers" != "xyes"; then
AC_MSG_ERROR("GC requested but header files not found! You may need to install them by hand.")
@@ -165,30 +199,52 @@ case "x$gc" in
AC_DEFINE(HAVE_BOEHM_GC)
AC_SUBST(HAVE_BOEHM_GC)
LIBS="$LIBS -lgc $libdl"
LIBGC_LIBS="-lgc $libdl"
AC_CHECK_FUNCS(GC_gcj_malloc)
;;
xincluded)
AC_CONFIG_SUBDIRS(libgc)
found_boehm=yes
gc_headers=yes
use_included_gc=yes
libgc_dir=libgc
LIBGC_CFLAGS='-I$(top_srcdir)/libgc/include'
LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
AC_DEFINE(HAVE_BOEHM_GC)
AC_SUBST(HAVE_BOEHM_GC)
AC_DEFINE(HAVE_GC_H)
AC_DEFINE(USE_INCLUDED_LIBGC)
# The included libgc contains GCJ support
AC_DEFINE(HAVE_GC_GCJ_MALLOC)
;;
xnone)
AC_MSG_WARN("Compiling mono without GC.")
;;
*)
# If libgc was found, use it. Otherwise just warn.
if test "x$found_boehm" != "xyes"; then
AC_MSG_WARN("Compiling mono without GC.")
else
if test "x$gc_headers" != "xyes"; then
AC_MSG_ERROR("Found libgc but not its header files! You may need to install them by hand.")
fi
AC_DEFINE(HAVE_BOEHM_GC)
AC_SUBST(HAVE_BOEHM_GC)
LIBS="$LIBS -lgc $libdl"
gc="boehm"
fi
AC_MSG_ERROR([Invalid argument to --with-gc.])
;;
esac
if test "x$gc" = xboehm; then
AC_CHECK_FUNCS(GC_gcj_malloc)
fi
we_are_embedded_in_mono=yes
export we_are_embedded_in_mono
export libgc_threads
AM_CONDITIONAL(INCLUDED_LIBGC, test x$use_included_gc = xyes)
AC_SUBST(LIBGC_CFLAGS)
AC_SUBST(LIBGC_LIBS)
AC_SUBST(libgc_dir)
dnl
dnl End of libgc checks
dnl
if test x$platform_win32 = xno; then
dnl ******************************************************************
@@ -314,8 +370,20 @@ if test x$platform_win32 = xno; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_STRUCT_IP_MREQN)
], [
# We'll just have to use struct ip_mreq
# We'll just have to try and use struct ip_mreq
AC_MSG_RESULT(no)
AC_MSG_CHECKING(for struct ip_mreq)
AC_TRY_COMPILE([#include <netinet/in.h>], [
struct ip_mreq mreq;
mreq.imr_interface.s_addr = 0;
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_STRUCT_IP_MREQ)
], [
# No multicast support
AC_MSG_RESULT(no)
])
])
dnl *****************************
@@ -499,13 +567,15 @@ fi
TARGET="unknown"
ACCESS_UNALIGNED="yes"
JIT_SUPPORTED=no
case "$host" in
#mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; ACCESS_UNALIGNED="no";;
i*86-*-*) TARGET=X86; arch_target=x86;;
i*86-*-*) TARGET=X86; arch_target=x86; JIT_SUPPORTED=yes;;
sparc*-*-*) TARGET=SPARC; arch_target=sparc; ACCESS_UNALIGNED="no";;
#alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; ACCESS_UNALIGNED="no";;
#m68k-*-linux*) TARGET=M68K;;
macppc-*-openbsd* | powerpc-*-linux* | powerpc-*-openbsd* | powerpc-*-sysv* | powerpc-*-darwin*) TARGET=POWERPC; arch_target=ppc;;
macppc-*-openbsd* | powerpc-*-linux* | powerpc-*-openbsd* | powerpc-*-sysv* | powerpc-*-darwin*) TARGET=POWERPC; arch_target=ppc; JIT_SUPPORTED=yes;;
arm-*-linux-* | armv4l-*-linux-*) TARGET=ARM; arch_target=arm; ACCESS_UNALIGNED="no";;
s390-*-linux*) TARGET=S390; arch_target=s390; ACCESS_UNALIGNED="no";;
esac
@@ -529,6 +599,8 @@ AM_CONDITIONAL(POWERPC, test x$TARGET = xPOWERPC)
AM_CONDITIONAL(ARM, test x$TARGET = xARM)
AM_CONDITIONAL(S390, test x$TARGET = xS390)
AM_CONDITIONAL(JIT_SUPPORTED, test x$JIT_SUPPORTED = xyes)
LIBC="libc.so.6"
AC_SUBST(LIBC)
@@ -560,7 +632,6 @@ mono/tests/Makefile
mono/benchmark/Makefile
mono/monoburg/Makefile
mono/monograph/Makefile
mono/jit/Makefile
mono/io-layer/Makefile
mono/handles/Makefile
mono/mini/Makefile
+1
View File
@@ -14,4 +14,5 @@
<dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so" />
<dllmap dll="libglade-2.0-0.dll" target="libglade-2.0.so" />
<dllmap dll="oci" target="clntsh" />
<dllmap dll="gtkhtml-3.0" target="libgtkhtml-3.0.so.2" />
</configuration>
+29 -1
View File
@@ -22,7 +22,35 @@
<section name="sessionState"
type="System.Web.SessionState.SessionStateSectionHandler, System.Web" />
</sectionGroup>
<sectionGroup name="system.net">
<section name="connectionManagement"
type="System.Net.Configuration.ConnectionManagementHandler, System" />
<section name="authenticationModules"
type="System.Net.Configuration.NetAuthenticationModuleHandler, System" />
<section name="defaultProxy"
type="System.Net.Configuration.DefaultProxyHandler, System" />
<section name="webRequestModules"
type="System.Net.Configuration.WebRequestModuleHandler, System" />
</sectionGroup>
</configSections>
<system.net>
<connectionManagement>
<add address="*" maxconnection="2" />
</connectionManagement>
<authenticationModules>
<add type="System.Net.BasicClient" />
</authenticationModules>
<defaultProxy>
<proxy />
<!-- bypassonlocal and proxyaddress are ok -->
<!-- usessystemdefault is not supported -->
</defaultProxy>
<webRequestModules>
<add prefix="http" type="System.Net.HttpRequestCreator, System" />
<add prefix="https" type="System.Net.HttpRequestCreator, System" />
<add prefix="file" type="System.Net.FileWebRequestCreator, System" />
</webRequestModules>
</system.net>
<system.web>
<httpHandlers>
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web" />
@@ -35,7 +63,7 @@
<httpModules>
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web" />
<add name="SessionStateModule" type="System.Web.SessionState.SessionStateModule, System.Web" />
<add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web" />
</httpModules>
<authentication mode="Forms">
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
+1 -1
View File
@@ -5,7 +5,7 @@ WEB_FILES= \
oledb papers \
passport plans porting postgresql ppc projects rationale \
resources roadmap runtime sqlclient sqlite sybase tdsclient \
tds-providers team status testing thanks tools \
tds-providers status testing thanks tools \
porting anoncvs monodoc-xml winforms
OTHERS= pending resources-pending todo mono-build.sh mono-build-w32.sh
+1 -3
View File
@@ -54,9 +54,7 @@
able to test them in real life: Gaurav and Leen worked very
hard on this namespace.
We can now render all HtmlControls and almost all WebControls.
DataGrid and DataList controls are being finished by Gaurav.
Xml control needs some work on System.Xml related to XSL.
We can now render all HtmlControls and all WebControls.
Help in making the controls better is appreciated.
+151 -59
View File
@@ -1,25 +1,45 @@
* CVS Access
If you are an active Mono developer, you can get a CVS account
that hosts the Mono source code. This web page contains
details about how to use the CVS server as well as the
policies to use it.
Here we describe how one obtains commit access to the CVS repository
and the responsibilities that come with that access privilege.
If you are not a developer, but want to track the development, please
see the <a href="anoncvs.html">AnonCVS</a> instructions.
** What is CVS?
Send an e-mail to miguel with your public OpenSSH key for this
purpose. Please specify if the key was generated with SSH version 1
or version 2.
Briefly, CVS is a system tool used to store and maintain files and
a history of their changes over time. The Mono source code and related
files are kept on a CVS server at Ximian.
** What Access?
We mean "commit" access. This is the privilege to make permanent
changes to the Mono source code and related files. You need an account
created by the CVS server administrator in order to commit changes to
the files on that server.
** How Does One Obtain Access?
Any active Mono developer can get a CVS account. Normally one is
considered an 'active' developer after sending several patches to the
mailing lists and/or bugzilla for review.
If you are not a developer, but want to access the latest sources,
please see the <a href="anoncvs.html">AnonCVS</a> instructions.
If you feel you are ready for a CVS account send an e-mail to
<a href="mailto:[email protected]">miguel</a> with your public OpenSSH
key for this purpose. Please specify if the key was generated with SSH
version 1 or version 2. Detailed instructions are below.
* Policies
Here are some policies about the use of the Mono CVS server.
It is necessary that everyone with CVS commit access respect and
adhere to the following rules. If you ask for and are granted CVS
access, you are agreeing to follow these policies.
** Code License
If you are about to commit code to a module, the code that is
being commited should be released under the same license as
being committed should be released under the same license as
the code that the module has.
Check the license if you are unsure, but it is basically:
@@ -28,25 +48,105 @@
If in doubt, check with the maintainers of the module, or send
mail to [email protected].
** Commiting code.
** Changing code
If you are the maintainer for a piece of code, feel free to
commit code, and delegate the work to others.
Even if you have CVS commit access, that doesn't mean you can change
code at will in any directory or module. Directories and Namespaces
have a sort of unofficial ownership. If you are not the owner of a
piece of code and you want to make changes/fixes to it, there are two
cases.
1) The change is a typo fix or a one-liner build or trivial fix. In
this case almost anyone can commit (always remembering to add the
proper changelog entry to explain the change). We say "almost anyone",
because changes to certain directories almost always should be reviewed
first. Such as changes to core stuff: corlib/System, System.Collections,
mini/, metadata/, System.IO.
Use ChangeLog entries so we can keep textual descriptions of
your work, and use the contents of your ChangeLog file as the
CVS commit message (ie, paste the contents of this into the
editor buffer).
2) The change is larger. In this case the patch *must* be sent to
mono-devel-list for review by the owner of the code and by the other
hackers. Always submit such patches to the list or bugzilla, although
you may put the owner of the code in the CC header. Hackers come and go.
Mailing a patch to only a personal address is a good way to get the
patch forgotten and missed. Plus, getting the patches reviewed as well
as reviewing them, is a good thing, so try to get used to it.
If you are making changes to someone else's code, please make
sure you get in touch with the maintainer of that code before
applying patches. You want to avoid commiting conflicting
work to someone else's code.
Note: If the patch is an addition of code and doesn't change any of the
existing code, the rules are slightly relaxed: there is more freedom
in committing such changes, if they don't interfere with the existing
codebase.
Please do not commit code that would break the compile to the
CVS, because that normally wastes everybody's time. Two things
** Owning Code
Now, how do you get to be the owner of a chunk of code? The answer is
simple. You wrote the code, so you're the unofficial owner. There is
also another way. After sending a few patches for the code, the
owner (or the core developers of mono, if the owner somehow disappeared)
trusts you and tells you you're free to commit without getting his
review first.
Here is a (partial) list of namespaces/directories with their owners:
<ul>
<li>Debugger module and debug code in mono: martin
<li>mcs compiler: miguel, martin, ravi
<li>Reflection/Reflection.Emit: lupus, zoltan
<li>IO-layer: dick
<li>mini: lupus, dietmar
<li>test suite: nickd (though anyone should feel free to add test cases)
<li>System.IO: dick, ville
<li>security stuff: spouliot
<li>ilasm: jackson
<li>System.Web and related: gonzalo
<li>System.Xml: eno, piers
<li>Remoting: dietmar, lluis
<li>interop/marshal: dietmar
<li>threads: dick
</ul>
If you are the owner of a piece of code, feel free to commit code, and
delegate the work to others.
But, if you're not the owner of the code, committing a rewrite without
getting a review first is not good cvsitizenship (especially when the
rewrite claimed to fix bugs, but not a single regression test has been
added to the suite).
** Commit Rules
Once you know you can commit a patch (because of the rules above) there
are a few other small rules to follow:
<ul>
<li>Always add a changelog entry with a meaningful explanation
<li>If you fix a bug, add a regression test for it in the regression
suite
<li>Don't commit unrelated changes together with a fix: do fine-grained
commits
<li>Always check what you're committing: make sure you're only committing
what you need and make sure you don't change line endings and
whitespace. Do a 'cvs diff -u' of the files you're going to commit and
check the changes.
<li>Don't do reformatting commits, unless you're the original author of
the code
<li>When fixing bugs, don't follow the documentation blindly, it may
well be wrong. Test the behavior on the MS runtime or ask on the list
for discussion if unsure. Don't be afraid of having your changes
reviewed.
<li>Never remove copyright notices from the code
<li>Never remove licensing info from code
<li>Never commit code you didn't write yourself or code that doesn't
have a suitable license
<li>Follow the style conventions
<li>Keep an eye on performance considerations, especially for code in
core classes, ask on the list for guidance
<li>Do a regression test run and a bootstrapping build if making changes
to core functionality before committing. Do not commit code that would
break the compile, because that wastes everybody's time. Two things
are important in this step: trying to build your sources and making
sure that you add all the new files before you do a commit.
</ul>
Also, remember to pat yourself on the back after the commit, smile and
think we're a step closer to a better free software world.
* Using CVS.
@@ -61,14 +161,16 @@
ssh-keygen -t rsa
</pre>
And mail me the id_rsa.pub file.
And mail <a href="mailto:[email protected]">miguel</a> the
id_rsa.pub file.
If you are using SSH version 1, run:
<pre>
ssh-keygen
</pre>
And mail me your identity.pub file.
And mail <a href="mailto:[email protected]">miguel</a> your
identity.pub file.
If you are using SSH from SSH Communications Security (they offer
a free SSH client for personal use), you have to use OpenSSH to
@@ -81,7 +183,8 @@
where the file id_XXX.pub is your public key file,
normally located under ~/.ssh/ or ~/.ssh2/.
Send to miguel the my_public_key.pub file.
Send to <a href="mailto:[email protected]">miguel</a> the
my_public_key.pub file.
The *exact* format for this file must be:
@@ -123,7 +226,7 @@
** Making patches
Usually you will want to make a patch to contribute, and let
other people review it before commiting it. To obtain such a
other people review it before committing it. To obtain such a
"patch", you type:
<pre>
@@ -132,7 +235,25 @@
mail [email protected] < file.diff
</pre>
** Keeping track of changes.
** Committing your work
Once you get approval to commit to the CVS, or if you are
committing code that you are the maintainer of, you will want
to commit your code to CVS.
To do this, you have to "add" any new files that you created:
<pre>
cvs add new-file.cs
</pre>
And then commit your changes to the repository:
<pre>
cvs commit file-1.cs file-2.cs
</pre>
* Keeping track of changes.
We provide two e-mail based mechanisms to keep track of
changes to the code base:
@@ -151,28 +272,6 @@
We hope to offer LXR and Bonsai in the future as well.
** Commiting your work
Once you get approval to commit to the CVS, or if you are
commiting code that you are the maintainer of, you will want
to commit your code to CVS.
To do this, you have to "add" any new files that you created:
<pre>
cvs add new-file.cs
</pre>
And then commit your changes to the repository:
<pre>
cvs commit file-1.cs file-2.cs
</pre>
* The Mailing Lists
To keep track of the various development and changes to the
CVS tree, you can subscribe to the [email protected].
To subscribe, send an email message to
[email protected] and in the body of the
message put `subscribe'.
@@ -185,10 +284,3 @@
the <a
href="mailto:[email protected]">[email protected]</a>
to receive the patches as they are checked into CVS.
** Recommendations
To build the sources, most of the type trying the `make' command
is enough. In some cases (the class libraries) we use nant, so
you need to run nant manually.
+46 -1
View File
@@ -16,7 +16,8 @@
the source code for Mono, you can start tracking down the
problem. Depending on how much time you have to devote to the
problem you could: <a href="http://bugzilla.ximian.com">File a
bug report</a>; track down the problem and provide a better
bug report</a> (read <a href="#goodbugreport">this</a>); track
down the problem and provide a better
<a href="http://bugzilla.ximian.com">bug report</a>; fix the
bug and provide a patch (you can <a
href="mailto:[email protected]">post it</a> to the <a
@@ -127,6 +128,50 @@
You can review the list of current bugs by going <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&product=Mono%2FMCS&product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query">here</a>
<a name="goodbugreport"/>
** How to make good bug reports
A mail from Paolo to mono-devel-list contained this check list:
<ol>
* Submit a test case, the smaller it is, the better
* Use <a href="http://bugzilla.ximian.com">
http://bugzilla.ximian.com</a> to report the bug.
<p>In <b>addition</b> to bugzilla, posting to the list is
fine if the bug merits larger exposure or design
discussions to solve; posting to the list twice or more
is just a way to annoy people and make them waste time,
specially when you start a new thread about it.
* If the test involves libraries or assemblies that are
not part of mono, add info about where to download all
the dependencies, and how to compile/install them.
* If compiling the test case requires more than:
<pre> mcs test.cs </pre>
provide the <b>full command line</b> you used to compile
the test.
* If running the test requires more than:
<pre> mono test.exe </pre>
provide the <b>full command line</b> needed to replicate
the bug.
* Provide info about the version of the software you're
using (both mono and the operating system or relevant
libraries).
* Provide the output you expect the test case to produce.
* Provide the actual output <b>you</b> get from the test case.
</ol>
A good bug report complies with at least 6 items from the list.
If your bug report complies with 3 or less items, it is very
poor and it means it will take much more time to fix (when it's
not ignored).
** Small tasks
A few smaller tasks are here, dropped in no particular order:
+71 -54
View File
@@ -14,8 +14,12 @@
* Every classes are present.
* Most classes have their unit tests. Some tests like <code>
SymmetricAlgorithmTest</code> are generated by an external
tool.
SymmetricAlgorithmTest</code> are generated by external
tools.
* MACTripleDES is compatible with the implementation shipped in
framework 1.0. Version 1.1 gives different results when the
MACed data is a multiple of BlockSize (8 bytes).
</ul>
**** TODO
@@ -25,10 +29,6 @@
href="http://bugzilla.ximian.com/show_bug.cgi?id=40689">
40689</a>). The class need to be re-designed.
* Support for adding/modifying OID using the
<code>machine.config</code> configuration file (algorithms
are done).
* RNGCryptoServiceProvider is currently only working on Linux.
The current implementation reside in Mono's runtime and use
the <code>/dev/[u]random</code> device (which do not exists
@@ -44,13 +44,6 @@
algorithm can be different for every CSP (Crypto Service
Provider). However for compatibility we should provide an
implementation compatible with the MS CSP (most likely used).
* Analyse the current coverage of the unit tests on the
cryptographic classes and complete the unit tests.
* Optimizations (performance) on most class are possible. Some
have been done using the Community Edition of BoundChecker
(a free VisualStudio addon) - recommanded!
</ul>
**** Notes
@@ -58,7 +51,12 @@
* All cryptographic algorithms are entirely managed, including
classes named <code>*CryptoServiceProvider</code>, with the
exception of <code>RNGCryptoServiceProvider</code> (which
resides in the runtime).
implementation resides in the runtime).
* There is a bug in the <code>PKCS1MaskGenerationMethod</code>
class (in both framework 1.0 and 1.1). This means our
implementation isn't compatible with MS (but is compatible with
PKCS#1 v.2.1). However we get OAEP padding for every platform!
* Look at assembly Mono.Security.Win32 if you require more
compatiblity with the Microsoft implementation (like accessing
@@ -79,9 +77,9 @@
* Unit tests are generated from a set of existing certificates
(about a dozen) each having different properties. Another
set of certificates (more than 300) are used for a more
set of certificates (more than 700) are used for a more
complete test (but isn't part of the standard test suite for
size and time consideration, i.e. a 3.5Mb C# source file).
size and time consideration, i.e. a 7.5Mb C# source file).
</ul>
**** TODO
@@ -90,10 +88,6 @@
certificates from PE files but cannot validate the signature
nor the certificate chain (and we're still missing some trust
anchors). See Tools section for more information.
* Integration with CryptoAPI (on Windows) isn't possible as
long as the <code>X509Certificate(IntPtr)</code> constructor
isn't completed.
</ul>
**** Notes
@@ -149,10 +143,12 @@
<hr>
** Assembly: Mono.Security
<b>Rational</b>
<b>Rational: </b>
This assembly provides the missing pieces to .NET security. On Windows
CryptoAPI is often used to provide much needed functionalities (like
some cryptographic algorithms, code signing, X.509 certificates).
some cryptographic algorithms, code signing, X.509 certificates). Mono,
for platform independance, implements these functionalities in 100%
managed code.
*** Namespace: Mono.Security
<ul>
@@ -161,7 +157,8 @@
*** Namespace: Mono.Security.Authenticode
<ul>
* Code signing and verification.
* Support for SPC files and PVK files.
* Support for SPC (Software Publisher Certificate) files and
PVK (Private Key) files.
</ul>
*** Namespace: Mono.Security.Cryptography
<ul>
@@ -170,20 +167,20 @@
</ul>
*** Namespace: Mono.Security.X509
<ul>
* X.509 certificate building and decoding.
* X.509 structures (certificate, CRL...) building and decoding.
</ul>
*** Namespace: Mono.Security.X509.Extensions
<ul>
* X.509 extensions (from X.509, PKIX, Netsapce, Microsoft,
Entrust...).
* X.509 extensions (from public X.509 to private PKIX, Netsapce,
Microsoft, Entrust...).
</ul>
**** Status
<ul>
* Some part of the work has not yet been commited (cleaning up).
* Some part of the work has not yet been commited (still cleaning up).
* A big part of this assembly is also included inside Mono's
corlib. The class are duplicated in this assembly so the
corlib. The classes are duplicated in this assembly so the
functionalities can be used without a dependency on Mono's
corlib (which depends on Mono's runtime).
@@ -193,18 +190,19 @@
<hr>
** Assembly: Mono.Security.Win32
<b>Rational</b>
<b>Rational: </b>
This assembly goal is to provide maximum compatibility with CryptoAPI
to application running with Mono's runtime on the Windows operating
system.
<b>This assembly should NEVER be used directly by any application</b>.
<b>This assembly should NEVER be used directly by any application</b>
(e.g. referecing the assembly from a project).
The classes should only be used by modifying the <code>machine.config
</code> configuration file (and then only if this increased
compatibility is required by an application).
See the file <code>/mcs/class/Mono.Security.Win32/README</code> for
complete instructions.
See the file <code><a href="http://cvs.hispalinux.es/cgi-bin/cvsweb/~checkout~/mcs/class/Mono.Security.Win32/README?rev=1.1&content-type=text/plain&cvsroot=mono">/mcs/class/Mono.Security.Win32/README</a></code>
for complete instructions.
*** Namespace: Mono.Security.Cryptography
@@ -216,10 +214,10 @@
* Wrapper classes for unmanaged versions of hash algorithms:
MD2, MD4, MD5 and SHA1 are supported. <b>note</b>: some
algorithms shouldn't be used in new design (MD4 is broken and
MD2 isn't considered safe). They are included to preserve
interoperability with older applications (e.g. some old, but
still valid, X.509 certificates use MD2).
algorithms shouldn't be used in new design (MD4 is broken,
MD2 and MD5 aren't considered safe for some usage). They are
included to preserve interoperability with older applications
(e.g. some old, but still valid, X.509 certificates use MD2).
</ul>
**** TODO
@@ -235,9 +233,13 @@
**** Ideas
<ul>
* Similar assembly could be created for <a href="http://www.openssl.org">
OpenSSL</a>, NSS, crypto++, cryptlib ... for improved
performance and/or HSM support under Linux.
* Similar assemblies (e.g. <code>Mono.Security.XXX</code>)
could be created for <a href="http://www.openssl.org">OpenSSL</a>,
<a href="http://www.mozilla.org/projects/security/pki/nss/">NSS</a>,
<a href="http://www.eskimo.com/~weidai/cryptlib.html">crypto++</a>,
<a href="http://www.cryptlib.orion.co.nz/">cryptlib</a> ... for
improved performance and/or HSM (Hardware Security Module) support
under Linux and/or Windows.
</ul>
<hr>
** Assembly: Microsoft.Web.Services
@@ -254,7 +256,7 @@
<a href="http://www.oasis-open.org/committees/wss/">OASIS</a> or
other committees.
<b>[*] There are some licensing issues to consider before stating to
<b>[*] There are some licensing issues to consider before starting to
implement WS-Security. All contributors must sign an agreement with
Microsoft before commiting anything related to WS-Security into CVS.
</b>
@@ -273,7 +275,7 @@
<ul>
* Nothing (yet) commited in CVS. However the classes in this
namespace are outside WS-Security scope. So development, for
those, could be done without signing any agreements.
those classes, could be done without signing any agreements.
</ul>
**** TODO
@@ -293,7 +295,7 @@
**** Status
The following tools are complete:
The following tools are complete (mostly complete):
<ul>
* <code>secutil</code> is a tool to extract certificates and
strongnames from assemblies in a format that can be easily
@@ -307,12 +309,21 @@
can be used (once transformed in SPC) to sign assemblies.
</ul>
**** TODO
The following tools are still missing or incomplete:
Somewhat usable, somewhat incomplete:
<ul>
* <code>sn</code> is a clone of the <code>sn</code> to manage
strongnames. Current version is limited to creating new keypairs
and converting values.
* <code>monosn</code> is a clone of the <code>sn</code> to manage
strongnames. This tools is part of the runtime (not the class
library) and as such is written in C and won't run without Mono.
</ul>
**** TODO
The following tools are still missing or largely incomplete:
<ul>
* <code>signcode</code> and <code>chktrust</code> (in progress)
for signing and validating Authenticode(tm) signatures on
@@ -331,28 +342,34 @@
<ul>
* SSL/TLS for secure communication (a prototype is under way).
Some work is already visible in Mono.Security assembly (e.g.
RC4).
RC4, RSAManaged ...).
</ul>
<hr>
** How to Help
Complete any of the TODO (and feel good about it ;-).
<ul>
* Complete any of the TODO (and feel good about it ;-).
Add missing unit tests to classes or methods.
* Analyse the current coverage of the unit tests on the
cryptographic classes and complete the unit tests.
Write some documentation on the cryptographic classes for the
<a href="http://go-mono.com/tutorial/html/en/index.html">Mono
Handbook</a> as I'm not a very good writer (at least in English).
* Optimization can also be done on most algorithms as crypto
is never fast enough. Some have been done using the
Community Edition of BoundChecker (a free VisualStudio
addon) - recommanded! Just be sure to test every optimization
(using the unit test) carefully - it's so fast to break an
algorithm ;-).
Optimization can also be done on algorithms as crypto is never fast
enough. Just be sure to test every optimization (using the unit test)
carefully - it's so fast to break an algorithm ;-).
* Write some documentation on the cryptographic classes for
the <a href="http://go-mono.com/tutorial/html/en/index.html">Mono
Handbook</a> as I'm not a very good writer (at least in English).
</ul>
Contact Sebastien Pouliot (<a href="mailto:[email protected]">home</a>
, <a href="mailto:[email protected]">work</a>) if you need additional
informations about the status of the cryptographic classes.
<hr>
Last reviewed: April 7, 2003 (post mono 0.23)
Last reviewed: June 11, 2003 (post mono 0.24)
+272 -4
View File
@@ -13,6 +13,278 @@
section</a>, the <a
href="http://www.go-mono.org/faq.html">FAQ</a>.
<table>
<tbody>
<tr bgcolor="#DDDDDD">
<td>
<b>Release 0.25</b><br>
<a href="archive/mono-0.25.html">Release notes</a><br>
Jun 26, 2003
</td>
<td>
<table cellspacing="1" cellpadding="3">
<tr bgcolor="#BBBBBB">
<td>
<b>Source Code</b>
</td>
<td>
<ul>
<li><a href="archive/mcs-0.25.tar.gz">Mono Class Libraries and C# Compiler.</a>
<li><a href="archive/mono-0.25.tar.gz">Mono Runtime</a>
<li><a href="archive/xsp-0.4.tar.gz">XSP web server (0.4)</a>
<li><a href="archive/monodoc-0.4.tar.gz">MonoDoc 0.5</a>
<li><a href="archive/gtk-sharp-0.10.tar.gz">Gtk# 0.10</a>
</ul>
</td>
</tr>
<tr bgcolor="#BBBBBB">
<td>
<b>Source RPMs</b><br>
(No RPMS for XSP).
</td>
<td>
<ul>
<li><a href="archive/mono-0.25-1.src.rpm">mono-0.25-1.src.rpm</a>
</ul>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/redhat-36.gif"><b>Red Hat 9.0/x86</b>
<ul>
<li><a href="archive/redhat-90-i386/mono-0.25-1.i386.rpm">mono-0.25-1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-devel-0.25-1.i386.rpm">mono-devel-0.25-1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-debuginfo-0.25-1.i386.rpm">mono-debuginfo-0.25-1.i386.rpm</a>
<br>
<li><a href="archive/redhat-90-i386/gtk-sharp-0.9-1.i386.rpm">gtk-sharp-0.9-1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/gtk-sharp-debuginfo-0.9-1.i386.rpm">gtk-sharp-debuginfo-0.9-1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/monodoc-0.4-1.i386.rpm">monodoc-0.4-1.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<img src="images/redhat-36.gif"><b>Red Hat 8.0/x86</b>
<ul>
<li><a href="archive/redhat-80-i386/mono-0.25-2.i386.rpm">mono-0.25-2.i386.rpm</a>
<li><a href="archive/redhat-80-i386/mono-devel-0.25-2.i386.rpm">mono-devel-0.25-2.i386.rpm</a>
<br>
<li><a href="archive/redhat-80-i386/gtk-sharp-0.9-1.i386.rpm">gtk-sharp-0.9-1.i386.rpm</a>
<li><a href="archive/redhat-80-i386/monodoc-0.4-1.i386.rpm">monodoc-0.4-1.i386.rpm</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/debian-36.gif"><b>Debian</b>
<ul>
<li><a href="http://www.debianplanet.com/mono/">Debian Packages here.</a>
</ul>
</td>
<td bgcolor="#999999">
<img src="images/windows-36.gif"><b>Windows Setup Wizard (XP, 2000, NT)</b>
<ul>
<li><a href="archive/mono-0.25-win32-1.exe">Setup program.</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/redhat-36.gif"><b>Red Hat 7.3/x86</b>
<ul>
<li><a href="archive/redhat-73-i386/mono-0.25-1.i386.rpm">mono-0.25-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/mono-devel-0.25-1.i386.rpm">mono-devel-0.25-1.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<img src="images/mandrake-36.gif"><b>Mandrake 8.2/x86</b>
<ul>
<li><a href="archive/mandrake-82-i386/mono-0.25-1.i586.rpm">mono-0.25-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/mono-devel-0.25-1.i586.rpm">mono-devel-0.25-1.i586.rpm</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/suse-36.gif"><b>SuSE 8.2/x86</b>
<ul>
<li><a href="archive/suse-80-i386/mono-0.25-1.i386.rpm">mono-0.25-1.i386.rpm</a>
<li><a href="archive/suse-80-i386/mono-devel-0.25-1.i386.rpm">mono-devel-0.25-1.i386.rpm</a>
</ul>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<tr bgcolor="#CCCCC">
<td>
<b>Regression Tests</b><br>
</td>
<td>
You can get binaries for the Mono Regression Test
Suite <a href="archive/mono-tests.tar.gz">here</a>
</td>
</tr>
</tr>
</tbody>
</table>
* Older Releases:
We provide binaries for older releases until we have packages for the new release.
<table>
<tbody>
<tr bgcolor="#DDDDDD">
<td>
<b>Release 0.24</b><br>
<a href="archive/mono-0.24.html">Release notes</a><br>
May 6, 2003
</td>
<td>
<table cellspacing="1" cellpadding="3">
<tr bgcolor="#BBBBBB">
<td>
<b>Source Code</b>
</td>
<td>
<ul>
<li><a href="archive/mcs-0.24.tar.gz">Mono Class Libraries and C# Compiler.</a>
<li><a href="archive/mono-0.24.tar.gz">Mono Runtime</a>
<li><a href="archive/gc6.1.tar.gz">Boehm GC 6.1</a>
<li><a href="archive/xsp-0.4.tar.gz">XSP web server (0.4)</a>
<li><a href="archive/monodoc-0.4.tar.gz">MonoDoc 0.4</a>
<li><a href="archive/gtk-sharp-0.9.tar.gz">Gtk# 0.9</a>
</ul>
</td>
</tr>
<tr bgcolor="#BBBBBB">
<td>
<b>Source RPMs</b><br>
(No RPMS for XSP).
</td>
<td>
<ul>
<li><a href="archive/libgc-6.1-1.src.rpm">libgc-6.1-1.src.rpm</a>
<li><a href="archive/mono-0.24-1.src.rpm">mono-0.24-1.src.rpm</a>
</ul>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/redhat-36.gif"><b>Red Hat 9.0/x86</b>
<ul>
<li><a href="archive/redhat-90-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-0.24-1.i386.rpm">mono-0.24-1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-devel-0.24-1.i386.rpm">mono-devel-0.24-1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-debuginfo-0.24-1.i386.rpm">mono-debuginfo-0.24-1.i386.rpm</a>
<br>
<li><a href="archive/redhat-90-i386/gtk-sharp-0.9-1.i386.rpm">gtk-sharp-0.9-1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/gtk-sharp-debuginfo-0.9-1.i386.rpm">gtk-sharp-debuginfo-0.9-1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/monodoc-0.4-1.i386.rpm">monodoc-0.4-1.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<img src="images/redhat-36.gif"><b>Red Hat 8.0/x86</b>
<ul>
<li><a href="archive/redhat-80-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-80-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-80-i386/mono-0.24-2.i386.rpm">mono-0.24-2.i386.rpm</a>
<li><a href="archive/redhat-80-i386/mono-devel-0.24-2.i386.rpm">mono-devel-0.24-2.i386.rpm</a>
<br>
<li><a href="archive/redhat-80-i386/gtk-sharp-0.9-1.i386.rpm">gtk-sharp-0.9-1.i386.rpm</a>
<li><a href="archive/redhat-80-i386/monodoc-0.4-1.i386.rpm">monodoc-0.4-1.i386.rpm</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/debian-36.gif"><b>Debian</b>
<ul>
<li><a href="http://www.debianplanet.com/mono/">Debian Packages here.</a>
</ul>
</td>
<td bgcolor="#999999">
<img src="images/windows-36.gif"><b>Windows Setup Wizard (XP, 2000, NT)</b>
<ul>
<li><a href="archive/mono-0.24-win32-1.exe">Setup program.</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/redhat-36.gif"><b>Red Hat 7.3/x86</b>
<ul>
<li><a href="archive/redhat-73-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/mono-0.24-1.i386.rpm">mono-0.24-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/mono-devel-0.24-1.i386.rpm">mono-devel-0.24-1.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<img src="images/mandrake-36.gif"><b>Mandrake 8.2/x86</b>
<ul>
<li><a href="archive/mandrake-82-i386/libgc-6.1-1.i586.rpm">libgc-6.1-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/libgc-devel-6.1-1.i586.rpm">libgc-devel-6.1-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/mono-0.24-1.i586.rpm">mono-0.24-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/mono-devel-0.24-1.i586.rpm">mono-devel-0.24-1.i586.rpm</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/suse-36.gif"><b>SuSE 8.0/x86</b>
<ul>
<li><a href="archive/suse-80-i386/libgc-6.1-1.i386.rpm">libgc-6.1-1.i386.rpm</a>
<li><a href="archive/suse-80-i386/libgc-devel-6.1-1.i386.rpm">libgc-devel-6.1-1.i386.rpm</a>
<li><a href="archive/suse-80-i386/mono-0.24-1.i386.rpm">mono-0.24-1.i386.rpm</a>
<li><a href="archive/suse-80-i386/mono-devel-0.24-1.i386.rpm">mono-devel-0.24-1.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<b>Linux s/390</b>
<ul>
<li><a href="archive/s390/libgc-6.1-1.s390.rpm">libgc-6.1-1.s390.rpm</a>
<li><a href="archive/s390/libgc-devel-6.1-1.s390.rpm">libgc-devel-6.1-1.s390.rpm</a>
<li><a href="archive/s390/mono-0.24-1.s390.rpm">mono-0.24-1.s390.rpm</a>
<li><a href="archive/s390/mono-devel-0.24-1.s390.rpm">mono-devel-0.24-1.s390.rpm</a>
</ul>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<tr bgcolor="#CCCCC">
<td>
<b>Regression Tests</b><br>
</td>
<td>
You can get binaries for the Mono Regression Test
Suite <a href="archive/mono-tests.tar.gz">here</a>
</td>
</tr>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr bgcolor="#DDDDDD">
@@ -148,10 +420,6 @@
* Older Releases:
We provide binaries for older releases until we have packages for the new release.
<table>
<tbody>
<tr bgcolor="#DDDDDD">
+100 -23
View File
@@ -4,6 +4,7 @@
<a href="#gui">Building GUI applications with Mono</a><br>
<a href="#msft">Mono and Microsoft</a><br>
<a href="#platforms">Mono platforms</a><br>
<a href="#compatibility">Compatibility</a></br>
<a href="#pnpproject">Mono and the Portable.NET Project</a><br>
<a href="#webservices">Web Services</a><br>
<a href="#asp">Mono and ASP.NET</a><br>
@@ -287,7 +288,7 @@ A: There are several reasons for this.
Next is compatibility. It is not possible to implement
System.Windows.Forms on top of Gtk+/Qt and have 100% compatibility,
because System.Windows.Forms exposes <i>lots</i> of Win32-isms, such as the
because System.Windows.Forms exposes some Win32-isms, such as the
Win32 message loop. In order to maintain compatibility, Wine must be used,
and this is being done; see the
<a href="/winforms.html">System.Windows.Forms effort page</a>.
@@ -489,6 +490,44 @@ A: Mono requires Unicode versions of Win32 APIs to run,
Win32 libs. This is achieved by inserting -lunimono before
-lkerner32/user32 in the linker's specs file.
<a name="compatibility"></a>
** Compatibility
Q: Can Mono run applications developed with the Microsoft.NET fraemwork?
A: Yes, Mono can run applications developed with the Microsft .NET Framework
on Unix. There are a few caveats to keep in mind: Mono has not
been completed yet, so a few API calls might be missing; And in
some cases the Mono behavior *might* be incorrect.
Q: Will missing API entry points be implemented?
A: Yes, the goal of Mono is to implement precisely the .NET Framework
API (as well as compile-time selectable subsets, for those
interested in a lighter version of Mono).
Q: If the behavior of an API call is different, will you fix it?
A: Yes, we will. But we will need your assistance for this. If you find a bug
in the Mono implementation, please fill a bug report in <a
href="http://bugzilla.ximian.com">http://bugzilla.ximian.com</a>.
Do not assume we know about the problem, we might not, and using the bug tracking
system helps us organize the development process.
Q: Can I develop my applications on Windows, and deploy on a supported
Mono platform (like Linux)?
A: Yes, you can.
As of today, Mono is not 100% finished, so it is sometimes useful
to compile the code with Mono, to find out if your application
depends on unimplemented functionality.
Q: Will applications run out the box with Mono?
A: Sometimes they will. But sometimes a .NET application might invoke
Win32 API calls, or assume certain patterns that are not correct
for cross-platform applications.
<a name="pnpproject"></a>
** Mono and Portable.NET
@@ -501,8 +540,22 @@ A: Most of Mono is being written using C#, with only
It is easier to describe what is unique about Mono:
<ul>
<li> A Just-in-Time compiler engine. This is important for
making your applications fast.
<li> An advanced native-code compilation engine: Both
just-in-time compilation (JIT) and pre-compilation of CIL
bytecodes into native code are supported.
<li> A foundation for code optimization: The new code generator in
Mono builds on the experience of our first JIT engine, and enables
us to implement various advanced compiler optimization
tricks. With an SSA-framework, plenty of new optimizations are possible.
The current list of optimizations are: Peephole postpass,
Branch optimizations, Inline method calls, Constant folding, Constant
propagation, Copy propagation, Dead code elimination, Linear scan
global reg allocation, Conditional moves, Emit per-domain code,
Instruction scheduling, Intrinsic method implementations, Tail
recursion and tail calls, Loop related optimizations, Fast x86 FP
compares, Leaf procedures optimizations
<li> A self-hosting C# compiler written in C#, which is clean, easy
to maintain.
@@ -516,38 +569,43 @@ A: Most of Mono is being written using C#, with only
systems, while the interpreter works on SPARC, StrongARM,
s390 and PowerPC systems.
<li> Supports Linux, Windows and Solaris at this point.
Our new compilation engine is being ported to the PowerPC.
<li> Supports Linux, BSD, Windows and Solaris at this point.
<li> The JIT engine is written using a portable instruction
selector which not only generates good code (we are told
that we are faster than Rotor, but it is hard to tell) but
selector which not only generates good code but
is also the foundation to re-target the JIT engine to other
systems.
The system employed is described in various compiler
books and it is very similar to what is described in the
book that covers LCC, the ANSI C retargetable C compiler.
<li> The JIT engine supports in-lining, constant folding and propagation,
<li> Full support for remoting in the runtime, but the class
libraries are still behind.
<li> Full support for remoting in the runtime.
<li> The C# compiler, the JIT engine and the class libraries are
mature enough that the whole system is self-hosting. This means that
we develop Mono completely with itself at this point.
mature enough that the whole system has been self-hosting
since April 2002. This means that we develop Mono
completely with itself at this point.
<li> We are not yet done, and there is a lot of work left to be
done
By forcing ourselves to use our own code to develop our
tools, we bug fix problems rapidly, and the system is
overall more robust and tested than if we did not.
<li> We have a great community of developers, without which Mono
would not be possible.
<li> We are working on an ahead of time compilation mode to
pre-compile code for the target architecture (this is part
of our new code generation effort).
</ul>
In general, Mono is more mature and complete since it has been used
to develop itself, which is a big motivator for stability and
correctness, while Portable.NET remains pretty much an untested
platform.
Q: I hear Mono keeps changing the P/Invoke API, why?
A: We are just fixing our implementation to be compatible with the
Microsoft implementation. In other words, the Mono P/Invoke API is
more complete when compared to the Portable.NET version, hence
various pieces of software that depend on this extended
functionality fail to work properly with Portable.NET.
<a name="webservices"></a>
** Web Services
@@ -771,6 +829,25 @@ A: Replace the __stdcall attribute with the STDCALL macro, and include this
#define STDCALL __attribute__((stdcall))
#endif
Q: I want to be able to execute Mono binaries, without having to use the "mono"
command. How can I do this?
A: From Carlos Perelló:
<i>I think that the best solution is the binfmt feature with the
wrapper that exists with Debian packages at:
<a href="http://www.debianplanet.org/mono/dists/unstable/main/source/admin/">http://www.debianplanet.org/mono/dists/unstable/main/source/admin/</a>
If you want use it with Big endian machines, you should apply a patch
(<a href="http://carlos.pemas.net/debian/mono/binfmt-detector-cli.c.diff">http://carlos.pemas.net/debian/mono/binfmt-detector-cli.c.diff</a>)
It works really good and lets you use wine also, it reads the .exe file
headers and check if it's a .net executable.
This way you just execute: ./my-cool-mono-application.exe and it works
without the need of any wrapper.</i>
<a name="asp">
** Mono and ASP.NET
@@ -1224,7 +1301,7 @@ A: First some background information.
for the open source Mono platform, nor integration with today's
Mono's rich support of Linux.
The Mono strategy for dealing with these tehcnologies is as
The Mono strategy for dealing with these technologies is as
follows: (1) work around the patent by using a different
implementation techinque that retains the API, but changes the
mechanism; if that is not possible, we would (2) remove the pieces
+136
View File
@@ -107,10 +107,146 @@
</td>
</tr>
</table>
<table border=1>
<tr>
<td colspan="3">
<b><center>In the news</center></b>
</td>
</tr>
<tr>
<td>
<img src="images/netmagazine.png">
</td>
<td>
<a href="http://www.fawcette.com/dotnetmag/2003_TE/magazine/columns/trends/default.asp">May 31st, 2003</a>: CLI integration.
</td>
</tr>
<tr>
<td>
<img src="images/infoworld.png">
</td>
<td>
<a href="http://www.infoworld.com/article/03/05/22/HNmono_1.html">May 22nd, 2003</a>: Mono 1.0 plans.
</td>
</tr>
<tr>
<td>
<img src="images/infoworld.png">
</td>
<td>
<a href="http://www.infoworld.com/article/03/03/14/11stratdev_1.html">Mar 14th, 2003</a>: Whither Mono?
</td>
</tr>
<tr>
<td>
<img src="images/b2.png">
</td>
<td>
<a href="http://www.infoworld.com/article/03/05/22/HNmono_1.html">Dec, 2002</a>: The Penguin takes flight.
</td>
</tr>
</table>
</td>
</tr>
</table>
@item Jun 23rd, 2003: DiaCanvas#, Turkish presentation
http://enver.casdb.com/sunumlar/mono/
@item Jun 17th, 2003: Web Services client; Profiling hooks
Lluis and Gonzalo have checked into CVS the support for web
services in the Mono runtime. This allows Mono to work as a
web services client. We still require a WSDL compiler to
compile the initial stub, but Erik has the beginning of a WSDL
compiler ready and Atsushi has continued work on his
experimental Xml Schema to C# class generator.
As part of this, the Mono Http runtime has been rewritten to
increase reliability, scalability and conformance to the
specs. Also our io-layer has been extended to not have
arbitrary limits. This was done as part of our collaboration
with SourceGear.
Paolo has commited the new pluggable profiling API to the Mono
runtime: now the profiler is built as a module, and a new code
coverage analysis has been checked in (and Zoltan already
added improvements to it).
Mark's Mozilla bindings continue to improve, and we will shortly
migrate the Mono documentation browser to use Mozilla, to take
advantage of the tutorial's use of CSS.
Jackson's work on the IL assembler and Ben on running
regression tests have provided us with a very needed tool in
the Mono toolkit. One of the last missing pieces on the SDK.
On the crypto world, we got Sebastien's certificate viewer
checked into CVS and the crypto code keeps advancing by leaps
and bounds.
Alexandre and Aleksey Work continues on Windows.Forms on top
of Wine and Gtk# (the former for full compatibility, the later
for ease-of-authoring).
Cesar checked in the beginning of the semantic analysis code
for his JScript compiler, and will be working on it full time.
@item Jun 11th, 2003: SourceGear and Ximian announce partnership
Ximian, Inc., the leading provider of desktop and server
solutions enabling enterprise Linux adoption, today announced
that SourceGear Corporation will use Mono\x{2122} Project
technology to offer cross-platform versions of its
products. In addition, the companies have entered into a
development partnership under which Ximian® will provide
custom Mono development to enable delivery of SourceGear
products later this year. As a result, SourceGear will offer
both UNIX and Linux clients for its SourceGear Vault source
code management tool, enabling broader use of its solutions in
mixed-platform development organizations.
<a href="http://www.ximian.com/about_us/press_center/press_releases/index.html?pr=sourcegear">Read more...</a>
Some technical details are available <a
href="http://lists.ximian.com/archives/public/mono-list/2003-June/014334.html">here</a>.
@item May 20th, 2003: OpenLink releases WineLib patches.
OpenLink <a
href="http://lists.ximian.com/archives/public/mono-winforms-list/2003-May/000284.html">announced</a>
the release of Vladimir's work to turn Wine into a library
that can be used dynamically from Mono. This work simplifies
the work on System.Windows.Forms as it is no longer necessary
have a special version of the GC, nor have a stub program.
The patches are available <a
href="http://www.openlinksw.com/mono/">here</a>.
Mono packages for the Linux/s390 are available now in the <a
href="download.html">download page</a>.
@item May 10th, 2003: Eclipse runs on Mono
Today Zoltan Varga announced that he got the <a
href="http://www.eclipse.org">Eclipse IDE</a> running on top
of Mono+<a href="http://www.ikvm.net">IKVM</a>.
A screenshot of Eclipse running with Mono can be found <a
href="images/ikvm-screenshot.png">here</a>
@item May 6th, 2003: Mono 0.24 ships
We have released Mono 0.24 which includes our new code
generation engine. A list of the new features is available <a
href="archive/mono-0.24.html">here</a>.
Packages for Windows, and various Linux distributions are
available on our <a href="download.html">download</a> page.
We are shipping Gtk# and MonoDoc packages for the first time.
@item Apr 21st, 2003: Virtuoso 3.0 ships.
<a href="http://www.openlinksw.com">OpenLink's</a> released
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
MANAGED_CALLS=`gdb -silent $1 -pid $2 << EOF | awk '/.* in \?\? \(\)/ {printf("call print_method_from_ip(%s)\n", $2);}'
set height 0
thread apply all bt
quit
EOF`
gdb -silent $1 -pid $2 << EOF
set height 0
thread apply all bt
$MANAGED_CALLS
quit
EOF
+33 -7
View File
@@ -18,7 +18,7 @@
standard GNOME interfaces for easily creating reusable,
language independent components, controls and compound
documents. This technology is known as <a
href="http://developer.ximian.com/tech/bonobo.html">Bonobo</a>.
href="http://developer.ximian.com/articles/whitepapers/bonobo">Bonobo</a>.
Interfaces to Bonobo exist for C, Perl, Python, and
Java.
@@ -134,25 +134,51 @@
** What makes up Mono?
There are various pieces that will make up Mono:
There are various pieces that make up Mono today:
<ul>
* A C# compiler.
* The Virtual Execution System: that will have the
* The Virtual Execution System: that has the
Just-in-Time compiler, garbage collector, loader,
threading engine.
A byte code interpreter will be provided for quickly
A byte code interpreter is provided for quickly
porting Mono to new systems and debugging the JIT
purposes, but it is not intended to be the ideal
execution environment.
* An implemenation of the .NET class library.
* An implemenation of the .NET class libraries:
Remoting, Reflection, Reflection.Emit, Xml, Xpath,
Xslt, Xml Serialization, Web Services support.
* Visual development tools.
* Cross platform class libraries for data access:
Postgress, MySQL, DB2, TDS, Sybase, Oracle, ODBC and
Gnome's GDA.
* A CIL GCC frontend.
* Unix class libraries: Mono.Posix
* Gnome-specific class libraries: The Gtk# family.
* A code pre-compiler to generate native code ahead of
time.
* Gtk# a toolkit to develop GNOME applications on Unix
and Windows.
* An implementation of the Remoting infrastructure in
.NET
</ul>
Other work-in-progress components:
<ul>
* A VB.NET compiler and JScript compilers are in the works.
* Web services on the server side.
* We are planning to include Remoting.CORBA as part of
Mono standard distribution.
</ul>
** Why use GNOME components?
+1 -1
View File
@@ -17,7 +17,7 @@
easy-to-port runtime engine.
</ul>
We are using the Bohem conservative garbage collector.
We are using the Boehm conservative garbage collector.
The Mono runtime can be used as a stand-alone process, or it
can be <a href="embedded-api">embedded into applications</a> (see
+8
View File
@@ -51,6 +51,14 @@
</tr>
</table>
** Eclipse running with Mono
Zoltan Varga made the Java VM for .NET <a
href="http://www.ikvm.net">IKVM</a> run <a
href="http://www.eclipse.org">Eclipse</a>, the IBM Open Source IDE.
<a href="images/ikvm-screenshot.png"><img src="images/ikvm-screenshot-thumb.png"></a>
** Mono Basic
The Mono Basic compiler ships with the Mono distribution.
+10 -49
View File
@@ -24,7 +24,7 @@
<b>mcs/class/doc/TemplateTest.cs</b>
Save a copy of this file in the appropriate test subdirecty
(see below), and replace all the [text] markers with
(see below), and replace all the {text} markers with
appropriate code. Comments in the template are there to guide
you. You should also look at existing tests to see how other
people have written them.
@@ -41,29 +41,22 @@
the appropriate sub-directory under Test for the class you are
testing.
Once your test class is complete, you need to add it to the
AllTests.cs file in the same directory as your new test. Add a
call to "suite.AddTest()" passing the name of your new test
class's suite property as the parameter. You will see
examples in the AllTests.cs file, so just copy and paste
inside there.
Once all of that is done, you can do a 'make test' from the top mcs
directory. Your test class will be automagically included in the
build and the tests will be run along with all the others.
* Tips on writing Unit tests.
You should look at the NUnit documentation, as it is a
fantastic product, and includes fantastic documentation, but
here are some tips for those of you who are already reading
You should look at the <a href="http://nunit.org">NUnit documentation</a>,
as it is a fantastic product, and includes fantastic documentation,
but here are some tips for those of you who are already reading
this web page.
** Provide an unique error message for Assert()
Include an unique message for each Assert() so that when the assert
fails, it is trivial to locate the failing one. Otherwise, it may be
fails, it is trivial to locate it in the source. Otherwise, it may be
difficult to determine which part of the test is failing. A good way
to ensure unique messages is to use something like #A01, #A02 etc.
@@ -104,43 +97,10 @@
AssertEquals ("A01", myTicks[0], t1.Ticks);
</pre>
** Constructors
When writing your testcase, please make sure to provide a constructor
which takes no arguments:
<pre>
public class DateTimeTest : TestCase
{
public DateTimeTest() : base ("[MonoTests.System.DateTimeTest]") {}
public DateTimeTest (string name): base(name) {}
public static ITest Suite
{
get {
TestSuite suite = new TestSuite ();
return suite;
}
}
}
</pre>
** Namespace
Please keep the namespace within each test directory consistent - all
tests which are referenced in the same AllTests.cs must be in the same
namespace. Of course you can use subnamespaces as you like -
especially for subdirectories of your testsuite.
For instance, if your AllTests.cs is in namespace "MonoTests" and you
have a subdirectory called "System", you can put all the tests in that
dir into namespace "MonoTests.System".
** Test your test with the Microsoft runtime
If possible, try to run your testsuite with the Microsoft runtime on
Windows and make sure all tests in it pass. This is especially
.NET on Windows and make sure all tests in it pass. This is especially
important if you're writing a totally new testcase - without this
check you can never be sure that your testcase contains no bugs ....
@@ -151,9 +111,10 @@
result when run with the Microsoft runtime - either because there is a
bug in their runtime or something is misleading or wrong in their
documentation. In this case, please put a detailed description of the
problem to mcs/class/doc/API-notes and do also report it to the list -
we'll forward this to the Microsoft people from time to time to help
them fix their documentation and runtime.
problem to mcs/class/doc/API-notes and do also report it to the
<a href="mailing-lists">mailing list</a> - we'll forward this to the
Microsoft people from time to time to help them fix their documentation
and runtime.
** Unit tests.
+18 -13
View File
@@ -1,6 +1,9 @@
ROOT=C:/WINNT
CSCRIPT = $(ROOT)/system32/cscript.exe
CSC=csc
ifeq ($(findstring CYGWIN,$(shell uname)),)
CSC=mcs
RUN_MONO=mono
else
CSC=csc /nologo
endif
CORCOMPARE=../../../mcs/tools/corcompare
@@ -106,13 +109,13 @@ mono-beginning.xml: ../mono-beginning.xml
cp ../mono-beginning.xml .
deploy/index.rss: mono-rss.exe ../index
./mono-rss.exe ../index deploy/index.rss
$(RUN_MONO) ./mono-rss.exe ../index deploy/index.rss
mono-rss.exe: mono-rss.cs rss.cs
$(CSC) mono-rss.cs rss.cs
../team: render-team-page.exe team.xml
./render-team-page.exe team.xml "../team"
$(RUN_MONO) ./render-team-page.exe team.xml "../team"
render-team-page.exe: render-team-page.cs
$(CSC) render-team-page.cs
@@ -122,8 +125,8 @@ clean:
push:
cp -f $(NON_HTML_SOURCES) deploy
echo scp -P 2200 -r deploy/* www@www.ximian.com:/web/cvsmodules/mono
(cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh -p 2200' . www@www.ximian.com:/web/cvsmodules/mono )
echo scp -P 2200 -r deploy/* www@www.go-mono.com:/web/cvsmodules/mono
(cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh' . www@www.go-mono.com:/web/cvsmodules/mono )
push2:
scp -r deploy/* primates:public_html/xxx
@@ -132,10 +135,12 @@ $(OBJECTS): $(patsubst deploy/%.html,src/%.src, $(OBJECTS))
#.PRECIOUS: $(patsubst deploy/%.html,src/%.src, $(OBJECTS))
transform.exe: transform.cs
$(CSC) transform.cs
.PRECIOUS: src/%.src
src/%.src: ../% commands makefile template.html.in
src/%.src: ../% commands template.html.in #makefile
perl htmlify $< > $@
.PRECIOUS: ../class-status-%
@@ -144,20 +149,20 @@ src/%.src: ../% commands makefile template.html.in
.PRECIOUS: src/%.html.in
src/%.html.in: src/%.xml $(CORCOMPARE)/transform.js $(CORCOMPARE)/cormissing.xsl
$(CSCRIPT) /nologo $(CORCOMPARE)/transform.js $< $(CORCOMPARE)/cormissing.xsl > $@
src/%.html.in: src/%.xml transform.exe $(CORCOMPARE)/cormissing.xsl
$(RUN_MONO) ./transform.exe $< $(CORCOMPARE)/cormissing.xsl > $@
.PRECIOUS: src/%.xml
src/%.xml: ../../../mcs/class/lib/%.dll $(CORCOMPARE)/CorCompare.exe
$(CORCOMPARE)/CorCompare.exe -x $@ $<
$(RUN_MONO) $(CORCOMPARE)/CorCompare.exe -x $@ $<
src/corlib.xml: ../../../mcs/class/lib/corlib_cmp.dll $(CORCOMPARE)/CorCompare.exe
$(CORCOMPARE)/CorCompare.exe -f corlib -ms mscorlib -x $@ $<
$(RUN_MONO) $(CORCOMPARE)/CorCompare.exe -f corlib -ms mscorlib -x $@ $<
src/System.Security.xml: ../../../mcs/class/lib/System.Security_cmp.dll $(CORCOMPARE)/CorCompare.exe
$(CORCOMPARE)/CorCompare.exe -f System.Security -ms System.Security -x $@ $<
$(RUN_MONO) $(CORCOMPARE)/CorCompare.exe -f System.Security -ms System.Security -x $@ $<
../class-status: ../class-status.in
cp -f $< $@
+59 -4
View File
@@ -12,6 +12,34 @@
<contributors xmlns="http://go-mono.org/team.xsd">
<contributor>
<name>
<first-name>Joel</first-name>
<last-name>Basson</last-name>
</name>
<e-mail>[email protected]</e-mail>
<image>none.png</image>
<location>Cape Town, South Africa</location>
<organization></organization>
<description>External Contributor</description>
<tasks>
<task>System.Windows.Forms Gtk</task>
</tasks>
</contributor>
<contributor>
<name>
@@ -887,13 +915,13 @@
</name>
<e-mail>[email protected].com</e-mail>
<e-mail>justdandy43@hotmail.com</e-mail>
<image>none.png</image>
<location>Columbia, South Carolina, USA</location>
<location>Richmond, Virginia, USA</location>
<organization>Unemployed</organization>
<organization>an insurance company</organization>
<description>Mono hacker</description>
@@ -955,7 +983,7 @@
<image>none.png</image>
<location>São Paulo</location>
<location>São Paulo</location>
<organization>WEBforAll.</organization>
@@ -1382,4 +1410,31 @@
</tasks>
</contributor>
<contributor>
<name>
<first-name>John</first-name>
<last-name>Luke</last-name>
</name>
<e-mail>[email protected]</e-mail>
<image>none.png</image>
<location>Daytona, FL</location>
<organization></organization>
<description>Contributor.</description>
<tasks>
<task>Gtk# Documentation.</task>
</tasks>
</contributor>
</contributors>
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Xml;
using System.Xml.Xsl;
namespace Transform
{
class Transform
{
public static void Main (string [] rgstrArgs)
{
XmlDocument xml = new XmlDocument ();
xml.Load (rgstrArgs [0]);
XslTransform xsl = new XslTransform ();
xsl.Load (rgstrArgs [1]);
xsl.Transform (xml, null, Console.Out);
}
}
}
+7
View File
@@ -27,6 +27,13 @@
* Win32/Wine edition.
Currently (May 21st, 2003) to get the Windows.Forms support
working, you need a Mono installation from CVS, and you need
to install Wine plus the <a
href="http://www.openlinksw.com">OpenLink patch</a>, and
define the environment variable "SWF" (export SWF=1 from your
shell).
<table>
<tr>
<td>
+12 -11
View File
@@ -56,19 +56,20 @@ leave: is simply translated into a branch to the target. If the leave
instruction is inside a finally block (but not inside another handler)
we call the finally handler before we branch to the target.
finally/endfinally: is translated into subroutine ending with a "return"
statement. The subroutine does not save EBP/ESP, because we need access to the
local variables of the enclosing method. We have to use a "call"
instruction to execute such finally handlers. This makes it possible to
execute them inside the stack unwinding code.
finally/endfinally, filter/endfilter: is translated into subroutine ending with
a "return" statement. The subroutine does not save EBP, because we need access
to the local variables of the enclosing method. Its is possible that
instructions inside those handlers modify the stack pointer, thus we save the
stack pointer at the start of the handler, and restore it at the end. We have
to use a "call" instruction to execute such finally handlers. This makes it
also possible to execute them inside the stack unwinding code. The exception
object for filters is passed in a local variable (cfg->exvar).
throw: we first save all regs into a sigcontext struct (we pass the
exception object in register ECX), and then call the stack unwinding
code.
catch handler: receives the exception object in ECX. They store that
object into a local variable, so that rethrow can access the object.
throw: we first save all regs into a sigcontext struct and then call the stack
unwinding code.
catch handler: catch hanlders are always called from the stack unwinding
code. The exception object is passed in a local variable (cfg->exvar).
gcc support for Exceptions
==========================
+349
View File
@@ -0,0 +1,349 @@
Mono JIT porting guide.
Paolo Molaro ([email protected])
* Introduction
This documents describes the process of porting the mono JIT
to a new CPU architecture. The new mono JIT has been designed
to make porting easier though at the same time enable the port
to take full advantage from the new architecture features and
instructions. Knowledge of the mini architecture (described in the
mini-doc.txt file) is a requirement for understanding this guide,
as well as an earlier document about porting the mono interpreter
(available on the web site).
There are six main areas that a port needs to implement to
have a fully-functional JIT for a given architecture:
1) instruction selection
2) native code emission
3) call conventions and register allocation
4) method trampolines
5) exception handling
6) minor helper methods
To take advantage of some not-so-common processor features (for example
conditional execution of instructions as may be found on ARM or ia64), it may
be needed to develop an high-level optimization, but doing so is not a
requirement for getting the JIT to work.
We'll see in more details each of the steps required, note, though,
that a new port may just as well start from a cut&paste of an existing
port to a similar architecture (for example from x86 to amd64, or from
powerpc to sparc).
The architecture specific code is split from the rest of the JIT,
for example the x86 specific code and data is all included in the
following files in the distribution:
mini-x86.h mini-x86.c
inssel-x86.brg
cpu-pentium.md
tramp-x86.c
exceptions-x86.c
I suggest a similar split for other architectures as well.
Note that this document is still incomplete: some sections are only
sketched and some are missing, but the important info to get a port
going is already described.
* Architecture-specific instructions and instruction selection.
The JIT already provides a set of instructions that can be easily
mapped to a great variety of different processor instructions.
Sometimes it may be necessary or advisable to add a new instruction
that represent more closely an instruction in the architecture.
Note that a mini instruction can be used to represent also a short
sequence of CPU low-level instructions, but note that each
instruction represents the minimum amount of code the instruction
scheduler will handle (i.e., the scheduler won't schedule the instructions
that compose the low-level sequence as individual instructions, but just
the whole sequence, as an indivisible block).
New instructions are created by adding a line in the mini-ops.h file,
assigning an opcode and a name. To specify the input and output for
the instruction, there are two different places, depending on the context
in which the instruction gets used.
If the instruction is used in the tree representation, the input and output
types are defined by the BURG rules in the *.brg files (the usual
non-terminals are 'reg' to represent a normal register, 'lreg' to
represent a register or two that hold a 64 bit value, freg for a
floating point register).
If an instruction is used as a low-level CPU instruction, the info
is specified in a machine description file. The description file is
processed by the genmdesc program to provide a data structure that
can be easily used from C code to query the needed info about the
instruction.
As an example, let's consider the add instruction for both x86 and ppc:
x86 version:
add: dest:i src1:i src2:i len:2 clob:1
ppc version:
add: dest:i src1:i src2:i len:4
Note that the instruction takes two input integer registers on both CPU,
but on x86 the first source register is clobbered (clob:1) and the length
in bytes of the instruction differs.
Note that integer adds and floating point adds use different opcodes, unlike
the IL language (64 bit add is done with two instructions on 32 bit architectures,
using a add that sets the carry and an add with carry).
A specific CPU port may assign any meaning to the clob field for an instruction
since the value will be processed in an arch-specific file anyway.
See the top of the existing cpu-pentium.md file for more info on other fields:
the info may or may not be applicable to a different CPU, in this latter case
the info can be ignored.
The code in mini.c together with the BURG rules in inssel.brg, inssel-float.brg
and inssel-long32.brg provides general purpose mappings from the tree representation
to a set of instructions that should be easily implemented in any architecture.
To allow for additional arch-specific functionality, an arch-specific BURG file
can be used: in this file arch-specific instructions can be selected that provide
better performance than the general instructions or that provide functionality
that is needed by the JIT but that cannot be expressed in a general enough way.
As an example, x86 has the special instruction "push" to make it easier to
implement the default call convention (passing arguments on the stack): almost
all the other architectures don't have such an instruction (and don't need it anyway),
so we added a special rule in the inssel-x86.brg file for it.
So, one of the first things needed in a port is to write a cpu-$(arch).md machine
description file and fill it with the needed info. As a start, only a few
instructions can be specified, like the ones required to do simple integer
operations. The default rules of the instruction selector will emit the common
instructions and so we're ready to go for the next step in porting the JIT.
*) Native code emission
Since the first step in porting mono to a new CPU is to port the interpreter,
there should be already a file that allows the emission of binary native code
in a buffer for the architecture. This file should be placed in the
mono/arch/$(arch)/
directory.
The bulk of the code emission happens in the mini-$(arch).c file, in a function
called mono_arch_output_basic_block (). This function takes a basic block, walks the
list of instructions in the block and emits the binary code for each.
Optionally a peephole optimization pass is done on the basic block, but this can be
left for later, when the port actually works.
This function is very simple, there is just a big switch on the instruction opcode
and in the corresponding case the functions or macros to emit the binary native code
are used. Note that in this function the lengths of the instructions are used to
determine if the buffer for the code needs enlarging.
To complete the code emission for a method, a few other functions need
implementing as well:
mono_arch_emit_prolog ()
mono_arch_emit_epilog ()
mono_arch_patch_code ()
mono_arch_emit_prolog () will emit the code to setup the stack frame for a method,
optionally call the callbacks used in profiling and tracing, and move the
arguments to their home location (in a caller-save register if the variable was
allocated to one, or in a stack location if the argument was passed in a volatile
register and wasn't allocated a non-volatile one). caller-save registers used by the
function are saved in the prolog as well.
mono_arch_emit_epilog () will emit the code needed to return from the function,
optionally calling the profiling or tracing callbacks. At this point the basic blocks
or the code that was moved out of the normal flow for the function can be emitted
as well (this is usually done to provide better info for the static branch predictor).
In the epilog, caller-save registers are restored if they were used.
Note that, to help exception handling and stack unwinding, when there is a transition
from managed to unmanaged code, some special processing needs to be done (basically,
saving all the registers and setting up the links in the Last Managed Frame
structure).
When the epilog has been emitted, the upper level code arranges for the buffer of
memory that contains the native code to be copied in an area of executable memory
and at this point, instructions that use relative addressing need to be patched
to have the right offsets: this work is done by mono_arch_patch_code ().
* Call conventions and register allocation
To account for the differences in the call conventions, a few functions need to
be implemented.
mono_arch_allocate_vars () assigns to both arguments and local variables
the offset relative to the frame register where they are stored, dead
variables are simply discarded. The total amount of stack needed is calculated.
mono_arch_call_opcode () is the function that more closely deals with the call
convention on a given system. For each argument to a function call, an instruction
is created that actually puts the argument where needed, be it the stack or a
specific register. This function can also re-arrange th order of evaluation
when multiple arguments are involved if needed (like, on x86 arguments are pushed
on the stack in reverse order). The function needs to carefully take into accounts
platform specific issues, like how structures are returned as well as the
differences in size and/or alignment of managed and corresponding unmanaged
structures.
The other chunk of code that needs to deal with the call convention and other
specifics of a CPU, is the local register allocator, implemented in a function
named mono_arch_local_regalloc (). The local allocator deals with a basic block
at a time and basically just allocates registers for temporary
values during expression evaluation, spilling and unspilling as necessary.
The local allocator needs to take into account clobbering information, both
during simple instructions and during function calls and it needs to deal
with other architecture-specific weirdnesses, like instructions that take
inputs only in specific registers or output only is some.
Some effort will be put later in moving most of the local register allocator to
a common file so that the code can be shared more for similar, risc-like CPUs.
The register allocator does a first pass on the instructions in a block, collecting
liveness information and in a backward pass on the same list performs the
actual register allocation, inserting the instructions needed to spill values,
if necessary.
When this part of code is implemented, some testing can be done with the generated
code for the new architecture. Most helpful is the use of the --regression
command line switch to run the regression tests (basic.cs, for example).
Note that the JIT will try to initialize the runtime, but it may not be able yet to
compile and execute complex code: commenting most of the code in the mini_init()
function in mini.c is needed to let the JIT just compile the regression tests.
Also, using multiple -v switches on the command line makes the JIT dump an
increasing amount of information during compilation.
* Method trampolines
To get better startup performance, the JIT actually compiles a method only when
needed. To achieve this, when a call to a method is compiled, we actually emit a
call to a magic trampoline. The magic trampoline is a function written in assembly
that invokes the compiler to compile the given method and jumps to the newly compiled
code, ensuring the arguments it received are passed correctly to the actual method.
Before jumping to the new code, though, the magic trampoline takes care of patching
the call site so that next time the call will go directly to the method instead of the
trampoline. How does this all work?
mono_arch_create_jit_trampoline () creates a small function that just
preserves the arguments passed to it and adds an additional argument (the method
to compile) before calling the generic trampoline. This small function is called
the specific trampoline, because it is method-specific (the method to compile
is hard-code in the instruction stream).
The generic trampoline saves all the arguments that could get clobbered
and calls a C function that will do two things:
*) actually call the JIT to compile the method
*) identify the calling code so that it can be patched to call directly
the actual method
If the 'this' argument to a method is a boxed valuetype that is passed to
a method that expects just a pointer to the data, an additional unboxing
trampoline will need to be inserted as well.
* Exception handling
Exception handling is likely the most difficult part of the port, as it needs
to deal with unwinding (both managed and unmanaged code) and calling
catch and filter blocks. It also needs to deal with signals, because mono
takes advantage of the MMU in the CPU and of the operation system to
handle dereferences of the NULL pointer. Some of the function needed
to implement the mechanisms are:
mono_arch_get_throw_exception () returns a function that takes an exception object
and invokes an arch-specific function that will enter the exception processing.
To do so, all the relevant registers need to be saved and passed on.
mono_arch_handle_exception () this function takes the exception thrown and
a context that describes the state of the CPU at the time the exception was
thrown. The function needs to implement the exception handling mechanism,
so it makes a search for an handler for the exception and if none is found,
it follows the unhandled exception path (that can print a trace and exit or
just abort the current thread). The difficulty here is to unwind the stack
correctly, by restoring the register state at each call site in the call chain,
calling finally, filters and handler blocks while doing so.
As part of exception handling a couple of internal calls need to be implemented
as well.
ves_icall_get_frame_info () returns info about a specific frame.
mono_jit_walk_stack () walks the stack and calls a callback with info for
each frame found.
ves_icall_get_trace () return an array of StackFrame objects.
** Code generation for filter/finally handlers
Filter and finally handlers are called from 2 different locations:
1.) from within the method containing the exception clauses
2.) from the stack unwinding code
To make this possible we implement them like subroutines, ending with a
"return" statement. The subroutine does not save the base pointer, because we
need access to the local variables of the enclosing method. Its is possible
that instructions inside those handlers modify the stack pointer, thus we save
the stack pointer at the start of the handler, and restore it at the end. We
have to use a "call" instruction to execute such finally handlers.
The MIR code for filter and finally handlers looks like:
OP_START_HANDLER
...
OP_END_FINALLY | OP_ENDFILTER(reg)
OP_START_HANDLER: should save the stack pointer somewhere
OP_END_FINALLY: restores the stack pointers and returns.
OP_ENDFILTER (reg): restores the stack pointers and returns the value in "reg".
** Calling finally/filter handlers
There is a special opcode to call those handler, its called OP_CALL_HANDLER. It
simple emits a call instruction.
Its a bit more complex to call handler from outside (in the stack unwinding
code), because we have to restore the whole context of the method first. After that
we simply emit a call instruction to invoke the handler. Its usually
possible to use the same code to call filter and finally handlers (see
arch_get_call_filter).
** Calling catch handlers
Catch handlers are always called from the stack unwinding code. Unlike finally clauses
or filters, catch handler never return. Instead we simply restore the whole
context, and restart execution at the catch handler.
** Passing Exception objects to catch handlers and filters.
We use a local variable to store exception objects. The stack unwinding code
must store the exception object into this variable before calling catch handler
or filter.
* Minor helper methods
A few minor helper methods are referenced from the arch-independent code.
Some of them are:
*) mono_arch_cpu_optimizations ()
This function returns a mask of optimizations that should be enabled for the
current CPU and a mask of optimizations that should be excluded, instead.
*) mono_arch_regname ()
Returns the name for a numeric register.
*) mono_arch_get_allocatable_int_vars ()
Returns a list of variables that can be allocated to the integer registers
in the current architecture.
*) mono_arch_get_global_int_regs ()
Returns a list of caller-save registers that can be used to allocate variables
in the current method.
*) mono_arch_instrument_mem_needs ()
*) mono_arch_instrument_prolog ()
*) mono_arch_instrument_epilog ()
Functions needed to implement the profiling interface.
* Writing regression tests
Regression tests for the JIT should be written for any bug found in the JIT
in one of the *.cs files in the mini directory. Eventually all the operations
of the JIT should be tested (including the ones that get selected only when
some specific optimization is enabled).
* Platform specific optimizations
An example of a platform-specific optimization is the peephole optimization:
we look at a small window of code at a time and we replace one or more
instructions with others that perform better for the given architecture or CPU.
+24 -26
View File
@@ -10,7 +10,7 @@
..
.TH Mono "Mono 1.0"
.SH NAME
mono \- Mono's code ECMA-CLI code generator (Just-in-Time and Ahead-of-Time)
mono \- Mono's ECMA-CLI native code generator (Just-in-Time and Ahead-of-Time)
.SH SYNOPSIS
.PP
.B mono [options] file [arguments...]
@@ -85,9 +85,11 @@ The following optimizations are implemented:
cmov Conditional moves
shared Emit per-domain code
sched Instruction scheduling
instrins Intrinsic method implementations
intrins Intrinsic method implementations
tailc Tail recursion and tail calls
loop Loop related optimizations
leaf Leaf procedures optimizations
profile Use profiling information
.fi
.Sp
For example, to enable all the optimization but dead code
@@ -95,41 +97,27 @@ elimination and inlining, you can use:
.nf
-O=all,-deadce,-inline
.fi
.SH DEVELOPMENT OPTIONS
.TP
.I "--break method"
Inserts a breakpoint before the method whose name is `method'
(namespace.class:methodname). Use `Main' as method name to insert a
breakpoint on the application's main method.
.TP
.I "--breakonex"
Inserts a breakpoint on exceptions. This allows you to debug your
application with a native debugger when an exception is thrown.
.TP
.I "--coverage"
Performs coverage analysis on the underlying IL code.
.TP
.I "--trace"
Shows method names as they are invoked.
.I "-V", "--version"
Prints JIT version information.
.SH DEVELOPMENT OPTIONS
The following options are used to debug a JITed application. They're
only useful when running the JIT in a debugger:
The following options are used to help when developing a JITed application.
.TP
.I "--debug"
Turns on the debugging mode in the runtime. If an assembly was
compiled with debugging information, it will produce line number
information for stack traces.
.TP
.I "--profile"
.I "--profile[=profiler[:profiler_args]]"
Instructs the runtime to collect profiling information about execution
times and memory allocation, and dump it at the end of the execution.
If a profiler is not specified, the default profiler is used. profiler_args
is a profiler-specific string of options for the profiler itself.
.SH MAINTAINER OPTIONS
.SH JIT MAINTAINER OPTIONS
The maintainer options are only used by those developing the runtime
itself, and not typically of interest to runtime users or developers.
.TP
@@ -167,10 +155,20 @@ compiled. This is used for testing the code generator performance.
.TP
.I "-v", "--verbose"
Increases the verbosity level, each time it is listed, increases the
verbosity level to include more information.
verbosity level to include more information (including, for example,
a disassembly of the native code produced, code selector info etc.).
.TP
.I "-V", "--version"
Prints JIT version information.
.I "--break method"
Inserts a breakpoint before the method whose name is `method'
(namespace.class:methodname). Use `Main' as method name to insert a
breakpoint on the application's main method.
.TP
.I "--breakonex"
Inserts a breakpoint on exceptions. This allows you to debug your
application with a native debugger when an exception is thrown.
.TP
.I "--trace"
Shows method names as they are invoked.
.SH ENVIRONMENT VARIABLES
+481
View File
@@ -0,0 +1,481 @@
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Library General Public License, applies to some
specially designated Free Software Foundation software, and to any
other libraries whose authors decide to use it. You can use it for
your libraries, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the library, or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link a program with the library, you must provide
complete object files to the recipients so that they can relink them
with the library, after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
Our method of protecting your rights has two steps: (1) copyright
the library, and (2) offer you this license which gives you legal
permission to copy, distribute and/or modify the library.
Also, for each distributor's protection, we want to make certain
that everyone understands that there is no warranty for this free
library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
transforming the program into proprietary software. To prevent this,
we have made it clear that any patent must be licensed for everyone's
free use or not licensed at all.
Most GNU software, including some libraries, is covered by the ordinary
GNU General Public License, which was designed for utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to read it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license for some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program with a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License for libraries did not effectively promote software
sharing, because most developers did not use the libraries. We
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
users of those programs of all benefit from the free status of the
libraries themselves. This Library General Public License is intended to
permit developers of non-free programs to use free libraries, while
preserving your freedom as a user of such programs to change the free
libraries that are incorporated in them. (We have not seen how to achieve
this as regards changes in header files, but we have achieved it as regards
changes in the actual functions of the Library.) The hope is that this
will lead to faster development of free libraries.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
General Public License (also called "this License"). Each licensee is
addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also compile or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
c) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
d) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the source code distributed need not include anything that is normally
distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Library General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!
+5
View File
@@ -1,3 +1,8 @@
2003-05-10 Gonzalo Paniagua Javier <[email protected]>
* makefile:
* makefile.gnu: don't use -C when running make.
2003-05-05 Ben Maurer <[email protected]>
* AUTHORS: Added self.
+29
View File
@@ -0,0 +1,29 @@
The Mono code is licensed under various different licenses.
GNU GPL: details avaliable in the file LICENSE.GPL
GNU LGPL: details available in the file LICENSE.LGPL
MIT X11: text available in the file MIT.X11
For your convenience copies of the GNU GPL and GNU LGPL are
located in the file COPYING and COPYING.LIB.
* Class Libraries:
All of the core classes licensed under the terms of
the MIT X11 license.
Third party libraries that we distribute for
convenience reasons are distributed under their own
terms (all of them allow development of proprietary
applications with them).
Third party libraries include: ByteFX.Data,
ICSharpCode.SharpZipLib, Npgsql.
* Mono C# compiler: GNU GPL
* Mono Basic compiler: GNU GPL.
* Various tools in the `tools' directory: GNU GPL.
+15
View File
@@ -0,0 +1,15 @@
Mono compilers and tools.
Copyright (C) 2001, 2002, 2003, Ximian and contributors.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation;
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+15
View File
@@ -0,0 +1,15 @@
Mono class libraries
Copyright (C) Mono project (authors listed in individual ChangeLog entries)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+21
View File
@@ -0,0 +1,21 @@
Copyright (c) 2001, 2002, 2003 Ximian, Inc and the individuals listed
on the ChangeLog entries.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,3 +1,8 @@
2003-05-19 Atsushi Enomoto <[email protected]>
* RdpPattern.cs : Some method name capitalization.
Fixed RdpInterleave.StartTagOpenDeriv() which is logically incorrect.
2003-05-05 Atsushi Enomoto <[email protected]>
* RdpPattern.cs : added RdpAttribute.expandRef(). UnresolvedRef had
@@ -166,12 +166,12 @@ namespace Commons.Xml.Relaxng.Derivative
throw new InvalidOperationException ();
}
internal virtual RdpPattern expandRef (Hashtable defs)
internal protected virtual RdpPattern ExpandRef (Hashtable defs)
{
return this;
}
internal virtual RdpPattern reduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
internal protected virtual RdpPattern ReduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
{
return this;
}
@@ -481,16 +481,16 @@ namespace Commons.Xml.Relaxng.Derivative
}
bool expanded;
internal override RdpPattern expandRef (Hashtable defs)
internal protected override RdpPattern ExpandRef (Hashtable defs)
{
if (!expanded) {
l = l.expandRef (defs);
r = r.expandRef (defs);
l = l.ExpandRef (defs);
r = r.ExpandRef (defs);
}
return this;
}
internal override RdpPattern reduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
internal protected override RdpPattern ReduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
{
if (visited.Contains (this))
return this;
@@ -502,13 +502,13 @@ namespace Commons.Xml.Relaxng.Derivative
return RdpNotAllowed.Instance;
} else if (LValue.PatternType == RngPatternType.Empty) {
result = true;
return RValue.reduceEmptyAndNotAllowed (ref result, visited);
return RValue.ReduceEmptyAndNotAllowed (ref result, visited);
} else if (RValue.PatternType == RngPatternType.Empty) {
result = true;
return LValue.reduceEmptyAndNotAllowed (ref result, visited);
return LValue.ReduceEmptyAndNotAllowed (ref result, visited);
} else {
LValue = LValue.reduceEmptyAndNotAllowed (ref result, visited);
RValue = RValue.reduceEmptyAndNotAllowed (ref result, visited);
LValue = LValue.ReduceEmptyAndNotAllowed (ref result, visited);
RValue = RValue.ReduceEmptyAndNotAllowed (ref result, visited);
return this;
}
}
@@ -532,7 +532,7 @@ namespace Commons.Xml.Relaxng.Derivative
}
}
internal override RdpPattern reduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
internal protected override RdpPattern ReduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
{
if (visited.Contains (this))
return this;
@@ -544,22 +544,22 @@ namespace Commons.Xml.Relaxng.Derivative
return RdpNotAllowed.Instance;
} else if (LValue.PatternType == RngPatternType.NotAllowed) {
result = true;
return RValue.reduceEmptyAndNotAllowed (ref result, visited);
return RValue.ReduceEmptyAndNotAllowed (ref result, visited);
} else if (RValue.PatternType == RngPatternType.NotAllowed) {
result = true;
return LValue.reduceEmptyAndNotAllowed (ref result, visited);
return LValue.ReduceEmptyAndNotAllowed (ref result, visited);
} else if (LValue.PatternType == RngPatternType.Empty &&
RValue.PatternType == RngPatternType.Empty) {
result = true;
return RdpEmpty.Instance;
} else if (RValue.PatternType == RngPatternType.Empty) {
result = true;
RValue = LValue.reduceEmptyAndNotAllowed (ref result, visited);
RValue = LValue.ReduceEmptyAndNotAllowed (ref result, visited);
LValue = RdpEmpty.Instance;
return this;
} else {
LValue = LValue.reduceEmptyAndNotAllowed (ref result, visited);
RValue = RValue.reduceEmptyAndNotAllowed (ref result, visited);
LValue = LValue.ReduceEmptyAndNotAllowed (ref result, visited);
RValue = RValue.ReduceEmptyAndNotAllowed (ref result, visited);
return this;
}
}
@@ -637,7 +637,7 @@ namespace Commons.Xml.Relaxng.Derivative
}
}
internal override RdpPattern reduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
internal protected override RdpPattern ReduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
{
if (visited.Contains (this))
return this;
@@ -648,8 +648,8 @@ namespace Commons.Xml.Relaxng.Derivative
result = true;
return RdpNotAllowed.Instance;
} else {
LValue = LValue.reduceEmptyAndNotAllowed (ref result, visited);
RValue = RValue.reduceEmptyAndNotAllowed (ref result, visited);
LValue = LValue.ReduceEmptyAndNotAllowed (ref result, visited);
RValue = RValue.ReduceEmptyAndNotAllowed (ref result, visited);
return this;
}
}
@@ -667,11 +667,8 @@ namespace Commons.Xml.Relaxng.Derivative
RdpPattern handledL = LValue.StartTagOpenDeriv (name, ns);
RdpPattern handledR = RValue.StartTagOpenDeriv (name, ns);
RdpFlip flipL = new RdpFlip (new RdpBinaryFunction (RdpUtil.Interleave), RValue);
// FIXME: It is not flip in fact, but there are no proper class ;-(
RdpFlip flipR = new RdpFlip (new RdpBinaryFunction (RdpUtil.Interleave), handledR);
RdpPattern choiceL = handledL.ApplyAfter (new RdpApplyAfterHandler (flipL.Apply));
RdpPattern choiceR = LValue.ApplyAfter (new RdpApplyAfterHandler (flipR.Apply));
RdpPattern choiceR = handledR.ApplyAfter (new RdpApplyAfterHandler (LValue.Interleave));
return choiceL.Choice (choiceR);
}
@@ -793,10 +790,10 @@ namespace Commons.Xml.Relaxng.Derivative
RdpPattern child;
bool isExpanded;
internal override RdpPattern expandRef (Hashtable defs)
internal protected override RdpPattern ExpandRef (Hashtable defs)
{
if (!isExpanded)
child = child.expandRef (defs);
child = child.ExpandRef (defs);
return this;
}
@@ -823,7 +820,7 @@ namespace Commons.Xml.Relaxng.Derivative
get { return Child.Nullable; }
}
internal override RdpPattern reduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
internal protected override RdpPattern ReduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
{
if (visited.Contains (this))
return this;
@@ -835,7 +832,7 @@ namespace Commons.Xml.Relaxng.Derivative
} else if (Child.PatternType == RngPatternType.Empty)
return RdpEmpty.Instance;
else {
Child = Child.reduceEmptyAndNotAllowed (ref result, visited);
Child = Child.ReduceEmptyAndNotAllowed (ref result, visited);
return this;
}
}
@@ -899,7 +896,7 @@ namespace Commons.Xml.Relaxng.Derivative
{
}
internal override RdpPattern reduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
internal protected override RdpPattern ReduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
{
if (visited.Contains (this))
return this;
@@ -909,7 +906,7 @@ namespace Commons.Xml.Relaxng.Derivative
result = true;
return RdpNotAllowed.Instance;
} else {
Child = Child.reduceEmptyAndNotAllowed (ref result, visited);
Child = Child.ReduceEmptyAndNotAllowed (ref result, visited);
return this;
}
}
@@ -1002,7 +999,7 @@ namespace Commons.Xml.Relaxng.Derivative
set { except = value; }
}
internal override RdpPattern reduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
internal protected override RdpPattern ReduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
{
if (visited.Contains (this))
return this;
@@ -1012,7 +1009,7 @@ namespace Commons.Xml.Relaxng.Derivative
result = true;
return new RdpData (this.Datatype, this.ParamList);
} else {
except = except.reduceEmptyAndNotAllowed (ref result, visited);
except = except.ReduceEmptyAndNotAllowed (ref result, visited);
return this;
}
}
@@ -1106,16 +1103,16 @@ namespace Commons.Xml.Relaxng.Derivative
}
bool isExpanded;
internal override RdpPattern expandRef (Hashtable defs)
internal protected override RdpPattern ExpandRef (Hashtable defs)
{
if (!isExpanded) {
isExpanded = true;
children = children.expandRef (defs);
children = children.ExpandRef (defs);
}
return this;
}
internal override RdpPattern reduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
internal protected override RdpPattern ReduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
{
if (visited.Contains (this))
return this;
@@ -1125,7 +1122,7 @@ namespace Commons.Xml.Relaxng.Derivative
result = true;
return RdpNotAllowed.Instance;
} else {
children = children.reduceEmptyAndNotAllowed (ref result, visited);
children = children.ReduceEmptyAndNotAllowed (ref result, visited);
return this;
}
}
@@ -1191,22 +1188,22 @@ namespace Commons.Xml.Relaxng.Derivative
}
bool isExpanded;
internal override RdpPattern expandRef (Hashtable defs)
internal protected override RdpPattern ExpandRef (Hashtable defs)
{
if (!isExpanded) {
isExpanded = true;
children = children.expandRef (defs);
children = children.ExpandRef (defs);
}
return this;
}
internal override RdpPattern reduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
internal protected override RdpPattern ReduceEmptyAndNotAllowed (ref bool result, Hashtable visited)
{
if (visited.Contains (this))
return this;
visited.Add (this, this);
children = children.reduceEmptyAndNotAllowed (ref result, visited);
children = children.ReduceEmptyAndNotAllowed (ref result, visited);
return this;
}
@@ -1,3 +1,21 @@
2003-05-19 Atsushi Enomoto <[email protected]>
* RelaxngReader.cs :
+ Now skips immaterial content correctly.
+ Removed MoveToContent().
+ Trimming attribute values and names.
+ Fixed ReadNameClassChoice(), ReadNameClassExcept(),
ReadPatternExcept (). They require one or more contents.
+ QName resolver fix.
+ ReadListPattern() failed to read actual content.
* RelaxngValidatingReader.cs :
+ Fixed incorrect error message.
+ Fixed incorrect attribute namespace handling.
* RngGrammar.cs : Some simplification stuff fix.
Support for illegal recursion check.
* RngNameClass.cs : fixed RngNsName ctor() (argument not passed).
* RngPattern.cs : fixed ParentRef.Compile() (was treated same as Ref).
2003-05-05 Atsushi Enomoto <[email protected]>
* RelaxngReader.cs : ReadExternalRef() hadn't resolved base uri.
@@ -15,7 +15,20 @@ namespace Commons.Xml.Relaxng
{
public class RelaxngReader : XmlDefaultReader
{
// static members.
static RngPattern relaxngGrammar;
static XmlReader relaxngXmlReader;
static RelaxngReader ()
{
// relaxngXmlReader = new XmlTextReader ("relaxng.rng");
// relaxngGrammar = RngPattern.Read (relaxngXmlReader);
}
public static string RngNS = "http://relaxng.org/ns/structure/1.0";
// public static RngPattern RelaxngGrammar {
// get { return relaxngGrammar; }
// }
// fields
Stack nsStack = new Stack ();
@@ -28,6 +41,7 @@ namespace Commons.Xml.Relaxng
}
public RelaxngReader (XmlReader reader, string ns)
// : base (reader == relaxngXmlReader ? reader : new RelaxngValidatingReader (reader, relaxngGrammar))
: base (reader)
{
nsStack.Push (ns == null ? "" : ns);
@@ -41,10 +55,14 @@ namespace Commons.Xml.Relaxng
// public
public override bool Read ()
{
bool skipRead = false;
bool b = false;
bool loop = true;
do {
b = Reader.Read ();
if (!skipRead)
b = Reader.Read ();
else
skipRead = false;
switch (NodeType) {
case XmlNodeType.ProcessingInstruction:
case XmlNodeType.Comment:
@@ -61,9 +79,11 @@ namespace Commons.Xml.Relaxng
break;
default:
if (NamespaceURI != RngNS) {
continue;
Reader.Skip ();
skipRead = true;
}
loop = false;
else
loop = false;
break;
}
} while (b && loop);
@@ -72,12 +92,12 @@ namespace Commons.Xml.Relaxng
case XmlNodeType.Element:
if (!IsEmptyElement) {
if (MoveToAttribute ("ns"))
nsStack.Push (Value);
nsStack.Push (Value.Trim ());
else
nsStack.Push (nsStack.Peek ());
if (MoveToAttribute ("datatypeLibrary"))
datatypeLibraryStack.Push (Value);
datatypeLibraryStack.Push (Value.Trim ());
else
datatypeLibraryStack.Push (datatypeLibraryStack.Peek ());
MoveToElement ();
@@ -91,6 +111,7 @@ namespace Commons.Xml.Relaxng
return b;
}
/*
public override XmlNodeType MoveToContent ()
{
MoveToElement ();
@@ -109,6 +130,7 @@ namespace Commons.Xml.Relaxng
}
return NodeType;
}
*/
// Properties
@@ -144,7 +166,7 @@ namespace Commons.Xml.Relaxng
RngStart s = new RngStart ();
expect ("start");
if (MoveToAttribute ("combine")) {
s.Combine = Value;
s.Combine = Value.Trim ();
if (s.Combine != "choice" && s.Combine != "interleave")
throw new RngException ("Invalid combine attribute: " + s.Combine);
}
@@ -156,11 +178,17 @@ namespace Commons.Xml.Relaxng
return s;
}
private string GetSpaceStrippedAttribute (string name)
{
string v = GetAttribute (name);
return v != null ? v.Trim () : null;
}
public RngDefine ReadDefine ()
{
RngDefine def = new RngDefine ();
expect ("define");
def.Name = GetAttribute ("name");
def.Name = GetSpaceStrippedAttribute ("name");
Read ();
while (NodeType == XmlNodeType.Element)
@@ -173,8 +201,8 @@ namespace Commons.Xml.Relaxng
{
RngParam p = new RngParam ();
expect ("param");
p.Name = GetAttribute ("name");
p.Value = ReadString ();
p.Name = GetSpaceStrippedAttribute ("name");
p.Value = ReadString ().Trim ();
expectEnd ("param");
return p;
}
@@ -197,7 +225,7 @@ namespace Commons.Xml.Relaxng
public RngName ReadNameClassName ()
{
string name = ReadString ();
string name = ReadString ().Trim ();
RngName rName = resolvedName (name);
expectEnd ("name");
return rName;
@@ -227,7 +255,7 @@ namespace Commons.Xml.Relaxng
public RngNsName ReadNameClassNsName ()
{
RngNsName nn = new RngNsName ();
RngNsName nn = new RngNsName (this.NS);
if (!IsEmptyElement) {
Read ();
if (NodeType == XmlNodeType.EndElement) {
@@ -247,8 +275,16 @@ namespace Commons.Xml.Relaxng
public RngNameChoice ReadNameClassChoice ()
{
RngNameChoice nc = new RngNameChoice ();
while (NodeType == XmlNodeType.EndElement)
if (IsEmptyElement)
throw new RngException ("Name choice must have at least one name class.");
Read ();
while (NodeType != XmlNodeType.EndElement) {
nc.Children.Add (ReadNameClass ());
}
if (nc.Children.Count == 0)
throw new RngException ("Name choice must have at least one name class.");
expectEnd ("choice");
return nc;
}
@@ -256,8 +292,15 @@ namespace Commons.Xml.Relaxng
public RngExceptNameClass ReadNameClassExcept ()
{
RngExceptNameClass x = new RngExceptNameClass ();
while (NodeType == XmlNodeType.EndElement)
if (IsEmptyElement)
throw new RngException ("Name choice must have at least one name class.");
Read ();
while (NodeType != XmlNodeType.EndElement)
x.Names.Add (ReadNameClass ());
if (x.Names.Count == 0)
throw new RngException ("Name choice must have at least one name class.");
expectEnd ("except");
return x;
}
@@ -330,8 +373,14 @@ namespace Commons.Xml.Relaxng
public RngExcept ReadPatternExcept ()
{
RngExcept x = new RngExcept ();
while (NodeType == XmlNodeType.EndElement)
if (IsEmptyElement)
throw new RngException ("'except' must have at least one pattern.");
Read ();
while (NodeType != XmlNodeType.EndElement)
x.Patterns.Add (ReadPattern ());
if (x.Patterns.Count == 0)
throw new RngException ("'except' must have at least one pattern.");
expectEnd ("except");
return x;
}
@@ -340,7 +389,7 @@ namespace Commons.Xml.Relaxng
{
RngInclude i = new RngInclude ();
expect ("include");
string href = GetAttribute ("href");
string href = GetSpaceStrippedAttribute ("href");
i.Href = Util.ResolveUri (BaseURI, href);
if (!IsEmptyElement) {
Read ();
@@ -394,7 +443,7 @@ namespace Commons.Xml.Relaxng
private RngName resolvedName (string nameSpec)
{
int colonAt = nameSpec.IndexOf (':');
string prefix = (colonAt < 0) ? "" : nameSpec.Substring (0, colonAt - 1);
string prefix = (colonAt < 0) ? "" : nameSpec.Substring (0, colonAt);
string local = (colonAt < 0) ? nameSpec : nameSpec.Substring (colonAt + 1, nameSpec.Length - colonAt - 1);
string uri = NS;
@@ -412,7 +461,7 @@ namespace Commons.Xml.Relaxng
// try to get name from attribute.
if (MoveToAttribute ("name")) {
el.NameClass = resolvedName (Value);
el.NameClass = resolvedName (Value.Trim ());
}
MoveToElement ();
Read ();
@@ -435,7 +484,7 @@ namespace Commons.Xml.Relaxng
// try to get name from attribute.
if (MoveToAttribute ("name"))
attr.NameClass = resolvedName (Value);
attr.NameClass = resolvedName (Value.Trim ());
MoveToElement ();
if (!IsEmptyElement) {
@@ -467,7 +516,7 @@ namespace Commons.Xml.Relaxng
{
RngRef r = new RngRef ();
expect ("ref");
r.Name = GetAttribute ("name");
r.Name = GetSpaceStrippedAttribute ("name");
if (!IsEmptyElement) {
Read ();
expectEnd ("ref");
@@ -481,7 +530,7 @@ namespace Commons.Xml.Relaxng
{
RngExternalRef r = new RngExternalRef ();
expect ("externalRef");
string href = GetAttribute ("href");
string href = GetSpaceStrippedAttribute ("href");
r.Href = Util.ResolveUri (BaseURI, href);
r.NSContext = NS;
if (!IsEmptyElement) {
@@ -497,7 +546,7 @@ namespace Commons.Xml.Relaxng
{
RngParentRef r = new RngParentRef ();
expect ("parentRef");
r.Name = GetAttribute ("name");
r.Name = GetSpaceStrippedAttribute ("name");
if (!IsEmptyElement) {
Read ();
expectEnd ("parentRef");
@@ -538,7 +587,7 @@ namespace Commons.Xml.Relaxng
RngData data = new RngData ();
expect ("data");
data.Type = GetAttribute ("type");
data.Type = GetSpaceStrippedAttribute ("type");
data.DatatypeLibrary = DatatypeLibrary;
if (!IsEmptyElement) {
@@ -560,14 +609,15 @@ namespace Commons.Xml.Relaxng
RngValue v = new RngValue ();
expect ("value");
if (MoveToAttribute ("type")) {
v.Type = Value;
v.Type = Value.Trim ();
v.DatatypeLibrary = DatatypeLibrary;
} else {
v.Type = "token";
v.DatatypeLibrary = "";
}
v.Namespace = GetAttribute ("ns");
v.Value = ReadString ();
v.Namespace = GetSpaceStrippedAttribute ("ns");
MoveToElement ();
v.Value = ReadString ().Trim ();
expectEnd ("value");
return v;
@@ -576,8 +626,8 @@ namespace Commons.Xml.Relaxng
public RngList ReadListPattern ()
{
RngList list = new RngList ();
expect ("list");
Read ();
ReadPatterns (list);
expectEnd ("list");
return list;
@@ -73,19 +73,21 @@ namespace Commons.Xml.Relaxng
vState = vState.StartTagOpenDeriv (
reader.LocalName, reader.NamespaceURI);
if (vState.PatternType == RngPatternType.NotAllowed)
throw createValidationError ("Invalid start tag found. Name = {0}{1}");
throw createValidationError (String.Format ("Invalid start tag found. LocalName = {0}, NS = {1}. ", reader.LocalName, reader.NamespaceURI));
// AttsDeriv equals to for each AttDeriv
if (reader.AttributeCount > 0) {
string elementNS = reader.NamespaceURI;
reader.MoveToFirstAttribute ();
do {
if (reader.Name.IndexOf ("xml:") == 0 || reader.Name.IndexOf ("xmlns:") == 0 || reader.Name == "xmlns")
continue;
prevState = vState;
vState = vState.AttDeriv (reader.LocalName, reader.NamespaceURI, reader.GetAttribute (reader.Name));
string attrNS = reader.NamespaceURI == "" ? elementNS : reader.NamespaceURI;
vState = vState.AttDeriv (reader.LocalName, attrNS, reader.GetAttribute (reader.Name));
if (vState.PatternType == RngPatternType.NotAllowed)
throw createValidationError (String.Format ("Invalid attribute found. Name = {0} ", reader.Name));
throw createValidationError (String.Format ("Invalid attribute found. LocalName = {0}, NS = {1}. ", reader.LocalName, reader.NamespaceURI));
} while (reader.MoveToNextAttribute ());
}
MoveToElement ();
@@ -94,7 +96,7 @@ namespace Commons.Xml.Relaxng
prevState = vState;
vState = vState.StartTagCloseDeriv ();
if (vState.PatternType == RngPatternType.NotAllowed)
throw createValidationError (String.Format ("Invalid start tag closing found. Name = {0} ", reader.Name));
throw createValidationError (String.Format ("Invalid start tag closing found. LocalName = {0}, NS = {1}. ", reader.LocalName, reader.NamespaceURI));
// if it is empty, then redirect to EndElement
if (reader.IsEmptyElement)
@@ -105,14 +107,14 @@ namespace Commons.Xml.Relaxng
prevState = vState;
vState = vState.EndTagDeriv ();
if (vState.PatternType == RngPatternType.NotAllowed)
throw createValidationError (String.Format ("Invalid end tag found. Name = {0} ", reader.Name));
throw createValidationError (String.Format ("Invalid end tag found. LocalName = {0}, NS = {1}. ", reader.LocalName, reader.NamespaceURI));
break;
case XmlNodeType.CDATA:
case XmlNodeType.Text:
prevState = vState;
vState = vState.TextDeriv (this.Value);
if (vState.PatternType == RngPatternType.NotAllowed)
throw createValidationError (String.Format ("Validation error. Text value = {0} ", reader.Value));
throw createValidationError (String.Format ("Invalid text found. Text value = {0} ", reader.Value));
break;
}
@@ -13,11 +13,11 @@ using System.IO;
using System.Net;
using System.Xml;
using Commons.Xml.Relaxng.Derivative;
using System.Xml.Serialization;
//using System.Xml.Serialization;
namespace Commons.Xml.Relaxng
{
[XmlRoot (ElementName="grammar", Namespace="http://relaxng.org/ns/structure/1.0")]
// [XmlRoot (ElementName="grammar", Namespace="http://relaxng.org/ns/structure/1.0")]
public class RngGrammar : RngPattern
{
// field
@@ -35,13 +35,23 @@ namespace Commons.Xml.Relaxng
// compile cache fields.
Hashtable assembledDefs = new Hashtable ();
RdpPattern assembledStart;
RngPattern assembledStart;
RdpPattern compiledStart;
Hashtable includedUris = new Hashtable ();
RngGrammar parentGrammar;
ArrayList includedGrammars;
Hashtable refPatterns = new Hashtable (); // key = RdpPattern of assembledDefs
// only for checkRecursion()
Hashtable checkedDefs = new Hashtable ();
// this should be checked after its compilation finished to complete
// missing-at-the-tracking patterns (especially of parent grammars).
// key = RdpPattern, value = ArrayList of unresolvedPatterns.
Hashtable unresolvedPatternsTable = new Hashtable ();
ArrayList unresolvedPatterns = new ArrayList ();
// contents key = RdpElement and value = name of the parent define.
private Hashtable ElementDefMap = new Hashtable ();
@@ -51,27 +61,27 @@ namespace Commons.Xml.Relaxng
{
}
[XmlIgnore]
// [XmlIgnore]
public override RngPatternType PatternType {
get { return RngPatternType.Grammar; }
}
[XmlElement("start")]
// [XmlElement("start")]
public IList Starts {
get { return starts; }
}
[XmlElement("define")]
// [XmlElement("define")]
public IList Defines {
get { return defs; }
}
[XmlElement("include")]
// [XmlElement("include")]
public IList Includes {
get { return includes; }
}
[XmlElement("div")]
// [XmlElement("div")]
public IList Divs {
get { return divs; }
}
@@ -105,32 +115,25 @@ namespace Commons.Xml.Relaxng
// see RELAX NG 4.17.
assembleCombine ();
#if false
// Collect defines whose child is element.
foreach (string key in assembledDefs.Keys) {
RdpElement el = assembledDefs [key] as RdpElement;
if (el != null)
this.ElementDefMap.Add (el, assembledDefs [key]);
}
#endif
compiledStart = assembledStart.Compile (this);
// Assemble all define components into top grammar and
// return start patterns for descendant grammars.
// see RELAX NG 4.18.
collectGrammars ();
if (parentGrammar != null)
return assembledStart;
return assembledStart.Compile (this);
// 4.19 (a) remove non-reachable defines
// 4.19 (b) check illegal recursion
checkRecursion (compiledStart, 0);
// 4.19 (c) expandRef
startPattern = assembledStart.expandRef (assembledDefs);
startPattern = compiledStart.ExpandRef (assembledDefs);
// 4.20,21 reduce notAllowed and empty.
bool b;
do {
b = false;
startPattern = startPattern.reduceEmptyAndNotAllowed (ref b, new Hashtable ());
startPattern = startPattern.ReduceEmptyAndNotAllowed (ref b, new Hashtable ());
} while (b);
Hashtable ht = new Hashtable ();
@@ -144,16 +147,93 @@ namespace Commons.Xml.Relaxng
return startPattern;
}
private void checkRecursion (RdpPattern p, int depth)
{
RdpAbstractBinary binary = p as RdpAbstractBinary;
if (binary != null) {
// choice, interleave, group
checkRecursion (binary.LValue, depth);
checkRecursion (binary.RValue, depth);
return;
}
RdpAbstractSingleContent single = p as RdpAbstractSingleContent;
if (single != null) {
checkRecursion (single.Child, depth);
return;
}
switch (p.PatternType) {
case RngPatternType.Ref:
// get checkRecursionDepth from table.
int checkRecursionDepth = -1;
object checkedDepth = checkedDefs [p];
if (checkedDepth != null)
checkRecursionDepth = (int) checkedDepth;
// get refPattern
RdpUnresolvedRef pref = p as RdpUnresolvedRef;
RngGrammar target = pref.IsParentRef ? parentGrammar : this;
RdpPattern refPattern = target.assembledDefs [pref.Name] as RdpPattern;
if (refPattern == null)
throw new RngException ("No matching define found for " + pref.Name);
if (checkRecursionDepth == -1) {
checkedDefs [p] = depth;
checkRecursion (refPattern, depth);
checkedDefs [p] = -2;
}
else if (depth == checkRecursionDepth)
throw new RngException (String.Format ("Detected illegal recursion. Ref name is {0}.", pref.Name));
break;
case RngPatternType.Attribute:
checkRecursion (((RdpAttribute) p).Children, depth);
break;
case RngPatternType.DataExcept:
checkRecursion (((RdpDataExcept) p).Except, depth);
break;
case RngPatternType.Element:
RdpElement el = p as RdpElement;
checkRecursion (el.Children, depth + 1); // +1
break;
case RngPatternType.List:
checkRecursion (((RdpList) p).Child, depth);
break;
}
}
private void completeReference ()
{
foreach (RdpUnresolvedRef pref in this.unresolvedPatterns) {
RdpPattern defP = assembledDefs [pref.Name] as RdpPattern;
ArrayList al = refPatterns [defP] as ArrayList;
if (al == null) {
al = new ArrayList ();
refPatterns [defP] = al;
}
al.Add (pref);
}
}
private void collectGrammars ()
{
// collect ref and parentRef for each define.
includedGrammars = (parentGrammar != null) ?
parentGrammar.includedGrammars : new ArrayList ();
checkReferences (assembledStart);
// FIXME: This should be assembledStart.
checkReferences (compiledStart);
completeReference ();
Hashtable ht = assembledDefs.Clone () as Hashtable;
foreach (string name in ht.Keys) {
checkReferences (assembledDefs [name] as RdpPattern);
RdpPattern p = (RdpPattern) assembledDefs [name];
this.unresolvedPatternsTable [p] = unresolvedPatterns;
checkReferences (p);
completeReference ();
}
// If it is child of any other pattern:
@@ -189,6 +269,7 @@ namespace Commons.Xml.Relaxng
pref.Name = newName;
break;
}
idx++;
}
}
@@ -215,13 +296,15 @@ namespace Commons.Xml.Relaxng
RngGrammar target = pref.IsParentRef ? parentGrammar : this;
RdpPattern defP = target.assembledDefs [pref.Name] as RdpPattern;
if (defP == null)
throw new RngException ("No matching define found for " + pref.Name);
ArrayList al = target.refPatterns [defP] as ArrayList;
if (al == null) {
al = new ArrayList ();
target.refPatterns [defP] = al;
target.unresolvedPatterns.Add (p);
else {
ArrayList al = target.refPatterns [defP] as ArrayList;
if (al == null) {
al = new ArrayList ();
target.refPatterns [defP] = al;
}
al.Add (p);
}
al.Add (p);
break;
case RngPatternType.Attribute:
@@ -271,6 +354,93 @@ namespace Commons.Xml.Relaxng
}
}
#if false
// remove ref and parentRef.
// add new defines for each elements.
private void checkReferences (RngPattern p)
{
RngBinaryContentPattern binary =
p as RngBinaryContentPattern;
if (binary != null) {
// choice, interleave, group
foreach (RngPattern cp in binary.Patterns)
checkReferences (cp);
return;
}
RngSingleContentPattern single =
p as RngSingleContentPattern;
if (single != null) {
// list, element, oneOrMore, zeroOrMore, optional, mixed
foreach (RngPattern cp in single.Patterns)
checkReferences (cp);
return;
}
switch (p.PatternType) {
case RngPatternType.Ref:
RdpUnresolvedRef pref = p as RdpUnresolvedRef;
RngGrammar target = pref.IsParentRef ? parentGrammar : this;
RdpPattern defP = target.assembledDefs [pref.Name] as RdpPattern;
if (defP == null)
throw new RngException ("No matching define found for " + pref.Name);
ArrayList al = target.refPatterns [defP] as ArrayList;
if (al == null) {
al = new ArrayList ();
target.refPatterns [defP] = al;
}
al.Add (p);
break;
case RngPatternType.Attribute:
checkReferences (((RngAttribute) p).Pattern);
break;
case RngPatternType.DataExcept:
foreach (RngPattern cp in ((RngData) p).Except.Patterns)
checkReferences (cp);
break;
case RngPatternType.Element:
RngElement el = p as RngElement;
checkReferences (el.Children);
string name = ElementDefMap [el] as string;
if (name == null) {
// add new define
int idx = 0;
string newName = "element0";
if (el.NameClass is RngName)
newName = ((RngName) el.NameClass).LocalName;
while (true) {
if (assembledDefs [newName] == null) {
assembledDefs.Add (newName, el.Children);
break;
}
newName = "element" + ++idx;
}
}
// Even though the element is replaced with ref,
// derivative of ref is RdpElement in fact...
break;
case RngPatternType.List:
checkReferences (((RdpList) p).Child);
break;
case RngPatternType.Empty:
case RngPatternType.NotAllowed:
case RngPatternType.Text:
case RngPatternType.Value:
break;
//case RngPatternType.ExternalRef:
//case RngPatternType.Include:
// Mixed, Optional, ZeroOrMore are already removed.
// Choice, Group, Interleave, OneOrMore are already proceeded.
}
}
#endif
// Assemble combines.
private void assembleCombine ()
{
@@ -300,17 +470,23 @@ namespace Commons.Xml.Relaxng
// assemble starts and defines with "combine" attribute.
// 3assemble starts.
// 3.assemble starts.
if (starts.Count == 0)
throw new RngException ("grammar must have at least one start component.");
assembledStart = ((RngStart)starts [0]).Compile (this);
assembledStart = ((RngStart)starts [0]).Pattern;
for (int i=1; i<starts.Count; i++) {
RdpPattern p2 = ((RngStart) starts [i])
.Compile (this);
if (combineStart == "interleave")
assembledStart = new RdpInterleave (assembledStart, p2);
else
assembledStart = new RdpChoice (assembledStart, p2);
RngPattern p2 = ((RngStart) starts [i]).Pattern;;
if (combineStart == "interleave") {
RngInterleave intlv = new RngInterleave ();
intlv.Patterns.Add (assembledStart);
intlv.Patterns.Add (p2);
assembledStart = intlv;
} else {
RngChoice c = new RngChoice ();
c.Patterns.Add (assembledStart);
c.Patterns.Add (p2);
assembledStart = c;
}
}
// 4.assemble defines
@@ -71,8 +71,9 @@ namespace Commons.Xml.Relaxng
{
string ns;
RngExceptNameClass except;
public RngNsName ()
public RngNsName (string ns)
{
this.ns = ns;
}
public override RdpNameClass Compile (RngGrammar g)
@@ -630,12 +630,12 @@ namespace Commons.Xml.Relaxng
throw new InvalidOperationException ();
}
internal override RdpPattern expandRef (Hashtable defs)
internal protected override RdpPattern ExpandRef (Hashtable defs)
{
RdpPattern target = (RdpPattern) defs [this.name];
if (target == null)
throw new RngException ("Target definition " + name + " not found.");
return target.expandRef (defs);
return target.ExpandRef (defs);
}
}
@@ -679,7 +679,7 @@ namespace Commons.Xml.Relaxng
internal protected override RdpPattern Compile (RngGrammar grammar)
{
IsCompiled = false;
return new RdpUnresolvedRef (name, false);
return new RdpUnresolvedRef (name, true);
}
public string Name {
@@ -1,3 +1,10 @@
2003-05-13 Martin Willemoes Hansen <[email protected]>
* makefile.gnu: Fixed name of assembly was changed
from Mono.Xml.Relaxng to
Commons.Xml.Relaxng.
* RdpPatternTests.cs, RelaxngReaderTests.cs:
Removed Assertion. prefixes and made them inherit from Assertion.
2003-04-29 Atsushi Enomoto <[email protected]>
* Started.
@@ -1,12 +1,3 @@
--target library
-o Mono.Xml.Relaxng_test.dll
--noconfig
-r ../../lib/corlib.dll
-r ../../lib/System.dll
-r ../../lib/System.Xml.dll
-r ../../lib/Mono.Xml.Relaxng.dll
-r ../../lib/System.EnterpriseServices.dll
-r ../../../nunit20/NUnit.Framework.dll
Commons.Xml.Relaxng/RdpPatternTests.cs
Commons.Xml.Relaxng/RelaxngReaderTests.cs
Commons.Xml.Relaxng/RelaxngValidatingReaderTests.cs
RdpPatternTests.cs
RelaxngReaderTests.cs
RelaxngValidatingReaderTests.cs
@@ -17,7 +17,7 @@ using NUnit.Framework;
namespace MonoTests.Commons.Xml.Relaxng
{
[TestFixture]
public class RdpPatternTests
public class RdpPatternTests : Assertion
{
RelaxngValidatingReader reader;
RdpPattern result;
@@ -31,7 +31,7 @@ namespace MonoTests.Commons.Xml.Relaxng
private void AssertPattern (string s, RngPatternType expected, RdpPattern p)
{
Assertion.AssertEquals (s, expected, p.PatternType);
AssertEquals (s, expected, p.PatternType);
}
[Test]
@@ -16,7 +16,7 @@ using NUnit.Framework;
namespace MonoTests.Commons.Xml.Relaxng
{
[TestFixture]
public class RelaxngReaderTests
public class RelaxngReaderTests : Assertion
{
RelaxngReader reader;
@@ -36,7 +36,7 @@ namespace MonoTests.Commons.Xml.Relaxng
loadGrammarFromUrl ("XmlFiles/SimpleElementPattern1.rng");
RngPattern p = reader.ReadPattern ();
Assertion.AssertEquals (RngPatternType.Element, p.PatternType);
AssertEquals (RngPatternType.Element, p.PatternType);
}
/*
@@ -46,7 +46,7 @@ namespace MonoTests.Commons.Xml.Relaxng
loadGrammarFromUrl ("XmlFiles/relaxng.rng");
RngPattern p = reader.ReadPattern ();
Assertion.AssertEquals (RngPatternType.Grammar, p.PatternType);
AssertEquals (RngPatternType.Grammar, p.PatternType);
}
*/
@@ -1,13 +1,14 @@
topdir = ../../..
LIBRARY = Mono.Xml.Relaxng_test.dll
LIBRARY = Commons.Xml.Relaxng_test.dll
LIB_LIST = Mono.Xml.Relaxng_test.args
LIB_LIST = Commons.Xml.Relaxng_test.args
LIB_FLAGS = \
-r $(topdir)/class/lib/corlib.dll \
-r $(topdir)/class/lib/System.dll \
-r $(topdir)/class/lib/Mono.Xml.Relaxng.dll \
-r $(topdir)/nunit20/NUnit.Framework.dll
-r $(topdir)/class/lib/System.Xml.dll \
-r $(topdir)/class/lib/Commons.Xml.Relaxng.dll \
-r $(topdir)/class/lib/NUnit.Framework.dll
ifdef SUBDIR
USE_SOURCE_RULES=1
@@ -18,11 +19,11 @@ endif
include $(topdir)/class/library.make
NUNITCONSOLE=$(topdir)/nunit20/nunit-console.exe
MONO_PATH = $(topdir)/nunit20:.
MONO_PATH = $(topdir)/nunit20:$(topdir)/class/lib:.
test: $(LIBRARY) run_test
.PHONY: run_test
run_test:
-MONO_PATH=$(MONO_PATH) mono --debug $(NUNITCONSOLE) Mono.Xml.Relaxng_test.dll
-MONO_PATH=$(MONO_PATH) mono --debug $(NUNITCONSOLE) $(LIBRARY)
+4
View File
@@ -1,3 +1,7 @@
2003-06-09 Cesar Octavio Lopez Nataren <[email protected]>
* Added FormalParameterList, Statement, VariableDeclaration,
VariableStatement and Visitor files to the unix.args.
2003-04-21 Cesar Octavio Lopez Nataren <[email protected]>
* Added Antlr.Runtime, it contains the files needed for compiling
@@ -1,7 +1,9 @@
//
// ASTList.cs:
// ASTList.cs: Representation of a collection of source elements
// that form an Ecmascript program.
//
// Author: Cesar Octavio Lopez Nataren
// Author:
// Cesar Octavio Lopez Nataren
//
// (C) 2003, Cesar Octavio Lopez Nataren, <[email protected]>
//
@@ -9,9 +11,40 @@
namespace Microsoft.JScript
{
using System.Collections;
using System.Text;
using System;
public class ASTList : AST
{
private ArrayList elems;
internal ArrayList elems;
internal ASTList ()
{
elems = new ArrayList ();
}
internal ASTList Add (AST elem)
{
elems.Add (elem);
return this;
}
public override object Visit (Visitor v, object args)
{
return v.VisitASTList (this, args);
}
public override string ToString ()
{
StringBuilder sb = new StringBuilder ();
foreach (AST ast in elems)
sb.Append (ast.ToString () + "\n");
return sb.ToString ();
}
}
}
}
@@ -1,7 +1,8 @@
//
// ArrayLiteral.cs:
//
// Author: Cesar Octavio Lopez Nataren
// Author:
// Cesar Octavio Lopez Nataren
//
// (C) 2003, Cesar Octavio Lopez Nataren, <[email protected]>
//
@@ -14,5 +15,11 @@ namespace Microsoft.JScript
public ArrayLiteral (Context context, ASTList elems)
{}
public override object Visit (Visitor v, object args)
{
return v.VisitArrayLiteral (this, args);
}
}
}
@@ -9,5 +9,10 @@
namespace Microsoft.JScript
{
public class Block : AST
{}
{
public override object Visit (Visitor v, object args)
{
return v.VisitBlock (this, args);
}
}
}
@@ -1,3 +1,68 @@
2003-06-09 Cesar Lopez Nataren <[email protected]>
* Added the Visit method to classes: AST, ArrayLiteral, ASTList,
Block, DebugBreak, Eval, ForIn, FunctionDeclaration,
FunctionExpression, Import, Package, ScriptBlock, Throw, Try,
With,
That method will be the driver that will allow classes
that implement the Visitor interface do a walk through the AST's
elements, in particular the Semantic Analizer and the Code
Generator. Every class that inherits from AST will have a Visit
method, that method will receive a Visitor and a object as
parameters, the only thing that it'll do is letting the Visitor
call the respective method VisitX, where X is the name of the
currently visited class.
* ASTList.cs:Added constructor, Add, Visit, ToString methods.
* FunctionDeclaration.cs: Added constructor, Visit and ToString
methods.
* jscript-lexer-parser.g: Added a ASTList as a parameter to the
program (the main entry of the parser). Also added as parameters:
- An AST to source_element.
- A Statement to statement.
- A VariableStatement to variable_statement.
- A VariableStatement to variable_declaration_list.
- A FormalParamerList by formal_parameter_list.
- A ASTList by function_body.
And now some rules return objects:
- A VariableDeclaration by variable_declaration.
- A Functiondeclaration by function_declaration.
* driver.cs: Added the construction of the AST of the EcmaScript
program.
* Visitor.cs: Added this file. It's the visitor interface.
* VariableDeclaration.cs: Added this class, it's the AST
representation of a variable declaration.
* Statement.cs: Added this file. It's the logical representation
of a Statement.
* VariableStatement.cs: Added this class. It's the AST
representation of a chain of variable declarations.
* FormalParameterList.cs: The function declaration needs to store
its parameter, we will put them on this class.
* SemanticAnalizer.cs: Added this class. I'll use the Visitor pattern in order to
implement the semantic analysis and code generation
phases. SemanticAnalizer and CodeGenerator will implement the
Visitor interface, they will walk a program's
AST tree and do their respective work.
* IdentificationTable.cs: Added this class. The SymbolTable will be used
by the SemanticAnalyzer in order to keep track of the variable
declaration encountered, etc..
* SymbolTable.cs: A simple hashtable but for commodity i'll call
it this way.
2003-05-03 Cesar Lopez Nataren <[email protected]>
* jscript-lexer-parser.g:
@@ -8,6 +8,13 @@
namespace Microsoft.JScript
{
using System;
public class DebugBreak : AST
{}
{
public override object Visit (Visitor v, object args)
{
throw new NotImplementedException ();
}
}
}
@@ -12,9 +12,15 @@ namespace Microsoft.JScript
public class Eval : AST
{
public static Object JScriptEvaluate (Object src, VsaEngine engine)
public static object JScriptEvaluate (object src, VsaEngine engine)
{
throw new NotImplementedException ();
}
public override object Visit (Visitor v, object args)
{
return v.VisitEval (this, args);
}
}
}
@@ -1,7 +1,8 @@
//
// ForIn.cs:
//
// Author: Cesar Octavio Lopez Nataren
// Author:
// Cesar Octavio Lopez Nataren
//
// (C) 2003, Cesar Octavio Lopez Nataren, <[email protected]>
//
@@ -13,9 +14,15 @@ namespace Microsoft.JScript
public class ForIn : AST
{
public static IEnumerator JScriptGetEnumerator (Object coll)
public static IEnumerator JScriptGetEnumerator (object coll)
{
throw new NotImplementedException ();
}
public override object Visit (Visitor v, object args)
{
return v.VisitForIn (this, args);
}
}
}
@@ -0,0 +1,39 @@
//
// FormalParameterList.cs: A list of identifiers.
//
// Author:
// Cesar Lopez Nataren
//
// (C) 2003, Cesar Lopez Nataren, <[email protected]>
//
namespace Microsoft.JScript
{
using System.Collections;
using System.Text;
public class FormalParameterList
{
internal ArrayList ids;
public FormalParameterList ()
{
ids = new ArrayList ();
}
internal void Add (string id)
{
ids.Add (id);
}
public override string ToString ()
{
StringBuilder sb = new StringBuilder ();
foreach (string s in ids)
sb.Append (s + " ");
return sb.ToString ();
}
}
}
@@ -1,7 +1,8 @@
//
// FunctionDeclaration.cs:
//
// Author: Cesar Octavio Lopez Nataren
// Author:
// Cesar Octavio Lopez Nataren
//
// (C) 2003, Cesar Octavio Lopez Nataren, <[email protected]>
//
@@ -9,9 +10,14 @@
namespace Microsoft.JScript
{
using System;
using System.Text;
public class FunctionDeclaration : AST
{
internal string id;
internal FormalParameterList parameters;
internal ASTList funcBody;
public static Closure JScriptFunctionDeclaration (RuntimeTypeHandle handle, string name,
string methodName, string [] formalParameters,
JSLocalField [] fields, bool mustSaveStackLocals,
@@ -20,5 +26,30 @@ namespace Microsoft.JScript
{
throw new NotImplementedException ();
}
internal FunctionDeclaration ()
{
parameters = new FormalParameterList ();
funcBody = new ASTList ();
}
public override object Visit (Visitor v, object args)
{
return v.VisitFunctionDeclaration (this, args);
}
public override string ToString ()
{
StringBuilder sb = new StringBuilder ();
sb.Append ("id: " + id + "\n");
sb.Append ("parameters: " + parameters.ToString () + "\n");
sb.Append ("functionBody: " + funcBody.ToString ());
return sb.ToString ();
}
}
}
}
@@ -18,5 +18,11 @@ namespace Microsoft.JScript
{
throw new NotImplementedException ();
}
public override object Visit (Visitor v, object args)
{
return v.VisitFunctionExpression (this, args);
}
}
}
@@ -1,7 +1,10 @@
//
// FunctionObject.cs:
//
// Author: Cesar Octavio Lopez Nataren
// Author:
// Cesar Octavio Lopez Nataren
//
// (C) 2003, Cesar Octavio Lopez Nataren, <[email protected]>
//
namespace Microsoft.JScript
@@ -0,0 +1,54 @@
//
// ExecutionContext.cs: The stack of possible executions environments.
//
// Author:
// Cesar Lopez Nataren
//
// (C) 2003, Cesar Lopez Nataren
//
using System.Collections;
namespace Microsoft.JScript
{
internal class IdentificationTable
{
internal Stack stack;
internal IdentificationTable ()
{
stack = new Stack ();
stack.Push (new SymbolTable ());
}
internal void OpenBlock ()
{
stack.Push (new SymbolTable ());
}
internal void CloseBlock ()
{
stack.Pop ();
}
internal void Enter (string id, VariableDeclaration decl)
{
((SymbolTable) stack.Peek ()).Add (id , decl);
}
internal VariableDeclaration Retrieve (string id)
{
return ((SymbolTable) stack.Peek ()).Retrieve (id);
}
internal bool Contains (string id)
{
return ((SymbolTable) stack.Peek ()).Contains (id);
}
}
}
@@ -14,5 +14,11 @@ namespace Microsoft.JScript
public static void JScriptImport (string name, VsaEngine engine)
{}
public override object Visit (Visitor v, object args)
{
return v.VisitImport (this, args);
}
}
}
@@ -142,12 +142,14 @@ namespace Microsoft.JScript
initialize();
}
public void program() //throws RecognitionException, TokenStreamException
public void program(
ASTList astList
) //throws RecognitionException, TokenStreamException
{
try { // for error handling
source_elements();
source_elements(astList);
}
catch (RecognitionException ex)
{
@@ -164,12 +166,19 @@ namespace Microsoft.JScript
}
}
public void source_elements() //throws RecognitionException, TokenStreamException
public void source_elements(
ASTList astList
) //throws RecognitionException, TokenStreamException
{
AST ast = null;
try { // for error handling
source_element();
ast=source_element();
if (0==inputState.guessing)
{
if (ast != null) astList. Add (ast);
}
{
switch ( LA(1) )
{
@@ -190,7 +199,7 @@ namespace Microsoft.JScript
case LITERAL_var:
case LITERAL_function:
{
source_elements();
source_elements(astList);
break;
}
case EOF:
@@ -220,8 +229,14 @@ namespace Microsoft.JScript
}
}
public void source_element() //throws RecognitionException, TokenStreamException
public AST source_element() //throws RecognitionException, TokenStreamException
{
AST ast;
ast = null;
Statement stm = null;
FunctionDeclaration fd = null;
try { // for error handling
@@ -243,12 +258,20 @@ namespace Microsoft.JScript
case LITERAL_try:
case LITERAL_var:
{
statement();
stm=statement();
if (0==inputState.guessing)
{
ast = stm;
}
break;
}
case LITERAL_function:
{
function_declaration();
fd=function_declaration();
if (0==inputState.guessing)
{
ast = fd;
}
break;
}
default:
@@ -270,10 +293,16 @@ namespace Microsoft.JScript
throw;
}
}
return ast;
}
public void statement() //throws RecognitionException, TokenStreamException
public Statement statement() //throws RecognitionException, TokenStreamException
{
Statement stm;
stm = null;
VariableStatement varStm = null;
try { // for error handling
@@ -286,7 +315,11 @@ namespace Microsoft.JScript
}
case LITERAL_var:
{
variable_statement();
varStm=variable_statement();
if (0==inputState.guessing)
{
stm = (Statement) varStm;
}
break;
}
case SEMI_COLON:
@@ -365,22 +398,31 @@ namespace Microsoft.JScript
throw;
}
}
return stm;
}
public void function_declaration() //throws RecognitionException, TokenStreamException
public FunctionDeclaration function_declaration() //throws RecognitionException, TokenStreamException
{
FunctionDeclaration fd;
Token id = null;
fd = new FunctionDeclaration ();
try { // for error handling
match(LITERAL_function);
id = LT(1);
match(IDENTIFIER);
if (0==inputState.guessing)
{
fd.id = id.getText ();
}
match(LPAREN);
{
switch ( LA(1) )
{
case IDENTIFIER:
{
formal_parameter_list();
formal_parameter_list(fd.parameters);
break;
}
case RPAREN:
@@ -395,7 +437,7 @@ namespace Microsoft.JScript
}
match(RPAREN);
match(LBRACE);
function_body();
function_body(fd.funcBody);
match(RBRACE);
}
catch (RecognitionException ex)
@@ -411,6 +453,7 @@ namespace Microsoft.JScript
throw;
}
}
return fd;
}
public void block() //throws RecognitionException, TokenStreamException
@@ -468,13 +511,15 @@ namespace Microsoft.JScript
}
}
public void variable_statement() //throws RecognitionException, TokenStreamException
public VariableStatement variable_statement() //throws RecognitionException, TokenStreamException
{
VariableStatement varStm;
varStm = new VariableStatement ();
try { // for error handling
match(LITERAL_var);
variable_declaration_list();
variable_declaration_list(varStm);
match(SEMI_COLON);
}
catch (RecognitionException ex)
@@ -490,6 +535,7 @@ namespace Microsoft.JScript
throw;
}
}
return varStm;
}
public void empty_statement() //throws RecognitionException, TokenStreamException
@@ -1356,19 +1402,26 @@ _loop28_breakloop: ;
}
}
public void variable_declaration_list() //throws RecognitionException, TokenStreamException
public void variable_declaration_list(
VariableStatement varStm
) //throws RecognitionException, TokenStreamException
{
VariableDeclaration varDecl = null;
try { // for error handling
variable_declaration();
varDecl=variable_declaration();
if (0==inputState.guessing)
{
varStm.Add (varDecl);
}
{
switch ( LA(1) )
{
case COMMA:
{
match(COMMA);
variable_declaration_list();
variable_declaration_list(varStm);
break;
}
case SEMI_COLON:
@@ -1397,12 +1450,20 @@ _loop28_breakloop: ;
}
}
public void variable_declaration() //throws RecognitionException, TokenStreamException
public VariableDeclaration variable_declaration() //throws RecognitionException, TokenStreamException
{
VariableDeclaration varDecl;
Token id = null;
varDecl = new VariableDeclaration ();
try { // for error handling
id = LT(1);
match(IDENTIFIER);
if (0==inputState.guessing)
{
varDecl.Id = id.getText ();
}
{
switch ( LA(1) )
{
@@ -1436,6 +1497,7 @@ _loop28_breakloop: ;
throw;
}
}
return varDecl;
}
public void initialiser() //throws RecognitionException, TokenStreamException
@@ -2813,7 +2875,7 @@ _loop86_breakloop: ;
{
case IDENTIFIER:
{
formal_parameter_list();
formal_parameter_list(null);
break;
}
case RPAREN:
@@ -2828,7 +2890,7 @@ _loop86_breakloop: ;
}
match(RPAREN);
match(LBRACE);
function_body();
function_body(null);
match(RBRACE);
}
catch (RecognitionException ex)
@@ -3193,19 +3255,27 @@ _loop101_breakloop: ;
}
}
public void formal_parameter_list() //throws RecognitionException, TokenStreamException
public void formal_parameter_list(
FormalParameterList param
) //throws RecognitionException, TokenStreamException
{
Token id = null;
try { // for error handling
id = LT(1);
match(IDENTIFIER);
if (0==inputState.guessing)
{
param.Add (id.getText ());
}
{
switch ( LA(1) )
{
case COMMA:
{
match(COMMA);
formal_parameter_list();
formal_parameter_list(param);
break;
}
case RPAREN:
@@ -3234,12 +3304,14 @@ _loop101_breakloop: ;
}
}
public void function_body() //throws RecognitionException, TokenStreamException
public void function_body(
ASTList funcBody
) //throws RecognitionException, TokenStreamException
{
try { // for error handling
source_elements();
source_elements(funcBody);
}
catch (RecognitionException ex)
{
@@ -12,5 +12,11 @@ namespace Microsoft.JScript
{
public static void JScriptPackage (string rootName, VsaEngine engine)
{}
public override object Visit (Visitor v, object args)
{
return v.VisitPackage (this, args);
}
}
}
@@ -9,5 +9,10 @@
namespace Microsoft.JScript
{
public class ScriptBlock : AST
{}
{
public override object Visit (Visitor v, object args)
{
return v.VisitScriptBlock (this, args);
}
}
}
@@ -0,0 +1,105 @@
//
// SemanticAnaliser.cs: A implementation of the Visitor interface.
// It performs the Semantic Analysis for EcmaScript
//
// Author:
// Cesar Lopez Nataren
//
// (C) 2003, Cesar Lopez Nataren, <[email protected]>
//
using System;
namespace Microsoft.JScript
{
internal class SemanticAnaliser : Visitor
{
private IdentificationTable symTab;
public object VisitASTList (ASTList prog, object obj)
{
throw new NotImplementedException ();
}
public object VisitVariableDeclaration (VariableDeclaration decl,
object args)
{
throw new NotImplementedException ();
}
public object VisitFunctionDeclaration (FunctionDeclaration decl,
object args)
{
throw new NotImplementedException ();
}
public object VisitArrayLiteral (ArrayLiteral al, object args)
{
throw new NotImplementedException ();
}
public object VisitBlock (Block b, object args)
{
throw new NotImplementedException ();
}
public object VisitEval (Eval e, object args)
{
throw new NotImplementedException ();
}
public object VisitForIn (ForIn forIn, object args)
{
throw new NotImplementedException ();
}
public object VisitFunctionExpression (FunctionExpression fexp,
object args)
{
throw new NotImplementedException ();
}
public object VisitImport (Import imp, object args)
{
throw new NotImplementedException ();
}
public object VisitPackage (Package pkg, object args)
{
throw new NotImplementedException ();
}
public object VisitScriptBlock (ScriptBlock sblock, object args)
{
throw new NotImplementedException ();
}
public object VisitThrow (Throw t, object args)
{
throw new NotImplementedException ();
}
public object VisitTry (Try t, object args)
{
throw new NotImplementedException ();
}
public object VisitWith (With w, object args)
{
throw new NotImplementedException ();
}
}
}
@@ -0,0 +1,22 @@
//
// Statement.cs:
//
// Author:
// Cesar Octavio Lopez Nataren
//
// (C) 2003, Cesar Octavio Lopez Nataren, <[email protected]>
//
namespace Microsoft.JScript
{
public class Statement : AST
{
public Statement ()
{}
public override object Visit (Visitor v, object args)
{
return null;
}
}
}
@@ -0,0 +1,43 @@
//
// SymbolTable.cs:
//
// Author:
// Cesar Lopez Nataren
//
// (C) 2003, Cesar Lopez Nataren, <[email protected]>
//
using System;
using System.Collections;
namespace Microsoft.JScript
{
internal class SymbolTable
{
internal Hashtable symbols;
internal SymbolTable ()
{
symbols = new Hashtable ();
}
internal void Add (string id, VariableDeclaration d)
{
symbols.Add (id, d);
}
internal VariableDeclaration Retrieve (string id)
{
return ((VariableDeclaration) symbols [id]);
}
internal bool Contains (string id)
{
return symbols.ContainsKey (id);
}
}
}
@@ -18,7 +18,7 @@ namespace Microsoft.JScript {
/// Use this to decorate any element which you think is not complete
/// </remarks>
[AttributeUsage (AttributeTargets.All, AllowMultiple=true)]
public class MonoTODOAttribute : Attribute {
internal class MonoTODOAttribute : Attribute {
private string comment;
@@ -16,5 +16,11 @@ namespace Microsoft.JScript
{
throw new NotImplementedException ();
}
public override object Visit (Visitor v, object args)
{
return v.VisitThrow (this, args);
}
}
}
@@ -21,5 +21,11 @@ namespace Microsoft.JScript
{
throw new NotImplementedException ();
}
public override object Visit (Visitor v, object args)
{
return v.VisitTry (this, args);
}
}
}
@@ -0,0 +1,46 @@
//
// VariableDeclaration.cs: The AST representation of a VariableDeclaration.
//
// Author:
// Cesar Octavio Lopez Nataren
//
// (C) 2003, Cesar Octavio Lopez Nataren, <[email protected]>
//
namespace Microsoft.JScript
{
using System.Text;
public class VariableDeclaration : Statement
{
private string id;
private AST assignExp;
internal VariableDeclaration ()
{}
public string Id {
get { return id; }
set { id = value; }
}
public override object Visit (Visitor v, object args)
{
return v.VisitVariableDeclaration (this, args);
}
public override string ToString ()
{
StringBuilder sb = new StringBuilder ();
// FIXME: we must add the string
// representation of assignExp, too.
sb.Append (Id);
return sb.ToString ();
}
}
}
@@ -0,0 +1,41 @@
//
// VariableStatement.cs: The AST representation of a VariableStatement.
//
// Author:
// Cesar Octavio Lopez Nataren
//
// (C) 2003, Cesar Octavio Lopez Nataren, <[email protected]>
//
namespace Microsoft.JScript
{
using System.Collections;
using System.Text;
public class VariableStatement : Statement
{
internal ArrayList varDecls;
internal VariableStatement ()
{
varDecls = new ArrayList ();
}
internal void Add (VariableDeclaration varDecl)
{
varDecls.Add (varDecl);
}
public override string ToString ()
{
StringBuilder sb = new StringBuilder ();
foreach (VariableDeclaration varDecl in varDecls)
sb.Append (varDecl.ToString () + " ");
return sb.ToString ();
}
}
}
@@ -0,0 +1,42 @@
//
// Visitor.cs: A interface for transversing the AST.
//
// Author:
// Cesar Lopez Nataren
//
// (C) 2003, Cesar Lopez Nataren, <[email protected]>
//
namespace Microsoft.JScript
{
public interface Visitor
{
object VisitASTList (ASTList prog, object obj);
object VisitVariableDeclaration (VariableDeclaration decl, object args);
object VisitFunctionDeclaration (FunctionDeclaration decl, object args);
object VisitArrayLiteral (ArrayLiteral al, object args);
object VisitBlock (Block b, object args);
object VisitEval (Eval e, object args);
object VisitForIn (ForIn fi, object args);
object VisitFunctionExpression (FunctionExpression fe, object args);
object VisitImport (Import imp, object args);
object VisitPackage (Package imp, object args);
object VisitScriptBlock (ScriptBlock sblock, object args);
object VisitThrow (Throw t, object args);
object VisitTry (Try t, object args);
object VisitWith (With w, object args);
}
}
@@ -16,5 +16,11 @@ namespace Microsoft.JScript
{
throw new NotImplementedException ();
}
public override object Visit (Visitor v, object args)
{
return v.VisitWith (this, args);
}
}
}
@@ -9,5 +9,7 @@
namespace Microsoft.JScript
{
public abstract class AST
{}
{
public abstract object Visit (Visitor v, object obj);
}
}
@@ -39,24 +39,31 @@ namespace Microsoft.JScript
moduleBuilder = assemblyBuilder.DefineDynamicModule (JSCRIPT_MODULE, basename + ".exe", false);
}
public void GetAST (string filename)
public ASTList GetAST (string filename)
{
StreamReader reader = new StreamReader (filename);
JScriptLexer lexer = new JScriptLexer (reader);
JScriptParser parser = new JScriptParser (lexer);
parser.program ();
ASTList astList = new ASTList ();
parser.program (astList);
return astList;
}
public static void Main (string [] args)
{
try {
string basename = Path.GetFileNameWithoutExtension (args [0]);
Jsc compiler = new Jsc (basename);
compiler.GetAST (args [0]);
ASTList astList = compiler.GetAST (args [0]);
Console.WriteLine (astList.ToString ());
} catch (IndexOutOfRangeException) {
Console.WriteLine ("Usage: [mono] mjsc.exe filename.js");
Console.WriteLine ("Usage: [mono] mjs.exe filename.js");
}
}
}
@@ -18,33 +18,46 @@ options {
class JScriptParser extends Parser;
// Program, see section 14 from Ecma-262, page 75.
program
program [ASTList astList]
:
source_elements
source_elements [astList]
;
source_elements
source_elements [ASTList astList]
{ AST ast = null; }
:
source_element (source_elements | )
ast = source_element { if (ast != null) astList. Add (ast); } (source_elements [astList] | )
;
// See Section 14 from Ecma-262, page 75.
source_element
source_element returns [AST ast]
{
ast = null;
Statement stm = null;
FunctionDeclaration fd = null;
}
:
statement
stm = statement
{ ast = stm; }
|
function_declaration
fd = function_declaration
{ ast = fd; }
;
// Statement, see section 12 from Ecma-262, page 61.
statement
statement returns [Statement stm]
{
stm = null;
VariableStatement varStm = null;
}
:
block
|
variable_statement
varStm = variable_statement
{ stm = (Statement) varStm; }
|
empty_statement
|
@@ -174,20 +187,23 @@ statement_list
;
// VariableStatement, see section 12.2 from Ecma-262 3td Edition, page 74.
variable_statement
variable_statement returns [VariableStatement varStm]
{ varStm = new VariableStatement (); }
:
"var" variable_declaration_list SEMI_COLON
"var" variable_declaration_list [varStm] SEMI_COLON
;
variable_declaration_list
variable_declaration_list [VariableStatement varStm]
{ VariableDeclaration varDecl = null; }
:
variable_declaration (COMMA variable_declaration_list | )
varDecl = variable_declaration { varStm.Add (varDecl); } (COMMA variable_declaration_list [varStm] | )
;
variable_declaration
variable_declaration returns [VariableDeclaration varDecl]
{ varDecl = new VariableDeclaration (); }
:
IDENTIFIER (initialiser | )
id:IDENTIFIER { varDecl.Id = id.getText (); } (initialiser | )
;
@@ -286,7 +302,7 @@ equality_expression
// FIXME: more options left to implement
relational_expression
:
shift_expression ((L_THAN | G_THAN | LE_THAN | GE_THAN | "instanceof" | "in" ) relational_expression | )
shift_expression ((L_THAN | G_THAN | LE_THAN | GE_THAN | "instanceof" | "in") relational_expression | )
;
@@ -446,28 +462,29 @@ expression: assignment_expression (COMMA expression | ) ;
// Function definition, see Section 13 from Ecma-262, page 71.
function_declaration
function_declaration returns [FunctionDeclaration fd]
{ fd = new FunctionDeclaration (); }
:
"function" IDENTIFIER LPAREN (formal_parameter_list | ) RPAREN LBRACE function_body RBRACE
"function" id:IDENTIFIER { fd.id = id.getText (); } LPAREN (formal_parameter_list [fd.parameters] | ) RPAREN LBRACE function_body [fd.funcBody] RBRACE
;
// This elems are just for compiling purposes.
function_expression
:
"function" (IDENTIFIER | ) LPAREN (formal_parameter_list | ) RPAREN LBRACE function_body RBRACE
"function" (IDENTIFIER | ) LPAREN (formal_parameter_list [null] | ) RPAREN LBRACE function_body [null] RBRACE
;
formal_parameter_list
formal_parameter_list [FormalParameterList param]
:
IDENTIFIER (COMMA formal_parameter_list | )
id:IDENTIFIER { param.Add (id.getText ()); } (COMMA formal_parameter_list [param] | )
;
function_body
function_body [ASTList funcBody]
:
source_elements
source_elements [funcBody]
;
+5
View File
@@ -26,6 +26,7 @@ Microsoft.JScript/ErrorConstructor.cs
Microsoft.JScript/ErrorObject.cs
Microsoft.JScript/Eval.cs
Microsoft.JScript/ForIn.cs
Microsoft.JScript/FormalParameterList.cs
Microsoft.JScript/FunctionConstructor.cs
Microsoft.JScript/FunctionDeclaration.cs
Microsoft.JScript/FunctionExpression.cs
@@ -59,13 +60,17 @@ Microsoft.JScript/RegExpObject.cs
Microsoft.JScript/ScriptBlock.cs
Microsoft.JScript/ScriptFunction.cs
Microsoft.JScript/ScriptObject.cs
Microsoft.JScript/Statement.cs
Microsoft.JScript/StringConstructor.cs
Microsoft.JScript/StringObject.cs
Microsoft.JScript/TODOAttribute.cs
Microsoft.JScript/Throw.cs
Microsoft.JScript/Try.cs
Microsoft.JScript/UnaryOp.cs
Microsoft.JScript/VariableDeclaration.cs
Microsoft.JScript/VariableStatement.cs
Microsoft.JScript/VBArrayConstructor.cs
Microsoft.JScript/Visitor.cs
Microsoft.JScript/VsaEngine.cs
Microsoft.JScript/With.cs
Antlr.Runtime/antlr/ANTLRException.cs
@@ -3,16 +3,20 @@
//
// Author:
// Chris J Breisch ([email protected])
// Marco Ridoni ([email protected])
//
// (C) 2002 Chris J Breisch
// (C) 2003 Marco Ridoni
//
using System;
using System.Reflection;
using Microsoft.VisualBasic;
namespace Microsoft.VisualBasic.CompilerServices
namespace Microsoft.VisualBasic.CompilerServices
{
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
sealed public class LateBinding {
// Declarations
// Constructors
@@ -33,18 +37,125 @@ namespace Microsoft.VisualBasic.CompilerServices
[MonoTODO]
[System.Diagnostics.DebuggerStepThroughAttribute]
[System.Diagnostics.DebuggerHiddenAttribute]
public static System.Object LateIndexGet (System.Object o, System.Object[] args, System.String[] paramnames) { throw new NotImplementedException (); }
public static System.Object LateIndexGet (System.Object o, System.Object[] args, System.String[] paramnames)
{
Type objType;
Object binderState = null;
if (o == null || args == null)
throw new ArgumentException();
objType = o.GetType();
if (objType.IsArray) {
Array a = (Array) o;
int[] idxs = new int[args.Length];
Array.Copy (args, idxs, args.Length);
return a.GetValue(idxs);
}
else
{
MemberInfo[] defaultMembers = objType.GetDefaultMembers();
if (defaultMembers == null)
throw new Exception(); // FIXME: Which exception should we throw?
// We try to find a default method/property/field we can invoke/use
VBBinder MyBinder = new VBBinder();
BindingFlags bindingFlags = BindingFlags.IgnoreCase |
BindingFlags.Instance |
BindingFlags.Static |
BindingFlags.Public |
BindingFlags.GetProperty |
BindingFlags.GetField |
BindingFlags.InvokeMethod;
MethodBase[] mb = new MethodBase[defaultMembers.Length];
try {
for (int x = 0; x < defaultMembers.Length; x++)
if (defaultMembers[x].MemberType == MemberTypes.Property)
mb[x] = ((PropertyInfo) defaultMembers[x]).GetGetMethod();
else
mb[x] = (MethodBase) defaultMembers[x];
} catch (Exception e) { }
MethodBase TheMethod = MyBinder.BindToMethod (bindingFlags,
mb,
ref args,
null,
null,
paramnames,
out binderState);
if (TheMethod == null)
throw new TargetInvocationException(new ArgumentNullException());
return TheMethod.Invoke (o, args);
}
}
[MonoTODO]
[System.Diagnostics.DebuggerHiddenAttribute]
[System.Diagnostics.DebuggerStepThroughAttribute]
[System.Diagnostics.DebuggerHiddenAttribute]
[System.Diagnostics.DebuggerStepThroughAttribute]
public static void LateIndexSetComplex (System.Object o, System.Object[] args, System.String[] paramnames, System.Boolean OptimisticSet, System.Boolean RValueBase) { throw new NotImplementedException (); }
[MonoTODO]
[System.Diagnostics.DebuggerStepThroughAttribute]
[System.Diagnostics.DebuggerHiddenAttribute]
public static void LateIndexSet (System.Object o, System.Object[] args, System.String[] paramnames) { throw new NotImplementedException (); }
[System.Diagnostics.DebuggerStepThroughAttribute]
[System.Diagnostics.DebuggerHiddenAttribute]
public static void LateIndexSet (System.Object o, System.Object[] args, System.String[] paramnames)
{
Type objType;
Object binderState = null;
Object myValue;
if (o == null || args == null)
throw new ArgumentException();
myValue = args[args.Length - 1];
objType = o.GetType();
if (objType.IsArray) {
Array a = (Array) o;
int[] idxs = new int[args.Length - 1];
Array.Copy (args, idxs, args.Length -1);
a.SetValue(myValue, idxs);
}
else
{
MemberInfo[] defaultMembers = objType.GetDefaultMembers();
if (defaultMembers == null)
throw new Exception(); // FIXME: Which exception should we throw?
// We try to find a default method/property/field we can invoke/use
VBBinder MyBinder = new VBBinder();
BindingFlags bindingFlags = BindingFlags.IgnoreCase |
BindingFlags.Instance |
BindingFlags.Static |
BindingFlags.Public |
BindingFlags.GetProperty |
BindingFlags.GetField |
BindingFlags.InvokeMethod;
MethodBase[] mb = new MethodBase[defaultMembers.Length];
try {
for (int x = 0; x < defaultMembers.Length; x++)
if (defaultMembers[x].MemberType == MemberTypes.Property)
mb[x] = ((PropertyInfo) defaultMembers[x]).GetSetMethod();
else
mb[x] = (MethodBase) defaultMembers[x];
} catch (Exception e) { }
MethodBase TheMethod = MyBinder.BindToMethod (bindingFlags,
mb,
ref args,
null,
null,
paramnames,
out binderState);
if (TheMethod == null)
throw new TargetInvocationException(new ArgumentNullException());
TheMethod.Invoke (o, args);
}
}
[MonoTODO]
[System.Diagnostics.DebuggerStepThroughAttribute]
[System.Diagnostics.DebuggerHiddenAttribute]
[System.Diagnostics.DebuggerStepThroughAttribute]
[System.Diagnostics.DebuggerHiddenAttribute]
public static void LateCall (System.Object o, System.Type objType, System.String name, System.Object[] args, System.String[] paramnames, System.Boolean[] CopyBack) { throw new NotImplementedException (); }
// Events
};
@@ -19,7 +19,7 @@ namespace Microsoft.VisualBasic.CompilerServices {
/// Use this to decorate any element which you think is not complete
/// </remarks>
[AttributeUsage (AttributeTargets.All, AllowMultiple=true)]
public class MonoTODOAttribute : Attribute {
internal class MonoTODOAttribute : Attribute {
private string comment;
@@ -0,0 +1,171 @@
//
// LateBinding.cs
//
// Author:
// Marco Ridoni ([email protected])
//
// (C) 2003 Marco Ridoni
//
using System;
using System.Reflection;
using System.Globalization;
using Microsoft.VisualBasic;
namespace Microsoft.VisualBasic.CompilerServices
{
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
public class VBBinder : Binder
{
public VBBinder() : base()
{
}
private class BinderState
{
public object[] args;
}
public override FieldInfo BindToField(
BindingFlags bindingAttr,
FieldInfo[] match,
object value,
CultureInfo culture
)
{
return null;
}
public override MethodBase BindToMethod(
BindingFlags bindingAttr,
MethodBase[] match,
ref object[] args,
ParameterModifier[] modifiers,
CultureInfo culture,
string[] names,
out object state
)
{
// Store the arguments to the method in a state object.
BinderState binderState = new BinderState();
object[] arguments = new Object[args.Length];
args.CopyTo(arguments, 0);
binderState.args = arguments;
state = binderState;
if(match == null)
throw new ArgumentNullException();
for(int x = 0; x < match.Length; x++)
{
int count = 0;
ParameterInfo[] parameters = match[x].GetParameters();
if(args.Length != parameters.Length)
continue;
for(int y = 0; y < args.Length; y++)
{
if(ChangeType(args[y], parameters[y].ParameterType, culture) != null)
count++;
else
break;
}
if(count == args.Length)
return match[x];
}
return null;
}
public override object ChangeType(
object value,
Type myChangeType,
CultureInfo culture
)
{
TypeCode src_type = Type.GetTypeCode (value.GetType());
TypeCode dest_type = Type.GetTypeCode (myChangeType);
switch (dest_type) {
case TypeCode.String:
switch (src_type) {
case TypeCode.SByte:
case TypeCode.Byte:
return (StringType.FromByte ((byte)value));
case TypeCode.UInt16:
case TypeCode.Int16:
return (StringType.FromShort ((short)value));
case TypeCode.UInt32:
case TypeCode.Int32:
return (StringType.FromInteger ((int)value));
case TypeCode.UInt64:
case TypeCode.Int64:
return (StringType.FromLong ((long)value));
case TypeCode.Char:
return (StringType.FromChar ((char)value));
case TypeCode.Single:
return (StringType.FromSingle ((float)value));
case TypeCode.Double:
return (StringType.FromDouble ((double)value));
case TypeCode.Boolean:
return (StringType.FromBoolean ((bool)value));
case TypeCode.Object:
return (StringType.FromObject (value));
}
break;
case TypeCode.Int32:
case TypeCode.UInt32:
switch (src_type) {
case TypeCode.String:
return (IntegerType.FromString ((string)value));
case TypeCode.Object:
return (IntegerType.FromObject (value));
}
break;
case TypeCode.Int16:
case TypeCode.UInt16:
switch (src_type) {
case TypeCode.String:
return (ShortType.FromString ((string)value));
case TypeCode.Object:
return (ShortType.FromObject (value));
}
break;
case TypeCode.Object:
return ((Object) value);
}
return null;
}
public override void ReorderArgumentArray(
ref object[] args,
object state
)
{
}
public override MethodBase SelectMethod(
BindingFlags bindingAttr,
MethodBase[] match,
Type[] types,
ParameterModifier[] modifiers
)
{
return null;
}
public override PropertyInfo SelectProperty(
BindingFlags bindingAttr,
PropertyInfo[] match,
Type returnType,
Type[] indexes,
ParameterModifier[] modifiers
)
{
return null;
}
}
}
@@ -19,7 +19,7 @@ namespace Microsoft.VisualBasic {
/// Use this to decorate any element which you think is not complete
/// </remarks>
[AttributeUsage (AttributeTargets.All, AllowMultiple=true)]
public class MonoTODOAttribute : Attribute {
internal class MonoTODOAttribute : Attribute {
private string comment;
@@ -1,3 +1,8 @@
2003-05-13 Martin Willemoes Hansen <[email protected]>
* CollectionTest.cs ConversionTest.cs DateAndTimeTest.cs
Inherited from Assertion and removed
Assertion. prefix from assertions
2003-04-17 Nick Drochak <[email protected]>
* makefile.gnu: get the nunit dll from class/lib now.
@@ -16,7 +16,7 @@ using System.Collections;
namespace MonoTests.Microsoft.VisualBasic
{
[TestFixture]
public class CollectionTest
public class CollectionTest : Assertion
{
[SetUp]
@@ -33,8 +33,8 @@ namespace MonoTests.Microsoft.VisualBasic
c = new Collection();
Assertion.AssertNotNull("#N01", c);
Assertion.AssertEquals("#N02", 0, c.Count);
AssertNotNull("#N01", c);
AssertEquals("#N02", 0, c.Count);
}
// Test Add method with Key == null
@@ -49,10 +49,10 @@ namespace MonoTests.Microsoft.VisualBasic
c.Add(typeof(double), null, null, null);
c.Add(typeof(string), null, null, null);
Assertion.AssertEquals("#ANK01", 3, c.Count);
AssertEquals("#ANK01", 3, c.Count);
// Collection class is 1-based
Assertion.AssertEquals("#ANK02", typeof(string), c[3]);
AssertEquals("#ANK02", typeof(string), c[3]);
}
@@ -69,11 +69,11 @@ namespace MonoTests.Microsoft.VisualBasic
c.Add("Basketball", "Basket", null, null);
c.Add("Volleyball", "Volley", null, null);
Assertion.AssertEquals("#AK01", 4, c.Count);
AssertEquals("#AK01", 4, c.Count);
// Collection class is 1-based
Assertion.AssertEquals("#AK02", "Baseball", c[1]);
Assertion.AssertEquals("#AK03", "Volleyball", c["Volley"]);
AssertEquals("#AK02", "Baseball", c[1]);
AssertEquals("#AK03", "Volleyball", c["Volley"]);
}
@@ -90,12 +90,12 @@ namespace MonoTests.Microsoft.VisualBasic
c.Add(typeof(string), null, 2, null);
c.Add(typeof(object), null, 2, null);
Assertion.AssertEquals("#ABNK01", 4, c.Count);
AssertEquals("#ABNK01", 4, c.Count);
// Collection class is 1-based
Assertion.AssertEquals("#ABNK02", typeof(int), c[4]);
Assertion.AssertEquals("#ABNK03", typeof(double), c[1]);
Assertion.AssertEquals("#ABNK04", typeof(object), c[2]);
AssertEquals("#ABNK02", typeof(int), c[4]);
AssertEquals("#ABNK03", typeof(double), c[1]);
AssertEquals("#ABNK04", typeof(object), c[2]);
}
@@ -112,11 +112,11 @@ namespace MonoTests.Microsoft.VisualBasic
c.Add("Basketball", "Basket", 1, null);
c.Add("Volleyball", "Volley", 3, null);
Assertion.AssertEquals("#ABK01", 4, c.Count);
Assertion.AssertEquals("#ABK02", "Basketball", c[1]);
Assertion.AssertEquals("#ABK03", "Baseball", c[4]);
Assertion.AssertEquals("#ABK04", "Volleyball", c["Volley"]);
Assertion.AssertEquals("#ABK05", "Football", c["Foot"]);
AssertEquals("#ABK01", 4, c.Count);
AssertEquals("#ABK02", "Basketball", c[1]);
AssertEquals("#ABK03", "Baseball", c[4]);
AssertEquals("#ABK04", "Volleyball", c["Volley"]);
AssertEquals("#ABK05", "Football", c["Foot"]);
}
@@ -133,12 +133,12 @@ namespace MonoTests.Microsoft.VisualBasic
c.Add(typeof(string), null, null, 1);
c.Add(typeof(object), null, null, 3);
Assertion.AssertEquals("#AANK01", 4, c.Count);
AssertEquals("#AANK01", 4, c.Count);
// Collection class is 1-based
Assertion.AssertEquals("#AANK02", typeof(object), c[4]);
Assertion.AssertEquals("#AANK03", typeof(int), c[1]);
Assertion.AssertEquals("#AANK04", typeof(string), c[2]);
AssertEquals("#AANK02", typeof(object), c[4]);
AssertEquals("#AANK03", typeof(int), c[1]);
AssertEquals("#AANK04", typeof(string), c[2]);
}
@@ -155,13 +155,13 @@ namespace MonoTests.Microsoft.VisualBasic
c.Add("Basketball", "Basket", null, 1);
c.Add("Volleyball", "Volley", null, 2);
Assertion.AssertEquals("#AAK01", 4, c.Count);
AssertEquals("#AAK01", 4, c.Count);
// Collection class is 1-based
Assertion.AssertEquals("#AAK02", "Baseball", c[1]);
Assertion.AssertEquals("#AAK03", "Football", c[4]);
Assertion.AssertEquals("#AAK04", "Basketball", c["Basket"]);
Assertion.AssertEquals("#AAK05", "Volleyball", c["Volley"]);
AssertEquals("#AAK02", "Baseball", c[1]);
AssertEquals("#AAK03", "Football", c[4]);
AssertEquals("#AAK04", "Basketball", c["Basket"]);
AssertEquals("#AAK05", "Volleyball", c["Volley"]);
}
// Test GetEnumerator method
@@ -183,17 +183,17 @@ namespace MonoTests.Microsoft.VisualBasic
e = c.GetEnumerator();
Assertion.AssertNotNull("#GE01", e);
AssertNotNull("#GE01", e);
while (e.MoveNext()) {
Assertion.AssertEquals("#GE02." + i.ToString(), o[i], e.Current);
AssertEquals("#GE02." + i.ToString(), o[i], e.Current);
i++;
}
e.Reset();
e.MoveNext();
Assertion.AssertEquals("#GE03", o[0], e.Current);
AssertEquals("#GE03", o[0], e.Current);
}
@@ -215,7 +215,7 @@ namespace MonoTests.Microsoft.VisualBasic
foreach (object item in c) {
Assertion.AssertEquals("#fe01." + i.ToString(), o[i], item);
AssertEquals("#fe01." + i.ToString(), o[i], item);
i++;
}
@@ -234,29 +234,29 @@ namespace MonoTests.Microsoft.VisualBasic
c.Add(typeof(string), null, null, null);
c.Add(typeof(object), null, null, null);
Assertion.AssertEquals("#RNK01", 4, c.Count);
AssertEquals("#RNK01", 4, c.Count);
c.Remove(3);
Assertion.AssertEquals("#RNK02", 3, c.Count);
AssertEquals("#RNK02", 3, c.Count);
// Collection class is 1-based
Assertion.AssertEquals("#RNK03", typeof(object), c[3]);
AssertEquals("#RNK03", typeof(object), c[3]);
c.Remove(1);
Assertion.AssertEquals("#RNK04", 2, c.Count);
Assertion.AssertEquals("#RNK05", typeof(double), c[1]);
Assertion.AssertEquals("#RNK06", typeof(object), c[2]);
AssertEquals("#RNK04", 2, c.Count);
AssertEquals("#RNK05", typeof(double), c[1]);
AssertEquals("#RNK06", typeof(object), c[2]);
c.Remove(2);
Assertion.AssertEquals("#RNK07", 1, c.Count);
Assertion.AssertEquals("#RNK08", typeof(double), c[1]);
AssertEquals("#RNK07", 1, c.Count);
AssertEquals("#RNK08", typeof(double), c[1]);
c.Remove(1);
Assertion.AssertEquals("#RNK09", 0, c.Count);
AssertEquals("#RNK09", 0, c.Count);
}
@@ -273,31 +273,31 @@ namespace MonoTests.Microsoft.VisualBasic
c.Add("Basketball", "Basket", null, null);
c.Add("Volleyball", "Volley", null, null);
Assertion.AssertEquals("#RK01", 4, c.Count);
AssertEquals("#RK01", 4, c.Count);
c.Remove("Foot");
Assertion.AssertEquals("#RK02", 3, c.Count);
Assertion.AssertEquals("#RK03", "Basketball", c["Basket"]);
AssertEquals("#RK02", 3, c.Count);
AssertEquals("#RK03", "Basketball", c["Basket"]);
// Collection class is 1-based
Assertion.AssertEquals("#RK04", "Volleyball", c[3]);
AssertEquals("#RK04", "Volleyball", c[3]);
c.Remove("Base");
Assertion.AssertEquals("#RK05", 2, c.Count);
Assertion.AssertEquals("#RK06", "Basketball", c[1]);
Assertion.AssertEquals("#RK07", "Volleyball", c["Volley"]);
AssertEquals("#RK05", 2, c.Count);
AssertEquals("#RK06", "Basketball", c[1]);
AssertEquals("#RK07", "Volleyball", c["Volley"]);
c.Remove(2);
Assertion.AssertEquals("#RK08", 1, c.Count);
Assertion.AssertEquals("#RK09", "Basketball", c[1]);
Assertion.AssertEquals("#RK10", "Basketball", c["Basket"]);
AssertEquals("#RK08", 1, c.Count);
AssertEquals("#RK09", "Basketball", c[1]);
AssertEquals("#RK10", "Basketball", c["Basket"]);
c.Remove(1);
Assertion.AssertEquals("#RK11", 0, c.Count);
AssertEquals("#RK11", 0, c.Count);
}
// Test all the Exceptions we're supposed to throw
@@ -314,11 +314,11 @@ namespace MonoTests.Microsoft.VisualBasic
object o = c[0];
}
catch (Exception e) {
Assertion.AssertEquals("#E01", typeof(IndexOutOfRangeException), e.GetType());
AssertEquals("#E01", typeof(IndexOutOfRangeException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E02", true, caughtException);
AssertEquals("#E02", true, caughtException);
c.Add("Baseball", "Base", null, null);
c.Add("Football", "Foot", null, null);
@@ -332,11 +332,11 @@ namespace MonoTests.Microsoft.VisualBasic
object o = c[5];
}
catch (Exception e) {
Assertion.AssertEquals("#E03", typeof(IndexOutOfRangeException), e.GetType());
AssertEquals("#E03", typeof(IndexOutOfRangeException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E04", true, caughtException);
AssertEquals("#E04", true, caughtException);
caughtException = false;
@@ -345,11 +345,11 @@ namespace MonoTests.Microsoft.VisualBasic
object o = c[0];
}
catch (Exception e) {
Assertion.AssertEquals("#E05", typeof(IndexOutOfRangeException), e.GetType());
AssertEquals("#E05", typeof(IndexOutOfRangeException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E06", true, caughtException);
AssertEquals("#E06", true, caughtException);
caughtException = false;
@@ -361,12 +361,12 @@ namespace MonoTests.Microsoft.VisualBasic
// FIXME
// VB Language Reference says IndexOutOfRangeException
// here, but MS throws ArgumentException
// Assertion.AssertEquals("#E07", typeof(IndexOutOfRangeException), e.GetType());
Assertion.AssertEquals("#E07", typeof(ArgumentException), e.GetType());
// AssertEquals("#E07", typeof(IndexOutOfRangeException), e.GetType());
AssertEquals("#E07", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E08", true, caughtException);
AssertEquals("#E08", true, caughtException);
caughtException = false;
@@ -375,11 +375,11 @@ namespace MonoTests.Microsoft.VisualBasic
object o = c[typeof(int)];
}
catch (Exception e) {
Assertion.AssertEquals("#E09", typeof(ArgumentException), e.GetType());
AssertEquals("#E09", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E10", true, caughtException);
AssertEquals("#E10", true, caughtException);
caughtException = false;
@@ -388,11 +388,11 @@ namespace MonoTests.Microsoft.VisualBasic
c.Add("Kickball", "Kick", "Volley", "Foot");
}
catch (Exception e) {
Assertion.AssertEquals("#E11", typeof(ArgumentException), e.GetType());
AssertEquals("#E11", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E12", true, caughtException);
AssertEquals("#E12", true, caughtException);
caughtException = false;
@@ -401,11 +401,11 @@ namespace MonoTests.Microsoft.VisualBasic
c.Add("Kickball", "Foot", null, null);
}
catch (Exception e) {
Assertion.AssertEquals("#E13", typeof(ArgumentException), e.GetType());
AssertEquals("#E13", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E14", true, caughtException);
AssertEquals("#E14", true, caughtException);
caughtException = false;
@@ -414,11 +414,11 @@ namespace MonoTests.Microsoft.VisualBasic
c.Add("Dodgeball", "Dodge", typeof(int), null);
}
catch (Exception e) {
Assertion.AssertEquals("#E15", typeof(InvalidCastException), e.GetType());
AssertEquals("#E15", typeof(InvalidCastException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E16", true, caughtException);
AssertEquals("#E16", true, caughtException);
caughtException = false;
@@ -427,11 +427,11 @@ namespace MonoTests.Microsoft.VisualBasic
c.Add("Wallyball", "Wally", null, typeof(int));
}
catch (Exception e) {
Assertion.AssertEquals("#E17", typeof(InvalidCastException), e.GetType());
AssertEquals("#E17", typeof(InvalidCastException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E18", true, caughtException);
AssertEquals("#E18", true, caughtException);
caughtException = false;
@@ -440,11 +440,11 @@ namespace MonoTests.Microsoft.VisualBasic
c.Remove(null);
}
catch (Exception e) {
Assertion.AssertEquals("#E19", typeof(ArgumentException), e.GetType());
AssertEquals("#E19", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E20", true, caughtException);
AssertEquals("#E20", true, caughtException);
caughtException = false;
@@ -453,11 +453,11 @@ namespace MonoTests.Microsoft.VisualBasic
c.Remove("Golf");
}
catch (Exception e) {
Assertion.AssertEquals("#E21", typeof(ArgumentException), e.GetType());
AssertEquals("#E21", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E22", true, caughtException);
AssertEquals("#E22", true, caughtException);
caughtException = false;
@@ -466,11 +466,11 @@ namespace MonoTests.Microsoft.VisualBasic
c.Remove(10);
}
catch (Exception e) {
Assertion.AssertEquals("#E23", typeof(IndexOutOfRangeException), e.GetType());
AssertEquals("#E23", typeof(IndexOutOfRangeException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E24", true, caughtException);
AssertEquals("#E24", true, caughtException);
caughtException = false;
@@ -484,12 +484,12 @@ namespace MonoTests.Microsoft.VisualBasic
// FIXME
// On-line help says InvalidOperationException here,
// but MS throws IndexOutOfRangeException
// Assertion.AssertEquals("#E25", typeof(InvalidOperationException), e.GetType());
Assertion.AssertEquals("#E25", typeof(IndexOutOfRangeException), e.GetType());
// AssertEquals("#E25", typeof(InvalidOperationException), e.GetType());
AssertEquals("#E25", typeof(IndexOutOfRangeException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#E26", true, caughtException);
AssertEquals("#E26", true, caughtException);
caughtException = false;
@@ -505,14 +505,14 @@ namespace MonoTests.Microsoft.VisualBasic
catch (Exception e) {
// FIXME
// On-line help says this should throw an error. MS doesn't.
Assertion.AssertEquals("#E27", typeof(InvalidOperationException), e.GetType());
AssertEquals("#E27", typeof(InvalidOperationException), e.GetType());
caughtException = true;
}
// FIXME
// What to do about this? MS doesn't throw an error
// Assertion.AssertEquals("#E28", true, caughtException);
Assertion.AssertEquals("#E28", false, caughtException);
// AssertEquals("#E28", true, caughtException);
AssertEquals("#E28", false, caughtException);
caughtException = false;
@@ -528,14 +528,14 @@ namespace MonoTests.Microsoft.VisualBasic
catch (Exception e) {
// FIXME
// On-line help says this should throw an error. MS doesn't.
Assertion.AssertEquals("#E29", typeof(InvalidOperationException), e.GetType());
AssertEquals("#E29", typeof(InvalidOperationException), e.GetType());
caughtException = true;
}
// FIXME
// What to do about this? MS doesn't throw an error
// Assertion.AssertEquals("#E30", true, caughtException);
Assertion.AssertEquals("#E30", false, caughtException);
// AssertEquals("#E30", true, caughtException);
AssertEquals("#E30", false, caughtException);
caughtException = false;
}
@@ -16,7 +16,7 @@ namespace MonoTests.Microsoft.VisualBasic
{
[TestFixture]
public class ConversionTest
public class ConversionTest : Assertion
{
[SetUp]
@@ -44,106 +44,106 @@ namespace MonoTests.Microsoft.VisualBasic
System.String S;
System.Object O;
Assertion.AssertEquals("#F01", System.Int16.MaxValue, Conversion.Fix(System.Int16.MaxValue));
Assertion.AssertEquals("#F02", System.Int16.MinValue, Conversion.Fix(System.Int16.MinValue));
Assertion.AssertEquals("#F03", System.Int32.MaxValue, Conversion.Fix(System.Int32.MaxValue));
Assertion.AssertEquals("#F04", System.Int32.MinValue, Conversion.Fix(System.Int32.MinValue));
Assertion.AssertEquals("#F05", System.Int64.MaxValue, Conversion.Fix(System.Int64.MaxValue));
Assertion.AssertEquals("#F06", System.Int64.MinValue, Conversion.Fix(System.Int64.MinValue));
Assertion.AssertEquals("#F07", (System.Single)Math.Floor(System.Single.MaxValue), Conversion.Fix(System.Single.MaxValue));
Assertion.AssertEquals("#F08", -1 * (System.Single)Math.Floor(-1 * System.Single.MinValue), Conversion.Fix(System.Single.MinValue));
Assertion.AssertEquals("#F09", Math.Floor(System.Double.MaxValue), Conversion.Fix(System.Double.MaxValue));
Assertion.AssertEquals("#F10", -1 * Math.Floor(-1 * System.Double.MinValue), Conversion.Fix(System.Double.MinValue));
Assertion.AssertEquals("#F11", Decimal.Floor(System.Decimal.MaxValue), Conversion.Fix(System.Decimal.MaxValue));
Assertion.AssertEquals("#F12", -1 * Decimal.Floor(-1 * System.Decimal.MinValue), Conversion.Fix(System.Decimal.MinValue));
AssertEquals("#F01", System.Int16.MaxValue, Conversion.Fix(System.Int16.MaxValue));
AssertEquals("#F02", System.Int16.MinValue, Conversion.Fix(System.Int16.MinValue));
AssertEquals("#F03", System.Int32.MaxValue, Conversion.Fix(System.Int32.MaxValue));
AssertEquals("#F04", System.Int32.MinValue, Conversion.Fix(System.Int32.MinValue));
AssertEquals("#F05", System.Int64.MaxValue, Conversion.Fix(System.Int64.MaxValue));
AssertEquals("#F06", System.Int64.MinValue, Conversion.Fix(System.Int64.MinValue));
AssertEquals("#F07", (System.Single)Math.Floor(System.Single.MaxValue), Conversion.Fix(System.Single.MaxValue));
AssertEquals("#F08", -1 * (System.Single)Math.Floor(-1 * System.Single.MinValue), Conversion.Fix(System.Single.MinValue));
AssertEquals("#F09", Math.Floor(System.Double.MaxValue), Conversion.Fix(System.Double.MaxValue));
AssertEquals("#F10", -1 * Math.Floor(-1 * System.Double.MinValue), Conversion.Fix(System.Double.MinValue));
AssertEquals("#F11", Decimal.Floor(System.Decimal.MaxValue), Conversion.Fix(System.Decimal.MaxValue));
AssertEquals("#F12", -1 * Decimal.Floor(-1 * System.Decimal.MinValue), Conversion.Fix(System.Decimal.MinValue));
Sng = 99.1F;
Assertion.AssertEquals("#F13", 99F, Conversion.Fix(Sng));
AssertEquals("#F13", 99F, Conversion.Fix(Sng));
Sng = 99.6F;
Assertion.AssertEquals("#F14", 99F, Conversion.Fix(Sng));
AssertEquals("#F14", 99F, Conversion.Fix(Sng));
Sng = -99.1F;
Assertion.AssertEquals("#F15", -99F, Conversion.Fix(Sng));
AssertEquals("#F15", -99F, Conversion.Fix(Sng));
Sng = -99.6F;
Assertion.AssertEquals("#F16", -99F, Conversion.Fix(Sng));
AssertEquals("#F16", -99F, Conversion.Fix(Sng));
Dbl = 99.1;
Assertion.AssertEquals("#F17", 99D, Conversion.Fix(Dbl));
AssertEquals("#F17", 99D, Conversion.Fix(Dbl));
Dbl = 99.6;
Assertion.AssertEquals("#F18", 99D, Conversion.Fix(Dbl));
AssertEquals("#F18", 99D, Conversion.Fix(Dbl));
Dbl = -99.1;
Assertion.AssertEquals("#F19", -99D, Conversion.Fix(Dbl));
AssertEquals("#F19", -99D, Conversion.Fix(Dbl));
Dbl = -99.6;
Assertion.AssertEquals("#F20", -99D, Conversion.Fix(Dbl));
AssertEquals("#F20", -99D, Conversion.Fix(Dbl));
Dec = 99.1M;
Assertion.AssertEquals("#F21", 99M, Conversion.Fix(Dec));
AssertEquals("#F21", 99M, Conversion.Fix(Dec));
Dec = 99.6M;
Assertion.AssertEquals("#F22", 99M, Conversion.Fix(Dec));
AssertEquals("#F22", 99M, Conversion.Fix(Dec));
Dec = -99.1M;
Assertion.AssertEquals("#F23", -99M, Conversion.Fix(Dec));
AssertEquals("#F23", -99M, Conversion.Fix(Dec));
Dec = -99.6M;
Assertion.AssertEquals("#F24", -99M, Conversion.Fix(Dec));
AssertEquals("#F24", -99M, Conversion.Fix(Dec));
Dbl = 99.1;
S = Dbl.ToString();
Assertion.AssertEquals("#F25", 99D, Conversion.Fix(S));
AssertEquals("#F25", 99D, Conversion.Fix(S));
Dbl = 99.6;
S = Dbl.ToString();
Assertion.AssertEquals("#F26", 99D, Conversion.Fix(S));
AssertEquals("#F26", 99D, Conversion.Fix(S));
Dbl = -99.1;
S = Dbl.ToString();
Assertion.AssertEquals("#F27", -99D, Conversion.Fix(S));
AssertEquals("#F27", -99D, Conversion.Fix(S));
Dbl = -99.6;
S = Dbl.ToString();
Assertion.AssertEquals("#F28", -99D, Conversion.Fix(S));
AssertEquals("#F28", -99D, Conversion.Fix(S));
Dbl = 99.1;
O = Dbl;
Assertion.AssertEquals("#F29", 99D, Conversion.Fix(O));
AssertEquals("#F29", 99D, Conversion.Fix(O));
Sng = 99.6F;
O = Sng;
Assertion.AssertEquals("#F30", (System.Object)99F, Conversion.Fix(O));
AssertEquals("#F30", (System.Object)99F, Conversion.Fix(O));
Dbl = -99.1;
O = Dbl;
Assertion.AssertEquals("#F31", -99D, Conversion.Fix(O));
AssertEquals("#F31", -99D, Conversion.Fix(O));
Dec = -99.6M;
O = Dec;
Assertion.AssertEquals("#F32", (System.Object)(-99M), Conversion.Fix(O));
AssertEquals("#F32", (System.Object)(-99M), Conversion.Fix(O));
O = typeof(int);
@@ -153,22 +153,22 @@ namespace MonoTests.Microsoft.VisualBasic
Conversion.Fix(O);
}
catch (Exception e) {
Assertion.AssertEquals("#F33", typeof(ArgumentException), e.GetType());
AssertEquals("#F33", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#F34", true, caughtException);
AssertEquals("#F34", true, caughtException);
caughtException = false;
try {
Conversion.Fix(null);
}
catch (Exception e) {
Assertion.AssertEquals("#F35", typeof(ArgumentNullException), e.GetType());
AssertEquals("#F35", typeof(ArgumentNullException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#F36", true, caughtException);
AssertEquals("#F36", true, caughtException);
}
@@ -181,106 +181,106 @@ namespace MonoTests.Microsoft.VisualBasic
System.String S;
System.Object O;
Assertion.AssertEquals("#I01", System.Int16.MaxValue, Conversion.Int(System.Int16.MaxValue));
Assertion.AssertEquals("#I02", System.Int16.MinValue, Conversion.Int(System.Int16.MinValue));
Assertion.AssertEquals("#I03", System.Int32.MaxValue, Conversion.Int(System.Int32.MaxValue));
Assertion.AssertEquals("#I04", System.Int32.MinValue, Conversion.Int(System.Int32.MinValue));
Assertion.AssertEquals("#I05", System.Int64.MaxValue, Conversion.Int(System.Int64.MaxValue));
Assertion.AssertEquals("#I06", System.Int64.MinValue, Conversion.Int(System.Int64.MinValue));
Assertion.AssertEquals("#I07", (System.Single)Math.Floor(System.Single.MaxValue), Conversion.Int(System.Single.MaxValue));
Assertion.AssertEquals("#I08", (System.Single)Math.Floor(System.Single.MinValue), Conversion.Int(System.Single.MinValue));
Assertion.AssertEquals("#I09", Math.Floor(System.Double.MaxValue), Conversion.Int(System.Double.MaxValue));
Assertion.AssertEquals("#I10", Math.Floor(System.Double.MinValue), Conversion.Int(System.Double.MinValue));
Assertion.AssertEquals("#I11", Decimal.Floor(System.Decimal.MaxValue), Conversion.Int(System.Decimal.MaxValue));
Assertion.AssertEquals("#I12", Decimal.Floor(System.Decimal.MinValue), Conversion.Int(System.Decimal.MinValue));
AssertEquals("#I01", System.Int16.MaxValue, Conversion.Int(System.Int16.MaxValue));
AssertEquals("#I02", System.Int16.MinValue, Conversion.Int(System.Int16.MinValue));
AssertEquals("#I03", System.Int32.MaxValue, Conversion.Int(System.Int32.MaxValue));
AssertEquals("#I04", System.Int32.MinValue, Conversion.Int(System.Int32.MinValue));
AssertEquals("#I05", System.Int64.MaxValue, Conversion.Int(System.Int64.MaxValue));
AssertEquals("#I06", System.Int64.MinValue, Conversion.Int(System.Int64.MinValue));
AssertEquals("#I07", (System.Single)Math.Floor(System.Single.MaxValue), Conversion.Int(System.Single.MaxValue));
AssertEquals("#I08", (System.Single)Math.Floor(System.Single.MinValue), Conversion.Int(System.Single.MinValue));
AssertEquals("#I09", Math.Floor(System.Double.MaxValue), Conversion.Int(System.Double.MaxValue));
AssertEquals("#I10", Math.Floor(System.Double.MinValue), Conversion.Int(System.Double.MinValue));
AssertEquals("#I11", Decimal.Floor(System.Decimal.MaxValue), Conversion.Int(System.Decimal.MaxValue));
AssertEquals("#I12", Decimal.Floor(System.Decimal.MinValue), Conversion.Int(System.Decimal.MinValue));
Sng = 99.1F;
Assertion.AssertEquals("#I13", 99F, Conversion.Int(Sng));
AssertEquals("#I13", 99F, Conversion.Int(Sng));
Sng = 99.6F;
Assertion.AssertEquals("#I14", 99F, Conversion.Int(Sng));
AssertEquals("#I14", 99F, Conversion.Int(Sng));
Sng = -99.1F;
Assertion.AssertEquals("#I15", -100F, Conversion.Int(Sng));
AssertEquals("#I15", -100F, Conversion.Int(Sng));
Sng = -99.6F;
Assertion.AssertEquals("#I16", -100F, Conversion.Int(Sng));
AssertEquals("#I16", -100F, Conversion.Int(Sng));
Dbl = 99.1;
Assertion.AssertEquals("#I17", 99D, Conversion.Int(Dbl));
AssertEquals("#I17", 99D, Conversion.Int(Dbl));
Dbl = 99.6;
Assertion.AssertEquals("#I18", 99D, Conversion.Int(Dbl));
AssertEquals("#I18", 99D, Conversion.Int(Dbl));
Dbl = -99.1;
Assertion.AssertEquals("#I19", -100D, Conversion.Int(Dbl));
AssertEquals("#I19", -100D, Conversion.Int(Dbl));
Dbl = -99.6;
Assertion.AssertEquals("#I20", -100D, Conversion.Int(Dbl));
AssertEquals("#I20", -100D, Conversion.Int(Dbl));
Dec = 99.1M;
Assertion.AssertEquals("#I21", 99M, Conversion.Int(Dec));
AssertEquals("#I21", 99M, Conversion.Int(Dec));
Dec = 99.6M;
Assertion.AssertEquals("#I22", 99M, Conversion.Int(Dec));
AssertEquals("#I22", 99M, Conversion.Int(Dec));
Dec = -99.1M;
Assertion.AssertEquals("#I23", -100M, Conversion.Int(Dec));
AssertEquals("#I23", -100M, Conversion.Int(Dec));
Dec = -99.6M;
Assertion.AssertEquals("#I24", -100M, Conversion.Int(Dec));
AssertEquals("#I24", -100M, Conversion.Int(Dec));
Dbl = 99.1;
S = Dbl.ToString();
Assertion.AssertEquals("#I25", 99D, Conversion.Int(S));
AssertEquals("#I25", 99D, Conversion.Int(S));
Dbl = 99.6;
S = Dbl.ToString();
Assertion.AssertEquals("#I26", 99D, Conversion.Int(S));
AssertEquals("#I26", 99D, Conversion.Int(S));
Dbl = -99.1;
S = Dbl.ToString();
Assertion.AssertEquals("#I27", -100D, Conversion.Int(S));
AssertEquals("#I27", -100D, Conversion.Int(S));
Dbl = -99.6;
S = Dbl.ToString();
Assertion.AssertEquals("#I28", -100D, Conversion.Int(S));
AssertEquals("#I28", -100D, Conversion.Int(S));
Dbl = 99.1;
O = Dbl;
Assertion.AssertEquals("#I29", 99D, Conversion.Int(O));
AssertEquals("#I29", 99D, Conversion.Int(O));
Sng = 99.6F;
O = Sng;
Assertion.AssertEquals("#I30", 99F, Conversion.Int(O));
AssertEquals("#I30", 99F, Conversion.Int(O));
Dbl = -99.1;
O = Dbl;
Assertion.AssertEquals("#I31", -100D, Conversion.Int(O));
AssertEquals("#I31", -100D, Conversion.Int(O));
Dec = -99.6M;
O = Dec;
Assertion.AssertEquals("#I32", -100M, Conversion.Int(O));
AssertEquals("#I32", -100M, Conversion.Int(O));
// test the exceptions it's supposed to throw
@@ -291,22 +291,22 @@ namespace MonoTests.Microsoft.VisualBasic
Conversion.Fix(O);
}
catch (Exception e) {
Assertion.AssertEquals("#I33", typeof(ArgumentException), e.GetType());
AssertEquals("#I33", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#I34", true, caughtException);
AssertEquals("#I34", true, caughtException);
caughtException = false;
try {
Conversion.Int(null);
}
catch (Exception e) {
Assertion.AssertEquals("#I35", typeof(ArgumentNullException), e.GetType());
AssertEquals("#I35", typeof(ArgumentNullException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#I36", true, caughtException);
AssertEquals("#I36", true, caughtException);
}
@@ -314,14 +314,14 @@ namespace MonoTests.Microsoft.VisualBasic
// test the Hex function
[Test]
public void Hex() {
Assertion.AssertEquals("#H01", "FF", Conversion.Hex(System.Byte.MaxValue));
Assertion.AssertEquals("#H02", "0", Conversion.Hex(System.Byte.MinValue));
Assertion.AssertEquals("#H03", "7FFF", Conversion.Hex(System.Int16.MaxValue));
Assertion.AssertEquals("#H04", "8000", Conversion.Hex(System.Int16.MinValue));
Assertion.AssertEquals("#H05", "7FFFFFFF", Conversion.Hex(System.Int32.MaxValue));
Assertion.AssertEquals("#H06", "80000000", Conversion.Hex(System.Int32.MinValue));
Assertion.AssertEquals("#H07", "7FFFFFFFFFFFFFFF", Conversion.Hex(System.Int64.MaxValue));
Assertion.AssertEquals("#H08", "8000000000000000", Conversion.Hex(System.Int64.MinValue));
AssertEquals("#H01", "FF", Conversion.Hex(System.Byte.MaxValue));
AssertEquals("#H02", "0", Conversion.Hex(System.Byte.MinValue));
AssertEquals("#H03", "7FFF", Conversion.Hex(System.Int16.MaxValue));
AssertEquals("#H04", "8000", Conversion.Hex(System.Int16.MinValue));
AssertEquals("#H05", "7FFFFFFF", Conversion.Hex(System.Int32.MaxValue));
AssertEquals("#H06", "80000000", Conversion.Hex(System.Int32.MinValue));
AssertEquals("#H07", "7FFFFFFFFFFFFFFF", Conversion.Hex(System.Int64.MaxValue));
AssertEquals("#H08", "8000000000000000", Conversion.Hex(System.Int64.MinValue));
System.Byte UI8;
System.Int16 I16;
@@ -331,107 +331,107 @@ namespace MonoTests.Microsoft.VisualBasic
System.String S;
UI8 = 15;
Assertion.AssertEquals("#H09", "F", Conversion.Hex(UI8));
AssertEquals("#H09", "F", Conversion.Hex(UI8));
I16 = System.Byte.MaxValue;
Assertion.AssertEquals("#H10", "FF", Conversion.Hex(I16));
AssertEquals("#H10", "FF", Conversion.Hex(I16));
I16 = (System.Int16)((I16 + 1) * -1);
Assertion.AssertEquals("#H11", "FF00", Conversion.Hex(I16));
AssertEquals("#H11", "FF00", Conversion.Hex(I16));
I16 = -2;
Assertion.AssertEquals("#H12", "FFFE", Conversion.Hex(I16));
AssertEquals("#H12", "FFFE", Conversion.Hex(I16));
I32 = System.UInt16.MaxValue;
Assertion.AssertEquals("#H13", "FFFF", Conversion.Hex(I32));
AssertEquals("#H13", "FFFF", Conversion.Hex(I32));
I32 = (I32 + 1) * -1;
Assertion.AssertEquals("#H14", "FFFF0000", Conversion.Hex(I32));
AssertEquals("#H14", "FFFF0000", Conversion.Hex(I32));
I32 = -2;
Assertion.AssertEquals("#H15", "FFFFFFFE", Conversion.Hex(I32));
AssertEquals("#H15", "FFFFFFFE", Conversion.Hex(I32));
I64 = System.UInt32.MaxValue;
Assertion.AssertEquals("#H16", "FFFFFFFF", Conversion.Hex(I64));
AssertEquals("#H16", "FFFFFFFF", Conversion.Hex(I64));
I64 = (I64 + 1) * -1;
Assertion.AssertEquals("#H17", "FFFFFFFF00000000", Conversion.Hex(I64));
AssertEquals("#H17", "FFFFFFFF00000000", Conversion.Hex(I64));
I64 = -2;
Assertion.AssertEquals("#H18", "FFFFFFFFFFFFFFFE", Conversion.Hex(I64));
AssertEquals("#H18", "FFFFFFFFFFFFFFFE", Conversion.Hex(I64));
I16 = System.Byte.MaxValue;
S = I16.ToString();
Assertion.AssertEquals("#H19", "FF", Conversion.Hex(S));
AssertEquals("#H19", "FF", Conversion.Hex(S));
I16 = (System.Int16)((I16 + 1) * -1);
S = I16.ToString();
Assertion.AssertEquals("#H20", "FFFFFF00", Conversion.Hex(S));
AssertEquals("#H20", "FFFFFF00", Conversion.Hex(S));
I16 = -1;
S = I16.ToString();
Assertion.AssertEquals("#H21", "FFFFFFFF", Conversion.Hex(S));
AssertEquals("#H21", "FFFFFFFF", Conversion.Hex(S));
I32 = System.UInt16.MaxValue;
S = I32.ToString();
Assertion.AssertEquals("#H22", "FFFF", Conversion.Hex(S));
AssertEquals("#H22", "FFFF", Conversion.Hex(S));
I32 = (I32 + 1) * -1;
S = I32.ToString();
Assertion.AssertEquals("#H23", "FFFF0000", Conversion.Hex(S));
AssertEquals("#H23", "FFFF0000", Conversion.Hex(S));
I32 = -2;
S = I32.ToString();
Assertion.AssertEquals("#H24", "FFFFFFFE", Conversion.Hex(S));
AssertEquals("#H24", "FFFFFFFE", Conversion.Hex(S));
I64 = System.UInt32.MaxValue;
S = I64.ToString();
Assertion.AssertEquals("#H25", "FFFFFFFF", Conversion.Hex(S));
AssertEquals("#H25", "FFFFFFFF", Conversion.Hex(S));
I64 = (I64 + 1) * -1;
S = I64.ToString();
Assertion.AssertEquals("#H26", "FFFFFFFF00000000", Conversion.Hex(S));
AssertEquals("#H26", "FFFFFFFF00000000", Conversion.Hex(S));
UI8 = System.Byte.MaxValue;
O = UI8;
Assertion.AssertEquals("#H27", "FF", Conversion.Hex(O));
AssertEquals("#H27", "FF", Conversion.Hex(O));
I16 = System.Byte.MaxValue;
O = I16;
Assertion.AssertEquals("#H28", "FF", Conversion.Hex(O));
AssertEquals("#H28", "FF", Conversion.Hex(O));
I16 = (System.Int16)((I16 + 1) * -1);
O = I16;
Assertion.AssertEquals("#H29", "FF00", Conversion.Hex(O));
AssertEquals("#H29", "FF00", Conversion.Hex(O));
I16 = -2;
O = I16;
Assertion.AssertEquals("#H30", "FFFE", Conversion.Hex(O));
AssertEquals("#H30", "FFFE", Conversion.Hex(O));
I32 = System.UInt16.MaxValue;
O = I32;
Assertion.AssertEquals("#H31", "FFFF", Conversion.Hex(O));
AssertEquals("#H31", "FFFF", Conversion.Hex(O));
I32 = (I32 + 1) * -1;
O = I32;
Assertion.AssertEquals("#H32", "FFFF0000", Conversion.Hex(O));
AssertEquals("#H32", "FFFF0000", Conversion.Hex(O));
I32 = -2;
O = I32;
Assertion.AssertEquals("#H33", "FFFFFFFE", Conversion.Hex(O));
AssertEquals("#H33", "FFFFFFFE", Conversion.Hex(O));
I64 = System.UInt32.MaxValue;
O = I64;
Assertion.AssertEquals("#H34", "FFFFFFFF", Conversion.Hex(O));
AssertEquals("#H34", "FFFFFFFF", Conversion.Hex(O));
I64 = (I64 + 1) * -1;
O = I64;
Assertion.AssertEquals("#H35", "FFFFFFFF00000000", Conversion.Hex(O));
AssertEquals("#H35", "FFFFFFFF00000000", Conversion.Hex(O));
I64 = -2;
O = I64;
// FIXME : MS doesn't pass this test
//Assertion.AssertEquals("#H35", "FFFFFFFFFFFFFFFE", Conversion.Hex(O));
//AssertEquals("#H35", "FFFFFFFFFFFFFFFE", Conversion.Hex(O));
O = typeof(int);
@@ -440,11 +440,11 @@ namespace MonoTests.Microsoft.VisualBasic
Conversion.Hex(O);
}
catch (Exception e) {
Assertion.AssertEquals("#H36", typeof(ArgumentException), e.GetType());
AssertEquals("#H36", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#H37", true, caughtException);
AssertEquals("#H37", true, caughtException);
caughtException = false;
@@ -452,24 +452,24 @@ namespace MonoTests.Microsoft.VisualBasic
Conversion.Hex(null);
}
catch (Exception e) {
Assertion.AssertEquals("#H38", typeof(ArgumentNullException), e.GetType());
AssertEquals("#H38", typeof(ArgumentNullException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#H39", true, caughtException);
AssertEquals("#H39", true, caughtException);
}
// test the Oct function
[Test]
public void Oct() {
Assertion.AssertEquals("#O01", "377", Conversion.Oct(System.Byte.MaxValue));
Assertion.AssertEquals("#O02", "0", Conversion.Oct(System.Byte.MinValue));
Assertion.AssertEquals("#O03", "77777", Conversion.Oct(System.Int16.MaxValue));
Assertion.AssertEquals("#O04", "100000", Conversion.Oct(System.Int16.MinValue));
Assertion.AssertEquals("#O05", "17777777777", Conversion.Oct(System.Int32.MaxValue));
Assertion.AssertEquals("#O06", "20000000000", Conversion.Oct(System.Int32.MinValue));
Assertion.AssertEquals("#O07", "777777777777777777777", Conversion.Oct(System.Int64.MaxValue));
//Assertion.AssertEquals("#O08", "1000000000000000000000", Conversion.Oct(System.Int64.MinValue));
AssertEquals("#O01", "377", Conversion.Oct(System.Byte.MaxValue));
AssertEquals("#O02", "0", Conversion.Oct(System.Byte.MinValue));
AssertEquals("#O03", "77777", Conversion.Oct(System.Int16.MaxValue));
AssertEquals("#O04", "100000", Conversion.Oct(System.Int16.MinValue));
AssertEquals("#O05", "17777777777", Conversion.Oct(System.Int32.MaxValue));
AssertEquals("#O06", "20000000000", Conversion.Oct(System.Int32.MinValue));
AssertEquals("#O07", "777777777777777777777", Conversion.Oct(System.Int64.MaxValue));
//AssertEquals("#O08", "1000000000000000000000", Conversion.Oct(System.Int64.MinValue));
System.Byte UI8;
System.Int16 I16;
@@ -479,108 +479,108 @@ namespace MonoTests.Microsoft.VisualBasic
System.String S;
UI8 = 15;
Assertion.AssertEquals("#O09", "17", Conversion.Oct(UI8));
AssertEquals("#O09", "17", Conversion.Oct(UI8));
I16 = System.Byte.MaxValue;
Assertion.AssertEquals("#O10", "377", Conversion.Oct(I16));
AssertEquals("#O10", "377", Conversion.Oct(I16));
I16 = (System.Int16)((I16 + 1) * -1);
Assertion.AssertEquals("#O11", "177400", Conversion.Oct(I16));
AssertEquals("#O11", "177400", Conversion.Oct(I16));
I16 = -2;
Assertion.AssertEquals("#O12", "177776", Conversion.Oct(I16));
AssertEquals("#O12", "177776", Conversion.Oct(I16));
I32 = System.UInt16.MaxValue;
Assertion.AssertEquals("#O13", "177777", Conversion.Oct(I32));
AssertEquals("#O13", "177777", Conversion.Oct(I32));
I32 = (I32 + 1) * -1;
Assertion.AssertEquals("#O14", "37777600000", Conversion.Oct(I32));
AssertEquals("#O14", "37777600000", Conversion.Oct(I32));
I32 = -2;
Assertion.AssertEquals("#O15", "37777777776", Conversion.Oct(I32));
AssertEquals("#O15", "37777777776", Conversion.Oct(I32));
I64 = System.UInt32.MaxValue;
Assertion.AssertEquals("#O16", "37777777777", Conversion.Oct(I64));
AssertEquals("#O16", "37777777777", Conversion.Oct(I64));
I64 = (I64 + 1) * -1;
Assertion.AssertEquals("#O17", "1777777777740000000000", Conversion.Oct(I64));
AssertEquals("#O17", "1777777777740000000000", Conversion.Oct(I64));
I64 = -2;
Assertion.AssertEquals("#O18", "1777777777777777777776", Conversion.Oct(I64));
AssertEquals("#O18", "1777777777777777777776", Conversion.Oct(I64));
I16 = System.Byte.MaxValue;
S = I16.ToString();
Assertion.AssertEquals("#O19", "377", Conversion.Oct(S));
AssertEquals("#O19", "377", Conversion.Oct(S));
I16 = (System.Int16)((I16 + 1) * -1);
S = I16.ToString();
Assertion.AssertEquals("#O20", "37777777400", Conversion.Oct(S));
AssertEquals("#O20", "37777777400", Conversion.Oct(S));
I16 = -2;
S = I16.ToString();
Assertion.AssertEquals("#O21", "37777777776", Conversion.Oct(S));
AssertEquals("#O21", "37777777776", Conversion.Oct(S));
I32 = System.UInt16.MaxValue;
S = I32.ToString();
Assertion.AssertEquals("#O22", "177777", Conversion.Oct(S));
AssertEquals("#O22", "177777", Conversion.Oct(S));
I32 = (I32 + 1) * -1;
S = I32.ToString();
Assertion.AssertEquals("#O23", "37777600000", Conversion.Oct(S));
AssertEquals("#O23", "37777600000", Conversion.Oct(S));
I32 = -2;
S = I32.ToString();
Assertion.AssertEquals("#O24", "37777777776", Conversion.Oct(S));
AssertEquals("#O24", "37777777776", Conversion.Oct(S));
I64 = System.UInt32.MaxValue;
S = I64.ToString();
Assertion.AssertEquals("#O25", "37777777777", Conversion.Oct(S));
AssertEquals("#O25", "37777777777", Conversion.Oct(S));
I64 = (I64 + 1) * -1;
S = I64.ToString();
Assertion.AssertEquals("#O26", "1777777777740000000000", Conversion.Oct(S));
AssertEquals("#O26", "1777777777740000000000", Conversion.Oct(S));
UI8 = System.Byte.MaxValue;
O = UI8;
Assertion.AssertEquals("#O27", "377", Conversion.Oct(O));
AssertEquals("#O27", "377", Conversion.Oct(O));
I16 = System.Byte.MaxValue;
O = I16;
Assertion.AssertEquals("#O28", "377", Conversion.Oct(O));
AssertEquals("#O28", "377", Conversion.Oct(O));
I16 = (System.Int16)((I16 + 1) * -1);
O = I16;
Assertion.AssertEquals("#O29", "177400", Conversion.Oct(O));
AssertEquals("#O29", "177400", Conversion.Oct(O));
I16 = -2;
O = I16;
Assertion.AssertEquals("#O29", "177776", Conversion.Oct(O));
AssertEquals("#O29", "177776", Conversion.Oct(O));
I32 = System.UInt16.MaxValue;
O = I32;
Assertion.AssertEquals("#O30", "177777", Conversion.Oct(O));
AssertEquals("#O30", "177777", Conversion.Oct(O));
I32 = (I32 + 1) * -1;
O = I32;
Assertion.AssertEquals("#O31", "37777600000", Conversion.Oct(O));
AssertEquals("#O31", "37777600000", Conversion.Oct(O));
I32 = -2;
O = I32;
Assertion.AssertEquals("#O32", "37777777776", Conversion.Oct(O));
AssertEquals("#O32", "37777777776", Conversion.Oct(O));
I64 = System.UInt32.MaxValue;
O = I64;
Assertion.AssertEquals("#O33", "37777777777", Conversion.Oct(O));
AssertEquals("#O33", "37777777777", Conversion.Oct(O));
I64 = (I64 + 1) * -1;
O = I64;
Assertion.AssertEquals("#O34", "1777777777740000000000", Conversion.Oct(O));
AssertEquals("#O34", "1777777777740000000000", Conversion.Oct(O));
I64 = -2;
O = I64;
// FIXME: MS doesn't pass this test
// Assertion.AssertEquals("#O35", "1777777777777777777776", Conversion.Oct(O));
// AssertEquals("#O35", "1777777777777777777776", Conversion.Oct(O));
O = typeof(int);
@@ -589,11 +589,11 @@ namespace MonoTests.Microsoft.VisualBasic
Conversion.Oct(O);
}
catch (Exception e) {
Assertion.AssertEquals("#O36", typeof(ArgumentException), e.GetType());
AssertEquals("#O36", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#O37", true, caughtException);
AssertEquals("#O37", true, caughtException);
caughtException = false;
@@ -601,18 +601,18 @@ namespace MonoTests.Microsoft.VisualBasic
Conversion.Oct(null);
}
catch (Exception e) {
Assertion.AssertEquals("#O38", typeof(ArgumentNullException), e.GetType());
AssertEquals("#O38", typeof(ArgumentNullException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#O39", true, caughtException);
AssertEquals("#O39", true, caughtException);
}
// test the Str function
[Test]
public void Str() {
Assertion.AssertEquals("#S01", "-1", Conversion.Str(-1));
Assertion.AssertEquals("#S02", " 1", Conversion.Str(1));
AssertEquals("#S01", "-1", Conversion.Str(-1));
AssertEquals("#S02", " 1", Conversion.Str(1));
bool caughtException = false;
Object O = typeof(int);
@@ -621,11 +621,11 @@ namespace MonoTests.Microsoft.VisualBasic
Conversion.Str(O);
}
catch (Exception e) {
Assertion.AssertEquals("#S03", typeof(InvalidCastException), e.GetType());
AssertEquals("#S03", typeof(InvalidCastException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#S04", true, caughtException);
AssertEquals("#S04", true, caughtException);
caughtException = false;
@@ -633,7 +633,7 @@ namespace MonoTests.Microsoft.VisualBasic
Conversion.Str(null);
}
catch (Exception e) {
Assertion.AssertEquals("#S05", typeof(ArgumentNullException), e.GetType());
AssertEquals("#S05", typeof(ArgumentNullException), e.GetType());
caughtException = true;
}
}
@@ -641,14 +641,14 @@ namespace MonoTests.Microsoft.VisualBasic
// Test the Val function
[Test]
public void Val() {
Assertion.AssertEquals("#V01", 4, Conversion.Val('4'));
Assertion.AssertEquals("#V02", -3542.76, Conversion.Val(" - 3 5 .4 2 7 6E+ 0 0 2 "));
Assertion.AssertEquals("#V03", 255D, Conversion.Val("&HFF"));
Assertion.AssertEquals("#V04", 255D, Conversion.Val("&o377"));
AssertEquals("#V01", 4, Conversion.Val('4'));
AssertEquals("#V02", -3542.76, Conversion.Val(" - 3 5 .4 2 7 6E+ 0 0 2 "));
AssertEquals("#V03", 255D, Conversion.Val("&HFF"));
AssertEquals("#V04", 255D, Conversion.Val("&o377"));
System.Object O = " - 3 5 .4 7 6E+ 0 0 3";
Assertion.AssertEquals("#V05", -35476D, Conversion.Val(O));
AssertEquals("#V05", -35476D, Conversion.Val(O));
bool caughtException;
@@ -658,11 +658,11 @@ namespace MonoTests.Microsoft.VisualBasic
Conversion.Val("3E+9999999");
}
catch (Exception e) {
Assertion.AssertEquals("#V06", typeof(OverflowException), e.GetType());
AssertEquals("#V06", typeof(OverflowException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#V07", true, caughtException);
AssertEquals("#V07", true, caughtException);
caughtException = false;
@@ -670,10 +670,10 @@ namespace MonoTests.Microsoft.VisualBasic
Conversion.Val(typeof(int));
}
catch (Exception e) {
Assertion.AssertEquals("#V08", typeof(ArgumentException), e.GetType());
AssertEquals("#V08", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#V09", true, caughtException);
AssertEquals("#V09", true, caughtException);
}
}
}
@@ -17,7 +17,7 @@ using Microsoft.VisualBasic;
namespace MonoTests.Microsoft.VisualBasic
{
[TestFixture]
public class DateAndTimeTest {
public class DateAndTimeTest : Assertion {
private CultureInfo oldcult;
@@ -40,7 +40,7 @@ namespace MonoTests.Microsoft.VisualBasic
{
string s = DateAndTime.DateString;
DateTime dtNow = DateTime.Today;
Assertion.AssertEquals("#DS01", dtNow.ToShortDateString(), DateTime.Parse(s).ToShortDateString());
AssertEquals("#DS01", dtNow.ToShortDateString(), DateTime.Parse(s).ToShortDateString());
// TODO: Add a test for setting the date string too
}
@@ -48,7 +48,7 @@ namespace MonoTests.Microsoft.VisualBasic
[Test]
public void Today()
{
Assertion.AssertEquals("#TO01", DateTime.Today, DateAndTime.Today);
AssertEquals("#TO01", DateTime.Today, DateAndTime.Today);
// TODO: Add a test for setting Today
}
@@ -68,11 +68,11 @@ namespace MonoTests.Microsoft.VisualBasic
double secTimer3 = DateAndTime.Timer;
// should be same time within a reasonable tolerance
Assertion.Assert("#TI01", secNow >= secTimer);
Assertion.Assert("#TI02: SecTimer2=" + secTimer2 + " secNow=" + secNow, secTimer2 >= secNow);
Assert("#TI01", secNow >= secTimer);
Assert("#TI02: SecTimer2=" + secTimer2 + " secNow=" + secNow, secTimer2 >= secNow);
// third timer should be greater than the first
Assertion.Assert("#TI03", secTimer3 > secTimer);
Assert("#TI03", secTimer3 > secTimer);
}
[Test]
@@ -82,8 +82,8 @@ namespace MonoTests.Microsoft.VisualBasic
DateTime dtTest = DateAndTime.Now;
DateTime dtNow2 = DateTime.Now;
Assertion.Assert("#N01", dtTest >= dtNow);
Assertion.Assert("#N02", dtNow2 >= dtTest);
Assert("#N01", dtTest >= dtNow);
Assert("#N02", dtNow2 >= dtTest);
}
[Test]
@@ -96,8 +96,8 @@ namespace MonoTests.Microsoft.VisualBasic
DateTime dtNow2 = DateTime.Now;
TimeSpan tsNow2 = new TimeSpan(dtNow2.Hour, dtNow2.Minute, dtNow2.Second);
Assertion.Assert("#TOD01", tsTest.Ticks >= tsNow.Ticks);
Assertion.Assert("#TOD02", tsNow2.Ticks >= tsTest.Ticks);
Assert("#TOD01", tsTest.Ticks >= tsNow.Ticks);
Assert("#TOD02", tsNow2.Ticks >= tsTest.Ticks);
// TODO: add a test case for setting time of day
}
@@ -113,8 +113,8 @@ namespace MonoTests.Microsoft.VisualBasic
DateTime dtNow2 = DateTime.Now;
TimeSpan tsNow2 = new TimeSpan(dtNow2.Hour, dtNow2.Minute, dtNow2.Second);
Assertion.Assert("#TS01", tsTest.Ticks >= tsNow.Ticks);
Assertion.Assert("#TS02", tsNow2.Ticks >= tsTest.Ticks);
Assert("#TS01", tsTest.Ticks >= tsNow.Ticks);
Assert("#TS02", tsNow2.Ticks >= tsTest.Ticks);
// TODO: add a test case for setting TimeString
}
@@ -124,8 +124,8 @@ namespace MonoTests.Microsoft.VisualBasic
{
DateTime dtNow = DateTime.Now;
Assertion.AssertEquals("#DA01", dtNow.AddYears(1), DateAndTime.DateAdd(DateInterval.Year, 1, dtNow));
Assertion.AssertEquals("#DA02", dtNow.AddYears(-1), DateAndTime.DateAdd("yyyy", -1, dtNow));
AssertEquals("#DA01", dtNow.AddYears(1), DateAndTime.DateAdd(DateInterval.Year, 1, dtNow));
AssertEquals("#DA02", dtNow.AddYears(-1), DateAndTime.DateAdd("yyyy", -1, dtNow));
bool caughtException = false;
@@ -134,38 +134,38 @@ namespace MonoTests.Microsoft.VisualBasic
DateAndTime.DateAdd("foo", 1, dtNow);
}
catch (Exception e) {
Assertion.AssertEquals("#DA03", e.GetType(), typeof(ArgumentException));
AssertEquals("#DA03", e.GetType(), typeof(ArgumentException));
caughtException = true;
}
Assertion.AssertEquals("#DA04", caughtException, true);
AssertEquals("#DA04", caughtException, true);
Assertion.AssertEquals("#DA05", dtNow.AddMonths(6), DateAndTime.DateAdd(DateInterval.Quarter, 2, dtNow));
Assertion.AssertEquals("#DA06", dtNow.AddMonths(-6), DateAndTime.DateAdd("q", -2, dtNow));
AssertEquals("#DA05", dtNow.AddMonths(6), DateAndTime.DateAdd(DateInterval.Quarter, 2, dtNow));
AssertEquals("#DA06", dtNow.AddMonths(-6), DateAndTime.DateAdd("q", -2, dtNow));
Assertion.AssertEquals("#DA07", dtNow.AddMonths(3), DateAndTime.DateAdd(DateInterval.Month, 3, dtNow));
Assertion.AssertEquals("#DA08", dtNow.AddMonths(-3), DateAndTime.DateAdd("m", -3, dtNow));
AssertEquals("#DA07", dtNow.AddMonths(3), DateAndTime.DateAdd(DateInterval.Month, 3, dtNow));
AssertEquals("#DA08", dtNow.AddMonths(-3), DateAndTime.DateAdd("m", -3, dtNow));
Assertion.AssertEquals("#DA09", dtNow.AddDays(28), DateAndTime.DateAdd(DateInterval.WeekOfYear, 4, dtNow));
Assertion.AssertEquals("#DA10", dtNow.AddDays(-28), DateAndTime.DateAdd("ww", -4, dtNow));
AssertEquals("#DA09", dtNow.AddDays(28), DateAndTime.DateAdd(DateInterval.WeekOfYear, 4, dtNow));
AssertEquals("#DA10", dtNow.AddDays(-28), DateAndTime.DateAdd("ww", -4, dtNow));
Assertion.AssertEquals("#DA11", dtNow.AddDays(5), DateAndTime.DateAdd(DateInterval.Weekday, 5, dtNow));
Assertion.AssertEquals("#DA12", dtNow.AddDays(-5), DateAndTime.DateAdd("w", -5, dtNow));
AssertEquals("#DA11", dtNow.AddDays(5), DateAndTime.DateAdd(DateInterval.Weekday, 5, dtNow));
AssertEquals("#DA12", dtNow.AddDays(-5), DateAndTime.DateAdd("w", -5, dtNow));
Assertion.AssertEquals("#DA13", dtNow.AddDays(6), DateAndTime.DateAdd(DateInterval.DayOfYear, 6, dtNow));
Assertion.AssertEquals("#DA14", dtNow.AddDays(-6), DateAndTime.DateAdd("y", -6, dtNow));
AssertEquals("#DA13", dtNow.AddDays(6), DateAndTime.DateAdd(DateInterval.DayOfYear, 6, dtNow));
AssertEquals("#DA14", dtNow.AddDays(-6), DateAndTime.DateAdd("y", -6, dtNow));
Assertion.AssertEquals("#DA15", dtNow.AddDays(7), DateAndTime.DateAdd(DateInterval.Day, 7, dtNow));
Assertion.AssertEquals("#DA16", dtNow.AddDays(-7), DateAndTime.DateAdd("d", -7, dtNow));
AssertEquals("#DA15", dtNow.AddDays(7), DateAndTime.DateAdd(DateInterval.Day, 7, dtNow));
AssertEquals("#DA16", dtNow.AddDays(-7), DateAndTime.DateAdd("d", -7, dtNow));
Assertion.AssertEquals("#DA17", dtNow.AddHours(8), DateAndTime.DateAdd(DateInterval.Hour, 8, dtNow));
Assertion.AssertEquals("#DA18", dtNow.AddHours(-8), DateAndTime.DateAdd(DateInterval.Hour, -8, dtNow));
AssertEquals("#DA17", dtNow.AddHours(8), DateAndTime.DateAdd(DateInterval.Hour, 8, dtNow));
AssertEquals("#DA18", dtNow.AddHours(-8), DateAndTime.DateAdd(DateInterval.Hour, -8, dtNow));
Assertion.AssertEquals("#DA19", dtNow.AddMinutes(9), DateAndTime.DateAdd(DateInterval.Minute, 9, dtNow));
Assertion.AssertEquals("#DA20", dtNow.AddMinutes(-9), DateAndTime.DateAdd("n", -9, dtNow));
AssertEquals("#DA19", dtNow.AddMinutes(9), DateAndTime.DateAdd(DateInterval.Minute, 9, dtNow));
AssertEquals("#DA20", dtNow.AddMinutes(-9), DateAndTime.DateAdd("n", -9, dtNow));
Assertion.AssertEquals("#DA21", dtNow.AddSeconds(10), DateAndTime.DateAdd(DateInterval.Second, 10, dtNow));
Assertion.AssertEquals("#DA22", dtNow.AddSeconds(-10), DateAndTime.DateAdd("s", -10, dtNow));
AssertEquals("#DA21", dtNow.AddSeconds(10), DateAndTime.DateAdd(DateInterval.Second, 10, dtNow));
AssertEquals("#DA22", dtNow.AddSeconds(-10), DateAndTime.DateAdd("s", -10, dtNow));
caughtException = false;
@@ -174,10 +174,10 @@ namespace MonoTests.Microsoft.VisualBasic
}
catch (Exception e) {
caughtException = true;
Assertion.AssertEquals("#DA23", e.GetType(), typeof(Exception));
AssertEquals("#DA23", e.GetType(), typeof(Exception));
}
// Assertion.AssertEquals("#DA24", caughtException, true);
// AssertEquals("#DA24", caughtException, true);
}
[Test]
@@ -189,22 +189,22 @@ namespace MonoTests.Microsoft.VisualBasic
// TODO: Test this better
long diff = DateAndTime.DateDiff(DateInterval.Year, dtOld, dtNow, FirstDayOfWeek.System, FirstWeekOfYear.System);
Assertion.AssertEquals("#DD01", dtNow, dtOld.AddYears((int)diff));
AssertEquals("#DD01", dtNow, dtOld.AddYears((int)diff));
DateTime dtJan1 = new DateTime(2002, 1, 1);
DateTime dtDec31 = new DateTime(2001, 12, 31);
diff = DateAndTime.DateDiff(DateInterval.Year, dtDec31, dtJan1, FirstDayOfWeek.System, FirstWeekOfYear.System);
Assertion.AssertEquals("#DD02", 1L, diff);
AssertEquals("#DD02", 1L, diff);
diff = DateAndTime.DateDiff(DateInterval.Quarter, dtDec31, dtJan1, FirstDayOfWeek.System, FirstWeekOfYear.System);
Assertion.AssertEquals("#DD03", 1L, diff);
AssertEquals("#DD03", 1L, diff);
diff = DateAndTime.DateDiff(DateInterval.Month, dtDec31, dtJan1, FirstDayOfWeek.System, FirstWeekOfYear.System);
Assertion.AssertEquals("#DD04", 1L, diff);
AssertEquals("#DD04", 1L, diff);
DateTime dtJan4 = new DateTime(2001, 1, 4); // This is a Thursday
DateTime dtJan9 = new DateTime(2001, 1, 9); // This is the next Tuesday
@@ -212,11 +212,11 @@ namespace MonoTests.Microsoft.VisualBasic
long WD = DateAndTime.DateDiff(DateInterval.Weekday, dtJan4, dtJan9, FirstDayOfWeek.System, FirstWeekOfYear.System);
Assertion.AssertEquals ("#DD05", 0L, WD);
AssertEquals ("#DD05", 0L, WD);
long WY = DateAndTime.DateDiff(DateInterval.WeekOfYear, dtJan4, dtJan9, FirstDayOfWeek.System, FirstWeekOfYear.System);
Assertion.AssertEquals ("#DD06", 1L, WY);
AssertEquals ("#DD06", 1L, WY);
}
[Test]
@@ -226,21 +226,21 @@ namespace MonoTests.Microsoft.VisualBasic
// TODO: Test this better
Assertion.AssertEquals("#DP01", 2001, DateAndTime.DatePart(DateInterval.Year, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.System));
Assertion.AssertEquals("#DP02", 1, DateAndTime.DatePart(DateInterval.Quarter, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.System));
Assertion.AssertEquals("#DP03", 1, DateAndTime.DatePart(DateInterval.Month, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.System));
Assertion.AssertEquals("#DP04", 1, DateAndTime.DatePart(DateInterval.WeekOfYear, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.FirstFourDays));
Assertion.AssertEquals("#DP05", 53, DateAndTime.DatePart(DateInterval.WeekOfYear, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.FirstFullWeek));
Assertion.AssertEquals("#DP06", 1, DateAndTime.DatePart(DateInterval.WeekOfYear, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.Jan1));
Assertion.AssertEquals("#DP07", 1, DateAndTime.DatePart(DateInterval.WeekOfYear, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.System));
Assertion.AssertEquals("#DP08", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Friday, FirstWeekOfYear.FirstFourDays));
Assertion.AssertEquals("#DP09", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Saturday, FirstWeekOfYear.FirstFourDays));
Assertion.AssertEquals("#DP10", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Sunday, FirstWeekOfYear.FirstFourDays));
Assertion.AssertEquals("#DP11", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Monday, FirstWeekOfYear.FirstFourDays));
Assertion.AssertEquals("#DP12", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Tuesday, FirstWeekOfYear.FirstFourDays));
Assertion.AssertEquals("#DP13", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Wednesday, FirstWeekOfYear.FirstFourDays));
Assertion.AssertEquals("#DP14", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Thursday, FirstWeekOfYear.FirstFourDays));
Assertion.AssertEquals("#DP15", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.FirstFourDays));
AssertEquals("#DP01", 2001, DateAndTime.DatePart(DateInterval.Year, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.System));
AssertEquals("#DP02", 1, DateAndTime.DatePart(DateInterval.Quarter, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.System));
AssertEquals("#DP03", 1, DateAndTime.DatePart(DateInterval.Month, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.System));
AssertEquals("#DP04", 1, DateAndTime.DatePart(DateInterval.WeekOfYear, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.FirstFourDays));
AssertEquals("#DP05", 53, DateAndTime.DatePart(DateInterval.WeekOfYear, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.FirstFullWeek));
AssertEquals("#DP06", 1, DateAndTime.DatePart(DateInterval.WeekOfYear, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.Jan1));
AssertEquals("#DP07", 1, DateAndTime.DatePart(DateInterval.WeekOfYear, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.System));
AssertEquals("#DP08", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Friday, FirstWeekOfYear.FirstFourDays));
AssertEquals("#DP09", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Saturday, FirstWeekOfYear.FirstFourDays));
AssertEquals("#DP10", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Sunday, FirstWeekOfYear.FirstFourDays));
AssertEquals("#DP11", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Monday, FirstWeekOfYear.FirstFourDays));
AssertEquals("#DP12", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Tuesday, FirstWeekOfYear.FirstFourDays));
AssertEquals("#DP13", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Wednesday, FirstWeekOfYear.FirstFourDays));
AssertEquals("#DP14", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.Thursday, FirstWeekOfYear.FirstFourDays));
AssertEquals("#DP15", 5, DateAndTime.DatePart(DateInterval.Weekday, dtJan4, FirstDayOfWeek.System, FirstWeekOfYear.FirstFourDays));
}
@@ -251,7 +251,7 @@ namespace MonoTests.Microsoft.VisualBasic
DateTime dtJan4 = new DateTime(2001, 1, 4);
DateTime dtSerial = DateAndTime.DateSerial(2001, 1, 4);
Assertion.AssertEquals("#DS01", dtJan4, dtSerial);
AssertEquals("#DS01", dtJan4, dtSerial);
}
[Test]
@@ -263,12 +263,12 @@ namespace MonoTests.Microsoft.VisualBasic
DateAndTime.TimeSerial(0, -1440, -1);
}
catch (Exception e) {
Assertion.AssertEquals("#TS01", e.GetType(), typeof(ArgumentOutOfRangeException));
AssertEquals("#TS01", e.GetType(), typeof(ArgumentOutOfRangeException));
caughtException = true;
}
Assertion.AssertEquals("#TS02", true, caughtException);
AssertEquals("#TS02", true, caughtException);
Assertion.AssertEquals("#TS03", new DateTime(1, 1, 1, 1, 1, 1), DateAndTime.TimeSerial(1, 1, 1));
AssertEquals("#TS03", new DateTime(1, 1, 1, 1, 1, 1), DateAndTime.TimeSerial(1, 1, 1));
}
@@ -283,9 +283,9 @@ namespace MonoTests.Microsoft.VisualBasic
/* do nothing. this is what we expect */
}
catch (Exception e) {
Assertion.Fail ("Unexpected exception:" + e);
Fail ("Unexpected exception:" + e);
}
Assertion.AssertEquals("#DV03", new DateTime(1969, 2, 12), DateAndTime.DateValue("February 12, 1969"));
AssertEquals("#DV03", new DateTime(1969, 2, 12), DateAndTime.DateValue("February 12, 1969"));
}
[Test]
@@ -298,67 +298,67 @@ namespace MonoTests.Microsoft.VisualBasic
/* do nothing. this is what we expect */
}
catch (Exception e) {
Assertion.Fail ("Unexpected exception:" + e);
Fail ("Unexpected exception:" + e);
}
Assertion.AssertEquals("#TV03", new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 16, 35, 17), DateAndTime.TimeValue("4:35:17 PM"));
AssertEquals("#TV03", new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 16, 35, 17), DateAndTime.TimeValue("4:35:17 PM"));
}
[Test]
public void Year ()
{
DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1);
Assertion.AssertEquals("#Y01", jan1.Year, DateAndTime.Year(jan1));
AssertEquals("#Y01", jan1.Year, DateAndTime.Year(jan1));
}
[Test]
public void Month ()
{
DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1);
Assertion.AssertEquals("#MO01", jan1.Month, DateAndTime.Month(jan1));
AssertEquals("#MO01", jan1.Month, DateAndTime.Month(jan1));
}
[Test]
public void Day ()
{
DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1);
Assertion.AssertEquals("#D01", jan1.Day, DateAndTime.Day(jan1));
AssertEquals("#D01", jan1.Day, DateAndTime.Day(jan1));
}
[Test]
public void Hour ()
{
DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1);
Assertion.AssertEquals("#H01", jan1.Hour, DateAndTime.Hour(jan1));
AssertEquals("#H01", jan1.Hour, DateAndTime.Hour(jan1));
}
[Test]
public void Minute ()
{
DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1);
Assertion.AssertEquals("#MI01", jan1.Minute, DateAndTime.Minute(jan1));
AssertEquals("#MI01", jan1.Minute, DateAndTime.Minute(jan1));
}
[Test]
public void Second ()
{
DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1);
Assertion.AssertEquals("#S01", jan1.Second, DateAndTime.Second(jan1));
AssertEquals("#S01", jan1.Second, DateAndTime.Second(jan1));
}
[Test]
public void Weekday ()
{
DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1);
Assertion.AssertEquals("#W01", (int)jan1.DayOfWeek + 1, DateAndTime.Weekday(jan1, FirstDayOfWeek.System));
AssertEquals("#W01", (int)jan1.DayOfWeek + 1, DateAndTime.Weekday(jan1, FirstDayOfWeek.System));
}
[Test]
public void MonthName ()
{
DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1);
Assertion.AssertEquals("#MN01", CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedMonthName(jan1.Month),
AssertEquals("#MN01", CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedMonthName(jan1.Month),
DateAndTime.MonthName(jan1.Month, true));
Assertion.AssertEquals("#MN02", CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(jan1.Month),
AssertEquals("#MN02", CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(jan1.Month),
DateAndTime.MonthName(jan1.Month, false));
bool caughtException = false;
@@ -367,10 +367,10 @@ namespace MonoTests.Microsoft.VisualBasic
DateAndTime.MonthName(0, false);
}
catch (Exception e) {
Assertion.AssertEquals("#MN03", typeof(ArgumentException), e.GetType());
AssertEquals("#MN03", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#MN04", true, caughtException);
AssertEquals("#MN04", true, caughtException);
caughtException = false;
@@ -378,21 +378,21 @@ namespace MonoTests.Microsoft.VisualBasic
DateAndTime.MonthName(14, false);
}
catch (Exception e) {
Assertion.AssertEquals("#MN05", typeof(ArgumentException), e.GetType());
AssertEquals("#MN05", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#MN06", true, caughtException);
AssertEquals("#MN06", true, caughtException);
//Assertion.AssertEquals("#MN07", "", DateAndTime.MonthName(13, false));
//AssertEquals("#MN07", "", DateAndTime.MonthName(13, false));
}
[Test]
public void WeekdayName ()
{
DateTime jan1 = new DateTime(2001, 1, 1, 1, 1, 1);
Assertion.AssertEquals("#WN01", "Tue",
AssertEquals("#WN01", "Tue",
DateAndTime.WeekdayName((int)jan1.DayOfWeek + 1, true, FirstDayOfWeek.System));
Assertion.AssertEquals("#WN02", "Tuesday",
AssertEquals("#WN02", "Tuesday",
DateAndTime.WeekdayName((int)jan1.DayOfWeek + 1, false, FirstDayOfWeek.System));
bool caughtException = false;
@@ -401,10 +401,10 @@ namespace MonoTests.Microsoft.VisualBasic
DateAndTime.WeekdayName(0, false, FirstDayOfWeek.System);
}
catch (Exception e) {
Assertion.AssertEquals("#WN03", typeof(ArgumentException), e.GetType());
AssertEquals("#WN03", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#WN04", true, caughtException);
AssertEquals("#WN04", true, caughtException);
caughtException = false;
@@ -412,12 +412,12 @@ namespace MonoTests.Microsoft.VisualBasic
DateAndTime.WeekdayName(8, false, FirstDayOfWeek.System);
}
catch (Exception e) {
Assertion.AssertEquals("#WN05", typeof(ArgumentException), e.GetType());
AssertEquals("#WN05", typeof(ArgumentException), e.GetType());
caughtException = true;
}
Assertion.AssertEquals("#WN06", true, caughtException);
AssertEquals("#WN06", true, caughtException);
Assertion.AssertEquals("#WN07", "Tuesday", DateAndTime.WeekdayName((int)jan1.DayOfWeek + 1, false, FirstDayOfWeek.System));
AssertEquals("#WN07", "Tuesday", DateAndTime.WeekdayName((int)jan1.DayOfWeek + 1, false, FirstDayOfWeek.System));
}
}
}
+1
View File
@@ -60,3 +60,4 @@ Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StaticLocalInitFlag
Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/StringType.cs
Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/TODOAttribute.cs
Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/Utils.cs
Microsoft.VisualBasic/Microsoft.VisualBasic.CompilerServices/VBBinder.cs
+4
View File
@@ -1,3 +1,7 @@
2003-06-10 Zoltan Varga <[email protected]>
* MonoSymbolFile.cs: Fix off-by-one error.
2003-03-22 Martin Baulig <[email protected]>
* MonoSymbolTable.cs (MethodEntry.LocalNamesAmbiguous): New public
@@ -430,7 +430,7 @@ namespace Mono.CSharp.Debugger
for (int i = 0; i < MethodCount; i++) {
MethodIndexEntry ie = GetMethodIndexEntry (i + 1);
method_token_hash.Add (ie.Token, i);
method_token_hash.Add (ie.Token, i + 1);
}
}
@@ -1,3 +1,18 @@
2003-06-11 Tim Coleman <[email protected]>
* SybaseConnection.cs:
Make connection parameter parsing "more correct"
and throw appropriate exceptions, similar to MS SqlClient
* SybaseBinary.cs:
* SybaseBoolean.cs:
* SybaseByte.cs:
* SybaseDateTime.cs:
* SybaseDecimal.cs:
* SybaseDouble.cs:
* SybaseMoney.cs:
* SybaseString.cs:
Mass import of code from SqlClient to make this behave
better.
2003-02-16 Daniel Morgan <[email protected]>
* SybaseConnection.cs: - parse data source for 2 possible uses:
@@ -5,7 +5,7 @@
// Tim Coleman ([email protected])
// Daniel Morgan ([email protected])
//
// Copyright (C) Tim Coleman, 2002, 2003
// Copyright (C) Tim Coleman, 2002-2003
// Copyright (C) Daniel Morgan, 2003
//
@@ -48,7 +48,7 @@ namespace Mono.Data.SybaseClient {
int minPoolSize;
int maxPoolSize;
int packetSize;
int port = 1533;
int port = 2048;
// The current state
ConnectionState state = ConnectionState.Closed;
@@ -286,7 +286,7 @@ namespace Mono.Data.SybaseClient {
public void Open ()
{
string serverName = "";
if (connectionString == null)
if (connectionString == null || connectionString.Equals (""))
throw new InvalidOperationException ("Connection string has not been initialized.");
try {
@@ -325,10 +325,10 @@ namespace Mono.Data.SybaseClient {
private void ParseDataSource (string theDataSource, out int thePort, out string theServerName)
{
theServerName = "";
thePort = 1433; // default TCP port for SQL Server
int idx = 0;
if ((idx = theDataSource.IndexOf (",")) > -1) {
thePort = 2048;
int idx = 0;
if ((idx = theDataSource.IndexOf (",")) > -1) {
theServerName = theDataSource.Substring (0, idx);
string p = theDataSource.Substring (idx + 1);
thePort = Int32.Parse (p);
@@ -338,174 +338,187 @@ namespace Mono.Data.SybaseClient {
}
}
void SetConnectionString (string connectionString)
{
connectionString += ";";
NameValueCollection parameters = new NameValueCollection ();
private string ParseValue (string name, string value)
{
if (name.Length == 0 && value.Length > 0)
throw new ArgumentException ("Expected '=' delimiter while parsing connection value pair.");
if (name.Length > 0)
return value.Trim ();
return String.Empty;
}
if (connectionString == String.Empty)
return;
private void SetConnectionString (string connectionString)
{
if (connectionString == String.Empty) {
this.connectionString = connectionString;
return;
}
bool inQuote = false;
bool inDQuote = false;
NameValueCollection parameters = new NameValueCollection ();
string name = String.Empty;
string value = String.Empty;
StringBuilder sb = new StringBuilder ();
string name = String.Empty;
string value = String.Empty;
StringBuilder sb = new StringBuilder ();
foreach (char c in connectionString)
{
switch (c) {
case '\'':
inQuote = !inQuote;
break;
case '"' :
inDQuote = !inDQuote;
break;
case ';' :
if (!inDQuote && !inQuote) {
if (name != String.Empty && name != null) {
value = sb.ToString ();
parameters [name.ToUpper ().Trim ()] = value.Trim ();
}
name = String.Empty;
value = String.Empty;
sb = new StringBuilder ();
}
else
sb.Append (c);
break;
case '=' :
if (!inDQuote && !inQuote) {
name = sb.ToString ();
sb = new StringBuilder ();
}
else
sb.Append (c);
break;
default:
sb.Append (c);
break;
}
}
char delimiter = '\0';
if (this.ConnectionString == null)
{
SetDefaultConnectionParameters (parameters);
}
foreach (char c in connectionString) {
switch (c) {
case '\'' :
case '"' :
if (delimiter.Equals (c))
delimiter = '\0';
else if (delimiter.Equals ('\0'))
delimiter = c;
else
sb.Append (c);
break;
case ';' :
if (delimiter.Equals ('\0')) {
value = ParseValue (name, sb.ToString ());
if (!value.Equals (""))
parameters [name.ToUpper ().Trim ()] = value;
name = String.Empty;
sb = new StringBuilder ();
}
else
sb.Append (c);
break;
case '=' :
if (delimiter.Equals ('\0')) {
name = sb.ToString ();
sb = new StringBuilder ();
}
else
sb.Append (c);
break;
default:
sb.Append (c);
break;
}
}
SetProperties (parameters);
if (!delimiter.Equals ('\0'))
throw new ArgumentException (String.Format ("Matching end delimiter {0} not found in connection option value.", delimiter));
this.connectionString = connectionString;
}
value = ParseValue (name, sb.ToString ());
if (!value.Equals (""))
parameters [name.ToUpper ().Trim ()] = value;
void SetDefaultConnectionParameters (NameValueCollection parameters)
{
if (null == parameters.Get ("APPLICATION NAME"))
parameters["APPLICATION NAME"] = ".Net SybaseClient Data Provider";
if (null == parameters.Get ("CONNECT TIMEOUT") && null == parameters.Get ("CONNECTION TIMEOUT"))
parameters["CONNECT TIMEOUT"] = "15";
if (null == parameters.Get ("CONNECTION LIFETIME"))
parameters["CONNECTION LIFETIME"] = "0";
if (null == parameters.Get ("CONNECTION RESET"))
parameters["CONNECTION RESET"] = "true";
if (null == parameters.Get ("ENLIST"))
parameters["ENLIST"] = "true";
if (null == parameters.Get ("INTEGRATED SECURITY") && null == parameters.Get ("TRUSTED_CONNECTION"))
parameters["INTEGRATED SECURITY"] = "false";
if (null == parameters.Get ("MAX POOL SIZE"))
parameters["MAX POOL SIZE"] = "100";
if (null == parameters.Get ("MIN POOL SIZE"))
parameters["MIN POOL SIZE"] = "0";
if (null == parameters.Get ("NETWORK LIBRARY") && null == parameters.Get ("NET"))
parameters["NETWORK LIBRARY"] = "dbmssocn";
if (null == parameters.Get ("PACKET SIZE"))
parameters["PACKET SIZE"] = "512";
if (null == parameters.Get ("PERSIST SECURITY INFO"))
parameters["PERSIST SECURITY INFO"] = "false";
if (null == parameters.Get ("POOLING"))
parameters["POOLING"] = "true";
if (null == parameters.Get ("WORKSTATION ID"))
parameters["WORKSTATION ID"] = Dns.GetHostByName ("localhost").HostName;
}
if (this.ConnectionString == null)
SetDefaultConnectionParameters (parameters);
private void SetProperties (NameValueCollection parameters)
{
string value;
foreach (string name in parameters) {
value = parameters[name];
SetProperties (parameters);
switch (name) {
case "APPLICATION NAME" :
parms.ApplicationName = value;
break;
case "ATTACHDBFILENAME" :
case "EXTENDED PROPERTIES" :
case "INITIAL FILE NAME" :
break;
case "CONNECT TIMEOUT" :
case "CONNECTION TIMEOUT" :
connectionTimeout = Int32.Parse (value);
break;
case "CONNECTION LIFETIME" :
break;
case "CONNECTION RESET" :
connectionReset = !(value.ToUpper ().Equals ("FALSE") || value.ToUpper ().Equals ("NO"));
break;
case "CURRENT LANGUAGE" :
parms.Language = value;
break;
case "DATA SOURCE" :
case "SERVER" :
case "ADDRESS" :
case "ADDR" :
case "NETWORK ADDRESS" :
dataSource = value;
break;
case "ENLIST" :
break;
case "INITIAL CATALOG" :
case "DATABASE" :
parms.Database = value;
break;
case "INTEGRATED SECURITY" :
case "TRUSTED_CONNECTION" :
break;
case "MAX POOL SIZE" :
maxPoolSize = Int32.Parse (value);
break;
case "MIN POOL SIZE" :
minPoolSize = Int32.Parse (value);
break;
case "NET" :
case "NETWORK LIBRARY" :
if (!value.ToUpper ().Equals ("DBMSSOCN"))
throw new ArgumentException ("Unsupported network library.");
break;
case "PACKET SIZE" :
packetSize = Int32.Parse (value);
break;
case "PASSWORD" :
case "PWD" :
parms.Password = value;
break;
case "PERSIST SECURITY INFO" :
break;
case "POOLING" :
pooling = !(value.ToUpper ().Equals ("FALSE") || value.ToUpper ().Equals ("NO"));
break;
case "USER ID" :
parms.User = value;
break;
case "WORKSTATION ID" :
parms.Hostname = value;
break;
}
this.connectionString = connectionString;
}
private void SetDefaultConnectionParameters (NameValueCollection parameters)
{
if (null == parameters.Get ("APPLICATION NAME"))
parameters["APPLICATION NAME"] = "Mono SybaseClient Data Provider";
if (null == parameters.Get ("CONNECT TIMEOUT") && null == parameters.Get ("CONNECTION TIMEOUT"))
parameters["CONNECT TIMEOUT"] = "15";
if (null == parameters.Get ("CONNECTION LIFETIME"))
parameters["CONNECTION LIFETIME"] = "0";
if (null == parameters.Get ("CONNECTION RESET"))
parameters["CONNECTION RESET"] = "true";
if (null == parameters.Get ("ENLIST"))
parameters["ENLIST"] = "true";
if (null == parameters.Get ("INTEGRATED SECURITY") && null == parameters.Get ("TRUSTED_CONNECTION"))
parameters["INTEGRATED SECURITY"] = "false";
if (null == parameters.Get ("MAX POOL SIZE"))
parameters["MAX POOL SIZE"] = "100";
if (null == parameters.Get ("MIN POOL SIZE"))
parameters["MIN POOL SIZE"] = "0";
if (null == parameters.Get ("NETWORK LIBRARY") && null == parameters.Get ("NET"))
parameters["NETWORK LIBRARY"] = "dbmssocn";
if (null == parameters.Get ("PACKET SIZE"))
parameters["PACKET SIZE"] = "512";
if (null == parameters.Get ("PERSIST SECURITY INFO"))
parameters["PERSIST SECURITY INFO"] = "false";
if (null == parameters.Get ("POOLING"))
parameters["POOLING"] = "true";
if (null == parameters.Get ("WORKSTATION ID"))
parameters["WORKSTATION ID"] = Dns.GetHostByName ("localhost").HostName;
}
private void SetProperties (NameValueCollection parameters)
{
string value;
foreach (string name in parameters) {
value = parameters [name];
switch (name) {
case "APPLICATION NAME" :
parms.ApplicationName = value;
break;
case "ATTACHDBFILENAME" :
case "EXTENDED PROPERTIES" :
case "INITIAL FILE NAME" :
break;
case "CONNECT TIMEOUT" :
case "CONNECTION TIMEOUT" :
connectionTimeout = Int32.Parse (value);
break;
case "CONNECTION LIFETIME" :
break;
case "CONNECTION RESET" :
connectionReset = !(value.ToUpper ().Equals ("FALSE") || value.ToUpper ().Equals ("NO"));
break;
case "CURRENT LANGUAGE" :
parms.Language = value;
break;
case "DATA SOURCE" :
case "SERVER" :
case "ADDRESS" :
case "ADDR" :
case "NETWORK ADDRESS" :
dataSource = value;
break;
case "ENLIST" :
break;
case "INITIAL CATALOG" :
case "DATABASE" :
parms.Database = value;
break;
case "INTEGRATED SECURITY" :
case "TRUSTED_CONNECTION" :
break;
case "MAX POOL SIZE" :
maxPoolSize = Int32.Parse (value);
break;
case "MIN POOL SIZE" :
minPoolSize = Int32.Parse (value);
break;
case "NET" :
case "NETWORK LIBRARY" :
if (!value.ToUpper ().Equals ("DBMSSOCN"))
throw new ArgumentException ("Unsupported network library.");
break;
case "PACKET SIZE" :
packetSize = Int32.Parse (value);
break;
case "PASSWORD" :
case "PWD" :
parms.Password = value;
break;
case "PERSIST SECURITY INFO" :
break;
case "POOLING" :
pooling = !(value.ToUpper ().Equals ("FALSE") || value.ToUpper ().Equals ("NO"));
break;
case "USER ID" :
parms.User = value;
break;
case "WORKSTATION ID" :
parms.Hostname = value;
break;
}
}
}
static bool IsValidDatabaseName (string database)
private static bool IsValidDatabaseName (string database)
{
if (database.Length > 32 || database.Length < 1)
return false;
@@ -4,7 +4,10 @@
// Author:
// Tim Coleman ([email protected])
//
// (C) Copyright Tim Coleman, 2002
// Based on System.Data.SqlTypes.SqlBinary
//
// (C) Ximian, Inc. 2002-2003
// (C) Copyright Tim Coleman, 2002-2003
//
using Mono.Data.SybaseClient;
@@ -74,10 +77,16 @@ namespace Mono.Data.SybaseTypes {
#region Methods
[MonoTODO]
public int CompareTo (object value)
{
throw new NotImplementedException ();
if (value == null)
return 1;
else if (!(value is SybaseBinary))
throw new ArgumentException ("Value is not a Mono.Data.SybaseTypes.SybaseBinary.");
else if (((SybaseBinary) value).IsNull)
return 1;
else
return Compare (this, (SybaseBinary) value);
}
public static SybaseBinary Concat (SybaseBinary x, SybaseBinary y)
@@ -98,10 +107,12 @@ namespace Mono.Data.SybaseTypes {
return (x == y);
}
[MonoTODO]
public override int GetHashCode ()
{
throw new NotImplementedException ();
int result = 10;
for (int i = 0; i < value.Length; i += 1)
result = 91 * result + ((int) value [i]);
return result;
}
#endregion
@@ -149,64 +160,69 @@ namespace Mono.Data.SybaseTypes {
#region Operators
[MonoTODO]
public static SybaseBinary operator + (SybaseBinary x, SybaseBinary y)
{
throw new NotImplementedException ();
byte[] b = new byte [x.Length + y.Length];
int j = 0;
int i;
for (i = 0; i < x.Length; i += 1)
b [i] = x [i];
for (; i < x.Length + y.Length; i += 1) {
b [i] = y [j];
j += 1;
}
return new SybaseBinary (b);
}
[MonoTODO]
public static SybaseBoolean operator == (SybaseBinary x, SybaseBinary y)
{
if (x.IsNull || y.IsNull)
return SybaseBoolean.Null;
else
throw new NotImplementedException ();
return new SybaseBoolean (Compare (x, y) == 0);
}
[MonoTODO]
public static SybaseBoolean operator > (SybaseBinary x, SybaseBinary y)
{
if (x.IsNull || y.IsNull)
return SybaseBoolean.Null;
else
throw new NotImplementedException ();
return new SybaseBoolean (Compare (x, y) > 0);
}
[MonoTODO]
public static SybaseBoolean operator >= (SybaseBinary x, SybaseBinary y)
{
if (x.IsNull || y.IsNull)
return SybaseBoolean.Null;
else
throw new NotImplementedException ();
return new SybaseBoolean (Compare (x, y) >= 0);
}
[MonoTODO]
public static SybaseBoolean operator != (SybaseBinary x, SybaseBinary y)
{
if (x.IsNull || y.IsNull)
return SybaseBoolean.Null;
else
throw new NotImplementedException ();
return new SybaseBoolean (Compare (x, y) != 0);
}
[MonoTODO]
public static SybaseBoolean operator < (SybaseBinary x, SybaseBinary y)
{
if (x.IsNull || y.IsNull)
return SybaseBoolean.Null;
else
throw new NotImplementedException ();
return new SybaseBoolean (Compare (x, y) < 0);
}
[MonoTODO]
public static SybaseBoolean operator <= (SybaseBinary x, SybaseBinary y)
{
if (x.IsNull || y.IsNull)
return SybaseBoolean.Null;
else
throw new NotImplementedException ();
return new SybaseBoolean (Compare (x, y) <= 0);
}
public static explicit operator byte[] (SybaseBinary x)
@@ -214,10 +230,9 @@ namespace Mono.Data.SybaseTypes {
return x.Value;
}
[MonoTODO]
public static explicit operator SybaseBinary (SybaseGuid x)
{
throw new NotImplementedException ();
return new SybaseBinary (x.ToByteArray ());
}
public static implicit operator SybaseBinary (byte[] x)
@@ -225,6 +240,41 @@ namespace Mono.Data.SybaseTypes {
return new SybaseBinary (x);
}
private static int Compare (SybaseBinary x, SybaseBinary y)
{
int lengthDiff = 0;
if (x.Length != y.Length) {
lengthDiff = x.Length - y.Length;
// if diff more than 0, x is longer
if (lengthDiff > 0) {
for (int i = x.Length - 1; i > x.Length - lengthDiff; i -= 1)
if (x [i] != (byte) 0)
return 1;
} else {
for (int i = y.Length - 1; i > y.Length - lengthDiff; i -= 1)
if (y [i] != (byte) 0)
return -1;
}
}
// choose shorter
int len = (lengthDiff > 0) ? y.Length : x.Length;
for (int i = len - 1; i > 0; i -= 1) {
byte bx = x [i];
byte by = y [i];
if (bx > by)
return 1;
else if (bx < by)
return -1;
}
return 0;
}
#endregion
}
}
@@ -4,12 +4,15 @@
// Author:
// Tim Coleman ([email protected])
//
// (C) Copyright Tim Coleman, 2002
// Based on System.Data.SqlTypes.SqlBoolean
//
// (C) Ximian, Inc. 2002-2003
// (C) Copyright Tim Coleman, 2002-2003
//
using Mono.Data.SybaseClient;
using System;
using System.Data.SqlTypes;
using System.Data.SqlTypes;
using System.Globalization;
namespace Mono.Data.SybaseTypes {
@@ -4,6 +4,10 @@
// Author:
// Tim Coleman <[email protected]>
//
// Based on System.Data.SqlTypes.SqlByte
//
//
// (C) Ximian, Inc. 2002-2003
// (C) Copyright Tim Coleman, 2002
//
@@ -4,7 +4,10 @@
// Author:
// Tim Coleman <[email protected]>
//
// (C) Copyright Tim Coleman, 2002
// Based on System.Data.SqlTypes.SqlDateTime
//
// (C) Ximian, Inc. 2002-2003
// (C) Copyright Tim Coleman, 2002-2003
//
using Mono.Data.SybaseClient;
@@ -18,13 +21,15 @@ namespace Mono.Data.SybaseTypes {
#region Fields
private DateTime value;
private bool notNull;
private static readonly float DateTimeTicksPerHour = 3.6E+10f;
private static readonly DateTime Epoch = new DateTime (1900, 1, 1);
public static readonly SybaseDateTime MaxValue = new SybaseDateTime (9999,12,31);
public static readonly SybaseDateTime MaxValue = new SybaseDateTime (9999, 12, 31, 23, 59, 59);
public static readonly SybaseDateTime MinValue = new SybaseDateTime (1753,1,1);
public static readonly SybaseDateTime Null;
public static readonly int SQLTicksPerHour;
public static readonly int SQLTicksPerMinute;
public static readonly int SQLTicksPerSecond;
public static readonly int SQLTicksPerHour = 1080000;
public static readonly int SQLTicksPerMinute = 18000;
public static readonly int SQLTicksPerSecond = 300;
#endregion
@@ -36,10 +41,10 @@ namespace Mono.Data.SybaseTypes {
notNull = true;
}
[MonoTODO]
public SybaseDateTime (int dayTicks, int timeTicks)
{
throw new NotImplementedException ();
this.value = new DateTime (Epoch.Ticks + (long) (dayTicks + timeTicks));
notNull = true;
}
public SybaseDateTime (int year, int month, int day)
@@ -54,34 +59,40 @@ namespace Mono.Data.SybaseTypes {
notNull = true;
}
[MonoTODO]
public SybaseDateTime (int year, int month, int day, int hour, int minute, int second, double millisecond)
{
throw new NotImplementedException ();
DateTime t = new DateTime (year, month, day);
this.value = new DateTime ((long) (t.Day * 24 * SQLTicksPerHour + hour * SQLTicksPerHour + minute * SQLTicksPerMinute + second * SQLTicksPerSecond + millisecond * 1000));
notNull = true;
}
[MonoTODO]
public SybaseDateTime (int year, int month, int day, int hour, int minute, int second, int bilisecond)
{
throw new NotImplementedException ();
DateTime t = new DateTime (year, month, day);
this.value = new DateTime ((long) (t.Day * 24 * SQLTicksPerHour + hour * SQLTicksPerHour + minute * SQLTicksPerMinute + second * SQLTicksPerSecond + bilisecond));
notNull = true;
}
#endregion
#region Properties
[MonoTODO]
public int DayTicks {
get { throw new NotImplementedException (); }
get {
return (int) ((this.Value.Ticks - Epoch.Ticks) / (24 * DateTimeTicksPerHour));
}
}
public bool IsNull {
get { return !notNull; }
}
[MonoTODO]
public int TimeTicks {
get { throw new NotImplementedException (); }
get {
if (this.IsNull)
throw new SybaseNullValueException ();
return (int) (value.Hour * SQLTicksPerHour + value.Minute * SQLTicksPerMinute + value.Second * SQLTicksPerSecond + value.Millisecond);
}
}
public DateTime Value {
@@ -122,10 +133,9 @@ namespace Mono.Data.SybaseTypes {
return (x == y);
}
[MonoTODO]
public override int GetHashCode ()
{
return 42;
return value.GetHashCode ();
}
public static SybaseBoolean GreaterThan (SybaseDateTime x, SybaseDateTime y)
@@ -153,10 +163,9 @@ namespace Mono.Data.SybaseTypes {
return (x != y);
}
[MonoTODO]
public static SybaseDateTime Parse (string s)
{
throw new NotImplementedException ();
return new SybaseDateTime (DateTime.Parse (s));
}
public SybaseString ToSybaseString ()
@@ -172,10 +181,11 @@ namespace Mono.Data.SybaseTypes {
return value.ToString ();
}
[MonoTODO]
public static SybaseDateTime operator + (SybaseDateTime x, TimeSpan t)
{
throw new NotImplementedException ();
if (x.IsNull)
return SybaseDateTime.Null;
return new SybaseDateTime (x.Value + t);
}
public static SybaseBoolean operator == (SybaseDateTime x, SybaseDateTime y)
@@ -226,10 +236,11 @@ namespace Mono.Data.SybaseTypes {
return new SybaseBoolean (x.Value <= y.Value);
}
[MonoTODO]
public static SybaseDateTime operator - (SybaseDateTime x, TimeSpan t)
{
throw new NotImplementedException ();
if (x.IsNull)
return SybaseDateTime.Null;
return new SybaseDateTime (x.Value - t);
}
public static explicit operator DateTime (SybaseDateTime x)
@@ -237,10 +248,9 @@ namespace Mono.Data.SybaseTypes {
return x.Value;
}
[MonoTODO]
public static explicit operator SybaseDateTime (SybaseString x)
{
throw new NotImplementedException();
return SybaseDateTime.Parse (x.Value);
}
public static implicit operator SybaseDateTime (DateTime x)
@@ -4,6 +4,9 @@
// Author:
// Tim Coleman <[email protected]>
//
// Based on System.Data.SqlTypes.SqlDecimal
//
// (C) Ximian, Inc. 2002-2003
// (C) Copyright Tim Coleman, 2002
//
@@ -11,6 +14,7 @@ using Mono.Data.Tds.Protocol;
using System;
using System.Data.SqlTypes;
using System.Globalization;
using System.Text;
namespace Mono.Data.SybaseTypes {
public struct SybaseDecimal : INullable, IComparable
@@ -29,6 +33,14 @@ namespace Mono.Data.SybaseTypes {
const int SCALE_SHIFT = 16;
const int SIGN_SHIFT = 31;
const int RESERVED_SS32_BITS = 0x7F00FFFF;
const ulong LIT_GUINT64_HIGHBIT = 0x8000000000000000;
const ulong LIT_GUINT32_HIGHBIT = 0x80000000;
const byte DECIMAL_MAX_INTFACTORS = 9;
static uint [] constantsDecadeInt32Factors = new uint [10]
{
1u, 10u, 100u, 1000u, 10000u, 100000u, 1000000u,
10000000u, 100000000u, 1000000000u
};
public static readonly byte MaxPrecision = 38;
public static readonly byte MaxScale = 38;
@@ -45,19 +57,19 @@ namespace Mono.Data.SybaseTypes {
{
int[] binData = Decimal.GetBits (value);
this.precision = MaxPrecision; // this value seems unclear
this.scale = (byte)(binData[3] >> SCALE_SHIFT);
if (this.scale > MaxScale || (this.scale & RESERVED_SS32_BITS) != 0)
throw new ArgumentException(Locale.GetText ("Invalid scale"));
this.positive = ((binData[3] >> SIGN_SHIFT) > 0);
this.value = new int[4];
this.value[0] = binData[0];
this.value[1] = binData[1];
this.value[2] = binData[2];
this.value[3] = 0;
notNull = true;
positive = (value >= 0);
precision = GetPrecision (value);
}
public SybaseDecimal (double value) : this ((decimal)value) { }
@@ -77,15 +89,29 @@ namespace Mono.Data.SybaseTypes {
this.value[2] = data3;
this.value[3] = data4;
notNull = true;
if (precision < scale)
throw new ArgumentException ("Invalid scale");
if (this.ToDouble () > (Math.Pow (10, 38) -1) || this.ToDouble () < -(Math.Pow (10, 38)))
throw new SybaseTypeException ("Can't convert to SybaseDecimal.");
}
#endregion
#region Properties
[MonoTODO]
public byte[] BinData {
get { throw new NotImplementedException (); }
get {
byte[] b = new byte [value.Length * 4];
int j = 0;
for (int i = 0; i < value.Length; i += 1) {
b [j++] = (byte) (0xff & value [i]);
b [j++] = (byte) (0xff & value [i] >> 8);
b [j++] = (byte) (0xff & value [i] >> 16);
b [j++] = (byte) (0xff & value [i] >> 24);
}
return b;
}
}
public int[] Data {
@@ -117,12 +143,9 @@ namespace Mono.Data.SybaseTypes {
get {
if (this.IsNull)
throw new SybaseNullValueException ();
else
if (this.value[3] > 0)
throw new OverflowException ();
else
System.Console.WriteLine( "boo!" );
return new decimal (value[0], value[1], value[2], !positive, scale);
if (this.value[3] > 0)
throw new OverflowException ();
return new decimal (value[0], value[1], value[2], !positive, scale);
}
}
@@ -130,10 +153,9 @@ namespace Mono.Data.SybaseTypes {
#region Methods
[MonoTODO]
public static SybaseDecimal Abs (SybaseDecimal n)
{
throw new NotImplementedException();
return new SybaseDecimal (n.Precision, n.Scale, true, n.BinData [0], n.BinData [1], n.BinData [2], n.BinData [3]);
}
public static SybaseDecimal Add (SybaseDecimal x, SybaseDecimal y)
@@ -141,16 +163,21 @@ namespace Mono.Data.SybaseTypes {
return (x + y);
}
[MonoTODO]
public static SybaseDecimal AdjustScale (SybaseDecimal n, int digits, bool fRound)
{
throw new NotImplementedException ();
byte prec = n.Precision;
if (n.IsNull)
throw new SybaseNullValueException ();
if (digits > 0)
prec = (byte) (prec + digits);
if (fRound)
n = Round (n, digits + n.Scale);
return new SybaseDecimal (prec, (byte) (n.Scale + digits), n.IsPositive, n.Data);
}
[MonoTODO]
public static SybaseDecimal Ceiling (SybaseDecimal n)
{
throw new NotImplementedException();
return AdjustScale (n, -(n.Scale), true);
}
public int CompareTo (object value)
@@ -165,10 +192,9 @@ namespace Mono.Data.SybaseTypes {
return this.Value.CompareTo (((SybaseDecimal)value).Value);
}
[MonoTODO]
public static SybaseDecimal ConvertToPrecScale (SybaseDecimal n, int precision, int scale)
{
throw new NotImplementedException ();
return new SybaseDecimal ((byte) precision, (byte) scale, n.IsPositive, n.Data);
}
public static SybaseDecimal Divide (SybaseDecimal x, SybaseDecimal y)
@@ -180,6 +206,10 @@ namespace Mono.Data.SybaseTypes {
{
if (!(value is SybaseDecimal))
return false;
else if (this.IsNull && ((SybaseDecimal) value).IsNull)
return true;
else if (((SybaseDecimal) value).IsNull)
return false;
else
return (bool) (this == (SybaseDecimal)value);
}
@@ -189,10 +219,9 @@ namespace Mono.Data.SybaseTypes {
return (x == y);
}
[MonoTODO]
public static SybaseDecimal Floor (SybaseDecimal n)
{
throw new NotImplementedException ();
return AdjustScale (n, -(n.Scale), false);
}
internal static SybaseDecimal FromTdsBigDecimal (TdsBigDecimal x)
@@ -205,7 +234,15 @@ namespace Mono.Data.SybaseTypes {
public override int GetHashCode ()
{
return (int)this.Value;
int result = 10;
result = 91 * result + this.Data [0];
result = 91 * result + this.Data [1];
result = 91 * result + this.Data [2];
result = 91 * result + this.Data [3];
result = 91 * result + (int) this.Scale;
result = 91 * result + (int) this.Precision;
return result;
}
public static SybaseBoolean GreaterThan (SybaseDecimal x, SybaseDecimal y)
@@ -238,28 +275,38 @@ namespace Mono.Data.SybaseTypes {
return (x != y);
}
[MonoTODO]
public static SybaseDecimal Parse (string s)
{
throw new NotImplementedException ();
if (s == null)
throw new ArgumentNullException ();
else
return SybaseDouble.Parse (s).ToSybaseDecimal ();
}
[MonoTODO]
public static SybaseDecimal Power (SybaseDecimal n, double exp)
{
throw new NotImplementedException ();
if (n.IsNull)
return SybaseDecimal.Null;
return new SybaseDecimal (Math.Pow (n.ToDouble (), exp));
}
[MonoTODO]
public static SybaseDecimal Round (SybaseDecimal n, int position)
{
throw new NotImplementedException ();
if (n.IsNull)
throw new SybaseNullValueException ();
SybaseDecimal result = new SybaseDecimal (Math.Round ((double) (n.ToDouble () * Math.Pow (10, position))));
result = result / new SybaseDecimal (Math.Pow (10, position));
return result;
}
[MonoTODO]
public static SybaseInt32 Sign (SybaseDecimal n)
{
throw new NotImplementedException ();
SybaseInt32 result = 0;
if (n >= new SybaseDecimal (0))
result = 1;
else
result = -1;
return result;
}
public static SybaseDecimal Subtract (SybaseDecimal x, SybaseDecimal y)
@@ -267,9 +314,25 @@ namespace Mono.Data.SybaseTypes {
return (x - y);
}
private static byte GetPrecision (decimal value)
{
string str = value.ToString ();
byte result = 0;
foreach (char c in str)
if (c >= '0' && c <= '9')
result ++;
return result;
}
public double ToDouble ()
{
return ((double)this.Value);
// FIXME: This is the wrong way to do this
double d = (uint) this.Data [0];
d += ((uint) this.Data [1]) * Math.Pow (2, 32);
d += ((uint) this.Data [2]) * Math.Pow (2, 64);
d += ((uint) this.Data [3]) * Math.Pow (2, 96);
d /= Math.Pow (10, scale);
return d;
}
public SybaseBoolean ToSybaseBoolean ()
@@ -321,14 +384,520 @@ namespace Mono.Data.SybaseTypes {
{
if (this.IsNull)
return String.Empty;
// convert int [4] -> ulong [2]
ulong lo = (uint) this.Data [0] + (ulong) ((ulong) this.Data [1] << 32);
ulong hi = (uint) this.Data [2] + (ulong) ((ulong) this.Data [3] << 32);
uint rest = 0;
StringBuilder result = new StringBuilder ();
for (int i = 0; lo != 0 || hi != 0; i += 1) {
Div128By32 (ref hi, ref lo, 10, ref rest);
result.Insert (0, rest.ToString ());
}
while (result.Length < Precision)
result.Append ("0");
while (result.Length > Precision)
result.Remove (result.Length - 1, 1);
if (Scale > 0)
result.Insert (result.Length - Scale, ".");
return result.ToString ();
}
// from decimal.c
private static int Div128By32 (ref ulong hi, ref ulong lo, uint divider)
{
uint t = 0;
return Div128By32 (ref hi, ref lo, divider, ref t);
}
// from decimal.c
private static int Div128By32 (ref ulong hi, ref ulong lo, uint divider, ref uint rest)
{
ulong a = 0;
ulong b = 0;
ulong c = 0;
a = (uint) (hi >> 32);
b = a / divider;
a -= b * divider;
a <<= 32;
a |= (uint) hi;
c = a / divider;
a -= c * divider;
a <<= 32;
hi = b << 32 | (uint) c;
a = (uint) (lo >> 32);
b = a / divider;
a -= b * divider;
a <<= 32;
a |= (uint) lo;
c = a / divider;
a -= c * divider;
a <<= 32;
lo = b << 32 | (uint) c;
rest = (uint) a;
a <<= 1;
return (a > divider || (a == divider && (c & 1) == 1)) ? 1 : 0;
}
[MonoTODO ("Find out what is the right way to set scale and precision")]
private static SybaseDecimal DecimalDiv (SybaseDecimal x, SybaseDecimal y)
{
ulong lo = 0;
ulong hi = 0;
int sc = 0; // scale
int texp = 0;
byte prec = 0;
prec = x.Precision >= y.Precision ? x.Precision : y.Precision;
DecimalDivSub (ref x, ref y, ref lo, ref hi, ref texp);
sc = x.Scale - y.Scale;
Rescale128 (ref lo, ref hi, ref sc, texp, 0, 38, 1);
uint r = 0;
while (prec < sc) {
Div128By32 (ref hi, ref lo, 10, ref r);
sc -= 1;
}
if (r >= 5)
lo += 1;
while ((((double) hi) * Math.Pow (2, 64) + lo) - Math.Pow (10, prec) > 0)
prec += 1;
while ((prec + sc) > MaxScale) {
Div128By32 (ref hi, ref lo, 10, ref r);
sc -= 1;
if (r >= 5)
lo += 1;
}
int resultLo = (int) lo;
int resultMi = (int) (lo >> 32);
int resultMi2 = (int) hi;
int resultHi = (int) (hi >> 32);
return new SybaseDecimal (prec, (byte) sc, true, resultLo, resultMi, resultMi2, resultHi);
}
// From decimal.c
private static void Rescale128 (ref ulong clo, ref ulong chi, ref int scale, int texp, int minScale, int maxScale, int roundFlag)
{
uint factor = 0;
uint overhang = 0;
int sc = 0;
int i = 0;
int roundBit = 0;
sc = scale;
if (texp > 0) {
// reduce exp
while (texp > 0 && sc <= maxScale) {
overhang = (uint) (chi >> 64);
while (texp > 0 && (((clo & 1) == 0) || overhang > 0)) {
if (--texp == 0)
roundBit = (int) (clo & 1);
RShift128 (ref clo, ref chi);
overhang = (uint) (chi >> 32);
}
if (texp > DECIMAL_MAX_INTFACTORS)
i = DECIMAL_MAX_INTFACTORS;
else
i = texp;
if (sc + i > maxScale)
i = maxScale - sc;
if (i == 0)
break;
texp -= i;
sc += i;
// 10^i/2^i=5^i
factor = constantsDecadeInt32Factors [i] >> i;
Mult128By32 (ref clo, ref chi, factor, 0);
}
while (texp > 0) {
if (--texp == 0)
roundBit = (int) (clo & 1);
RShift128 (ref clo, ref chi);
}
}
while (sc > maxScale) {
i = scale - maxScale;
if (i > DECIMAL_MAX_INTFACTORS)
i = DECIMAL_MAX_INTFACTORS;
sc -= i;
roundBit = Div128By32 (ref clo, ref chi, constantsDecadeInt32Factors [i]);
}
while (sc < minScale) {
if (roundFlag == 0)
roundBit = 0;
i = minScale - sc;
if (i > DECIMAL_MAX_INTFACTORS)
i = DECIMAL_MAX_INTFACTORS;
sc += i;
Mult128By32 (ref clo, ref chi, constantsDecadeInt32Factors [i], roundBit);
roundBit = 0;
}
scale = sc;
Normalize128 (ref clo, ref chi, ref sc, roundFlag, roundBit);
}
// from decimal.c
private static void Normalize128 (ref ulong clo, ref ulong chi, ref int scale, int roundFlag, int roundBit)
{
if ((roundFlag != 0) && (roundBit != 0))
RoundUp128 (ref clo, ref chi);
}
// from decimal.c
private static void RoundUp128 (ref ulong lo, ref ulong hi)
{
if ((++lo) == 0)
++hi;
}
// from decimal.c
private static void DecimalDivSub (ref SybaseDecimal x, ref SybaseDecimal y, ref ulong clo, ref ulong chi, ref int exp)
{
ulong xlo, xmi, xhi;
ulong tlo = 0;
ulong tmi = 0;
ulong thi = 0;
uint ylo = 0;
uint ymi = 0;
uint ymi2 = 0;
uint yhi = 0;
int ashift = 0;
int bshift = 0;
int extraBit = 0;
xhi = (ulong) ((ulong) x.Data [3] << 32) | (ulong) x.Data [2];
xmi = (ulong) ((ulong) x.Data [1] << 32) | (ulong) x.Data [0];
xlo = (uint) 0;
ylo = (uint) y.Data [0];
ymi = (uint) y.Data [1];
ymi2 = (uint) y.Data [2];
yhi = (uint) y.Data [3];
if (ylo == 0 && ymi == 0 && ymi2 == 0 && yhi == 0)
throw new DivideByZeroException ();
if (xmi == 0 && xhi == 0) {
clo = chi = 0;
return;
}
// enlarge dividend to get maximal precision
for (ashift = 0; (xhi & LIT_GUINT64_HIGHBIT) == 0; ++ashift)
LShift128 (ref xmi, ref xhi);
// ensure that divisor is at least 2^95
for (bshift = 0; (yhi & LIT_GUINT32_HIGHBIT) == 0; ++bshift)
LShift128 (ref ylo, ref ymi, ref ymi2, ref yhi);
thi = ((ulong) yhi) << 32 | (ulong) ymi2;
tmi = ((ulong) ymi) << 32 | (ulong) ylo;
tlo = 0;
if (xhi > thi || (xhi == thi && xmi >= tmi)) {
Sub192 (xlo, xmi, xhi, tlo, tmi, thi, ref xlo, ref xmi, ref xhi);
extraBit = 1;
} else {
extraBit = 0;
}
Div192By128To128 (xlo, xmi, xhi, ylo, ymi, ymi2, yhi, ref clo, ref chi);
exp = 128 + ashift - bshift;
if (extraBit != 0) {
RShift128 (ref clo, ref chi);
chi += LIT_GUINT64_HIGHBIT;
exp -= 1;
}
// try loss free right shift
while (exp > 0 && (clo & 1) == 0) {
RShift128 (ref clo, ref chi);
exp -= 1;
}
}
// From decimal.c
private static void RShift192 (ref ulong lo, ref ulong mi, ref ulong hi)
{
lo >>= 1;
if ((mi & 1) != 0)
lo |= LIT_GUINT64_HIGHBIT;
mi >>= 1;
if ((hi & 1) != 0)
mi |= LIT_GUINT64_HIGHBIT;
hi >>= 1;
}
// From decimal.c
private static void RShift128 (ref ulong lo, ref ulong hi)
{
lo >>= 1;
if ((hi & 1) != 0)
lo |= LIT_GUINT64_HIGHBIT;
hi >>= 1;
}
// From decimal.c
private static void LShift128 (ref ulong lo, ref ulong hi)
{
hi <<= 1;
if ((lo & LIT_GUINT64_HIGHBIT) != 0)
hi += 1;
lo <<= 1;
}
// From decimal.c
private static void LShift128 (ref uint lo, ref uint mi, ref uint mi2, ref uint hi)
{
hi <<= 1;
if ((mi2 & LIT_GUINT32_HIGHBIT) != 0)
hi += 1;
mi2 <<= 1;
if ((mi & LIT_GUINT32_HIGHBIT) != 0)
mi2 += 1;
mi <<= 1;
if ((lo & LIT_GUINT32_HIGHBIT) != 0)
mi += 1;
lo <<= 1;
}
// From decimal.c
private static void Div192By128To128 (ulong xlo, ulong xmi, ulong xhi, uint ylo, uint ymi, uint ymi2, uint yhi, ref ulong clo, ref ulong chi)
{
ulong rlo, rmi, rhi; // remainders
uint h, c;
rlo = xlo;
rmi = xmi;
rhi = xhi;
h = Div192By128To32WithRest (ref rlo, ref rmi, ref rhi, ylo, ymi, ymi2, yhi);
// mid 32 bit
rhi = (rhi << 32) | (rmi >> 32);
rmi = (rmi << 32) | (rlo >> 32);
rlo <<= 32;
chi = (((ulong)h) << 32) | Div192By128To32WithRest (ref rlo, ref rmi, ref rhi, ylo, ymi, ymi2, yhi);
// low 32 bit
rhi = (rhi << 32) | (rmi >> 32);
rmi = (rmi << 32) | (rlo >> 32);
rlo <<= 32;
h = Div192By128To32WithRest (ref rlo, ref rmi, ref rhi, ylo, ymi, ymi2, yhi);
// estimate lowest 32 bit (two last bits may be wrong)
if (rhi >= yhi)
c = 0xFFFFFFFF;
else {
rhi <<= 32;
c = (uint)(rhi / yhi);
}
clo = (((ulong)h) << 32) | c;
}
// From decimal.c
private static uint Div192By128To32WithRest (ref ulong xlo, ref ulong xmi, ref ulong xhi, uint ylo, uint ymi, uint ymi2, uint yhi)
{
ulong rlo, rmi, rhi; // remainder
ulong tlo = 0;
ulong thi = 0;
uint c;
rlo = xlo;
rmi = xmi;
rhi = xhi;
if (rhi >= (((ulong)yhi << 32)))
c = 0xFFFFFFFF;
else
return value.ToString ();
c = (uint) (rhi / yhi);
Mult128By32To128 (ylo, ymi, ymi2, yhi, c, ref tlo, ref thi);
Sub192 (rlo, rmi, rhi, 0, tlo, thi, ref rlo, ref rmi, ref rhi);
while (((long)rhi) < 0) {
c--;
Add192 (rlo, rmi, rhi, 0, (((ulong)ymi) << 32) | ylo, yhi | ymi2, ref rlo, ref rmi, ref rhi);
}
xlo = rlo;
xmi = rmi;
xhi = rhi;
return c;
}
// From decimal.c
private static void Mult192By32 (ref ulong clo, ref ulong cmi, ref ulong chi, ulong factor, int roundBit)
{
ulong a = 0;
uint h0 = 0;
uint h1 = 0;
a = ((ulong)(uint)clo) * factor;
if (roundBit != 0)
a += factor / 2;
h0 = (uint)a;
a >>= 32;
a += (clo >> 32) * factor;
h1 = (uint)a;
clo = ((ulong)h1) << 32 | h0;
a >>= 32;
a += ((ulong)(uint)cmi) * factor;
h0 = (uint)a;
a >>= 32;
a += (cmi >> 32) * factor;
h1 = (uint)a;
cmi = ((ulong)h1) << 32 | h0;
a >>= 32;
a += ((ulong)(uint)chi) * factor;
h0 = (uint)a;
a >>= 32;
a += (chi >> 32) * factor;
h1 = (uint)a;
chi = ((ulong)h1) << 32 | h0;
}
// From decimal.c
private static void Mult128By32 (ref ulong clo, ref ulong chi, uint factor, int roundBit)
{
ulong a = 0;
uint h0 = 0;
uint h1 = 0;
a = ((ulong)(uint)clo) * factor;
if (roundBit != 0)
a += factor / 2;
h0 = (uint)a;
a >>= 32;
a += (clo >> 32) * factor;
h1 = (uint)a;
clo = ((ulong)h1) << 32 | h0;
a >>= 32;
a += ((ulong)(uint)chi) * factor;
h0 = (uint)a;
a >>= 32;
a += (chi >> 32) * factor;
h1 = (uint)a;
chi = ((ulong)h1) << 32 | h0;
}
// From decimal.c
private static void Mult128By32To128 (uint xlo, uint xmi, uint xmi2, uint xhi, uint factor, ref ulong clo, ref ulong chi)
{
ulong a;
uint h0, h1, h2;
a = ((ulong)xlo) * factor;
h0 = (uint)a;
a >>= 32;
a += ((ulong)xmi) * factor;
h1 = (uint)a;
a >>= 32;
a += ((ulong)xmi2) * factor;
h2 = (uint)a;
a >>= 32;
a += ((ulong)xhi) * factor;
clo = ((ulong)h1) << 32 | h0;
chi = a | h2;
}
// From decimal.c
private static void Add192 (ulong xlo, ulong xmi, ulong xhi, ulong ylo, ulong ymi, ulong yhi, ref ulong clo, ref ulong cmi, ref ulong chi)
{
xlo += ylo;
if (xlo < ylo) {
xmi++;
if (xmi == 0)
xhi++;
}
xmi += ymi;
if (xmi < ymi)
xmi++;
xhi += yhi;
clo = xlo;
cmi = xmi;
chi = xhi;
}
// From decimal.c
private static void Sub192 (ulong xlo, ulong xmi, ulong xhi, ulong ylo, ulong ymi, ulong yhi, ref ulong lo, ref ulong mi, ref ulong hi)
{
ulong clo = 0;
ulong cmi = 0;
ulong chi = 0;
clo = xlo - ylo;
cmi = xmi - ymi;
chi = xhi - yhi;
if (xlo < ylo) {
if (cmi == 0)
chi--;
cmi--;
}
if (xmi < ymi)
chi--;
lo = clo;
mi = cmi;
hi = chi;
}
[MonoTODO]
public static SybaseDecimal Truncate (SybaseDecimal n, int position)
{
throw new NotImplementedException ();
return new SybaseDecimal ((byte) n.Precision, (byte) position, n.IsPositive, n.Data);
}
public static SybaseDecimal operator + (SybaseDecimal x, SybaseDecimal y)
@@ -377,10 +946,9 @@ namespace Mono.Data.SybaseTypes {
return new SybaseDecimal (resultPrecision, x.Scale, x.IsPositive, resultBits);
}
[MonoTODO]
public static SybaseDecimal operator / (SybaseDecimal x, SybaseDecimal y)
{
throw new NotImplementedException ();
return DecimalDiv (x, y);
}
public static SybaseBoolean operator == (SybaseDecimal x, SybaseDecimal y)
@@ -4,7 +4,10 @@
// Author:
// Tim Coleman <[email protected]>
//
// (C) Copyright Tim Coleman, 2002
// Based on System.Data.SqlTypes.SqlDouble
//
// (C) Ximian, Inc. 2002-2003
// (C) Copyright Tim Coleman, 2002-2003
//
using Mono.Data.SybaseClient;
@@ -20,8 +23,8 @@ namespace Mono.Data.SybaseTypes {
private bool notNull;
public static readonly SybaseDouble MaxValue = new SybaseDouble (1.7976931348623157e308);
public static readonly SybaseDouble MinValue = new SybaseDouble (-1.7976931348623157e308);
public static readonly SybaseDouble MaxValue = new SybaseDouble (1.7976931348623157E+308);
public static readonly SybaseDouble MinValue = new SybaseDouble (-1.7976931348623157E+308);
public static readonly SybaseDouble Null;
public static readonly SybaseDouble Zero = new SybaseDouble (0);
@@ -4,7 +4,10 @@
// Author:
// Tim Coleman <[email protected]>
//
// (C) Copyright 2002 Tim Coleman
// Based on System.Data.SqlTypes.SqlMoney
//
// (C) Ximian, Inc. 2002-2003
// (C) Copyright Tim Coleman, 2002-2003
//
using Mono.Data.SybaseClient;
@@ -58,7 +61,6 @@ namespace Mono.Data.SybaseTypes {
#region Properties
[MonoTODO]
public bool IsNull {
get { return !notNull; }
}
@@ -4,13 +4,17 @@
// Author:
// Tim Coleman ([email protected])
//
// (C) Copyright Tim Coleman, 2002
// Based on System.Data.SqlTypes.SqlString
//
// (C) Ximian, Inc. 2002-2003
// (C) Copyright Tim Coleman, 2002-2003
//
using Mono.Data.SybaseClient;
using System;
using System.Data.SqlTypes;
using System.Globalization;
using System.Text;
namespace Mono.Data.SybaseTypes {
public struct SybaseString : INullable, IComparable
@@ -21,11 +25,14 @@ namespace Mono.Data.SybaseTypes {
private bool notNull;
public static readonly int BinarySort;
public static readonly int IgnoreCase;
public static readonly int IgnoreKanaType;
public static readonly int IgnoreNonSpace;
public static readonly int IgnoreWidth;
private CultureInfo cultureInfo;
private SybaseCompareOptions compareOptions;
public static readonly int BinarySort = 0x8000;
public static readonly int IgnoreCase = 0x1;
public static readonly int IgnoreKanaType = 0x8;
public static readonly int IgnoreNonSpace = 0x2;
public static readonly int IgnoreWidth = 0x10;
public static readonly SybaseString Null;
#endregion // Fields
@@ -36,55 +43,72 @@ namespace Mono.Data.SybaseTypes {
public SybaseString (string data)
{
this.value = data;
notNull = true;
this.cultureInfo = CultureInfo.CurrentCulture;
this.compareOptions = SybaseCompareOptions.None;
this.notNull = true;
}
// init with a string data and locale id values.
[MonoTODO]
public SybaseString (string data, int lcid)
: this (data, lcid, SybaseCompareOptions.None)
{
throw new NotImplementedException ();
}
// init with locale id, compare options,
// and an array of bytes data
[MonoTODO]
public SybaseString (int lcid, SybaseCompareOptions compareOptions, byte[] data)
: this (lcid, compareOptions, data, true)
{
throw new NotImplementedException ();
}
// init with string data, locale id, and compare options
[MonoTODO]
public SybaseString (string data, int lcid, SybaseCompareOptions compareOptions)
{
throw new NotImplementedException ();
this.value = data;
this.cultureInfo = new CultureInfo (lcid);
this.compareOptions = compareOptions;
this.notNull = true;
}
// init with locale id, compare options, array of bytes data,
// and whether unicode is encoded or not
[MonoTODO]
public SybaseString (int lcid, SybaseCompareOptions compareOptions, byte[] data, bool fUnicode)
{
throw new NotImplementedException ();
Encoding encoding;
if (fUnicode)
encoding = new UnicodeEncoding ();
else
encoding = new ASCIIEncoding ();
this.value = encoding.GetString (data);
this.cultureInfo = new CultureInfo (lcid);
this.compareOptions = compareOptions;
this.notNull = true;
}
// init with locale id, compare options, array of bytes data,
// starting index in the byte array,
// and number of bytes to copy
[MonoTODO]
public SybaseString (int lcid, SybaseCompareOptions compareOptions, byte[] data, int index, int count)
: this (lcid, compareOptions, data, index, count, true)
{
throw new NotImplementedException ();
}
// init with locale id, compare options, array of bytes data,
// starting index in the byte array, number of byte to copy,
// and whether unicode is encoded or not
[MonoTODO]
public SybaseString (int lcid, SybaseCompareOptions compareOptions, byte[] data, int index, int count, bool fUnicode)
{
throw new NotImplementedException ();
Encoding encoding;
if (fUnicode)
encoding = new UnicodeEncoding ();
else
encoding = new ASCIIEncoding ();
this.value = encoding.GetString (data, index, count);
this.cultureInfo = new CultureInfo (lcid);
this.compareOptions = compareOptions;
this.notNull = true;
}
#endregion // Constructors
@@ -93,15 +117,11 @@ namespace Mono.Data.SybaseTypes {
#region Public Properties
public CompareInfo CompareInfo {
[MonoTODO]
get { throw new NotImplementedException ();
}
get { return cultureInfo.CompareInfo; }
}
public CultureInfo CultureInfo {
[MonoTODO]
get { throw new NotImplementedException ();
}
get { return cultureInfo; }
}
public bool IsNull {
@@ -110,40 +130,45 @@ namespace Mono.Data.SybaseTypes {
// geographics location and language (locale id)
public int LCID {
[MonoTODO]
get { throw new NotImplementedException ();
}
get { return cultureInfo.LCID; }
}
public SybaseCompareOptions SybaseCompareOptions {
[MonoTODO]
get { throw new NotImplementedException ();
}
get { return compareOptions; }
}
public string Value {
get {
if (this.IsNull)
throw new SybaseNullValueException ("The property contains Null.");
else
return value;
}
}
public string Value {
get {
if (this.IsNull)
throw new SybaseNullValueException ("The property contains Null.");
else
return value;
}
}
#endregion // Public Properties
#region Public Methods
[MonoTODO]
public SybaseString Clone()
{
throw new NotImplementedException ();
return new SybaseString (value, LCID, SybaseCompareOptions);
}
[MonoTODO]
public static CompareOptions CompareOptionsFromSybaseCompareOptions (SybaseCompareOptions compareOptions)
{
throw new NotImplementedException ();
CompareOptions options = CompareOptions.None;
if ((compareOptions & SybaseCompareOptions.IgnoreCase) != 0)
options |= CompareOptions.IgnoreCase;
if ((compareOptions & SybaseCompareOptions.IgnoreKanaType) != 0)
options |= CompareOptions.IgnoreKanaType;
if ((compareOptions & SybaseCompareOptions.IgnoreNonSpace) != 0)
options |= CompareOptions.IgnoreNonSpace;
if ((compareOptions & SybaseCompareOptions.IgnoreWidth) != 0)
options |= CompareOptions.IgnoreWidth;
if ((compareOptions & SybaseCompareOptions.BinarySort) != 0)
throw new ArgumentOutOfRangeException ();
return options;
}
// **********************************
@@ -180,22 +205,33 @@ namespace Mono.Data.SybaseTypes {
return (x == y);
}
[MonoTODO]
public override int GetHashCode()
{
throw new NotImplementedException ();
int result = 10;
for (int i = 0; i < value.Length; i += 1)
result = 91 * result + (int) (value [i] ^ (value [i] >> 32));
result = 91 * result + LCID.GetHashCode ();
result = 91 * result + (int) compareOptions;
return result;
}
[MonoTODO]
public byte[] GetNonUnicodeBytes()
{
throw new NotImplementedException ();
return GetBytes (new ASCIIEncoding ());
}
[MonoTODO]
public byte[] GetUnicodeBytes()
{
throw new NotImplementedException ();
return GetBytes (new UnicodeEncoding ());
}
private byte[] GetBytes (Encoding encoding)
{
int blen = encoding.GetByteCount (value);
int clen = value.Length;
byte[] bytes = new byte [blen];
encoding.GetBytes (value, 0, clen, bytes, 0);
return bytes;
}
public static SybaseBoolean GreaterThan(SybaseString x, SybaseString y)
@@ -1,3 +1,15 @@
2003-05-07 Miguel de Icaza <[email protected]>
Patches from Igor Nosyryev <[email protected]>
* TdsComm.cs: (GetString): GetString adds extra byte to a string
at end. It suppose to be '\0', but '\0' is valid value in .NET
string, so this byte must not be used.
* Tds.cs (GetDecimalValue):Method reads extra byte if a DECIMAL
field contains NULL. As a result server's response is parsed
incorrectly and this method fires an exception.
2003-01-20 Gonzalo Paniagua Javier <[email protected]>
* Tds70.cs:
@@ -18,7 +18,7 @@ namespace Mono.Data.Tds.Protocol {
/// Use this to decorate any element which you think is not complete
/// </remarks>
[AttributeUsage (AttributeTargets.All)]
public class MonoTODOAttribute : Attribute {
internal class MonoTODOAttribute : Attribute {
string comment;
Loaded 100 of 1374 files, more files were not shown because too many files have changed in this diff. Show more