mono.git
19 years agoFix warnings.
Martin Baulig [Fri, 11 Feb 2005 15:53:57 +0000 (15:53 -0000)]
Fix warnings.

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

19 years ago2005-02-11 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 11 Feb 2005 15:42:22 +0000 (15:42 -0000)]
2005-02-11  Martin Baulig  <martin@ximian.com>

* debug-mini.c (mono_debug_close_method): Free the line number array.

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

19 years ago2005-02-11 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 11 Feb 2005 15:41:57 +0000 (15:41 -0000)]
2005-02-11  Martin Baulig  <martin@ximian.com>

* mono-debug.c (DATA_TABLE_CHUNK_SIZE): Increase to 131072.
(mono_debug_add_method): Silently ignore the method if it's too big.
(mono_debug_add_type): Likewise.

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

19 years agoFri Feb 11 16:22:10 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 11 Feb 2005 15:06:55 +0000 (15:06 -0000)]
Fri Feb 11 16:22:10 CET 2005 Paolo Molaro <lupus@ximian.com>

* threads.c, appdomain.c: remove #ifdefs from the code.

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

19 years agoPrepare metadata cleanup.
Paolo Molaro [Fri, 11 Feb 2005 15:05:08 +0000 (15:05 -0000)]
Prepare metadata cleanup.

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

19 years ago2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Fri, 11 Feb 2005 13:49:57 +0000 (13:49 -0000)]
2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>

* Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
* LinkLabel: Added missing attributes
* MainMenu.cs: fixes ToString
* MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
* ListBox.cs: fixes event position
* TrackBar.cs: adds missing attributes and events

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

19 years ago2005-02-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 11 Feb 2005 13:23:21 +0000 (13:23 -0000)]
2005-02-11  Sebastien Pouliot  <sebastien@ximian.com>

* cas6-9.cs: New. CAS tests cases for NEWOBK (constructor), LDFTN
(delegate) and LDVIRTFNT (delegate using a virtual method).
* cas10.cs|.il: New. CAS test case for JMP. Not part of "make test"
until #66033 is fixed (ILASM doesn't support decl security attrs).
* Makefile: Updated makefile for new test cases.
* README: Updated informations of new CAS tests.

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

19 years agofixes spelling
Jordi Mas i Hernandez [Fri, 11 Feb 2005 11:31:54 +0000 (11:31 -0000)]
fixes spelling

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

19 years ago2005-02-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 11 Feb 2005 10:08:13 +0000 (10:08 -0000)]
2005-02-11  Atsushi Enomoto  <atsushi@ximian.com>

* catalog.diff : eliminated mixed line ending

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

19 years ago2005-02-11 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Fri, 11 Feb 2005 10:07:34 +0000 (10:07 -0000)]
2005-02-11  Sureshkumar T  <tsureshkumar@novell.com>
    Ankit Jain    <radical@corewars.org>

* SqlGuid.cs: Fixed CompareTo to compare all the 16 digits. This
is a LAMESPEC and current implementation matches ms.net. This
actually reverts Uma's patch with revison 29013.

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

19 years ago2005-02-11 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Fri, 11 Feb 2005 09:33:05 +0000 (09:33 -0000)]
2005-02-11  Marek Safar <marek.safar@seznam.cz>

* mono-api-diff.cs : Fixed collision in the sealed/static detection.

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

19 years ago2005-02-11 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Fri, 11 Feb 2005 08:17:52 +0000 (08:17 -0000)]
2005-02-11 Marek Safar <marek.safar@seznam.cz>

* cs0133-2.cs, cs1641.cs, cs1642.cs, cs1644-3.cs, cs1663.cs
cs1665.cs, cs1666.cs, cs3003-5.cs: Fixed buffer error tests.

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

19 years agoForgot one.
Nick Drochak [Fri, 11 Feb 2005 07:49:51 +0000 (07:49 -0000)]
Forgot one.

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

19 years ago2005-02-11 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Fri, 11 Feb 2005 07:49:23 +0000 (07:49 -0000)]
2005-02-11  Marek Safar  <marek.safar@seznam.cz>

C# 2.0 Fixed buffer implementation

* anonymous.cs: Update after RegisterHelperClass renaming.

* attribute.cs (AttributeTester.fixed_buffer_cache):
Cache of external fixed buffers.
(AttributeTester.GetFixedBuffer): Returns IFixedBuffer
implementation if field is fixed buffer else null.

* class.cs
(TypeContainer.AddField): Accept FieldMember instead of Field.
(FieldBase.IsFieldClsCompliant): Extracted code from
VerifyClsCompliance descendant customization.
(FixedField): New class handles fixed buffer fields.
(FixedFieldExternal): Keeps information about imported fixed
buffer.
(IFixedField): Make access to internal or external fixed buffer
same.

