Sebastien Pouliot [Mon, 7 Jan 2008 21:42:12 +0000 (21:42 -0000)]
2008-01-07 Sebastien Pouliot <sebastien@ximian.com>
* Identity.cs: Fix Disposed setter to use value (not true). Found
using Gendarme.
svn path=/trunk/mcs/; revision=92418
Rodrigo Kumpera [Mon, 7 Jan 2008 20:26:18 +0000 (20:26 -0000)]
2008-01-07 Rodrigo Kumpera <rkumpera@novell.com>
* make_delegate_test.sh: added.
* make_tests.sh: added new tests for delegates
constructed with ldftn.
svn path=/trunk/mono/; revision=92411
Massimiliano Mantione [Mon, 7 Jan 2008 19:56:58 +0000 (19:56 -0000)]
* mono-profiler-oprofile.c: Set HAS_OPROFILE to 0...
svn path=/trunk/mono/; revision=92410
Miguel de Icaza [Mon, 7 Jan 2008 19:29:58 +0000 (19:29 -0000)]
Further doc updates
svn path=/trunk/mcs/; revision=92408
Rodrigo Kumpera [Mon, 7 Jan 2008 19:05:03 +0000 (19:05 -0000)]
2008-01-07 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c: added a bunch of stack_slot_* functions to
make access to stack slot type easier. This is required to
allow optional flags, like null literal, boxed value and
this pointer.
All access paths to IlStackDesc::stype have been changed
to use these new funcions.
Removed a bunch of unused functions and cleared all warnings.
This patch introduces the usage of the this pointer and
boxed value flags.
svn path=/trunk/mono/; revision=92407
Geoff Norton [Mon, 7 Jan 2008 18:14:10 +0000 (18:14 -0000)]
2008-01-07 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
not a notification to exit the application. Listen for WM_QUIT
instead.
svn path=/trunk/mcs/; revision=92404
Marek Safar [Mon, 7 Jan 2008 18:08:30 +0000 (18:08 -0000)]
New test.
svn path=/trunk/mcs/; revision=92403
Marek Safar [Mon, 7 Jan 2008 18:08:08 +0000 (18:08 -0000)]
2008-01-07 Marek Safar <marek.safar@gmail.com>
* cs-tokenizer.cs: Enabled lambda arguments micro-parser for all profiles.
* decl.cs (LookupNamespaceOrType): Don't cache names which caused an error.
* driver.cs: Updated --help option.
svn path=/trunk/mcs/; revision=92402
Andreia Gaita [Mon, 7 Jan 2008 17:56:47 +0000 (17:56 -0000)]
* HtmlDocument.cs: Fix case on GetElementById (interface changed)
2008-01-07 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=92401
Andreia Gaita [Mon, 7 Jan 2008 17:52:42 +0000 (17:52 -0000)]
* Mono.Mozilla.dll.sources: Added new classes (see below).
* Mono.Mozilla/DOM/DOMObject.cs:
- Store reference to the IWebBrowser control that created this (and
subclassed) object. This reference needs to be used in any gluezilla calls
that have to invoke methods on the mozilla ui thread (any Widget method,
whose ptr reference is stored in Base and indexed by IWebBrowser control).
- Tweak the Dispose pattern: subclasses don't have their own private
dispose field to keep track of whether they've been disposed already, this
base class takes care of that.
* Mono.Mozilla/DOM/DOMNode.cs:
- Initialize a proxy to the nsI object that this wrapper encapsulates.
- Cache all objects returned from this object in an hashtable, so that
1) we can keep track of all objects and release them earlier and
properly
2) we don't have to keep creating new objects everytime we get requests
for read-only stuff
- Implement FirstChild and LocalName
- Add Dispose pattern
* Mono.Mozilla/DOM/DOMHTMLElement.cs:
- Change the inheritance to DOMElement.
- Change the constructor to send the nsI object and IWebBrowser up the tree.
- Get a proxy to the nsI object.
- Add dispose pattern.
* Mono.Mozilla/DOM/DOMHTMLDocument.cs:
- Change the constructor to send the IWebBrowser instance up the tree.
- Add resources hashtable to keep track of already-fetched objects.
Particularly useful here since getElementById can be called n times, so it
would be complicated to keep track and dispose properly of all the objects.
- Implement DocumentElement
- Change Body and GetElementById to use resources cache
- Fix GetElementById case
* Mono.Mozilla/DOM/DOMElement.cs: Added. Inherits from DOMNode, so the
parent class also keeps track of the nsI object.
* Mono.Mozilla/DOM/DOMNodeList.cs: Added to support easy iteration of nodes.
* Mono.Mozilla/DOM/Navigation.cs: Tweak dispose pattern and constructor to
the new model.
* Mono.Mozilla/WebBrowser.cs: Fix the DOMHTMLDocument creation.
* Mono.WebBrowser/DOM/IDOMHTMLDocument.cs: Fix case on GetElementById, add
DocumentElement property.
* Mono.WebBrowser/DOM/IDOMNodeList.cs,
Mono.WebBrowser/DOM/IDOMElement.cs:
Added, no external functionality for now.
2008-01-07 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=92400
Jonathan Pobst [Mon, 7 Jan 2008 16:43:25 +0000 (16:43 -0000)]
2008-01-07 Jonathan Pobst <monkey@jpobst.com>
* ToolStripItem.cs: If the bounds of an item changes, invalidate it
so it can repaint at the correct location.
[Fixes bug #351341]
svn path=/trunk/mcs/; revision=92397
Igor Zelmanovich [Mon, 7 Jan 2008 15:54:28 +0000 (15:54 -0000)]
added reference to System.Web.Phantom
svn path=/trunk/mcs/; revision=92396
Igor Zelmanovich [Mon, 7 Jan 2008 15:51:57 +0000 (15:51 -0000)]
added IScriptManager interface
svn path=/trunk/mcs/; revision=92395
Marek Safar [Mon, 7 Jan 2008 15:28:19 +0000 (15:28 -0000)]
2008-01-07 Marek Safar <marek.safar@gmail.com>
* generic.cs (InferParamsTypeArguments): Removed.
(InferInPhases): Add params type inference.
(LowerBoundInference): Fixed scoring mechanism.
* cs-tokenizer.cs (PreProcessPragma): Use Location instead of line.
svn path=/trunk/mcs/; revision=92393
Massimiliano Mantione [Mon, 7 Jan 2008 15:10:41 +0000 (15:10 -0000)]
* mono-profiler-oprofile.c: First code drop of new logging profiler.
* Makefile.am: Added logging profiler, but commented in out to avoid
breaking the build on Windows.
svn path=/trunk/mono/; revision=92392
Igor Zelmanovich [Mon, 7 Jan 2008 14:32:14 +0000 (14:32 -0000)]
ScriptManager implements IScriptManager interface
and register itself with page with appropriate key
svn path=/trunk/mcs/; revision=92390
Igor Zelmanovich [Mon, 7 Jan 2008 14:24:43 +0000 (14:24 -0000)]
2008-01-07 Igor Zelmanovich <igorz@mainsoft.com>
* Page.cs: added internal API
* IScriptManager.cs: added new internal interface.
2007-01-07 Igor Zelmanovich <igorz@mainsoft.com>
* BaseCompareValidator.cs:
* BaseValidator.cs:
* CompareValidator.cs:
* CustomValidator.cs:
* RangeValidator.cs:
* RegularExpressionValidator.cs:
* RequiredFieldValidator.cs:
refactoring: If page contents instance of IScriptManager, validators call
it's API instead Page.ClientScript.
svn path=/trunk/mcs/; revision=92389
Igor Zelmanovich [Mon, 7 Jan 2008 14:06:27 +0000 (14:06 -0000)]
fixed CreateActionUrl
svn path=/trunk/mcs/; revision=92388
Igor Zelmanovich [Mon, 7 Jan 2008 13:38:38 +0000 (13:38 -0000)]
2008-01-07 Igor Zelmanovich <igorz@mainsoft.com>
* ClientScriptManager.cs:
* Control.jvm.cs:
* Page.cs:
* Page.jvm.cs:
for TARGET_J2EE ensure page life cycle is completed in CrossPagePostBack.
2007-01-07 Igor Zelmanovich <igorz@mainsoft.com>
* Button.cs:
* ImageButton.cs:
* LinkButton.cs:
for TARGET_J2EE used CreateActionUrl instead ResolveClientUrl
in GetPostBackOptions.
2007-01-07 Igor Zelmanovich <igorz@mainsoft.com>
* HtmlForm.cs: refactoring.
svn path=/trunk/mcs/; revision=92387
Konstantin Triger [Mon, 7 Jan 2008 13:36:15 +0000 (13:36 -0000)]
use ClassLoader.getResourceAsStream instead of ClassLoader.getResource for checking resource presence to remove leaks
svn path=/trunk/mcs/; revision=92386
Zoltan Varga [Mon, 7 Jan 2008 13:18:32 +0000 (13:18 -0000)]
2008-01-07 Zoltan Varga <vargaz@gmail.com>
* boehm-gc.c (mono_gc_deregister_root): Fix win32 build.
svn path=/trunk/mono/; revision=92385
Jb Evain [Mon, 7 Jan 2008 13:06:33 +0000 (13:06 -0000)]
2008-01-07 Jb Evain <jbevain@novell.com>
* Mono.Cecil.Cil/CilWorker.cs:
Allow ldarg.s/ldloc.s/stloc.s to take a byte
instead of the actual parameter or variable. Fix #350606.
svn path=/trunk/mcs/; revision=92384
Jb Evain [Mon, 7 Jan 2008 13:00:59 +0000 (13:00 -0000)]
2008-01-07 Jb Evain <jbevain@novell.com>
* Mono.Cecil/ArrayType.cs:
Add a constructor with the array rank. Fix #351924.
Based on a patch by Rolf Kvinge <rkvinge@novell.com>.
svn path=/trunk/mcs/; revision=92383
Igor Zelmanovich [Mon, 7 Jan 2008 12:33:04 +0000 (12:33 -0000)]
introduce new API IsProcessingInclude()
svn path=/trunk/mcs/; revision=92381
Marek Habersack [Mon, 7 Jan 2008 11:50:21 +0000 (11:50 -0000)]
2008-01-07 Marek Habersack <mhabersack@novell.com>
* CachingCompiler.cs: added an overload to the Compile method
which accepts a flag whether or not to include debug information
in the generated assembly.
2008-01-07 Marek Habersack <mhabersack@novell.com>
* TemplateParser.cs: handle legacy 'src' attribute in the 2.0
profile in the correct way. Fixes bug #319016
BaseType is global by default.
svn path=/trunk/mcs/; revision=92380
Carlos Alberto Cortez [Mon, 7 Jan 2008 09:51:23 +0000 (09:51 -0000)]
2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControlTest.cs: New SelectedValue property test.
svn path=/trunk/mcs/; revision=92379
Carlos Alberto Cortez [Mon, 7 Jan 2008 09:45:51 +0000 (09:45 -0000)]
2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: SelectedValue should return a null value if
SelectedIndex is -1. Also, when setting it, it should throw an
ArgumentNullException if the value is null, as well as taking
into account the String.Empty value, instead of ignoring it (we have
tests for that now).
Fixes part of #324286.
svn path=/trunk/mcs/; revision=92378
Andreia Gaita [Mon, 7 Jan 2008 03:48:49 +0000 (03:48 -0000)]
* Mono.Mozilla/DOM/Navigation.cs: Fix calls to the nsIWebNavigation
interface (case change from being generated through xpidl2cs. that's what
I get for merging in batches :/ )
2008-01-07 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=92377
Andreia Gaita [Mon, 7 Jan 2008 03:36:23 +0000 (03:36 -0000)]
* Mono.Mozilla/Base.cs: Add GetProxyForObject method to create proxies
for mozilla objects.
Remove trace listener.
2008-01-07 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=92376
Andreia Gaita [Mon, 7 Jan 2008 03:25:50 +0000 (03:25 -0000)]
* Mono.Mozilla/interfaces/nsIDOMRange.cs,
Mono.Mozilla/interfaces/nsIDOMDocumentRange.cs:
Added to get the content of elements.
* Mono.Mozilla/interfaces/*.cs: Regenerated with the xpidl2cs.pl script.
Add helper class to create a proxy for all native mozilla interfaces.
* Mono.Mozilla/interfaces/extras/: classes for the mozilla interfaces that
don't get generated automatically, like enums, delegates, etc.
* Mono.Mozilla/interfaces/extras/nsIWriteSegmentFun.cs:
Delegate callback for a writer function for mozilla streams
(nsIInputStream.readSegments)
* Mono.Mozilla/interfaces/extras/Options.cs: Enum for nsIWebNavigation.stop
2008-01-07 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=92375
Zoltan Varga [Sun, 6 Jan 2008 22:25:02 +0000 (22:25 -0000)]
2008-01-06 Zoltan Varga <vargaz@gmail.com>
* FileTest.cs: Rename a helper method so it does not begin with Test.
svn path=/trunk/mcs/; revision=92370
Zoltan Varga [Sun, 6 Jan 2008 22:04:05 +0000 (22:04 -0000)]
2008-01-06 Zoltan Varga <vargaz@gmail.com>
* ListTest.cs: Make some tests public.
svn path=/trunk/mcs/; revision=92369
Zoltan Varga [Sun, 6 Jan 2008 21:42:00 +0000 (21:42 -0000)]
2008-01-06 Zoltan Varga <vargaz@gmail.com>
* appdomain.c (ves_icall_System_AppDomain_ExecuteAssembly): Change signature to
match managed version.
* appdomain.c: Bump corlib version.
svn path=/trunk/mono/; revision=92367
Zoltan Varga [Sun, 6 Jan 2008 21:40:52 +0000 (21:40 -0000)]
2008-01-06 Zoltan Varga <vargaz@gmail.com>
* AppDomain.cs: Move the assembly loading in ExecuteAssembly and
ExecuteAssemblyByName to managed to as said by the MSDN docs. Fixes #350530.
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=92366
Zoltan Varga [Sun, 6 Jan 2008 20:42:52 +0000 (20:42 -0000)]
2008-01-06 Zoltan Varga <vargaz@gmail.com>
* appdomain.c (ves_icall_System_AppDomain_ExecuteAssembly): Check for a null
argument.
svn path=/trunk/mono/; revision=92362
Ivan Zlatev [Sun, 6 Jan 2008 18:00:26 +0000 (18:00 -0000)]
2008-01-06 Ivan N. Zlatev <contact@i-nz.net>
* ServiceContainer.cs: Check DefaultServices in GetService in 2.0.
* MenuCommand.cs: Invoke (args) should call Invoke () and leave
args handling for subclasses.
* ServiceContainerTest.cs: Test that DefaultServices is checked in
GetService in 2.0.
svn path=/trunk/mcs/; revision=92354
Gert Driesen [Sun, 6 Jan 2008 17:34:42 +0000 (17:34 -0000)]
* AssemblyBuilderTest.cs: Added (NotWorking) test for bug #351932.
svn path=/trunk/mcs/; revision=92353
Igor Zelmanovich [Sun, 6 Jan 2008 17:11:40 +0000 (17:11 -0000)]
fixed RegisterScriptDescriptors and RegisterScriptReference
svn path=/trunk/mcs/; revision=92352
Gert Driesen [Sun, 6 Jan 2008 16:50:48 +0000 (16:50 -0000)]
* AssemblyNameTest.cs: Improved tests for ProcessorArchictecture.
svn path=/trunk/mcs/; revision=92351
Jonathan Pobst [Sun, 6 Jan 2008 16:44:20 +0000 (16:44 -0000)]
2008-01-06 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
SelectionStart is updated after pressing enter. Fixes bug #351918.
svn path=/trunk/mcs/; revision=92350
Jonathan Pobst [Sun, 6 Jan 2008 16:35:41 +0000 (16:35 -0000)]
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Revert a piece r92316 that prevented the fix
from working when there were multiple tags in the text box.
Fixes bug #351881.
svn path=/trunk/mcs/; revision=92347
Gert Driesen [Sun, 6 Jan 2008 16:21:49 +0000 (16:21 -0000)]
* icall.c (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies)
Set public key token to zero-length byte array if assembly is not
strongnamed.
svn path=/trunk/mono/; revision=92344
Sebastien Pouliot [Sun, 6 Jan 2008 15:39:22 +0000 (15:39 -0000)]
2008-01-06 Sebastien Pouliot <sebastien@ximian.com>
* Assembly.cs: Fix typo in setter found with Gendarme (was used in a
single place, AppDomain, and set to true so it never caused a problem)
2008-01-04 Gert Driesen <drieseng@users.sourceforge.net>
svn path=/trunk/mcs/; revision=92343
Konstantin Triger [Sun, 6 Jan 2008 14:49:19 +0000 (14:49 -0000)]
the AppSettings collection's Add should behave as Set
svn path=/trunk/mcs/; revision=92342
Igor Zelmanovich [Sun, 6 Jan 2008 12:49:36 +0000 (12:49 -0000)]
2007-01-06 Igor Zelmanovich <igorz@mainsoft.com>
* DetailsView.cs: render invisible rows correct.
svn path=/trunk/mcs/; revision=92340
Igor Zelmanovich [Sun, 6 Jan 2008 12:45:15 +0000 (12:45 -0000)]
2007-01-06 Igor Zelmanovich <igorz@mainsoft.com>
* DataControlField.cs: prevent infinite recursion
svn path=/trunk/mcs/; revision=92339
Igor Zelmanovich [Sun, 6 Jan 2008 12:06:55 +0000 (12:06 -0000)]
typo fix
svn path=/trunk/mcs/; revision=92338
Zoltan Varga [Sun, 6 Jan 2008 11:13:47 +0000 (11:13 -0000)]
2008-01-06 Zoltan Varga <vargaz@gmail.com>
* mono-hash.c: Don't include os/gc_wrapper.h.
svn path=/trunk/mono/; revision=92337
Zoltan Varga [Sun, 6 Jan 2008 11:13:02 +0000 (11:13 -0000)]
2008-01-06 Zoltan Varga <vargaz@gmail.com>
* mini.c driver.c: Don't include os/gc_wrapper.h.
svn path=/trunk/mono/; revision=92336
Zoltan Varga [Sun, 6 Jan 2008 11:05:05 +0000 (11:05 -0000)]
2008-01-06 Zoltan Varga <vargaz@gmail.com>
* Thread.cs (set_CurrentCulture): If the culture is read-only, cache the result
of serializing it.
(set_CurrentUICulture): Ditto.
svn path=/trunk/mcs/; revision=92335
Zoltan Varga [Sun, 6 Jan 2008 11:03:52 +0000 (11:03 -0000)]
2008-01-06 Zoltan Varga <vargaz@gmail.com>
* CultureInfo.cs: Add a 'cached_serialized_form' field.
svn path=/trunk/mcs/; revision=92334
Igor Zelmanovich [Sun, 6 Jan 2008 10:19:09 +0000 (10:19 -0000)]
fixed exception handling for TARGET_J2EE
svn path=/trunk/mcs/; revision=92332
Igor Zelmanovich [Sun, 6 Jan 2008 10:17:14 +0000 (10:17 -0000)]
added missing resources
svn path=/trunk/mcs/; revision=92331
Gert Driesen [Sun, 6 Jan 2008 09:51:44 +0000 (09:51 -0000)]
* typemanager.cs: On 2.0 profile, GetPublicKeyToken returns an empty
byte array for unsigned "baked" assemblies.
* gcs0281.cs: Modified expected error message now that fix for bug
#315057 has been applied.
svn path=/trunk/mcs/; revision=92330
Igor Zelmanovich [Sun, 6 Jan 2008 08:14:55 +0000 (08:14 -0000)]
added #if TARGET_DOTNET
svn path=/trunk/mcs/; revision=92329
Igor Zelmanovich [Sun, 6 Jan 2008 08:11:36 +0000 (08:11 -0000)]
added #if TARGET_DOTNET
svn path=/trunk/mcs/; revision=92328
Zoltan Varga [Sun, 6 Jan 2008 01:27:44 +0000 (01:27 -0000)]
2008-01-06 Zoltan Varga <vargaz@gmail.com>
* CultureInfo.cs NumberFormatInfo.cs DateTimeFormatInfo.cs TextInfo.cs: Make
sure the components of a read-only culture object are read-only as well.
svn path=/trunk/mcs/; revision=92326
Marek Habersack [Sun, 6 Jan 2008 00:13:28 +0000 (00:13 -0000)]
2008-01-06 Marek Habersack <mhabersack@novell.com>
* ApplicationHost.cs: make sure that application with virtualDir
"/a" and physicalDir "/b" and the other way around get different
domain_id values
svn path=/trunk/mcs/; revision=92323
Jonathan Pobst [Sat, 5 Jan 2008 21:55:13 +0000 (21:55 -0000)]
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Apply patch from Luke Page that prevents an
NRE when determining the beginning of a paragraph.
Fixes bug #351886.
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* RichTextBoxTest.cs: Add test for bug #351886.
svn path=/trunk/mcs/; revision=92320
Gert Driesen [Sat, 5 Jan 2008 21:51:24 +0000 (21:51 -0000)]
Fixed year.
svn path=/trunk/mcs/; revision=92319
Gert Driesen [Sat, 5 Jan 2008 21:45:14 +0000 (21:45 -0000)]
* codegen.cs: AssemblyName.GetPublicKey returns a zero-length byte
array for assemblies that are not strongnamed.
svn path=/trunk/mcs/; revision=92318
Jonathan Pobst [Sat, 5 Jan 2008 21:39:30 +0000 (21:39 -0000)]
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Apply patch from Luke Page that ensures the
caret gets moved with clicking away from a selected block of
text. Fixes bug #351885.
svn path=/trunk/mcs/; revision=92317
Jonathan Pobst [Sat, 5 Jan 2008 21:32:44 +0000 (21:32 -0000)]
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: Apply patch from Luke Page that takes line
alignment into account for mouse selection, so that center and
right aligned text can be selected.
Fixes bug #351881.
svn path=/trunk/mcs/; revision=92316
Zoltan Varga [Sat, 5 Jan 2008 20:06:50 +0000 (20:06 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* icall.c (ves_icall_System_Array_SetValueImpl): Use a write barrier when
writing a vtype array elem.
svn path=/trunk/mono/; revision=92315
Gert Driesen [Sat, 5 Jan 2008 19:35:02 +0000 (19:35 -0000)]
* AssemblyBuilder.cs (UnprotectedGetName): Set the public key token
as well.
* AssemblyBuilderTest.cs: Improved existing AssemblyName related tests.
Enabled AssemblyName tests that previously failed.
* AssemblyNameCas.cs: Sync test methods with AssemblyNameTest.cs.
* AssemblyNameTest.cs: Removed AssertEqualsByteArrays method since
NUnit supports this out-of-the-box. Use more meaningful names for
some existing tests. Improved existing tests and added lots more.
Enabled tests that were previously failing. Fixed and improved
tests for public key; the original "public key" was actually a
key pair.
* AssemblyName.cs: Fixed default value for ProcessorArchitecture to
match MS. On 2.0 profile, return zero-length in FullName is no name
is set, and throw a SecurityException in FullName and GetPublicKeyToken
if a public key is set with no corresponding public key token.
Fixed FullName to also include PublicKeyToken spec with "null" value
if public key is empty byte array. Fixed corlib part of bug #351057.
In SetPublicKey, modify Flags accordingly. On the 2.0 profile, verify
the public key when the public key token is computed.
svn path=/trunk/mcs/; revision=92314
Gert Driesen [Sat, 5 Jan 2008 19:34:43 +0000 (19:34 -0000)]
* assembly.c (build_assembly_name): return FALSE if length of token is
not 16 (if not "null").
(mono_assembly_name_parse_full): return FALSE if value of version,
culture, token or key is 0.
* icall.c (fill_reflection_assembly_name): add boolean arguments to
specify whether public key and public key token must be set to default
value (zero-length byte array) if not available. Set versioncompat to
SameMachine. If public key is available or the default is set, then
set PublicKey flag.
(ves_icall_System_Reflection_Assembly_FillName): if no public key
is available, use empty byte array as default value. On the 2.0
profile, use default value for public key token if not set.
(ves_icall_System_Reflection_InternalGetAssemblyName): on the 1.0
profile, use default value for public key if not set. On the 2.0
profile, use default value for public key token if not set.
(ves_icall_System_Reflection_AssemblyName_ParseName): do not set
default values for public key and public key token.
svn path=/trunk/mono/; revision=92313
Zoltan Varga [Sat, 5 Jan 2008 19:05:06 +0000 (19:05 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* Makefile.am (DIST_SUBDIRS): Use $(eglib_dir) instead of eglib to
fix make dist.
svn path=/trunk/mono/; revision=92312
Zoltan Varga [Sat, 5 Jan 2008 17:42:28 +0000 (17:42 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* object-internals.h (MonoReflectionAssemblyName): Add 'processor_architecture'
field to keep it in synch with the managed object.
svn path=/trunk/mono/; revision=92309
Jonathan Pobst [Sat, 5 Jan 2008 17:34:13 +0000 (17:34 -0000)]
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* RichTextBox.cs: Apply patch from Luke Page that fixes some caret
issues after loading an RTF file by using the correct line feeds.
Fixes bug #351841.
svn path=/trunk/mcs/; revision=92308
Zoltan Varga [Sat, 5 Jan 2008 17:30:34 +0000 (17:30 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* marshal.c (emit_marshal_object): Add support for byref marshalling of
delegates. Fixes #351520.
svn path=/trunk/mono/; revision=92307
Jonathan Pobst [Sat, 5 Jan 2008 17:23:40 +0000 (17:23 -0000)]
2008-01-05 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: When deleting multiple line selections, we need
to invalidate every line beginning at the first line of the selection.
Patch from Luke Page fixes bug #351791.
svn path=/trunk/mcs/; revision=92306
Andreas Färber [Sat, 5 Jan 2008 16:40:38 +0000 (16:40 -0000)]
2008-01-05 Andreas Faerber <andreas.faerber@web.de>
* configure.in: Add support for building with eglib and VPATH.
Fixes #351893.
svn path=/trunk/mono/; revision=92304
Andreas Färber [Sat, 5 Jan 2008 15:31:59 +0000 (15:31 -0000)]
2008-01-05 Andreas Faerber <andreas.faerber@web.de>
* configure.in: Define eglib_dir.
* Makefile.am: Add eglib to subdirectory lists.
svn path=/trunk/mono/; revision=92299
Zoltan Varga [Sat, 5 Jan 2008 15:03:28 +0000 (15:03 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* sgen-gc.c (conservatively_pin_objects_from): Tell valgrind that the pin queue
contains defined memory.
svn path=/trunk/mono/; revision=92291
Zoltan Varga [Sat, 5 Jan 2008 15:00:17 +0000 (15:00 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* sgen-gc.c: Fix 64 bit warnings. Fix some typos. Update GC stats in mono_stats.
* sgen-gc.c (build_nursery_fragments): Handle half-constructed objects correctly.
* sgen-gc.c (check_consistency): New helper function to do a consistency check
of the GC data structures.
svn path=/trunk/mono/; revision=92290
Zoltan Varga [Sat, 5 Jan 2008 14:31:15 +0000 (14:31 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* mini.c (print_jit_stats): Print GC statistics if available.
svn path=/trunk/mono/; revision=92284
Zoltan Varga [Sat, 5 Jan 2008 14:30:11 +0000 (14:30 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* gc_wrapper.h: Move the REGISTER/UNREGISTER macros to metadata/gc-internal.h.
svn path=/trunk/mono/; revision=92283
Zoltan Varga [Sat, 5 Jan 2008 14:29:39 +0000 (14:29 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* gc-internal.h: Moved the REGISTER/UNREGISTER macros here from os/gc_wrapper.h.
* *.c: Include metadata/gc-internal.h instead of os/gc_wrapper.h.
svn path=/trunk/mono/; revision=92282
Zoltan Varga [Sat, 5 Jan 2008 14:27:49 +0000 (14:27 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* gc_wrapper.h: Move the REGISTER/UNREGISTER macros to metadata/gc-internal.h.
svn path=/trunk/mono/; revision=92281
Zoltan Varga [Sat, 5 Jan 2008 14:21:51 +0000 (14:21 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* object.c (mono_array_full_copy): Fix detection of whenever to use a write
barrier.
(mono_array_clone_in_domain): Ditto.
(mono_array_clone_in_domain): Ditto.
* threads.c (start_wrapper): Register the thread start argument as a GC root.
(cache_culture): Use a write barrier.
* icall.c (ves_icall_System_Array_SetValueImpl): Call a write barrier.
(ves_icall_get_property_info): Ditto.
* object.h (MONO_STRUCT_SETREF): New macro.
* class-internals.h (MonoStats): Add some GC statistics.
* boehm-gc.c null-gc.c: Define mono_gc_deregister_root ().
svn path=/trunk/mono/; revision=92280
Zoltan Varga [Sat, 5 Jan 2008 14:16:06 +0000 (14:16 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* gc_wrapper.h (MONO_GC_UNREGISTER_ROOT): New macro.
svn path=/trunk/mono/; revision=92278
Zoltan Varga [Sat, 5 Jan 2008 13:14:02 +0000 (13:14 -0000)]
2008-01-05 Zoltan Varga <vargaz@gmail.com>
* gc_wrapper.h: Include <stdlib.h> to fix the --with-gc=none build. Fixes
#351635.
svn path=/trunk/mono/; revision=92276
Jonathan Pryor [Sat, 5 Jan 2008 12:31:40 +0000 (12:31 -0000)]
* map.h, map.c: Flush; add new ST_NOEXEC, ST_REMOUNT, and ST_BIND MountFlags
enumeration values.
svn path=/trunk/mono/; revision=92275
Jonathan Pryor [Sat, 5 Jan 2008 12:29:39 +0000 (12:29 -0000)]
* Syscall.cs: Add ST_NOEXEC, ST_REMOUNT, ST_BIND to MountFlags. Patch from
Joe Dluzen <jdluzen@gmail.com>.
svn path=/trunk/mcs/; revision=92274
Carlos Alberto Cortez [Sat, 5 Jan 2008 03:58:39 +0000 (03:58 -0000)]
2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControl.cs: When getting a CurrencyManager.PositionChanged
event, don't set SelectedIndex if the number of items is 1. This is
because, for the first item, PositionChanged is fired _before_
ItemChanged (the place where we actually populate the items), and
leave us in a temporary invalid state (since items collection is
empty).
Fixes #349655.
svn path=/trunk/mcs/; revision=92271
Geoff Norton [Fri, 4 Jan 2008 22:47:42 +0000 (22:47 -0000)]
2008-01-04 Geoff Norton <gnorton@novell.com>
* XplatUICarbon.cs: Create native toolwindows instead of
the managed drawing ones.
svn path=/trunk/mcs/; revision=92267
Geoff Norton [Fri, 4 Jan 2008 22:44:31 +0000 (22:44 -0000)]
2008-01-04 Geoff Norton <gnorton@novell.com>
* Enums.cs: Fix a typo
* MouseHandler.cs: Send NC events in global coordinates.
svn path=/trunk/mcs/; revision=92266
Andreas Färber [Fri, 4 Jan 2008 22:40:38 +0000 (22:40 -0000)]
2008-01-04 Andreas Faerber <andreas.faerber@web.de>
* exception.c (mono_exception_from_name_two_strings):
Break from loop after method is found.
svn path=/trunk/mono/; revision=92264
Zoltan Varga [Fri, 4 Jan 2008 20:28:30 +0000 (20:28 -0000)]
2008-01-04 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (mono_arch_allocate_vars): Align argument storage offsets to 8.
svn path=/trunk/mono/; revision=92255
Jonathan Pobst [Fri, 4 Jan 2008 20:26:26 +0000 (20:26 -0000)]
2008-01-03 Jonathan Pobst <monkey@jpobst.com>
* LineTag.cs: If the line doesn't have any characters, return
0 for GetCharIndex. Fixes an AOORE exception after certain
caret movements. Fixes bug #351683.
svn path=/trunk/mcs/; revision=92254
Marek Safar [Fri, 4 Jan 2008 17:48:46 +0000 (17:48 -0000)]
2008-01-04 Marek Safar <marek.safar@gmail.com>
A test for bug #351481
svn path=/trunk/mcs/; revision=92249
Marek Safar [Fri, 4 Jan 2008 17:48:00 +0000 (17:48 -0000)]
New test.
svn path=/trunk/mcs/; revision=92248
Marek Safar [Fri, 4 Jan 2008 17:47:48 +0000 (17:47 -0000)]
2008-01-04 Marek Safar <marek.safar@gmail.com>
A fix for bug #351481
* expression.cs (MemberAccess.ResolveNamespaceOrType): Use correct
declaring type for nested generic types.
svn path=/trunk/mcs/; revision=92247
Marek Safar [Fri, 4 Jan 2008 15:33:31 +0000 (15:33 -0000)]
New test
svn path=/trunk/mcs/; revision=92243
Marek Safar [Fri, 4 Jan 2008 15:31:58 +0000 (15:31 -0000)]
2008-01-04 Marek Safar <marek.safar@gmail.com>
* namespace.cs, class.cs, decl.cs, cs-parser.jay: Use GetSignatureForError
instead of ToString.
svn path=/trunk/mcs/; revision=92242
Dick Porter [Fri, 4 Jan 2008 15:27:30 +0000 (15:27 -0000)]
2008-01-04 Dick Porter <dick@ximian.com>
* versioninfo.c (VerQueryValue): Returned buffer length counts
chars not bytes for string data. Fixes bug 345972 again.
(get_enclosing_section_header): Make sure values read are treated
as LE. Fixes crash on ppc reported in bug 345972.
2008-01-04 Dick Porter <dick@ximian.com>
* process.c (process_module_string_read): Rename variable to
reflect correct usage, after fixing bug 345972.
svn path=/trunk/mono/; revision=92241
Dick Porter [Fri, 4 Jan 2008 15:26:08 +0000 (15:26 -0000)]
2008-01-04 Dick Porter <dick@ximian.com>
* Makefile.am: Make it work on automake-1.6
svn path=/trunk/mono/; revision=92240
Jonathan Pobst [Fri, 4 Jan 2008 15:11:57 +0000 (15:11 -0000)]
2008-01-03 Jonathan Pobst <monkey@jpobst.com>
* TextBoxBase.cs: Apply patch from Luke Page so when backspace
is hit when there is selected text, only the selected text gets
deleted, not the character in front of the selection as well.
Fixes bug #351578.
svn path=/trunk/mcs/; revision=92239
Jb Evain [Fri, 4 Jan 2008 14:07:46 +0000 (14:07 -0000)]
2008-01-04 Jb Evain <jbevain@novell.com>
* Mono.Cecil.Cil/CilWorker.cs:
Allow ldarg/ldloc/stloc to take a integer
instead of the actual parameter or variable. Fix #350606.
svn path=/trunk/mcs/; revision=92238
Jb Evain [Fri, 4 Jan 2008 12:47:39 +0000 (12:47 -0000)]
2008-01-04 Jb Evain <jbevain@novell.com>
* Mono.Cecil/DefaultImporter.cs:
Mono.Cecil/ReflectionHelper.cs:
Properly import nested types. Fix #351133.
svn path=/trunk/mcs/; revision=92228