mono.git
19 years ago2004-09-23 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 23 Sep 2004 20:30:17 +0000 (20:30 -0000)]
2004-09-23  Marek Safar  <marek.safar@seznam.cz>

Fix bug #66615
* decl.cs (FindMemberWithSameName): Indexer can have more than
1 argument.

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

19 years agonew test
Marek Safar [Thu, 23 Sep 2004 20:29:00 +0000 (20:29 -0000)]
new test

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

19 years ago2004-09-23 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 23 Sep 2004 19:47:46 +0000 (19:47 -0000)]
2004-09-23  Marek Safar  <marek.safar@seznam.cz>

* expression.cs (LocalVariableReference.DoResolveLValue):
Do not report warning 219 for out values.
(EmptyExpression.Null): New member to avoid extra allocations.

* rootcontext.cs: Warning 4 is back.

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

19 years agowarning cleanup
Marek Safar [Thu, 23 Sep 2004 19:37:31 +0000 (19:37 -0000)]
warning cleanup

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 19:35:03 +0000 (19:35 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* icall.c reflection.h reflection.c: Add a 'pseudo_attrs' argument to
the GetCustomAttributes icall.

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 19:29:42 +0000 (19:29 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* MonoCustomAttrs.cs (GetCustomAttributes): Rename the icall to
GetCustomAttributesInternal and add a 'pseudoAttrs' argument.

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

19 years agoTemp build fixage
Jackson Harper [Thu, 23 Sep 2004 19:08:59 +0000 (19:08 -0000)]
Temp build fixage

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 19:08:07 +0000 (19:08 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* Type.cs: Tweak Module property in 2.0 build.

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 19:07:26 +0000 (19:07 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* DynamicMethod.cs: Add MetadataToken property and tweak Module property.

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 19:06:44 +0000 (19:06 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* Module.cs: Remove [MonoTODO] from ResolveMember.

* MemberInfo.cs: Add 'Module' property.

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 19:04:13 +0000 (19:04 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* AssemblyFlagsAttribute.cs: Add 2.0 stuff.

* Assembly.cs: Add stubs for ReflectionOnlyLoad methods. Add [Obsolete]
to LoadWithPartialName on 2.0.

* AssemblyNameFlags.cs: Add new 2.0 members.

* FieldInfo.cs MonoField.cs PropertyInfo.cs ParameterInfo.cs MonoProperty.cs: Add stubs for Optinal/RequiredCustomModifiers.

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 18:59:39 +0000 (18:59 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* ObfuscationAttribute.cs ObfuscateAssemblyAttribute.cs: New files.

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 18:58:32 +0000 (18:58 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* corlib.dll.sources: Add System.Reflection.ObfuscateAssemblyAttribute
and System.Reflection.ObfuscationAttribute.

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

19 years ago2004-09-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 23 Sep 2004 18:01:31 +0000 (18:01 -0000)]
2004-09-23  Martin Baulig  <martin@ximian.com>

* generic.cs (Constraints): Reflect latest runtime changes.

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

19 years ago2004-09-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 23 Sep 2004 17:48:32 +0000 (17:48 -0000)]
2004-09-23  Martin Baulig  <martin@ximian.com>

* GenericTypeParameterBuilder.cs
(GenericTypeParameterBuilder.SetGenericParameterAttributes): New
public method, replaces the old Mono_* hacks.

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

19 years ago2004-09-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 23 Sep 2004 17:47:32 +0000 (17:47 -0000)]
2004-09-23  Martin Baulig  <martin@ximian.com>

* object-internals.h (MonoReflectionGenericParam): Replaced
'has_ctor_constraint', `has_reference_type' and `has_value_type'
with `guint32 attrs'.

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

19 years agoReturn the correct flags.
Martin Baulig [Thu, 23 Sep 2004 17:24:52 +0000 (17:24 -0000)]
Return the correct flags.

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

19 years ago2004-09-23 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 23 Sep 2004 17:20:47 +0000 (17:20 -0000)]
2004-09-23  Marek Safar  <marek.safar@seznam.cz>

* cs-parser.jay: Fix wrong warning 642 report.

* cs-tokenizer.cs (CheckNextToken): New helper;
Inspect next character if is same as expected.

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

19 years ago2004-09-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 23 Sep 2004 17:11:00 +0000 (17:11 -0000)]
2004-09-23  Martin Baulig  <martin@ximian.com>

* Type.cs (Type.GenericParameterAttributes): New public property.

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

19 years ago2004-09-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 23 Sep 2004 17:10:28 +0000 (17:10 -0000)]
2004-09-23  Martin Baulig  <martin@ximian.com>

* icall.c (ves_icall_Type_GetGenericParameterAttributes): New interncall.

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

19 years ago2004-09-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 23 Sep 2004 17:01:32 +0000 (17:01 -0000)]
2004-09-23  Martin Baulig  <martin@ximian.com>

* convert.cs (Convert.ImplicitReferenceConversion): Some code cleanup.
(Convert.ImplicitReferenceConversionExists): Likewise.

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

19 years agoOoops.
Martin Baulig [Thu, 23 Sep 2004 16:48:02 +0000 (16:48 -0000)]
Ooops.

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

19 years ago2004-09-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 23 Sep 2004 16:44:25 +0000 (16:44 -0000)]
2004-09-23  Sebastien Pouliot  <sebastien@ximian.com>

* TlsClientKeyExchange.cs: Removed .Clear call on private key as itn't
ours (but only a reference). It also requires the callback to recreate
a new key object each time (which is worse). This also implies that
the caller (implementing the callback) is responsible to clear it.

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

19 years agonew test
Marek Safar [Thu, 23 Sep 2004 16:39:17 +0000 (16:39 -0000)]
new test

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

19 years ago2004-09-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 23 Sep 2004 15:28:33 +0000 (15:28 -0000)]
2004-09-23  Martin Baulig  <martin@ximian.com>

* object-internals.h (GenericParameterAttributes): New enum.

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

19 years agoNew test.
Martin Baulig [Thu, 23 Sep 2004 15:23:36 +0000 (15:23 -0000)]
New test.

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

19 years ago2004-09-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 23 Sep 2004 15:23:18 +0000 (15:23 -0000)]
2004-09-23  Martin Baulig  <martin@ximian.com>

* GenericParameterAttributes.cs: New file.

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

19 years agoMerged.
Martin Baulig [Thu, 23 Sep 2004 14:15:31 +0000 (14:15 -0000)]
Merged.

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

19 years ago**** Merged from MCS ****
Martin Baulig [Thu, 23 Sep 2004 14:15:08 +0000 (14:15 -0000)]
**** Merged from MCS ****

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

19 years ago**** Merged from MCS ****
Martin Baulig [Thu, 23 Sep 2004 13:59:45 +0000 (13:59 -0000)]
**** Merged from MCS ****

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

19 years ago * RemotingServices.cs: Fixed wrong patch for InternalExecuteMessage.
Lluis Sanchez [Thu, 23 Sep 2004 13:24:14 +0000 (13:24 -0000)]
* RemotingServices.cs: Fixed wrong patch for InternalExecuteMessage.
  The MethodBase in the message may not be the same type of the object
  (the method can be called using an interface).

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

19 years ago2004-09-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 23 Sep 2004 13:23:31 +0000 (13:23 -0000)]
2004-09-23  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: Updated version to 1.1.2 for next release.
* MakeCert.cs: Hack for date parsing problem with Mono.

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

19 years ago2004-09-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 23 Sep 2004 13:07:45 +0000 (13:07 -0000)]
2004-09-23  Sebastien Pouliot  <sebastien@ximian.com>

* RecordProtocol.cs: Fix alert data that could leak into appplication
data (e.g. when closing the SSL session).

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

19 years ago2004-09-23 Anirban Bhattacharjee <banirban@novell.com>
Anirban Bhattacharjee [Thu, 23 Sep 2004 12:31:15 +0000 (12:31 -0000)]
2004-09-23 Anirban Bhattacharjee <banirban@novell.com>
        * expression.cs: Enhanced mbas to resolve Default property or indexer

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 12:10:46 +0000 (12:10 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* EventInfo.cs: Fix 2.0 build.

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 12:04:54 +0000 (12:04 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* cpu-amd64.md: Fix bug in previous patch.

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 11:50:20 +0000 (11:50 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* MonoEvent.cs (MonoEventInfo): Add 'other_methods' field.

* EventInfo.cs MonoEvent.cs: Add NET 2.0 GetOtherMethods method.

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 11:47:34 +0000 (11:47 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* object-internals.h (MonoEventInfo): Add 'other_methods' field.

* class.c (init_events): Fill out event->other field.

* class.c: Fix warnings.

* icall.c (ves_icall_get_event_info): Fill out 'other_methods' field.

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

19 years agonew test
Marek Safar [Thu, 23 Sep 2004 11:46:38 +0000 (11:46 -0000)]
new test

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

19 years agoupdate
Marek Safar [Thu, 23 Sep 2004 11:40:55 +0000 (11:40 -0000)]
update

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

19 years ago2004-09-23 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 23 Sep 2004 11:29:25 +0000 (11:29 -0000)]
2004-09-23  Marek Safar  <marek.safar@seznam.cz>

* class.cs (Operator.Define): Add error 448 and 559 report.

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

19 years agoupdate
Marek Safar [Thu, 23 Sep 2004 10:15:00 +0000 (10:15 -0000)]
update

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

19 years ago2004-09-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 23 Sep 2004 09:54:00 +0000 (09:54 -0000)]
2004-09-23  Zoltan Varga  <vargaz@freemail.hu>

* cpu-amd64.md: Fix instruction lengths of membase opcodes. Fixes
#66650.

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

19 years agoUpdated sources list and project file.
Ravindra [Thu, 23 Sep 2004 07:44:28 +0000 (07:44 -0000)]
Updated sources list and project file.

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

19 years agoEventArgs and EventHandlers needed by ListView Control.
Ravindra [Thu, 23 Sep 2004 07:39:19 +0000 (07:39 -0000)]
EventArgs and EventHandlers needed by ListView Control.

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

19 years ago2004-09-22 John Luke <john.luke@gmail.com>
John Luke [Wed, 22 Sep 2004 22:40:11 +0000 (22:40 -0000)]
2004-09-22  John Luke  <john.luke@gmail.com>

        * outline.cs: use simpler IsDefined method
        for checking params and [Flags]

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

19 years ago- Implemented DockPadding property
Peter Dennis Bartok [Wed, 22 Sep 2004 20:12:45 +0000 (20:12 -0000)]
- Implemented DockPadding property
- Implemented AutoScroll property
- Implemented AutoScrollMargin property
- Implemented AutoScrollMinSize property
- Implemented AutoScrollPosition property
- Implemented DisplayRectangle property (still incomplete)
- Implemented CreateParams property
- Implemented HScroll property
- Implemented VScroll property
- Implemented OnVisibleChanged property

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

19 years ago- Added Form.ControllCollection class
Peter Dennis Bartok [Wed, 22 Sep 2004 20:09:44 +0000 (20:09 -0000)]
- Added Form.ControllCollection class
- Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
  RemoveOwnedForm (still incomplete, missing on-top and common
  minimize/maximize behaviour)
- Added StartPosition property (still incomplete, does not use when
  creating the form)
- Added ShowDialog() methods (still incomplete, missing forcing the dialog
  modal)

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

19 years ago- Added message loop for modal dialogs
Peter Dennis Bartok [Wed, 22 Sep 2004 20:05:41 +0000 (20:05 -0000)]
- Added message loop for modal dialogs

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

19 years ago- Fixed wrong types for events
Peter Dennis Bartok [Wed, 22 Sep 2004 20:02:40 +0000 (20:02 -0000)]
- Fixed wrong types for events

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

19 years ago- Fixed wrong values
Peter Dennis Bartok [Wed, 22 Sep 2004 20:01:21 +0000 (20:01 -0000)]
- Fixed wrong values

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

19 years ago * ConstructionCall.cs: Added a Proxy property (which is the proxy that
Lluis Sanchez [Wed, 22 Sep 2004 19:33:18 +0000 (19:33 -0000)]
* ConstructionCall.cs: Added a Proxy property (which is the proxy that
  will reference the object being created).
* StackBuilderSink.cs: Take into account the forceInternalExecute
  parameter.

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

19 years ago * RemotingProxy.cs: When attaching a CBO identity, assign the proxy to
Lluis Sanchez [Wed, 22 Sep 2004 19:32:49 +0000 (19:32 -0000)]
* RemotingProxy.cs: When attaching a CBO identity, assign the proxy to
  be used as "this" for method calls.

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

19 years ago * Context.cs: In CreateServerObjectSinkChain, added a parameter to
Lluis Sanchez [Wed, 22 Sep 2004 19:32:13 +0000 (19:32 -0000)]
* Context.cs: In CreateServerObjectSinkChain, added a parameter to
  specify that messages must be dispatched to the target object using
  InternalExecute. Usually if the target is a proxy, the sink uses
  RealProxy.Invoke to dispatch the method. This can't be done for local
  CBOs since we would loop for ever.

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

19 years ago * ActivationServices.cs: In Activate, assign the proxy to the ctor
Lluis Sanchez [Wed, 22 Sep 2004 19:31:25 +0000 (19:31 -0000)]
* ActivationServices.cs: In Activate, assign the proxy to the ctor
  message. In CreateInstanceFromMessage if the object being created
  is a CBO, use the provided proxy as "this" when calling the ctor.

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

19 years ago * RemotingServices.cs: In InternalExecute, use MethodBase instead
Lluis Sanchez [Wed, 22 Sep 2004 19:30:55 +0000 (19:30 -0000)]
* RemotingServices.cs: In InternalExecute, use MethodBase instead
  of MonoMethod, so it can be also used for running constructors.
* ServerIdentity.cs: Added methods for getting and setting the client
  proxy in ClientActivatedIdentity. This is needed for CBOs, since
  messages need to be dispatched using the proxy as "this", not the
  real object.

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

19 years ago2004-09-22 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
César Natarén [Wed, 22 Sep 2004 19:28:27 +0000 (19:28 -0000)]
2004-09-22  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>

* expression.cs: Binary, use ResolveFieldAccess only in case the operator is JSToken.AccessField.

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

19 years ago2004-09-22 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
César Natarén [Wed, 22 Sep 2004 19:19:13 +0000 (19:19 -0000)]
2004-09-22  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>

* Parser.cs: use ToJSToken to set the operator properly.

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

19 years ago2004-09-22 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
César Natarén [Wed, 22 Sep 2004 19:17:15 +0000 (19:17 -0000)]
2004-09-22  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>

* FunctionDeclaration.cs: delete spaces.

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

19 years ago * ThreadTest.cs, MutexTest.cs: Don't leave any thread alive, even if the
Lluis Sanchez [Wed, 22 Sep 2004 19:06:50 +0000 (19:06 -0000)]
* ThreadTest.cs, MutexTest.cs: Don't leave any thread alive, even if the
thread fails. Added a timeout to active waits.

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

19 years agoText is never null
Jackson Harper [Wed, 22 Sep 2004 18:01:28 +0000 (18:01 -0000)]
Text is never null

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

19 years agoupdate
Marek Safar [Wed, 22 Sep 2004 17:42:39 +0000 (17:42 -0000)]
update

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

19 years ago2004-09-22 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 22 Sep 2004 17:40:50 +0000 (17:40 -0000)]
2004-09-22  Marek Safar  <marek.safar@seznam.cz>

* class.cs (MemberBase.IsTypePermitted): New protected
method for checking error CS0610.

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

19 years agoFixed some code style issues.
Paolo Molaro [Wed, 22 Sep 2004 17:14:53 +0000 (17:14 -0000)]
Fixed some code style issues.

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

19 years agoNew test, not yet working.
Martin Baulig [Wed, 22 Sep 2004 16:54:45 +0000 (16:54 -0000)]
New test, not yet working.

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

19 years agoupdate
Marek Safar [Wed, 22 Sep 2004 16:37:49 +0000 (16:37 -0000)]
update

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

19 years ago2004-09-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 22 Sep 2004 16:33:42 +0000 (16:33 -0000)]
2004-09-22  Martin Baulig  <martin@ximian.com>

* typemanager.cs (TypeManager.LookupGenericTypeContainer): New
public method; like LookupTypeContainer, but also works for
generic instances.

* report.cs (Report.SymbolRelatedToPreviousError): Use
TypeManager.LookupGenericTypeContainer().

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

19 years ago2004-09-22 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 22 Sep 2004 16:32:53 +0000 (16:32 -0000)]
2004-09-22  Marek Safar  <marek.safar@seznam.cz>

* class.cs (TypeContainer.HasExplicitLayout): New property
Returns whether container has StructLayout attribute set Explicit.
(FieldMember): New abstract class for consts and fields.
(FieldMember.ApplyAttributeBuilder): Add error 636 and 637 report.
(Field): Reuse FieldMember.

* const.cs (Const): Reuse FieldMember.

* rootcontext.cs: EmitConstants call moved to class.

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

19 years ago2004-09-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 22 Sep 2004 16:23:49 +0000 (16:23 -0000)]
2004-09-22  Martin Baulig  <martin@ximian.com>

* test-298.cs: New test, already in gmcs.

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

19 years ago2004-09-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 22 Sep 2004 16:22:37 +0000 (16:22 -0000)]
2004-09-22  Martin Baulig  <martin@ximian.com>

Thanks to Peter Sestoft for this bug report.

* expression.cs (Conditional): If both the `trueExpr' and the
`falseExpr' is a NullLiteral, return a NullLiteral.

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

19 years ago2004-09-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 22 Sep 2004 16:02:46 +0000 (16:02 -0000)]
2004-09-22  Martin Baulig  <martin@ximian.com>

* gen-78.cs: New test for #65521.

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

19 years ago2004-09-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 22 Sep 2004 16:00:40 +0000 (16:00 -0000)]
2004-09-22  Martin Baulig  <martin@ximian.com>

* statement.cs (Foreach.EmitCollectionForeach): If we're in an
iterator, use `enumerator.EmitThis()' instead of `ec.EmitThis()'
for the "get_Current" call.

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

19 years agoWed Sep 22 19:06:02 CEST 2004 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 22 Sep 2004 15:53:43 +0000 (15:53 -0000)]
Wed Sep 22 19:06:02 CEST 2004 Paolo Molaro <lupus@ximian.com>

* interp.c: updates for stack walk interface.

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

19 years agoWed Sep 22 19:03:20 CEST 2004 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 22 Sep 2004 15:53:29 +0000 (15:53 -0000)]
Wed Sep 22 19:03:20 CEST 2004 Paolo Molaro <lupus@ximian.com>

* mini.h, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
mini-exceptions.c: updates for changed stack walk interface.

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

19 years agoWed Sep 22 19:04:32 CEST 2004 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 22 Sep 2004 15:53:26 +0000 (15:53 -0000)]
Wed Sep 22 19:04:32 CEST 2004 Paolo Molaro <lupus@ximian.com>

* class-internals.h, icall.c, loader.c, loader.h: added a faster stack
walk which doesn't supply the IL offset.

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

19 years agoSomehow this line disappeared during one of the last mergings ...
Martin Baulig [Wed, 22 Sep 2004 15:42:33 +0000 (15:42 -0000)]
Somehow this line disappeared during one of the last mergings ...

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

19 years agoUpdated.
Martin Baulig [Wed, 22 Sep 2004 15:23:50 +0000 (15:23 -0000)]
Updated.

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

19 years ago2004-09-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 22 Sep 2004 15:10:05 +0000 (15:10 -0000)]
2004-09-22  Martin Baulig  <martin@ximian.com>

* Makefile: Added some Makefile love :-)

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