* cs-parser.jay: Add fixed buffer parsing.

* ecore.cs (FieldExpr.Emit): Add special emit case for fixed
buffer.

* expression.cs (Indirection): Extended implementation to accept
fixed buffer field.
(PointerArithmetic.Emit): Get element from fixed buffer as well.
(ElementAccess.MakePointerAccess): Get type as parameter.
(DoResolve): Add fixed buffer field expression conversion.
(DoResolveLValue): Ditto.
(FixedBufferPtr): New class. Moved most of original ArrayPtr.
(ArrayPtr): Derives from FixedBufferPtr.
(ArrayPtr.Emit): Add extra emit for array elements.

* flowanalysis.cs.cs (StructInfo): Use FieldMember.

* rootcontext.cs (CloseTypes): Emit CompilerGenerated attribute
for compiler generated types.
(RegisterCompilerGeneratedType): Renamed from RegisterHelperClass.

* statement.cs (Fixed): Refactored to be easier add fixed buffer
and consume less memory.
(Fixed.Resolve): Add fixed buffer case.

* typemanager.cs (compiler_generated_attr_ctor,
fixed_buffer_attr_ctor): Add new 2.0 compiler attributes.
(HasElementType): Add our own implementation to work on every
runtime.

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

19 years ago* ResXResourceReader.cs (load_data): Make exception more informative.
Raja R Harinath [Fri, 11 Feb 2005 07:40:27 +0000 (07:40 -0000)]
* ResXResourceReader.cs (load_data): Make exception more informative.

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

19 years ago2005-02-11 Nick Drochak <ndrochak@ieee.org>
Nick Drochak [Fri, 11 Feb 2005 07:15:57 +0000 (07:15 -0000)]
2005-02-11  Nick Drochak  <ndrochak@ieee.org>

* DecimalTest.cs:
* DecimalTest2.cs: Put NotWorking on some tests.

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

19 years agoFix eol continuation
Raja R Harinath [Fri, 11 Feb 2005 06:31:11 +0000 (06:31 -0000)]
Fix eol continuation

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

19 years ago2005-02-11 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 11 Feb 2005 05:54:54 +0000 (05:54 -0000)]
2005-02-11  Miguel de Icaza  <miguel@novell.com>

* anonymous.cs (CaptureContext): Track whether `this' has been
referenced.

* expression.cs (This.ResolveBase): Call CaptureThis.  Before we
only captured `this' if it was implicitly done (instance
methods/variables were used).

* codegen.cs (EmitContext.CaptureThis): New method to flag that
`this' must be captured.

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

19 years agoAdd new test
Miguel de Icaza [Fri, 11 Feb 2005 05:52:55 +0000 (05:52 -0000)]
Add new test

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

19 years agoIn Test/errors:
Ritvik Mayank [Fri, 11 Feb 2005 05:30:23 +0000 (05:30 -0000)]
In Test/errors:
2005-02-11 Ritvik Mayank <mritvik@novell.com>
* ConstantC10.vb
* DefaultPropC5.vb
* DefaultPropC6.vb
* OverrideC14.vb
changed the LineNo. and removed spurious errors.
in mbas:
2005-02-11 Ritvik Mayank <mritvik@novell.com>
* class.cs
* decl.cs
* mb-parser.jay
* statement.cs
Changed for reflecting correct Error Number

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

19 years ago2005-01-30 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 11 Feb 2005 05:16:12 +0000 (05:16 -0000)]
2005-01-30  Miguel de Icaza  <miguel@novell.com>

* anonymous.cs (CreateMethodHost): If there Scope.ScopeTypeBuilder
is null it means that there has been no need to capture anything,
so we just create a sibling.

Renamed `EmitHelperClasses' to `EmitAnonymousHelperClasses'

Just a partial fix.  The other half is fairly elusive.

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

19 years agoAdded tests for Statements - by Sudharsan V <vsudharsan@novell.com>
Manjula GHM [Fri, 11 Feb 2005 05:04:46 +0000 (05:04 -0000)]
Added tests for Statements - by Sudharsan V <vsudharsan@novell.com>

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

19 years agoAdded tests for Statements - by Sudharsan V <vsudharsan@novell.com>
Manjula GHM [Fri, 11 Feb 2005 05:01:47 +0000 (05:01 -0000)]
Added tests for Statements - by Sudharsan V <vsudharsan@novell.com>

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

19 years ago2005-02-10 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Fri, 11 Feb 2005 04:32:43 +0000 (04:32 -0000)]
2005-02-10  Cesar Lopez Nataren  <cnataren@novell.com>

