Sureshkumar T [Thu, 14 Jul 2005 12:53:20 +0000 (12:53 -0000)]
* DataView.cs: Patch from Marc Haisenko to throw descriptive error
message when accessing Item, with invalid index.
2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
svn path=/trunk/mcs/; revision=47303
Raja R Harinath [Thu, 14 Jul 2005 12:43:03 +0000 (12:43 -0000)]
* ecore.cs (IAlias): Remove.
* decl.cs (DeclSpace): Don't derive from IAlias. Remove members
that implement the interface.
* namespace.cs (Namespace): Likewise.
(Namespace.declspaces): Renamed from 'defined_names'.
(Namespace.AddDeclSpace): Renamed from 'DefineName'. Take a
DeclSpace instead of an IAlias.
* tree.cs (Tree.AddDecl): Update.
svn path=/trunk/mcs/; revision=47302
Sureshkumar T [Thu, 14 Jul 2005 12:27:56 +0000 (12:27 -0000)]
2005-07-14 Sureshkumar T <tsureshkumar@novell.com>
reapplied patch from Marc Haisenko.
* DataView.cs: Patch from Marc Haisenko that ensures that rowCache
is never null.
svn path=/trunk/mcs/; revision=47301
Atsushi Eno [Thu, 14 Jul 2005 11:57:19 +0000 (11:57 -0000)]
2005-07-14 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : IndexOf() was incorrectly sharing the same
byte[] field in different areas of code. Now extenders in both
source and target really work in IndexOf().
* CompareInfoTest.cs : removed some FIXMEs. Added more extender tests.
svn path=/trunk/mcs/; revision=47299
Lluis Sanchez [Thu, 14 Jul 2005 11:44:25 +0000 (11:44 -0000)]
2005-07-14 Lluis Sanchez Gual <lluis@novell.com>
* SoapReader.cs: Fixed parsing of array dimensions. Patch by Roei Erez
for bug #75536.
* SoapTypeMapper.cs: When encoding the name of a type, if the type is
an array don't encode the array dimensions.
svn path=/trunk/mcs/; revision=47298
Raja R Harinath [Thu, 14 Jul 2005 10:24:33 +0000 (10:24 -0000)]
Update
svn path=/trunk/mcs/; revision=47297
Lluis Sanchez [Thu, 14 Jul 2005 09:38:31 +0000 (09:38 -0000)]
2005-07-14 Lluis Sanchez Gual <lluis@novell.com>
* SerializationCodeGenerator.cs: In the generated serializer always
use the Object equality operator when comparing objects to serialize
to null, since those objects may have the equality operator
overloaded. This fixes bug #75543.
svn path=/trunk/mcs/; revision=47296
Atsushi Eno [Thu, 14 Jul 2005 08:12:53 +0000 (08:12 -0000)]
2005-07-14 Atsushi Enomoto <atsushi@ximian.com>
* create-mscompat-collation-table.cs : fixed U+FF9F diacritical weight.
* SimpleCollator.cs : handle U+FF9E and U+FF9F as extenders.
* CompareInfoTest.cs : some special weight tests got working.
Commented on some FIXME tests why they are so.
svn path=/trunk/mcs/; revision=47293
Atsushi Eno [Thu, 14 Jul 2005 07:36:22 +0000 (07:36 -0000)]
2005-07-14 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : Now FilterExtender() handles all extender
support. IndexOf() and LastIndexOf() now supports extenders.
IndexOf() and LastIndexOf() did not proceed contraction source
length as expected. Tiny refactoring on private IsPrefix() to take
stringSort argument.
* CompareInfoTest.cs : Added extender tests for GetSortKey(),
Compare(), IsPrefix(), IndexOf() and LastIndexOf().
svn path=/trunk/mcs/; revision=47292
Iain McCoy [Thu, 14 Jul 2005 02:35:58 +0000 (02:35 -0000)]
2005-07-14 Iain McCoy <iain@mccoy.id.au>
* demo/test.xaml: added first test of complex objects as property values
* demo/TestVocab/ConsoleReader.cs,
demo/TestVocab/ConsoleVars.cs: more functionality that will provide
uses for more complicated xaml code.
* xamlc.cs: much more useful error reporting.
* demo/TestVocab/ConsoleWriter.cs,
demo/TestVocab/ConsoleValue.cs,
demo/Makefile: Added ConsoleValue class to allow testing of more
complicated property scenarios
* demo/TestVocab/ConsoleVars.cs,
demo/TestVocab/ConsoleReader.cs: classes to put in more complicated
test
* Mono.Windows.Serialization/XamlParser.cs,
Mono.Windows.Serialization/XamlWriter.cs,
Mono.Windows.Serialization/CodeWriter.cs: Initial support for
creating complex objects as values of properties
* Mono.Windows.Serialization/XamlParser.cs: fixed bug in the code
detecting that the file's contents must be finished, where it forbade
whitespace after the XAML code
svn path=/trunk/mcs/; revision=47291
Miguel de Icaza [Thu, 14 Jul 2005 00:32:11 +0000 (00:32 -0000)]
Simpliferoo
svn path=/trunk/mcs/; revision=47290
Rafael Teixeira [Wed, 13 Jul 2005 23:05:51 +0000 (23:05 -0000)]
2005-07-13 Maverson Eduardo Schulze Rosa <maverson@gmail.com>
* mb-parser.jay:
* block.cs: Support and successfully find goto target labels
declared out of block that contains the goto statement.
svn path=/trunk/mcs/; revision=47289
Rafael Teixeira [Wed, 13 Jul 2005 23:02:10 +0000 (23:02 -0000)]
2005-07-13 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* test-mbas.make : make clean now kills .exe.mdb debug information files
2005-07-13 Maverson Eduardo Schulze Rosa <maverson@gmail.com>
* GotoStatementB.vb : Backward target label out of goto block.
svn path=/trunk/mcs/; revision=47288
Atsushi Eno [Wed, 13 Jul 2005 18:40:57 +0000 (18:40 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : when restoring from expansion, go back to the
top of the loop (to avoid index out of range).
Now IsPrefix() is implemented to reuse Compare() and thus it now
supports extender as well.
* Collation-notes.txt : status update. Deleted optimization part in
status section (it is duplicate).
* CompareInfoTest.cs : Added Compare() test that contains expansion.
Fixed CompareSpecialWeight() which was not testing what I intended.
Added IsPrefix() tests with special weight (copying Compare() tests)
svn path=/trunk/mcs/; revision=47280
Lluis Sanchez [Wed, 13 Jul 2005 18:09:43 +0000 (18:09 -0000)]
2005-07-13 Lluis Sanchez Gual <lluis@novell.com>
* MarshalByRefObject.cs: GetLifetimeService() should be virtual.
Fixes bug #75527.
svn path=/trunk/mcs/; revision=47278
Atsushi Eno [Wed, 13 Jul 2005 17:16:35 +0000 (17:16 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : some code reordering.
* create-mscompat-collation-table.cs : it was still missing U+3094.
svn path=/trunk/mcs/; revision=47277
Miguel de Icaza [Wed, 13 Jul 2005 16:38:00 +0000 (16:38 -0000)]
2005-07-13 Miguel de Icaza <miguel@novell.com>
* Array.cs: Patch from rodrigobamboo@gmail.com that fixes the
signature for GetValue and SetValue to make the long [] argument
be a params argument.
svn path=/trunk/mcs/; revision=47276
Gonzalo Paniagua Javier [Wed, 13 Jul 2005 16:23:35 +0000 (16:23 -0000)]
2005-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* AttributeCollection.cs: create the style collection if it wasn't
created before Add ("style"...).
svn path=/trunk/mcs/; revision=47274
Atsushi Eno [Wed, 13 Jul 2005 16:09:19 +0000 (16:09 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : Compare() now supports extender (e.g. U+39FC).
* CompareInfoTest.cs : added CompareSpecialWeight() and moved special
weight comparison there.
svn path=/trunk/mcs/; revision=47271
Rafael Teixeira [Wed, 13 Jul 2005 16:00:27 +0000 (16:00 -0000)]
2005-07-13 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
*statement.cs: extract class Block into new source block.cs
*mbas.exe.sources: added newly extracted block.cs
*block.cs: eliminated "block.cs(252) warning CS0219: The variable 'cur' is assigned but its value is never used"
svn path=/trunk/mcs/; revision=47270
Atsushi Eno [Wed, 13 Jul 2005 15:16:06 +0000 (15:16 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : In GetSortKey(), don't update previousChar when
it is not primary (e.g. don't "extend" diacritical mark).
* CompareInfoTest.cs : added GetSortKey() testcase that tests a
sequence of nonprimary character followed by an extender.
svn path=/trunk/mcs/; revision=47269
Atsushi Eno [Wed, 13 Jul 2005 14:08:59 +0000 (14:08 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* managed-collation.patch : CompareInfo.Compare() should consider
the possibilities that non-empty string might be actually empty
in culture-sensitive context.
* CompareInfoTest.cs : added more culture-sensitive "empty" test.
svn path=/trunk/mcs/; revision=47267
Atsushi Eno [Wed, 13 Jul 2005 13:34:27 +0000 (13:34 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : IndexOf() and LastIndexOf() returns start when
target is "empty" (in culture-sensitive context).
* CompareInfoTest.cs : Test for IndexOf() and LastIndexOf() with
"empty" target (in culture-sensitive context).
svn path=/trunk/mcs/; revision=47266
Atsushi Eno [Wed, 13 Jul 2005 13:24:03 +0000 (13:24 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : In IndexOf() and LastIndexOf(), skip ignorable
characters in target string.
* CompareInfoTest.cs : added ignorable character in target for
IsPrefix/IsSuffix/IndexOf/LastIndexOf methods.
svn path=/trunk/mcs/; revision=47265
Raja R Harinath [Wed, 13 Jul 2005 12:34:50 +0000 (12:34 -0000)]
Make even more lazier.
* MatchCollection.cs (TryToGet): Don't generate match i+1 when
we're looking for match i. Change post-conditions.
(FullList): New helper property. Ensures the list is fully populated.
(Count, CopyTo): Use it.
(Enumerator.Current): Update to new post-conditions of TryToGet.
(Enumerator.MoveNext): Likewise. Don't modify index if we're
beyond the end.
svn path=/trunk/mcs/; revision=47264
Iain McCoy [Wed, 13 Jul 2005 12:26:59 +0000 (12:26 -0000)]
2005-07-11 Iain McCoy <iain@mccoy.id.au>
* Makefile,
Test/XamlParser.cs: added a few tests
* Mono.Windows.Serialization/CodeWriter.cs,
Mono.Windows.Serialization/XamlParser.cs: fixed some bugs that the
new tests turned up
svn path=/trunk/mcs/; revision=47263
Atsushi Eno [Wed, 13 Jul 2005 12:05:53 +0000 (12:05 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added more special weight testcases.
svn path=/trunk/mcs/; revision=47262
Atsushi Eno [Wed, 13 Jul 2005 12:04:48 +0000 (12:04 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : When IgnoreWidth is specified, all Kana
characters are regarded as half-width.
Even though IgnoreWidth is specified, it should not ignore case.
For special weight comparison, the default values (E4) are bigger
than non-default values.
* SortKeyBuffer.cs : It should save LCID and original string.
* create-mscompat-collation-table.cs : For Japanese half-width kana,
it should not be counted in widthCompat map since IgnoreWidth does
not really ignore those differences.
svn path=/trunk/mcs/; revision=47261
Sureshkumar T [Wed, 13 Jul 2005 10:49:06 +0000 (10:49 -0000)]
2005-07-13 Sureshkumar T <tsureshkumar@novell.com>
* DataRelationCollection.cs: adding a relation with same set of
parent columns & child columns, should not be allowed.
svn path=/trunk/mcs/; revision=47260
Atsushi Eno [Wed, 13 Jul 2005 09:39:55 +0000 (09:39 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* create-mscompat-collation-table.cs : Fixed missing Japanese bits.
svn path=/trunk/mcs/; revision=47259
Atsushi Eno [Wed, 13 Jul 2005 09:11:00 +0000 (09:11 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* create-mscompat-collation-table.cs :
tiny diacritical weight fix for U+20D0-U+20E1.
svn path=/trunk/mcs/; revision=47258
Atsushi Eno [Wed, 13 Jul 2005 09:09:46 +0000 (09:09 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added Czech and Hungarian sorting tests.
svn path=/trunk/mcs/; revision=47257
Atsushi Eno [Wed, 13 Jul 2005 08:47:10 +0000 (08:47 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added more diacritical tests.
svn path=/trunk/mcs/; revision=47256
Atsushi Eno [Wed, 13 Jul 2005 08:14:56 +0000 (08:14 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* create-mscompat-collation-table.cs : ja CJK ideograph got completed.
svn path=/trunk/mcs/; revision=47255
Atsushi Eno [Wed, 13 Jul 2005 06:52:13 +0000 (06:52 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added test for CJK mapping customization.
svn path=/trunk/mcs/; revision=47254
Atsushi Eno [Wed, 13 Jul 2005 06:50:12 +0000 (06:50 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* create-mscompat-collation-table.cs : Fixed CJK custom Japanese
mapping. It (maybe as well as other CJK tables) mixes NFKD. For
Japanese, modified NFKD table (because of Windows lame design).
svn path=/trunk/mcs/; revision=47253
Atsushi Eno [Wed, 13 Jul 2005 03:53:26 +0000 (03:53 -0000)]
2005-07-13 Atsushi Enomoto <atsushi@ximian.com>
* Makefile : added MONO_USE_MANAGED_COLLATION=no almost everywhere.
* MSCompatUnicodeTable.cs : FillCJK() was not invoked. Now it is
invoked at any time it is required.
* SimpleCollator.cs : call FillCJK() above in .ctor().
* MSCompatUnicodeTableUtil.cs : CJK range was wider.
* create-mscompat-collation-table.cs : CJK binary was missing the
length. CJK remapping is being moved to ModifyUnidata().
For cjk-ja mapping, we have to consider compat characters to be
added to the map, besides the raw UCA table.
svn path=/trunk/mcs/; revision=47252
Gonzalo Paniagua Javier [Tue, 12 Jul 2005 22:11:12 +0000 (22:11 -0000)]
2005-07-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* AttributeCollection.cs: when the key added is 'style', use the style
collection.
svn path=/trunk/mcs/; revision=47242
Zoltan Varga [Tue, 12 Jul 2005 18:11:12 +0000 (18:11 -0000)]
2005-07-12 Zoltan Varga <vargaz@freemail.hu>
* class.c (mono_class_layout_fields): Fix calculation of has_references
for generic types.
svn path=/trunk/mono/; revision=47236
Eyal Alalouf [Tue, 12 Jul 2005 16:29:59 +0000 (16:29 -0000)]
Removed use of obsolete System.Data.Tests.Mainsoft/GHTUtils.
svn path=/trunk/mcs/; revision=47233
Eyal Alalouf [Tue, 12 Jul 2005 16:24:57 +0000 (16:24 -0000)]
Standardized Mainsoft System.Data exception tests.
svn path=/trunk/mcs/; revision=47232
Daniel Drake [Tue, 12 Jul 2005 16:11:56 +0000 (16:11 -0000)]
2005-07-12 Daniel Drake <dsd@gentoo.org>
* sys-xattr.c: Use <attr/attr.h> if <sys/xattr.h> does not exist (e.g. for
glibc 2.2)
* Makefile.am: Link to libattr if libc does not provide the xattr
syscalls.
svn path=/trunk/mono/; revision=47231
Daniel Drake [Tue, 12 Jul 2005 16:11:02 +0000 (16:11 -0000)]
2005-07-12 Daniel Drake <dsd@gentoo.org>
* configure.in: Add check for libattr's <attr/attr.h>
svn path=/trunk/mono/; revision=47230
Atsushi Eno [Tue, 12 Jul 2005 15:52:58 +0000 (15:52 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added GetSortKey() test for Thai.
svn path=/trunk/mcs/; revision=47229
Ritvik Mayank [Tue, 12 Jul 2005 15:41:13 +0000 (15:41 -0000)]
Test case for CheckedListBox and CheckBox
svn path=/trunk/mcs/; revision=47228
Eyal Alalouf [Tue, 12 Jul 2005 15:28:39 +0000 (15:28 -0000)]
Added missing file.
svn path=/trunk/mcs/; revision=47227
Atsushi Eno [Tue, 12 Jul 2005 15:21:27 +0000 (15:21 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added special weight GetSortKey() test.
svn path=/trunk/mcs/; revision=47226
Eyal Alalouf [Tue, 12 Jul 2005 15:18:24 +0000 (15:18 -0000)]
Standardized Mainsoft System.Data tests except exception tests.
svn path=/trunk/mcs/; revision=47225
Martin Baulig [Tue, 12 Jul 2005 15:11:05 +0000 (15:11 -0000)]
**** Merged r47171 from MCS ****
svn path=/trunk/mcs/; revision=47223
Martin Baulig [Tue, 12 Jul 2005 15:09:23 +0000 (15:09 -0000)]
**** Merged r47164 from MCS ****
svn path=/trunk/mcs/; revision=47222
Martin Baulig [Tue, 12 Jul 2005 15:08:59 +0000 (15:08 -0000)]
**** Merged r47107 from MCS ****
svn path=/trunk/mcs/; revision=47221
Martin Baulig [Tue, 12 Jul 2005 15:08:35 +0000 (15:08 -0000)]
**** Merged r47034 from MCS ****
svn path=/trunk/mcs/; revision=47220
Martin Baulig [Tue, 12 Jul 2005 15:08:10 +0000 (15:08 -0000)]
**** Merged r47030 from MCS ****
svn path=/trunk/mcs/; revision=47219
Martin Baulig [Tue, 12 Jul 2005 15:07:44 +0000 (15:07 -0000)]
**** Merged r47008 from MCS ****
svn path=/trunk/mcs/; revision=47218
Martin Baulig [Tue, 12 Jul 2005 15:05:38 +0000 (15:05 -0000)]
**** Merged r46994 from MCS ****
svn path=/trunk/mcs/; revision=47217
Martin Baulig [Tue, 12 Jul 2005 15:05:11 +0000 (15:05 -0000)]
**** Merged r46988 from MCS ****
svn path=/trunk/mcs/; revision=47216
Atsushi Eno [Tue, 12 Jul 2005 14:33:35 +0000 (14:33 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added several GetSortKey() tests.
svn path=/trunk/mcs/; revision=47215
Martin Baulig [Tue, 12 Jul 2005 14:27:03 +0000 (14:27 -0000)]
**** Merged r46986 from MCS ****
svn path=/trunk/mcs/; revision=47214
Eyal Alalouf [Tue, 12 Jul 2005 14:17:22 +0000 (14:17 -0000)]
Standardized Mainsoft DataRelationCollection tests.
svn path=/trunk/mcs/; revision=47213
Eyal Alalouf [Tue, 12 Jul 2005 14:10:01 +0000 (14:10 -0000)]
Standardized Mainsoft DataColumn tests.
svn path=/trunk/mcs/; revision=47212
Raja R Harinath [Tue, 12 Jul 2005 14:01:17 +0000 (14:01 -0000)]
* statement.cs (Block.Flags); Remove HasVarargs.
(Block.HasVarargs): Move to ToplevelBlock.
(Block.ThisVariable, Block.AddThisVariable): Likewise.
(Block.Variables): Make protected. Initialize variable hashtable
if necessary.
(Block.AddVariable): Update.
(Block.Resolve): Update to changes.
(ToplevelBlock.HasVarargs): New boolean.
(ToplevelBlock.ThisVariable): Move here from Block.
(ToplevelBlock.AddThisVariable): Likewise.
(ToplevelBlock.IsThisAssigned): New. Forwards call to this_variable.
* expression.cs (This.ResolveBase): Update to changes.
(ArglistAccess.DoResolve): Likewise.
More cleanups that move things that exist only in a toplevel-block to
ToplevelBlock.
svn path=/trunk/mcs/; revision=47211
Atsushi Eno [Tue, 12 Jul 2005 13:59:33 +0000 (13:59 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added shift weight testcases. Commented one
French sort thingy out.
svn path=/trunk/mcs/; revision=47210
Atsushi Eno [Tue, 12 Jul 2005 13:42:54 +0000 (13:42 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* SortKeyBuffer.cs : Fixed shift level computation to match w/ Windows.
svn path=/trunk/mcs/; revision=47208
Martin Baulig [Tue, 12 Jul 2005 13:02:18 +0000 (13:02 -0000)]
2005-07-12 Martin Baulig <martin@ximian.com>
Applying a patch from Michal Moskal <malekith@nemerle.org>.
* metadata.c
(mono_type_hash): Provide better hashing for generic instances.
(mono_generic_inst_hash): Improve hashing.
(mono_generic_class_hash): Likewise.
* reflection.c (mymono_metadata_type_hash): Improve hashing for
generic instances.
svn path=/trunk/mono/; revision=47207
Atsushi Eno [Tue, 12 Jul 2005 12:46:27 +0000 (12:46 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added another French testcase.
svn path=/trunk/mcs/; revision=47206
Martin Baulig [Tue, 12 Jul 2005 12:25:53 +0000 (12:25 -0000)]
2005-07-12 Martin Baulig <martin@ximian.com>
* reflection.c (mono_reflection_create_runtime_class): Remove the
hack for generic type definitions and non-`Run' assemblies.
(mono_reflection_bind_generic_parameters): Also use
`klass->wastypebuilder' to check for TypeBuilders.
svn path=/trunk/mono/; revision=47205
Atsushi Eno [Tue, 12 Jul 2005 12:15:35 +0000 (12:15 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : fixed LastIndexOf() to handle _target's_
contraction as expected. Fixed Compare() to save s2's contraction
as expected.
* TestDriver.cs :added LastIndexOf() tester w/ indexes.
svn path=/trunk/mcs/; revision=47204
Atsushi Eno [Tue, 12 Jul 2005 12:12:58 +0000 (12:12 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added LastIndexOf() contraction cases and more.
svn path=/trunk/mcs/; revision=47203
Atsushi Eno [Tue, 12 Jul 2005 11:26:09 +0000 (11:26 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added tests for IsSuffix(),
IndexOf(string,string) and LastIndexOf(string,string).
svn path=/trunk/mcs/; revision=47202
Zoltan Varga [Tue, 12 Jul 2005 11:05:46 +0000 (11:05 -0000)]
2005-07-12 Zoltan Varga <vargaz@freemail.hu>
* class.c (mono_class_layout_fields): Fix calculation of has_references
for generic types.
svn path=/trunk/mono/; revision=47201
Atsushi Eno [Tue, 12 Jul 2005 10:50:55 +0000 (10:50 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* managed-collation.patch : Fixed IsPrefix() and IsSuffix(). They
incorrectly use Compare().
* TestDriver.cs : more moved to nunit tests.
svn path=/trunk/mcs/; revision=47200
Atsushi Eno [Tue, 12 Jul 2005 10:49:05 +0000 (10:49 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added tests for IsPrefix() and optionally
Compare() (which is currently used inside IsPrefix() which is
however wrong when it comes to managed collation).
svn path=/trunk/mcs/; revision=47199
Manjula GHM [Tue, 12 Jul 2005 10:40:56 +0000 (10:40 -0000)]
Changed error number and message according to .NET
svn path=/trunk/mcs/; revision=47198
Zoltan Varga [Tue, 12 Jul 2005 10:20:19 +0000 (10:20 -0000)]
2005-07-12 Zoltan Varga <vargaz@freemail.hu>
* class.c (inflate_generic_class): Fix a leak.
(mono_class_init): Fix calculation of gchimpl and has_finalize fields
for generic types.
svn path=/trunk/mono/; revision=47197
Atsushi Eno [Tue, 12 Jul 2005 10:10:54 +0000 (10:10 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfo.cs : IndexOf(string, char, ...) overloads must not
specify start as 0. Use source.Length - 1 instead.
svn path=/trunk/mcs/; revision=47196
Atsushi Eno [Tue, 12 Jul 2005 10:04:40 +0000 (10:04 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added tests for IndexOf() and LastIndexOf().
Fixed tests for Compare() - it should use overloaded ones of
the tested library (do not call overloaded tests themselves).
svn path=/trunk/mcs/; revision=47195
Manjula GHM [Tue, 12 Jul 2005 09:46:13 +0000 (09:46 -0000)]
Support 'Nothing' for Constants.
Added exception
svn path=/trunk/mcs/; revision=47194
Atsushi Eno [Tue, 12 Jul 2005 09:29:17 +0000 (09:29 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : several fixes on Compare().
- Ignorable characters are skippted at the top of the loop.
- IgnoreNonSpace is checked to avoid extraneous level 2 comparison.
- In such case that s1 index is increased while s2 contraction is
replaced, s1 is inconsistently proceeded (bug).
- IsIgnorable() now also checks IgnoreNonSpace.
- Fixed FilterOptions() that does not work for IgnoreWidth at all.
* TestDriver.cs : now some are moved to nunit tests.
* Collation-notes.txt : minor todo update.
svn path=/trunk/mcs/; revision=47193
Atsushi Eno [Tue, 12 Jul 2005 09:22:41 +0000 (09:22 -0000)]
2005-07-12 Atsushi Enomoto <atsushi@ximian.com>
* CompareInfoTest.cs : added a few managed collation tests for
GetSortKey() and Compare() (they are ignored when managed collation
is off).
svn path=/trunk/mcs/; revision=47192
Gonzalo Paniagua Javier [Mon, 11 Jul 2005 22:20:52 +0000 (22:20 -0000)]
2005-07-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* TemplateControlCompiler.cs: in these cases, we're only interested in
public properties/fields, not protected.
svn path=/trunk/mcs/; revision=47189
Pedro Martínez Juliá [Mon, 11 Jul 2005 20:31:39 +0000 (20:31 -0000)]
2005-07-11 Pedro Martínez Juliá <pedromj@gmail.com>
* Convert.cs: Fix the bug when Convert.ChangeType was using
NumberFormatInfo instead of DateTimeFormatInfo when the type to
change is a DateTime.
svn path=/trunk/mcs/; revision=47188
César Natarén [Mon, 11 Jul 2005 19:20:15 +0000 (19:20 -0000)]
Changes from Florian Gross
svn path=/trunk/mcs/; revision=47187
César Natarén [Mon, 11 Jul 2005 19:19:11 +0000 (19:19 -0000)]
2005-07-07 Florian Gross <flgr@ccan.de>
* MathObject.cs: Implemented max and min (untested)
* ObjectConstructor.cs: Implemented Invoke
* StringConstructor.cs: Implemented Invoke and fromCharCode
* PostOrPrefixOperator.cs: Implemented EvaluatePostOrPrefix
* NumberConstructor: Implemented CreateInstance and Invoke
* expression.cs: Implemented unary operators void, +, -, !, ~ and !
* ArrayPrototype.cs: Implemented concat, push and unshift
* DatePrototype.cs: Implemented getDate, getDay, getFullYear, getHours,
getMilliseconds, getMinutes, getMonth, getSeconds, getTime,
getTimezoneOffset, getUTCDate, getUTCDay, getUTCFullYear, getUTCHours,
getUTCMilliseconds, getUTCMinutes, getUTCMonth, getUTCSeconds,
getVarDate, getYear, toDateString, toGMTString, toLocaleDateString,
toLocaleString, toLocaleTimeString, toString, toTimeString,
toUTCString and valueOf
* ObjectPrototype.cs: Implemented toLocaleString and valueOf
* StringPrototype.cs: Implemented substr and concat
* Convert.cs: Implemented ToPrimitive, ToBoolean and ToUint16. Added
more cases to IsNumberTypeCode, IsFloatTypeCode and ToInt32. Fixed
ToString with doubles
* Plus.cs: Added more cases. Fixed endless loop for unknown types via
ugly goto
* ArrayObject.cs: Added GetDefaultValue
* NumberObject.cs: Added GetDefaultValue
* StringObject.cs: Added GetDefaultValue
* BooleanObject.cs: Added GetDefaultValue
* GlobalObject.cs: Fixed parseFloat. Added parseInt and ScriptEngine*
functions
* JSObject.cs: Implemented abstract GetDefaultValue
* BitwiseBinary.cs: Implemented &, ^ and | operators
* BooleanConstructor.cs: Implemented Invoke
* DateConstructor.cs: Implemented infrastructure for DatePrototype.
Note: YearFromTime is ported from Rhino. Also implemented Invoke and
CreateInstance.
* NumberPrototype.cs: Implemented toFixed, toLocaleString and toString
* TokenStream.cs: Fixed locale dependant float parsing
* LateBinding.cs: Added proper support for varargs passing
svn path=/trunk/mcs/; revision=47186
Martin Baulig [Mon, 11 Jul 2005 17:26:25 +0000 (17:26 -0000)]
New test.
svn path=/trunk/mcs/; revision=47183
Martin Baulig [Mon, 11 Jul 2005 17:26:16 +0000 (17:26 -0000)]
2005-07-11 Martin Baulig <martin@ximian.com>
* generic.cs (ConstructedType.CheckConstraints): Improve the check
for the constructor constraint: we do not only have to check
whether the class has a public constructor, but also ensure that
it's parameterless. Fixes #75492.
svn path=/trunk/mcs/; revision=47182
Zoltan Varga [Mon, 11 Jul 2005 16:34:30 +0000 (16:34 -0000)]
2005-07-11 Zoltan Varga <vargaz@freemail.hu>
* tramp-amd64.c tramp-ia64.c Makefile.am: Move arch independent parts
of trampolines to a separate file.
svn path=/trunk/mono/; revision=47181
Zoltan Varga [Mon, 11 Jul 2005 16:28:24 +0000 (16:28 -0000)]
2005-07-11 Zoltan Varga <vargaz@freemail.hu>
* tramp-amd64.c Makefile.am: Move arch independent parts of trampolines
to a separate file.
svn path=/trunk/mono/; revision=47180
Martin Baulig [Mon, 11 Jul 2005 16:09:17 +0000 (16:09 -0000)]
New test.
svn path=/trunk/mcs/; revision=47179
Martin Baulig [Mon, 11 Jul 2005 16:08:47 +0000 (16:08 -0000)]
2005-07-11 Martin Baulig <martin@ximian.com>
* icall.c (ves_icall_Type_BindGenericParameters): Don't crash here
on error.
svn path=/trunk/mono/; revision=47178
Martin Baulig [Mon, 11 Jul 2005 16:08:31 +0000 (16:08 -0000)]
2005-07-11 Martin Baulig <martin@ximian.com>
* loader.c (find_method): Also lookup in
`mono_defaults.object_class' if we're an interfaces; fixes #75460.
svn path=/trunk/mono/; revision=47177
Martin Baulig [Mon, 11 Jul 2005 16:07:54 +0000 (16:07 -0000)]
2005-07-11 Martin Baulig <martin@ximian.com>
* TypeBuilder.cs (TypeBuilder.CreateType): Call
create_generic_class() here as well; fixes #75454.
svn path=/trunk/mcs/; revision=47176
Martin Baulig [Mon, 11 Jul 2005 16:05:39 +0000 (16:05 -0000)]
New test.
svn path=/trunk/mcs/; revision=47175
Marek Safar [Mon, 11 Jul 2005 16:05:09 +0000 (16:05 -0000)]
2005-07-11 Marek Safar <marek.safar@seznam.cz>
* Makefile: Disable warning 414.
svn path=/trunk/mcs/; revision=47174
Martin Baulig [Mon, 11 Jul 2005 16:04:25 +0000 (16:04 -0000)]
2005-07-11 Martin Baulig <martin@ximian.com>
* expression.cs (Binary.ResolveOperator): Only allow `==' and `!='
between type parameters if they either have the reference type
constraint or the class constraint.
svn path=/trunk/mcs/; revision=47173
Martin Baulig [Mon, 11 Jul 2005 16:03:47 +0000 (16:03 -0000)]
2005-07-11 Martin Baulig <martin@ximian.com>
* Array.cs: Use Type.Equals() instead of `==' to compare type
parameters.
svn path=/trunk/mcs/; revision=47172
Marek Safar [Mon, 11 Jul 2005 16:00:46 +0000 (16:00 -0000)]
2005-07-11 Marek Safar <marek.safar@seznam.cz>
Fix #75321
* ecore.cs, class.cs: Use SetAssigned instead of direct access.
* class.cs (TypeContainer.VerifyMembers): Distinguish between
not used and not used & assigned.
(FieldBase.ASSIGNED): Moved to MemberCore.Flags.
svn path=/trunk/mcs/; revision=47171
Atsushi Eno [Mon, 11 Jul 2005 14:39:09 +0000 (14:39 -0000)]
2005-07-11 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : Compare() was ignoring such case that both
entire strings have '-' to be compared.
* Collation-notes.txt : more status updates.
* TestDriver.cs : added '-' use cases.
svn path=/trunk/mcs/; revision=47170
Zoltan Varga [Mon, 11 Jul 2005 14:15:38 +0000 (14:15 -0000)]
2005-07-11 Zoltan Varga <vargaz@freemail.hu>
* mini-trampolines.c: New file.
* mini.h tramp-x86.c: Move arch independent parts of trampolines to a
separate file.
svn path=/trunk/mono/; revision=47169
Zoltan Varga [Mon, 11 Jul 2005 12:32:07 +0000 (12:32 -0000)]
2005-07-11 Zoltan Varga <vargaz@freemail.hu>
* tramp-x86.c: Reorganize the trampoline code to be similar to the
amd64/ia64 code.
svn path=/trunk/mono/; revision=47168
Raja R Harinath [Mon, 11 Jul 2005 11:46:03 +0000 (11:46 -0000)]
* Makefile (NO_TEST): Set.
* System.Configuration.Install_test.dll.sources: Remove.
Stub-out code. Pending rewrite.
svn path=/trunk/mcs/; revision=47167