mono.git
19 years ago2004-11-07 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Mon, 8 Nov 2004 00:45:35 +0000 (00:45 -0000)]
2004-11-07  Ben Maurer  <bmaurer@ximian.com>

* loader.c, loader.h (mono_method_get_header): new accessor.

* *.[ch]: use the above method. Prepares us to lazily load
the header.

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

19 years agoAdd new error case
Miguel de Icaza [Mon, 8 Nov 2004 00:45:27 +0000 (00:45 -0000)]
Add new error case

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

19 years ago2004-11-07 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Sun, 7 Nov 2004 22:49:19 +0000 (22:49 -0000)]
2004-11-07  Ben Maurer  <bmaurer@ximian.com>

* IntegerFormatter.cs: Avoid .ToCharArray, it was being used in
places where there was no reason for it. Also, allocate buffers
using stackalloc. This avoids the cost of allocating a char []
buffer in the gc. Also did some minor style changes.

This gives a huge reduction in memory allocation for integer formatting.
often you see something like:

665 KB System.IntegerFormatter::FormatGeneral(long,int,NumberFormatInfo,bool,int)
    463 KB    11710 System.Char[]
    201 KB    11710 System.String

This patch removes the char [] part. (it also removes the
tochararray, which accounts for even more.

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

19 years ago2004-11-07 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 7 Nov 2004 21:09:13 +0000 (21:09 -0000)]
2004-11-07  Zoltan Varga  <vargaz@freemail.hu>

* exceptions-sparc.c (get_throw_exception): Fix more bugs in previous
patch.

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

19 years ago2004-11-07 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 7 Nov 2004 20:49:10 +0000 (20:49 -0000)]
2004-11-07  Zoltan Varga  <vargaz@freemail.hu>

* cpu-sparc.md: Add op_rethrow.

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

19 years ago2004-11-07 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 7 Nov 2004 20:27:49 +0000 (20:27 -0000)]
2004-11-07  Zoltan Varga  <vargaz@freemail.hu>

* exceptions-sparc.c (get_throw_exception): Fix bug in previous patch.

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

19 years ago2004-11-07 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 7 Nov 2004 20:19:02 +0000 (20:19 -0000)]
2004-11-07  Zoltan Varga  <vargaz@freemail.hu>

* mini-sparc.h mini-sparc.c exceptions-sparc.c: Add support for OP_RETHROW.

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

19 years ago2004-11-07 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 7 Nov 2004 20:15:42 +0000 (20:15 -0000)]
2004-11-07  Zoltan Varga  <vargaz@freemail.hu>

* mini.h: Add mono_arch_get_rethrow_exception () arch specific function.
* mini-ops.h: Add OP_RETHROW.

* mini.c inssel.brg: Distinguish between THROW and RETHROW.

* cpu-amd64.c mini-amd64.c exceptions-amd64.c: Add support for OP_RETHROW.

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

19 years ago2004-11-07 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 7 Nov 2004 19:52:27 +0000 (19:52 -0000)]
2004-11-07  Zoltan Varga  <vargaz@freemail.hu>

* mono-jni.c (GET_SET_ARRAY_ELEMENTS): Fix compilation errors on
gcc 3.3.5.

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

19 years agouse inherited constructor
César Natarén [Sun, 7 Nov 2004 18:19:16 +0000 (18:19 -0000)]
use inherited constructor

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

19 years agoupdate README
César Natarén [Sun, 7 Nov 2004 18:17:02 +0000 (18:17 -0000)]
update README

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

19 years ago2004-11-07 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
César Natarén [Sun, 7 Nov 2004 18:10:45 +0000 (18:10 -0000)]
2004-11-07  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>

* BinaryOp.cs: added constructor for instantiating derived classes.
* BitwiseBinary.cs, Equality.cs, In.cs, InstanceOf.cs,
NumericBinary.cs, Plus.cs, Relational.cs, StrictEquality.cs,
expression.cs (classes Binary, Assign): use inherited constructor.
* BitwiseBinary.cs, Equality.cs: deleted public constructor which carried the context.

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