* expression.cs: use InFuntion in proper places.

* Parser.cs: Add parameter that indicates if it's a prefix
operator. When building the MemberExprTail set to proper parent.
* PostOrPrefixOperator.cs: Partial implementation of ++ and --,
prefix and suffix, we assume that the operand is a variable.

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

19 years ago2005-02-10 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Fri, 11 Feb 2005 02:37:32 +0000 (02:37 -0000)]
2005-02-10  Geoff Norton  <gnorton@customerdna.com>

        * Icon.cs: Implement GetObjectData ()
        * Image.cs: Implement GetObjectData ()

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

19 years ago2005-02-10 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Fri, 11 Feb 2005 02:36:07 +0000 (02:36 -0000)]
2005-02-10  Geoff Norton  <gnorton@customerdna.com>

        * ResXResourceReader.cs: Implement the ability to convert the
        MS Base64 encoded objects.  Implement the ability to convert objects
        to their type rather than just to string.

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

19 years ago2005-02-10 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Fri, 11 Feb 2005 02:33:44 +0000 (02:33 -0000)]
2005-02-10  Geoff Norton  <gnorton@customerdna.com>

        * CultureInfoConverter.cs: Implement converting from the
        string "(default)" that MS will put in .resx files.

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

19 years ago2005-02-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Feb 2005 22:08:33 +0000 (22:08 -0000)]
2005-02-10  Martin Baulig  <martin@ximian.com>

* MonoSymbolFile.cs
(MonoDebuggerSupport.MakeArrayType): New public method.
(MonoDebuggerSupport.ResolveType): New public method.
(MonoDebuggerSupport.GetTypeToken): New public method.

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

19 years ago2005-02-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Feb 2005 22:06:25 +0000 (22:06 -0000)]
2005-02-10  Martin Baulig  <martin@ximian.com>

* Module.cs (MonoDebugger_ResolveType): New internal method.

* Assembly.cs (MonoDebugger_MakeArrayType): New internal method.
(MonoDebugger_GetTypeToken): New internal method.

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

19 years ago2005-02-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Feb 2005 22:03:20 +0000 (22:03 -0000)]
2005-02-10  Martin Baulig  <martin@ximian.com>

* icall.c (ves_icall_MonoDebugger_MakeArrayType): New interncall.
(ves_icall_MonoDebugger_GetTypeToken): New interncall.

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

19 years agoFix compilation warning for declsec.c
Sebastien Pouliot [Thu, 10 Feb 2005 21:25:31 +0000 (21:25 -0000)]
Fix compilation warning for declsec.c

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

19 years ago2005-02-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Feb 2005 21:17:18 +0000 (21:17 -0000)]
2005-02-10  Zoltan Varga  <vargaz@freemail.hu>

* zlib_macros.c (create_z_stream): Explicitly check for older versions
of zlib.

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

19 years ago2005-02-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Feb 2005 21:03:13 +0000 (21:03 -0000)]
2005-02-10  Zoltan Varga  <vargaz@freemail.hu>

* aot.c: Break up large methods into smaller ones. Share GOT slots for
icalls.

* mini.h: Bump AOT file format version.

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

19 years ago2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Feb 2005 20:19:46 +0000 (20:19 -0000)]
2005-02-10  Sebastien Pouliot  <sebastien@ximian.com>
* declsec.c: Added LinkDemand support and it's special cases for ECMA,
APTC and P/Invoke.
* declsec.h: Added macros to get/set lazyly initialized security
informations about assemblies. Added new enum for different type of
possible LinkDemand violation. Added function to check LinkDemands.
* mini.h: Added a field to MonoCompile to hold any security violation
detected when JITting a method (so it can be thrown later).
* mini.c: Added LinkDemand checks in mono_method_to_ir for CEE_CALL
and CEE_CALLVIRT. Added code to throw exception at the end of
mini_method_compile (note: the exception is unhandled right now).

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

19 years ago2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Feb 2005 20:19:26 +0000 (20:19 -0000)]
2005-02-10  Sebastien Pouliot  <sebastien@ximian.com>

* metadata-internals.h: Added flags to MonoAssembly to cache the most
common security informations. This allows us to stay in unmanaged code
when doing LinkDemand and it's special cases (except for the first
time for initialization). The flags a very much used with --security.
* reflection.c|h: Added code to get declarative security attributes
for LinkDemand and InheritanceDemand. This required to refactor the
existing code for Demand.
* security-manager.c|h: Added new method fields for the special cases
of LinkDemand.

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

19 years ago2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Feb 2005 18:56:19 +0000 (18:56 -0000)]
2005-02-10  Atsushi Enomoto  <atsushi@ximian.com>