19 years ago2004-09-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Sep 2004 15:09:04 +0000 (15:09 -0000)]
2004-09-22  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaDatatype.cs : handle xdt:* types in FromName().

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

19 years ago2004-09-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Sep 2004 15:07:58 +0000 (15:07 -0000)]
2004-09-22  Atsushi Enomoto <atsushi@ximian.com>

* SequenceType.cs : return TypedValue instead of null in case of
  XPathNavigator.
* XPath2Expression.cs : now FunctionCallExpr also handles evaluation.
* XPathSequence.cs : rewrote FLWORIterator to iterate forlet
  expressions based on index.

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

19 years ago2004-09-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 22 Sep 2004 13:56:41 +0000 (13:56 -0000)]
2004-09-22  Martin Baulig  <martin@ximian.com>

Marek and me just fixed one of our oldest bugs: #28562 :-)

* ecore.cs (EnumConstant.GetValueAsEnumType): New public method.

* attribute.cs (Attribute.GetAttributeArgumentExpression): If
we're an EnumConstant, just return that.
(Attribute.Resolve): GetAttributeArgumentExpression() may give us
an EnumConstant.  In this case, we need to use GetValueAsEnumType()
to get the value which'll actually be written into the attribute.
However, we have to use GetValue() to access the attribute's value
in the compiler.

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