19 years agowack-a-mole time...
Ben Maurer [Sun, 7 Nov 2004 17:30:57 +0000 (17:30 -0000)]
wack-a-mole time...

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

19 years ago2004-11-07 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Sun, 7 Nov 2004 17:09:30 +0000 (17:09 -0000)]
2004-11-07  Ben Maurer  <bmaurer@ximian.com>

* *.[ch]: Clean up all the pesky warnings. gcc now only gives
three warnings, which are actual bugs (see 69206).

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

19 years ago2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 7 Nov 2004 15:11:44 +0000 (15:11 -0000)]
2004-11-05  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaSet.cs : reduced extraneous XmlSchemaObjectTable creation.

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

19 years ago2004-11-07 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 7 Nov 2004 14:54:10 +0000 (14:54 -0000)]
2004-11-07  Atsushi Enomoto  <atsushi@ximian.com>

* XsdValidatingReader.cs : optimized some ArrayList fields; create them
  only when required.

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

19 years ago2004-11-07 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Sun, 7 Nov 2004 14:45:10 +0000 (14:45 -0000)]
2004-11-07  Ben Maurer  <bmaurer@ximian.com>

* class-internals.h (MonoMethod): Remove remoting_tramp. It is
unused. Saves a cool 4 bytes / method.

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

19 years ago2004-11-07 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 7 Nov 2004 12:46:00 +0000 (12:46 -0000)]
2004-11-07  Atsushi Enomoto  <atsushi@ximian.com>

* Iterator.cs :
  - Made copy constructor certainly different from other constructors.
  - Position is never computed in each derived type. All MoveNext() are
    now MoveNextCore().
  - Most of the protected members could just be private.

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

19 years ago2004-11-07 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 7 Nov 2004 08:57:39 +0000 (08:57 -0000)]
2004-11-07  Atsushi Enomoto  <atsushi@ximian.com>

* PosixEnvironment.cs : csc build fix. see bug #69195.
* PosixStream.cs : csc build fix. see bug #69196.

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

19 years ago2004-11-06 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sat, 6 Nov 2004 21:56:09 +0000 (21:56 -0000)]
2004-11-06  Marek Safar  <marek.safar@seznam.cz>

Fix #69167
* codegen.cs (ApplyAttributeBuilder): Do not return; it is only warning.

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

19 years ago2004-11-06 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Sat, 6 Nov 2004 20:26:47 +0000 (20:26 -0000)]
2004-11-06  Ben Maurer  <bmaurer@ximian.com>

* metadata.c (builtin_types): Add types for System.Object here.
(mono_metadata_parse_type_full): Cache MonoType*'s that are
for a class or valuetype from klass->this_arg or klass->byval_arg.

On mcs for a hello world, this gets us down from 21836 MonoType's
to 14560.

(mono_metadata_free_type): Account for the above change.

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

19 years ago* typemanager.cs: Removed TypeManager.builder_to_attr which was
Jambunathan K [Sat, 6 Nov 2004 18:25:25 +0000 (18:25 -0000)]
* typemanager.cs: Removed TypeManager.builder_to_attr which was
redundant and replaced LookupAttr with LookupClass.

* rootcontext.cs:
* module.cs: Miscellaneous changes

* mb-parser.jay: Upadted actions of the attributes grammar

* codegen.cs: 1) Introduced new classes CommonAssemblyModulClass,
AssemblyClass, ModuleClass 2) Introduced following methods
CodeGen.AddGlobalAttributes, CodeGen.EmitGlobalAttributes

* class.cs: Factored out TypeContainer.AttributeUsage

* attribute.cs: 1) Factored out Attribute.UsageAttribute and
Attribute.GetAttributeUsage 2) Introducing the new base class
Attributable from which all Attributable types will be derived in
the future 3) Added new accessors Attribute.IsAssemblyAttribute
and Attribute.IsModuleAttribute

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

19 years agoFix another miss-use of MemberName
Miguel de Icaza [Sat, 6 Nov 2004 16:56:50 +0000 (16:56 -0000)]
Fix another miss-use of MemberName

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