* Comparison.cs : allow comparison between guid and string.
* ColumnReference.cs : return guid value too. Fixed bug #72426.

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

19 years ago2005-02-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Feb 2005 18:18:50 +0000 (18:18 -0000)]
2005-02-10  Martin Baulig  <martin@ximian.com>

* MonoSymbolFile.cs (MonoDebuggerSupport.GetMethodIndex): New
public method.

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

19 years ago2005-02-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Feb 2005 18:17:27 +0000 (18:17 -0000)]
2005-02-10  Martin Baulig  <martin@ximian.com>

* Assembly.cs (MonoDebugger_GetMethodIndex): New internal method.

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

19 years ago2005-02-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Feb 2005 18:08:11 +0000 (18:08 -0000)]
2005-02-10  Martin Baulig  <martin@ximian.com>

* mono-debug.c, mono-debug-debugger.c: Completely reworked the
debugging code; this is almost a complete rewrite.

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

19 years agoOops
Miguel de Icaza [Thu, 10 Feb 2005 17:28:09 +0000 (17:28 -0000)]
Oops

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

19 years agoUpdate
Miguel de Icaza [Thu, 10 Feb 2005 17:13:05 +0000 (17:13 -0000)]
Update

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

19 years ago2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Feb 2005 16:49:33 +0000 (16:49 -0000)]
2005-02-10  Sebastien Pouliot  <sebastien@ximian.com>

* noncas1-4.cs: New. Non-CAS permission tests (derived from test cases
in #52693).
* Makefile: Updated makefile for noncas test and removed unused crap.
* README: Updated informations of non CAS tests.

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

19 years ago2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Feb 2005 16:09:34 +0000 (16:09 -0000)]
2005-02-10  Sebastien Pouliot  <sebastien@ximian.com>

* DSA.cs: Weekly fix to case where DSAParameters.Counter is 0 :-(
A new unit test was added for this specific case so it's hopefully
the last fix for this. Fixed exception reporting to match NET_2_0.

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

19 years ago2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Feb 2005 16:07:45 +0000 (16:07 -0000)]
2005-02-10  Sebastien Pouliot  <sebastien@ximian.com>

* DSATest.cs: Added unit test for Counter == 0. Actualized test cases
for NET_2_0 now that we can inherit from DSA outside corlib.

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

19 years agothinko.
Raja R Harinath [Thu, 10 Feb 2005 15:54:17 +0000 (15:54 -0000)]
thinko.

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

19 years agoIn mcs:
Raja R Harinath [Thu, 10 Feb 2005 15:49:37 +0000 (15:49 -0000)]
In mcs:
Fix #52586, cs0121-4.cs.
* decl.cs (MemberCache.DeepCopy): Rename from SetupCache.  Take
and return a hashtable.
(MemberCache.ClearDeclaredOnly): New.
(MemberCache.MemberCache): Update to change.  Make a deep copy of
the method_hash of a base type too.
(MemberCache.AddMethods): Adapt to having a deep copy of the base
type methods.  Overwrite entries with the same MethodHandle so
that the ReflectedType is correct.  The process leaves in base
virtual functions and their overrides as distinct entries.
(CacheEntry): Now a class instead of a struct.  It shouldn't alter
matters since it was boxed in a ArrayList before.
(CacheEntry.Member, CacheEntry.EntryType): Remove 'readonly'
modifier.
* expression.cs (Invocation.BetterFunction): Simplify.  Handle the
case of a virtual function and its override (choose the overload
as better).
(Invocation.OverloadResolve): Avoid 'override' members during
'applicable_type' calculation.

In errors:
* cs0121-4.cs: New test.  Ensure that a param method isn't
discarded if the signatures of other normal methods are different.

In tests:
* test-342.cs: New test for #52586.
* test-343.cs: New test.  Not a bugfix or regression.  Added to
ensure our overloading semantics are right.  See
errors/cs0121-4.cs for a counterpart.

(Note that the related bug #59209 is not yet fixed by this)

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

19 years agoAdded description for new tool - npdbtest
Sebastien Pouliot [Thu, 10 Feb 2005 14:53:14 +0000 (14:53 -0000)]
Added description for new tool - npdbtest

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

19 years ago2005-02-10 Sebastien Pouliot <sebastien@ximian,com>
Sebastien Pouliot [Thu, 10 Feb 2005 14:51:11 +0000 (14:51 -0000)]
2005-02-10  Sebastien Pouliot  <sebastien@ximian,com>

* ChangeLog: New. Track change in the Npgsql/SSL test tool.
* Makefile: New. Build the test tool.
* makewords.sh: New. Script to create sample data in batabase.
* npdbtest.cs: New. Test tool.
* README: Instruction on how to install and setup PostgreSQL for the
tests.

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

19 years agoThu Feb 10 15:49:44 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 10 Feb 2005 14:40:12 +0000 (14:40 -0000)]
Thu Feb 10 15:49:44 CET 2005 Paolo Molaro <lupus@ximian.com>