19 years ago2004-09-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 22 Sep 2004 13:05:24 +0000 (13:05 -0000)]
2004-09-22  Zoltan Varga  <vargaz@freemail.hu>

* ModuleTest.cs: Add tests for NET 2.0 ResolveXXX methods.

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

19 years ago2004-09-22 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 22 Sep 2004 13:02:11 +0000 (13:02 -0000)]
2004-09-22  Marek Safar  <marek.safar@seznam.cz>

* constant.cs (Constant.IsNegative): New abstract property
IsNegative.

* expression.cs (ArrayAccess.DoResolve): Add warning 251.
(StackAlloc.DoResolve): Reused IsNegative.

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

19 years ago2004-09-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 22 Sep 2004 12:48:01 +0000 (12:48 -0000)]
2004-09-22  Martin Baulig  <martin@ximian.com>

* test-297.cs: New test for #28562.

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

19 years ago2004-09-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 22 Sep 2004 12:46:03 +0000 (12:46 -0000)]
2004-09-22  Martin Baulig  <martin@ximian.com>

* reflection.c (mono_reflection_setup_internal_class): If we're
System.ValueType, System.Object or System.Enum, set
`klass->instance_size' and create the vtable.
(mono_reflection_create_internal_class): If we're an enum type,
get the base class from our current corlib.

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

19 years ago2004-09-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 22 Sep 2004 12:45:46 +0000 (12:45 -0000)]
2004-09-22  Zoltan Varga  <vargaz@freemail.hu>

* Module.cs: Implement net 2.0 ResolveXXX methods.

* Module.cs (resolve_token_exception): Fix type of exception thrown.

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

19 years ago2004-09-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 22 Sep 2004 12:36:35 +0000 (12:36 -0000)]
2004-09-22  Zoltan Varga  <vargaz@freemail.hu>

* Module.cs: Implement net 2.0 ResolveXXX methods.

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

19 years ago2004-09-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 22 Sep 2004 12:36:09 +0000 (12:36 -0000)]
2004-09-22  Zoltan Varga  <vargaz@freemail.hu>

* ModuleHandle.cs: Updated after changes to Module class.

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

19 years ago2004-09-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 22 Sep 2004 12:33:04 +0000 (12:33 -0000)]
2004-09-22  Zoltan Varga  <vargaz@freemail.hu>

* reflection.h (MonoResolveTokenError): New type.

* icall.c (ves_icall_System_Reflection_Module_ResolveMemberToken): New
icall.

* icall.c: Add an 'error' argument to the ResolveToken icalls.

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

19 years ago2004-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 22 Sep 2004 12:06:46 +0000 (12:06 -0000)]
2004-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* RandomTest.cs: Commented test CompareWithMS following constants
changes in Mono implementation (to use Knuth's constants).

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

19 years ago2004-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 22 Sep 2004 11:05:21 +0000 (11:05 -0000)]
2004-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* SHA224Test.cs: Fix compilation error with NUnit 2.1.91 (CVS).

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

19 years ago * icall.c: Support ContextBoundObject proxies in ves_icall_InternalExecute.
Lluis Sanchez [Wed, 22 Sep 2004 10:44:13 +0000 (10:44 -0000)]
* icall.c: Support ContextBoundObject proxies in ves_icall_InternalExecute.
Support also calling constructors, but only for already allocated objects

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

19 years agoFlush
Miguel de Icaza [Tue, 21 Sep 2004 21:31:22 +0000 (21:31 -0000)]
Flush

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

19 years agoOSX doesn't have O_SYNC; check to make sure O_SYNC is defined before compiling this...
Geoff Norton [Tue, 21 Sep 2004 21:30:12 +0000 (21:30 -0000)]
OSX doesn't have O_SYNC; check to make sure O_SYNC is defined before compiling this part. Lets mono build on OSX again.

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

19 years agopain
Miguel de Icaza [Tue, 21 Sep 2004 18:14:10 +0000 (18:14 -0000)]
pain

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

19 years agoAdd -g
Miguel de Icaza [Tue, 21 Sep 2004 18:01:14 +0000 (18:01 -0000)]
Add -g

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

19 years agoAdding test case for bug #63841
Geoff Norton [Tue, 21 Sep 2004 17:43:05 +0000 (17:43 -0000)]
Adding test case for bug #63841

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

19 years agoCater for Linux on S/390 in configure. Enable build by updating rule for .mdb
Neale Ferguson [Tue, 21 Sep 2004 16:32:35 +0000 (16:32 -0000)]
Cater for Linux on S/390 in configure. Enable build by updating rule for .mdb
objects

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

19 years agoMinor OP_ARGLIST changes
Neale Ferguson [Tue, 21 Sep 2004 16:27:21 +0000 (16:27 -0000)]
Minor OP_ARGLIST changes

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

19 years ago2004-09-21 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 21 Sep 2004 15:52:07 +0000 (15:52 -0000)]
2004-09-21  Martin Baulig  <martin@ximian.com>

* test-295.cs: Added Geoff Norton's patch for #62984.

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