19 years agoflush
Miguel de Icaza [Sat, 6 Nov 2004 16:52:07 +0000 (16:52 -0000)]
flush

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

19 years ago2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 6 Nov 2004 12:55:59 +0000 (12:55 -0000)]
2004-11-05  Atsushi Enomoto  <atsushi@ximian.com>

* Compiler.cs : Changes that reflects CompiledExpression changes.

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

19 years ago2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 6 Nov 2004 12:55:33 +0000 (12:55 -0000)]
2004-11-05  Atsushi Enomoto  <atsushi@ximian.com>

* Expression.cs, XPathNavigator.cs : hold raw expression field for
  get_Expression. It is preparation for expression optimization.

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

19 years ago2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 6 Nov 2004 12:04:35 +0000 (12:04 -0000)]
2004-11-05  Atsushi Enomoto  <atsushi@ximian.com>

* Iterator.cs : SimpleIterator._current could be cloned only when
  it is required.

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

19 years ago(LateGet, LateSet): Ported the missing pieces
Jambunathan K [Sat, 6 Nov 2004 11:47:31 +0000 (11:47 -0000)]
(LateGet, LateSet): Ported the missing pieces
from Mainsoft's codebase.

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

19 years ago2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 6 Nov 2004 11:46:18 +0000 (11:46 -0000)]
2004-11-05  Atsushi Enomoto  <atsushi@ximian.com>

* Iterator.cs : Some removal of Clone() were harmless.

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

19 years ago* Tds70.cs: avoid unnecessary property call
Gert Driesen [Sat, 6 Nov 2004 11:16:56 +0000 (11:16 -0000)]
* Tds70.cs: avoid unnecessary property call

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

19 years ago2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 6 Nov 2004 05:34:39 +0000 (05:34 -0000)]
2004-11-05  Atsushi Enomoto <atsushi@ximian.com>

* XmlDocumentNavigator.cs : create rarely-used ArrayList later. This
  significantly improves XmlDocument-based XPath performance.

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

19 years ago2004-11-06 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Sat, 6 Nov 2004 03:58:10 +0000 (03:58 -0000)]
2004-11-06  Ben Maurer  <bmaurer@ximian.com>

* Single.cs, Double.cs (GetHashCode): Better hashcode impl

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

19 years ago2004-11-06 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Sat, 6 Nov 2004 03:41:29 +0000 (03:41 -0000)]
2004-11-06  Ben Maurer  <bmaurer@ximian.com>

* System.Resources/ResXResourceReader.cs: use File.OpenRead so
that we can open on read-only files. 68260

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

19 years agoForgot changelog for tracking.
Geoff Norton [Sat, 6 Nov 2004 02:25:34 +0000 (02:25 -0000)]
Forgot changelog for tracking.

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

19 years agoRe-add Catalog.cs to the build. I'm not sure why I removed this...
Jonathan Pryor [Sat, 6 Nov 2004 02:24:18 +0000 (02:24 -0000)]
Re-add Catalog.cs to the build.  I'm not sure why I removed this...

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

19 years agoMinor change to otool command args to pretty up mono -v -v on OSX.
Geoff Norton [Sat, 6 Nov 2004 02:13:48 +0000 (02:13 -0000)]
Minor change to otool command args to pretty up mono -v -v on OSX.

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

19 years agoWhen selected tabs are expanded make sure they don't go beyond the edges of the tab...
Jackson Harper [Sat, 6 Nov 2004 00:30:21 +0000 (00:30 -0000)]
When selected tabs are expanded make sure they don't go beyond the edges of the tab control

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

19 years ago2004-11-05 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Fri, 5 Nov 2004 23:26:18 +0000 (23:26 -0000)]
2004-11-05  Ben Maurer  <bmaurer@ximian.com>

* ssa.c: allocate MonoMethodVar.uses from the mempool. First, this
prevents another huge leak when compiling with ssa. Secondly, the
performance of doing this rather than freeing the lists is much
better. GList does a lock every time you allocate a list link,
so that it can use a memory pool. So, it is better to just use
a memory pool of our own.

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