* mini.c, jit-icalls.c: use the managed implementation of
memset for initobj and memset, to avoid managed <-> unmanaged
transitions.

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

19 years ago2005-02-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Feb 2005 14:25:06 +0000 (14:25 -0000)]
2005-02-10  Zoltan Varga  <vargaz@freemail.hu>

* inssel.brg (mini_emit_virtual_call): Disable the virtual->nonvirtual
optimization if it would need a GOT var.

* basic.cs: Add tests for constant propagation and switch statements.

* ssa.c: Fix out-of-range constant propagation and switch statements.

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

19 years agoThu Feb 10 15:19:01 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 10 Feb 2005 14:13:34 +0000 (14:13 -0000)]
Thu Feb 10 15:19:01 CET 2005 Paolo Molaro <lupus@ximian.com>

* domain.c, object.h: expose mono_string_equal () and
mono_string_hash ().
* icall.c, string-icalls.c: remove the string.GetHashCode () icall,
it's implemented in managed code.

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

19 years ago2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Feb 2005 13:55:18 +0000 (13:55 -0000)]
2005-02-10  Sebastien Pouliot  <sebastien@ximian.com>

* SecurityManager.cs: Reduced the number of parameters for LinkDemand.
Removed a (forgotten) debugging message.

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

19 years agoThu Feb 10 15:03:46 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 10 Feb 2005 13:49:27 +0000 (13:49 -0000)]
Thu Feb 10 15:03:46 CET 2005 Paolo Molaro <lupus@ximian.com>

* icall.c, gc.c, gc-internal.h: make sure gchandles can't be used
lo leak objects between appdomains.

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

19 years ago* expression.cs:
Satya Sudha K [Thu, 10 Feb 2005 13:38:01 +0000 (13:38 -0000)]
* expression.cs:
        - Implemented Exponentiation operator (^)
        - Fixed the behaviour of strings in arithmatic operations (only addition was supported before)
        - Fixed Decimal arithmatic with float/double types
        - If operation = Division, promoting both operands to double, otherwise doing numeric promotions
* mb-parser.jay : Changes related to the Exponentiation operator

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

19 years agoThu Feb 10 14:25:00 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 10 Feb 2005 13:09:39 +0000 (13:09 -0000)]
Thu Feb 10 14:25:00 CET 2005 Paolo Molaro <lupus@ximian.com>

* assembly.c: old compilers compilation fix from
robertj@gmx.net (Robert Jordan).

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

19 years ago2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Feb 2005 12:36:48 +0000 (12:36 -0000)]
2005-02-10  Sebastien Pouliot  <sebastien@ximian.com>

* SecurityException.cs: Show more information when a SecurityException
occurs to help debugging.
* SecurityManager.cs: Reworked LinkDemand implementation. Supply more
informations when throwing a SecurityException for LinkDemand.
* PermissionSet.cs: Remove (now) unused code for LinkDemand.

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

19 years ago2004-11-02 Lluis Sanchez Gual <lluis@ximian.com>
Lluis Sanchez [Thu, 10 Feb 2005 12:35:31 +0000 (12:35 -0000)]
2004-11-02  Lluis Sanchez Gual  <lluis@ximian.com>

* MonoWSDL.cs, MonoWSDL2.cs: Added support for custom CodeDom providers.
Patch by Rogerio Pereira.
* SampleGenerator.cs: Fix warnings.

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

19 years ago2005-02-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 10 Feb 2005 12:08:53 +0000 (12:08 -0000)]
2005-02-10  Lluis Sanchez Gual <lluis@novell.com>

* SoapFormatter.cs: Don't store the SoapWriter in an instance field,
it is not needed and it is not thread safe. This fixes bug #72344.

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

19 years ago2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Feb 2005 11:26:30 +0000 (11:26 -0000)]
2005-02-10  Atsushi Enomoto <atsushi@ximian.com>

* XmlWriterEmitter.cs : String.Replace() was insufficient for
  sequential candidates for replacement. Patch by Andrew Skiba.

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

19 years ago2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Feb 2005 10:46:29 +0000 (10:46 -0000)]
2005-02-10  Atsushi Enomoto  <atsushi@ximian.com>

* Makefile : clean more.
* xalan-correct-catalog.xml : removed old file.

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

19 years ago2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Feb 2005 10:33:49 +0000 (10:33 -0000)]
2005-02-10  Atsushi Enomoto  <atsushi@ximian.com>

* Makefile : added patching step against buggy catalog.xml.
  Build both xslttest.exe and alltest.exe.

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

19 years ago2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Feb 2005 10:26:44 +0000 (10:26 -0000)]
2005-02-10  Atsushi Enomoto <atsushi@ximian.com>

* GenericOutputter.cs : don't output extraneous xml declaration.
  fix by Andrew Skiba.

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

19 years ago2005-02-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 10 Feb 2005 09:54:22 +0000 (09:54 -0000)]
2005-02-10  Lluis Sanchez Gual  <lluis@novell.com>

* SoapReader.cs: Don't crash if the xml has more fields than expected.

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

19 years ago2005-02-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 10 Feb 2005 09:51:52 +0000 (09:51 -0000)]
2005-02-10  Lluis Sanchez Gual  <lluis@novell.com>

* DefaultWatcher.cs: Fix nullref exception when the object is disposed
without any watcher.

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

19 years ago2005-02-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 10 Feb 2005 09:50:22 +0000 (09:50 -0000)]
2005-02-10  Lluis Sanchez Gual  <lluis@novell.com>

* BindableAttribute.cs: Implemented 2.0 api.

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

19 years ago2005-02-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 10 Feb 2005 09:46:28 +0000 (09:46 -0000)]
2005-02-10  Lluis Sanchez Gual  <lluis@novell.com>

* CheckBoxList.cs: Fix build.

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

19 years ago2005-02-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 10 Feb 2005 09:38:03 +0000 (09:38 -0000)]
2005-02-10  Lluis Sanchez Gual <lluis@novell.com>

* System.Web.dll.sources: New files:
System.Web.UI/ICheckBoxControl.cs
System.Web.UI/IStaticTextControl.cs
System.Web.UI/ITextControl.cs

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

19 years ago2005-02-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 10 Feb 2005 09:37:42 +0000 (09:37 -0000)]
2005-02-10  Lluis Sanchez Gual <lluis@novell.com>

* Button.cs: Use validation group when validating page.
* XmlDataSourceView.cs: Implemented ExecuteSelect.
* Menu.cs: Minor fix.
* CheckBox.cs: Added 2.0 properties and methods.
* BaseDataList.cs: Always databind the control if view state
is not enabled.
* DataList.cs: In 2.0, use control state to save the selected index.
* DetailsViewUpdatedEventArgs.cs: Fix typo.
* CustomValidator.cs: Implement IStaticTextControl interface.
* CheckBoxList.cs: Added missing 2.0 methods.
* DropDownList.cs: Added missing 2.0 methods. Implemented ITextControl
interface.
* XmlDataSource.cs: Return childs of DocumentElement, not the root
document.
* DayRenderEventArgs.cs, CompareValidator.cs, DataListItem.cs:
Implemented 2.0 API.

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

19 years ago2005-02-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 10 Feb 2005 09:37:20 +0000 (09:37 -0000)]
2005-02-10  Lluis Sanchez Gual <lluis@novell.com>

* Page.cs: Added support for validation groups. Some fixes in
SavePageControlState().
* IFilterResolutionService.cs: Removed extra field.
* INavigateUIData.cs: Added missing field.
* ICheckBoxControl.cs, IStaticTextControl.cs, ITextControl.cs:
Implemented new interfaces.

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

19 years agoFixed concat of date and string using '+" operator
Manjula GHM [Thu, 10 Feb 2005 09:33:47 +0000 (09:33 -0000)]
Fixed concat of date and string using '+" operator

-This line, and those below, will be ignored--

M    ChangeLog
M    expression.cs

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

19 years ago2005-02-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Feb 2005 08:40:56 +0000 (08:40 -0000)]
2005-02-10  Atsushi Enomoto  <atsushi@ximian.com>

* DataView.cs, DataRowView.cs : Fixed bug #72421. CreateChildView()
  should target only child rows.

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

19 years ago2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Thu, 10 Feb 2005 08:32:03 +0000 (08:32 -0000)]
2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>

* MenuItem.cs: Use SystemInformation and bug fixes
* MenuAPI.cs: Use SystemInformation and bug fixes

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

19 years ago2005-02-10 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 10 Feb 2005 08:24:21 +0000 (08:24 -0000)]
2005-02-10  Marek Safar <marek.safar@seznam.cz>

* mono-api-diff.cs ,
* mono-api-info.cs : Check values of attribute properties.

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

19 years ago2005-02-10 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 10 Feb 2005 08:19:26 +0000 (08:19 -0000)]
2005-02-10  Marek Safar  <marek.safar@seznam.cz>