19 years agooops missed one
Ben Maurer [Fri, 5 Nov 2004 22:12:38 +0000 (22:12 -0000)]
oops missed one

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

19 years ago2004-11-05 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Fri, 5 Nov 2004 22:10:36 +0000 (22:10 -0000)]
2004-11-05  Ben Maurer  <bmaurer@ximian.com>

* ssa.c, linear-scan.c: replace g_list_remove_link with
g_list_delete.  The remove one does not free the GList, so we were
leaking memory. On -O=all --compile-all with corlib, this cut down
3 MB of allocations.

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

19 years agoReset show_slider so if the control is resized to a size where it is no longer needed...
Jackson Harper [Fri, 5 Nov 2004 21:57:01 +0000 (21:57 -0000)]
Reset show_slider so if the control is resized to a size where it is no longer needed it's not displayed anymore

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

19 years ago2004-11-06 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 21:47:16 +0000 (21:47 -0000)]
2004-11-06  Zoltan Varga  <vargaz@freemail.hu>

* AppDomainTest.cs: Reenable SetData/GetData (null) tests.

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

19 years ago2004-11-06 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 21:46:15 +0000 (21:46 -0000)]
2004-11-06  Zoltan Varga  <vargaz@freemail.hu>

* appdomain.c (ves_icall_System_AppDomain_GetData): Throw an
exception instead of asserting if name is null.
(ves_icall_System_AppDomain_GetData): Ditto.

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

19 years ago2004-11-06 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 21:40:55 +0000 (21:40 -0000)]
2004-11-06  Zoltan Varga  <vargaz@freemail.hu>

* TypeBuilderTest.cs: Ignore some tests which depend on TypeBuilder
features which are unlikely to change due to mcs depending on them.

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