* Assembly.cs,
* ConstructorInfo.cs,
* EventInfo.cs,
* FieldInfo.cs,
* MemberInfo.cs,
* MethodBase.cs,
* MethodInfo.cs,
* PropertyInfo.cs: ClassInterfaceType is None.

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

19 years ago2005-02-10 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 10 Feb 2005 08:18:40 +0000 (08:18 -0000)]
2005-02-10  Marek Safar  <marek.safar@seznam.cz>

* TypeLibVarAttribute.cs,
* TypeLibTypeAttribute.cs,
* ComSourceInterfacesAttribute.cs: Fix AttributeUsage flags.

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

19 years ago2005-02-10 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 10 Feb 2005 08:18:08 +0000 (08:18 -0000)]
2005-02-10  Marek Safar  <marek.safar@seznam.cz>

* IServiceProvider.cs: Is not ComVisible.

* NonSerializedAttribute.cs: Fix AttributeUsage flags.

* Type.cs: Fix ClassInterface attribute.

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

19 years agoFix.
Raja R Harinath [Thu, 10 Feb 2005 05:17:42 +0000 (05:17 -0000)]
Fix.

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

19 years ago* library.make (DISTFILES): Add $(btest_sourcefile).
Raja R Harinath [Thu, 10 Feb 2005 05:14:11 +0000 (05:14 -0000)]
* library.make (DISTFILES): Add $(btest_sourcefile).

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

19 years ago2005-02-09 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Thu, 10 Feb 2005 03:57:23 +0000 (03:57 -0000)]
2005-02-09  Cesar Lopez Nataren  <cnataren@novell.com>

* expression.cs: Added method EmitStore and EmitLoad to Identifier
class. Implemented op= operators. Fixes 72393.

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

19 years ago2005-02-09 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Thu, 10 Feb 2005 02:02:39 +0000 (02:02 -0000)]
2005-02-09  Ben Maurer  <bmaurer@ximian.com>

* monograph.c (print_method): Don't use method->info, as this will
be removed soon.

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

19 years ago2005-02-10 Nick Drochak <ndrochak@ieee.org>
Nick Drochak [Thu, 10 Feb 2005 01:21:14 +0000 (01:21 -0000)]
2005-02-10  Nick Drochak  <ndrochak@ieee.org>

* DeserializeTests.cs: Ignore new test on MS.NET, since it fails there.

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

19 years ago2005-02-09 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 9 Feb 2005 23:02:29 +0000 (23:02 -0000)]
2005-02-09  Sebastien Pouliot  <sebastien@ximian.com>

* cas1.cs: Changed for an easier to test case.
* cas2-5: New. "Normal" LinkDemand test cases.
* icall1.cs, icall2.cs: Updated to work on both Mono and MS runtime.
* icall2-6.cs: New. More internal call test cases.
* Makefile: Updated makefile.
* pinvoke1-2.cs: Updated to work on both Mono and MS runtime.
* pinvoke3-4.cs: New. More P/Invoke test cases.
* README: Updated informations.

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

19 years ago2005-02-09 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Wed, 9 Feb 2005 21:56:39 +0000 (21:56 -0000)]
2005-02-09  Ben Maurer  <bmaurer@ximian.com>
* class-internals.h: Little reminder for the future.

* debug-helpers.c: Fix up wrapper_type_names

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

19 years ago2005-02-09 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Wed, 9 Feb 2005 21:37:52 +0000 (21:37 -0000)]
2005-02-09  Geoff Norton  <gnorton@customerdna.com>

        * Icon.cs: Implement deserializer
        * Bitmap.cs: Implement deserializer

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

19 years ago2005-02-09 Lluis Sanchez Gual <lluis@ximian.com>
Lluis Sanchez [Wed, 9 Feb 2005 21:29:17 +0000 (21:29 -0000)]
2005-02-09  Lluis Sanchez Gual  <lluis@ximian.com>

* CultureInfo.cs: Added field needed for serialization
interoperability with MS.NET. Also fixed default value for
the constructor.

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

19 years ago * X11Keyboard.cs: We ignore some keys, but still need to set/reset
Jackson Harper [Wed, 9 Feb 2005 20:42:01 +0000 (20:42 -0000)]
* X11Keyboard.cs: We ignore some keys, but still need to set/reset
their keystate otherwise things like VK_MENU get stuck "on".

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

19 years agoWed Feb 9 19:34:29 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 9 Feb 2005 18:22:06 +0000 (18:22 -0000)]
Wed Feb 9 19:34:29 CET 2005 Paolo Molaro <lupus@ximian.com>

* image.c, metadata-internals.h: when loading an image from a file,
mmap all of it and use the same codepaths as when using a
in-memory image: the code is simpler and we use less memory
(both writable and readonly).

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