19 years agoDeal with gmcs not being merged
Miguel de Icaza [Fri, 5 Nov 2004 21:27:22 +0000 (21:27 -0000)]
Deal with gmcs not being merged

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 21:20:38 +0000 (21:20 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* AssemblyName.cs (FullName): Omit default values from full name.

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 21:19:47 +0000 (21:19 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* EnumBuilderTest.cs: Remove test that depends on the exact format
of AssemblyName.FullName.

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 21:14:29 +0000 (21:14 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

(ves_icall_get_enum_info): Avoid crash when called on a non-finished
EnumBuilder.

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

19 years ago2004-11-05 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 5 Nov 2004 20:51:02 +0000 (20:51 -0000)]
2004-11-05  Miguel de Icaza  <miguel@ximian.com>

* statement.cs (Return.Resolve): Fix regression in typo: if
`in_exc', we have to request a NeedReturnLabel, this was a typo
introduced in the anonymous method check-in.  Fixes #69131.

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 20:17:43 +0000 (20:17 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* icall.c (ves_icall_System_Reflection_Assembly_GetEntryAssembly):
Return NULL when the domain does not have entry_assembly set.

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

19 years agoMake tab pages non visible when added to the control
Jackson Harper [Fri, 5 Nov 2004 20:16:27 +0000 (20:16 -0000)]
Make tab pages non visible when added to the control

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 20:14:48 +0000 (20:14 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* Assembly.cs: Implement GetFiles (bool).

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 20:09:27 +0000 (20:09 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* icall.c (ves_icall_System_Reflection_Assembly_GetFilesInternal):
Add a 'resource_modules' argument.
(ves_icall_type_GetTypeCode): Fix typecode of byref types.

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

19 years agoImplement SizeMode.FillToRight
Jackson Harper [Fri, 5 Nov 2004 19:42:34 +0000 (19:42 -0000)]
Implement SizeMode.FillToRight

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

19 years agoMore Mac OS X portability fixes. On Linux, getgrnam_r & co. return the error
Jonathan Pryor [Fri, 5 Nov 2004 19:42:24 +0000 (19:42 -0000)]
More Mac OS X portability fixes.  On Linux, getgrnam_r & co. return the error
value directly.  Mac OS X returns -1 and errno holds the error.  Argh!  Check
both, for maximum portability.

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

19 years ago2004-11-05 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 5 Nov 2004 19:38:32 +0000 (19:38 -0000)]
2004-11-05  Miguel de Icaza  <miguel@ximian.com>

* Indexers were using the ShortName when defining themselves,
causing a regression in the compiler bootstrap when applying the
patch from 2004-11-02 (first part), now they use their full name
and the bug is gone.

Reapplied:

2004-11-02  Miguel de Icaza  <miguel@ximian.com>

* class.cs (Event.Define, Indexer.Define, Property.Define): Do not
special case explicit implementations, we should always produce
the .property or .event declaration.

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

19 years agoEnable 135 again
Miguel de Icaza [Fri, 5 Nov 2004 19:37:52 +0000 (19:37 -0000)]
Enable 135 again

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

19 years agoMac OS X and BSD portability fixes. MonoPosixHelper should now cleanly
Jonathan Pryor [Fri, 5 Nov 2004 19:16:52 +0000 (19:16 -0000)]
Mac OS X and BSD portability fixes.  MonoPosixHelper should now cleanly
compile on Darwin.

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

19 years agoDo not call CreateHandle if the handle is already created
Jackson Harper [Fri, 5 Nov 2004 19:16:48 +0000 (19:16 -0000)]
Do not call CreateHandle if the handle is already created

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 19:15:45 +0000 (19:15 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* reflection.c (mono_reflection_create_runtime_class): Move setting
of wastypebuilder here, so mono_get_type_object () returns a MonoType
for enums too.

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 19:13:02 +0000 (19:13 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* AssemblyTest.cs: Reenable GetFiles (true) test. Add a LoadWithPartialName () test.

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

19 years ago* Syscall.cs: Change umount() to use MonoPosixHelper: portability fix for Mac OS X.
Jonathan Pryor [Fri, 5 Nov 2004 18:58:44 +0000 (18:58 -0000)]
* Syscall.cs: Change umount() to use MonoPosixHelper: portability fix for Mac OS X.

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

19 years agoRemove superflous call to CalcTabRows
Jackson Harper [Fri, 5 Nov 2004 18:46:18 +0000 (18:46 -0000)]
Remove superflous call to CalcTabRows

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

19 years ago135 while its broken
Miguel de Icaza [Fri, 5 Nov 2004 18:13:23 +0000 (18:13 -0000)]
135 while its broken

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 17:56:43 +0000 (17:56 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* Binder.cs: Add support for byref types. Fixes #69140.

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 17:55:47 +0000 (17:55 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* MethodInfoTest.cs: Add test for byref parameters to Invoke ().

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

19 years ago2004-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 5 Nov 2004 17:20:49 +0000 (17:20 -0000)]
2004-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* KeyPairPersistenceTest.cs: Forgot to re-fix the second failing test.

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

19 years ago2004-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 5 Nov 2004 17:19:09 +0000 (17:19 -0000)]
2004-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* PrivateKeyTest.cs: Fixed SaltWithoutPassword test to always use
little endian.

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

19 years ago2004-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 5 Nov 2004 17:17:00 +0000 (17:17 -0000)]
2004-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* MessageBase.cs: Fixed endian issue. Added globalization support.
* Type1Message.cs: Fixed endian issue. Added globalization support.
* Type2Message.cs: Fixed endian issue.
* Type3Message.cs: Fixed endian issue. Added globalization support.

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

19 years ago2004-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 5 Nov 2004 17:15:11 +0000 (17:15 -0000)]
2004-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* AuthenticodeFormatter.cs: Now use BitConverterLE for explicit
little-endian convertion.
* PrivateKey.cs: Now use BitConverterLE for explicit little-endian
convertion for PVK files.

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

19 years agoUpdate for Mono.Posix changes
Jackson Harper [Fri, 5 Nov 2004 16:07:53 +0000 (16:07 -0000)]
Update for Mono.Posix changes

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 15:57:53 +0000 (15:57 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* marshal.c (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi): Return NULL here instead of an empty string to match MS behavior.
(ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi_len):
Throw an ArgumentNullException if 'ptr' is null.

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 15:41:52 +0000 (15:41 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* runtime/net_2_0/Makefile.am (install-data-local):
* runtime/net_1_1/Makefile.am (install-data-local): Applied patch
from G�tz Waschk (waschk@informatik.uni-rostock.de). Make this work
with DESTDIR.

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 15:18:12 +0000 (15:18 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* loader.cs: Add test for loading dynamic assemblies using
Assembly.LoadWithPartialName ().

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 15:15:01 +0000 (15:15 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* appdomain.c (mono_domain_assembly_search): Avoid matching dynamic
assemblies here. Fixes #69020.

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 15:04:31 +0000 (15:04 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* tramp-sparc.c (mono_arch_create_jit_trampoline): Fix sparc build.

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 14:14:27 +0000 (14:14 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* tramp-amd64.c (mono_arch_create_jit_trampoline): Fix amd64 build.

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

19 years agoImplemented some methods and fixed scrolling.
Ravindra [Fri, 5 Nov 2004 14:00:50 +0000 (14:00 -0000)]
Implemented some methods and fixed scrolling.

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

19 years ago2004-11-05 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 5 Nov 2004 13:59:43 +0000 (13:59 -0000)]
2004-11-05  Zoltan Varga  <vargaz@freemail.hu>

* mini.h mini.c tramp-*.c: Moved xp parts of JIT trampoline creation
into a new function mono_create_jit_trampoline ().

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

19 years ago2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 5 Nov 2004 12:59:14 +0000 (12:59 -0000)]
2004-11-05  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaSimpleTypeList.cs,
  XmlSchemaSimpleTypeUnion.cs : XmlIgnore.

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

19 years agoIntegrate Mono.Posix OEE with Mono.
Jonathan Pryor [Fri, 5 Nov 2004 12:37:29 +0000 (12:37 -0000)]
Integrate Mono.Posix OEE with Mono.
  * Mono.Posix.dll.sources: Add lots of new files to the binding.
  * PosixConvert.cs: New file; conversion functions for Mono.Posix types.
  * PosixDirectory.cs: New file; Friendly wrapper over directory information.
  * PosixDirectoryInfo.cs: New file; Friendly wrapper over directory information.
  * PosixEnvironment.cs: New file; Friendly wrapper over environment information.
  * PosixFile.cs: New file; Friendly wrapper over file information.
  * PosixFileInfo.cs: New file; Friendly wrapper over file information.
  * PosixFileSystemInfo.cs: New file; Friendly wrapper over `stat'.
  * PosixGroup.cs: New file; User Group-related functionality
  * PosixGroupInfo.cs: New file; User Group-related functionality
  * PosixIOException.cs: New file; Exception for POSIX-generated exceptions.
  * PosixMarshal.cs: New file; utility functions for marshaling, etc.
  * PosixProcess.cs: New file; Friendly wrapper over process information.
  * PosixStream.cs: New file; Friendly wrapper over file descriptors.
  * PosixSymbolicLinkInfo.cs: New file; Friendly wrapper over symbolic links.
  * PosixUser.cs: New file; Friendly wrapper over user information.
  * PosixUserInfo.cs: New file; Friendly wrapper over user information.
  * Stdlib.cs: New file; C standard library exports.
  * Syscall.cs: Effective re-write.
    - Organize exports by header file
    - add additional enumerations (Error for the E* error values, etc.)
    - always explicitly specify enumeration underlying type
    - Use a new wrapping infrastructure so that ABI-stable types are exported
      - For example, size_t is exported as ulong, not IntPtr.
    - Wrap more functions, and wrap them better (such as getpwnam).
    - This release is NOT backward compatible.  Many names are the same, and
      hopefully they're still compatible, but no effort was made to maintain
      compatibility.  For example, FileMode was removed and replaced with
      FilePermissions, to avoid a name conflict with System.IO.FileMode.
  * make-map.cs: Another effective re-write, to clean up the code, produce
    better output, and produce more output.  For example, most of
    PosixConvert can be auto-generated, so it is (modulo version delays and
    bootstrap issues).  `map.c' is now conditional on all macros, and has
    error checking for invalid/unsupported values.

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

19 years agoIntegrate Mono.Posix OEE with Mono.
Jonathan Pryor [Fri, 5 Nov 2004 12:32:30 +0000 (12:32 -0000)]
Integrate Mono.Posix OEE with Mono.
  * support/.cvsignore: Ignore generated files.
  * support/Makefile.am: Add new INCLUDE directives (for glib headers),
    source; bump library version (so we don't clobber previous versions of
    libMonoPosixHelper.so).
  * support/dirent.c: New file; <dirent.h> wrapper functions
  * support/errno.c: New file; <errno.h> wrapper functions
  * support/fcntl.c: New file; <fcntl.h> wrapper functions
  * support/grp.c: New file; <grp.h> wrapper functions
  * support/map.c: Updated macro mapping functions (more enums mapped, more
    error checking, etc.).
  * support/map.h: Updated macro mapping functions
  * support/old-map.c: Previous map.c implementation, for backward compatibility
  * support/old-map.h: Previous map.h implementation, for backward compatibility
  * support/mph.h: New file; Utility types, macros
  * support/pwd.c: New file; <pwd.h> wrapper functions
  * support/stdio.c: New file; <stdio.h> wrapper functions
  * support/stdlib.c: New file; <stdlib.h> wrapper functions
  * support/sys-mman.c: New file; <sys/mman.h> wrapper functions
  * support/sys-mount.c: New file; <sys/mount.h> wrapper functions
  * support/sys-sendfile.c: New file; <sys/sendfile.h> wrapper functions
  * support/sys-stat.c: New file; <sys/stat.h> wrapper functions
  * support/sys-wait.c: New file; <sys/wait.h> wrapper functions
  * support/time.c: New file; <time.h> wrapper functions
  * support/unistd.c: New file; <unistd.h> wrapper functions

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

19 years agoRemoved the static field - RootContext:global_attribute.
Jambunathan K [Fri, 5 Nov 2004 10:51:09 +0000 (10:51 -0000)]
Removed the static field - RootContext:global_attribute.

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

19 years agoChangeLog: Updated.
Sanja Gupta [Fri, 5 Nov 2004 10:49:16 +0000 (10:49 -0000)]
ChangeLog: Updated.
SqlDataSource.cs: Corrected method calls.
SqlDataSourceView.cs: Partial implementation of few methods.

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

19 years agoChangeLog: Updated.
Sanja Gupta [Fri, 5 Nov 2004 10:44:34 +0000 (10:44 -0000)]
ChangeLog: Updated.
DataSourceView.cs: Changes in access modifiers of methods.

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

19 years ago* class.cs:
Jambunathan K [Fri, 5 Nov 2004 10:38:37 +0000 (10:38 -0000)]
* class.cs:
* attribute.cs: Removed the incomplete and (for now) unnecessary
Mono.MonoBASIC.Operator class. Let us bother about this later.

Stripping off these unused bits will help me in 1) refactoring the
mbas Attributes related code 2) reusing the code from the mcs code
base.

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

19 years agoRemoved the incomplete and (for now) unnecessary
Jambunathan K [Fri, 5 Nov 2004 10:10:27 +0000 (10:10 -0000)]
Removed the incomplete and (for now) unnecessary
operator methods. Let us bother about this later.

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

19 years ago* attribute.cs: Removed the redundant AttributeSection class and
Jambunathan K [Fri, 5 Nov 2004 08:25:02 +0000 (08:25 -0000)]
* attribute.cs: Removed the redundant AttributeSection class and
moved it's functionality to Attributes class.
* class.cs:
* mb-parser.jay:
* module.cs: Replaced references to AttributeSection with the equivalent constructs.
* rootcontext.cs: Removed the following unused methods
AddGlobalAttribute and AddGlobalAttributeSection.

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

19 years ago- Fix Button rendering for FlatStyle = Flat or Popup
John BouAntoun [Fri, 5 Nov 2004 05:47:34 +0000 (05:47 -0000)]
- Fix Button rendering for FlatStyle = Flat or Popup
- Fix RadioButton and CheckBox rendering when Appearance = Button (normal and
  flatstyle).
- Correct outer rectangle color when drawing focus rectangle
- Adjust button bounds to be 1 px smaller when focused
- Make button not draw sunken 3d border when pushed (windows compat)
- Fix CPDrawBorder3D to not make bottom right hand corner rounded
- Offset the text in RadioButton and Checkbox when being rendered as a button.
- Hover and Click behaviour for Colored FlatStyle.Flat and Popup radiobuttons
- Fixed disabled rendering for colored flatstyle radiobuttons (both)
- Fixed disabled text rendering for normally rendered radiobuttons

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

19 years ago2004-11-05 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Fri, 5 Nov 2004 04:30:59 +0000 (04:30 -0000)]
2004-11-05  Geoff Norton  <gnorton@customerdna.com>

        * reflection.c (build_compressed_metadata): Fix the previous patch for
        big endian systems.  GUINT32_FROM_LE isn't needed on strlen and was overwriting
        the stack.

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

19 years ago * Configuration.cs: Minor fixes.
Lluis Sanchez [Thu, 4 Nov 2004 23:31:39 +0000 (23:31 -0000)]
* Configuration.cs: Minor fixes.
* ConfigurationElement.cs: Added support for the different update modes.
* SectionGroupInfo.cs: Support loading the same configuration section
  from different files.
* SectionInfo.cs: Properly write back configuration data for which a
  section object has not been created.

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

19 years ago2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 4 Nov 2004 23:21:23 +0000 (23:21 -0000)]
2004-11-05  Atsushi Enomoto  <atsushi@ximian.com>

* makefile : run mono with --debug to keep track of problems.

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

19 years ago2004-11-04 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Thu, 4 Nov 2004 21:20:38 +0000 (21:20 -0000)]
2004-11-04  Ben Maurer  <bmaurer@ximian.com>

* marshal.c: Avoid using ldftn to call managed functions. It is
much slower than just a call.

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

19 years ago2004-11-04 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 4 Nov 2004 21:12:28 +0000 (21:12 -0000)]
2004-11-04  Zoltan Varga  <vargaz@freemail.hu>

* loader.cs: New file for assembly loading tests.

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

19 years ago2004-11-04 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 4 Nov 2004 21:03:15 +0000 (21:03 -0000)]
2004-11-04  Zoltan Varga  <vargaz@freemail.hu>

* assembly.c (mono_assembly_names_equal): Allow a match if one of
the cultures is false. Fixes #69090.

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

19 years ago2004-11-04 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 4 Nov 2004 20:20:59 +0000 (20:20 -0000)]
2004-11-04  Zoltan Varga  <vargaz@freemail.hu>

* driver.cs: Strip the path from the names of embedded resources. Fixes
#68519.

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

19 years ago2004-11-04 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 4 Nov 2004 19:41:19 +0000 (19:41 -0000)]
2004-11-04  Zoltan Varga  <vargaz@freemail.hu>

(build_compressed_metadata): Fix invalid memory read detected by
valgrind.

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

19 years ago2004-11-04 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 4 Nov 2004 18:44:36 +0000 (18:44 -0000)]
2004-11-04  Zoltan Varga  <vargaz@freemail.hu>

* TypeBuilderTest.cs: Add a TypeResolve test. Remove a test which
depends on exception ordering.

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

19 years ago2004-11-04 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 4 Nov 2004 18:35:08 +0000 (18:35 -0000)]
2004-11-04  Zoltan Varga  <vargaz@freemail.hu>

* reflection.c (mono_reflection_get_type): Avoid triggering a
TypeResolve multiple times for the same type. Fixes #65577.

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

19 years ago2004-11-04 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 4 Nov 2004 18:01:41 +0000 (18:01 -0000)]
2004-11-04  Zoltan Varga  <vargaz@freemail.hu>

* CultureInfo.cs (Clone): Make the components of the culture read-write
as well.

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