19 years agoWed Feb 9 18:32:51 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 9 Feb 2005 17:21:17 +0000 (17:21 -0000)]
Wed Feb 9 18:32:51 CET 2005 Paolo Molaro <lupus@ximian.com>

* gc-internal.h, null-gc.c, boehm-gc.c: added functions to the GC
API to alloc runtime data structures that need to be tracked by the
GC and contain pointers.
* appdomain.c, threads.c, object.c, gc.c: use the above changes to
make the code more readable and eventually use a different GC.

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

19 years agoFixes AddRange bug
Jordi Mas i Hernandez [Wed, 9 Feb 2005 16:52:21 +0000 (16:52 -0000)]
Fixes AddRange bug

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

19 years ago2005-02-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Feb 2005 16:19:12 +0000 (16:19 -0000)]
2005-02-09  Zoltan Varga  <vargaz@freemail.hu>

* marshal.c (emit_marshal_vtype): Don't do managed->native conversion
for out arguments.

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

19 years ago2005-02-09 <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Feb 2005 15:56:41 +0000 (15:56 -0000)]
2005-02-09    <vargaz@freemail.hu>

* inssel-x86.brg (reg): Align the allocation size in the localloc(imm) case too.

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

19 years ago2005-02-09 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 9 Feb 2005 15:23:57 +0000 (15:23 -0000)]
2005-02-09  Lluis Sanchez Gual  <lluis@novell.com>
* object.c: In release_type_locks(), don't release the cctor lock
if it has already been released. This fixes a crash in the
thread5 test.

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

19 years ago2005-02-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Feb 2005 14:07:55 +0000 (14:07 -0000)]
2005-02-09  Atsushi Enomoto  <atsushi@ximian.com>

* Makefile, xslttest.cs : Rewrote to be runnable against the latest
  draft version of OASIS XSLT tests. Also, Makefile now unifies
  existing xslttest.exe and new alltest.exe (might be renamed later).
* simplify.xsl : added comment.
* alltest.cs : code format.

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

19 years ago * StdlibTest.cs: Signal is currently ignored, but add Category(NotDotNet) so
Jonathan Pryor [Wed, 9 Feb 2005 13:35:13 +0000 (13:35 -0000)]
  * StdlibTest.cs: Signal is currently ignored, but add Category(NotDotNet) so
    it isn't run even when we fix it.  .NET 1.1 doesn't marshal delegates
    properly for signal (different calling conventions).
    Add Category(NotDotNet) for Snprintf(), as MSVCRT.dll doesn't export it.
  * UnixGroupTest.cs, UnixUserTest.cs: Don't run these under .NET, as Windows
    doesn't support the Syscall and related classes.

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

19 years ago2005-02-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Feb 2005 11:21:27 +0000 (11:21 -0000)]
2005-02-09  Zoltan Varga  <vargaz@freemail.hu>

* Makefile (TEST_EXCLUDES_net_2_0): Disable gen-72 until the runtime
regression is fixed.

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

19 years ago2005-02-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Feb 2005 09:57:18 +0000 (09:57 -0000)]
2005-02-09  Atsushi Enomoto <atsushi@ximian.com>

* LocationPathPattern.cs : Wildcard name is held as "", so we should
  also check "" for wildcard. Patch by Andrew Skiba.

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

19 years ago2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Wed, 9 Feb 2005 09:56:52 +0000 (09:56 -0000)]
2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>

* ProgressBar.cs
- Add missing attributes
- Add missing method

* CheckedListBox.cs: Added missing attributes
- Add missing attributes
- Remove extra method

* ComboBox.cs: Added missing attributes
* VScrollBar.cs: Added missing attributes
* ScrollBar.cs:  Added missing attributes
* ListBox.cs: Fixes signature, add missing consts
* LinkArea.cs:   Added missing attributes

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

19 years ago2005-02-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Feb 2005 09:49:18 +0000 (09:49 -0000)]
2005-02-09  Atsushi Enomoto <atsushi@ximian.com>

* XslStylesheet.cs : MS implementation had chosen to recover from
  the error, in the way specified in the spec 7.7.1. Patch by Andrew
  Skiba.

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

19 years ago2005-02-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Feb 2005 09:43:57 +0000 (09:43 -0000)]
2005-02-09  Atsushi Enomoto  <atsushi@ximian.com>

* XslNumber.cs : For group size, use decimal instead of integer to allow
  such number that is larger than int.MaxValue. patch by Andrew Skiba.

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

19 years ago2005-02-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Feb 2005 09:21:55 +0000 (09:21 -0000)]
2005-02-09  Atsushi Enomoto  <atsushi@ximian.com>

* XslForEach.cs : Don't bork at <xsl:for-each/>. Patch by Andrew Skiba.

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