mono.git
15 years ago * Monodoc/man-provider.cs: NEVER return a non-null string from
Jonathan Pryor [Thu, 16 Apr 2009 20:09:40 +0000 (20:09 -0000)]
* Monodoc/man-provider.cs: NEVER return a non-null string from
  HelpSource.GetText() unless *useful* content is being returned, as
  when non-null is returned RootTree.RenderUrl() assumes that the url
  was handled and won't try any other HelpSources.  In this case, we
  can (and do) have multiple ManHelpSources present, but since
  ManHelpSource.GetText() was returning "<html>url was null</html>",
  RootTree thought it was handled...when it wasn't.  Fix.

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

15 years ago * Mono.Documentation/monodocs2slashdoc.cs: Code refactor; use
Jonathan Pryor [Thu, 16 Apr 2009 18:59:05 +0000 (18:59 -0000)]
* Mono.Documentation/monodocs2slashdoc.cs: Code refactor; use
  EcmaDoc.GetCref() to generate //member/@name values.
* Mono.Documentation/dump.cs: Add -f=FORMAT support, so that we can
  load an appropriate HelpSource (if supplied) so that an appropriate
  Node.PublicUrl can be displayed in the output.

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

15 years ago2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 16 Apr 2009 18:51:35 +0000 (18:51 -0000)]
2009-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_raw_System.Xml.dll.sources: Remove corlib's files since
System.Xml can now access, for 2.1 (moonlight) corlib's internals.

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

15 years ago2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 16 Apr 2009 18:50:47 +0000 (18:50 -0000)]
2009-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_raw_System.dll.sources: Remove corlib's files since System
can now access, for 2.1 (moonlight) corlib's internals.

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

15 years ago2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 16 Apr 2009 18:48:43 +0000 (18:48 -0000)]
2009-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: allow System, System.Xml and Mono.
CompilerServices.SymbolWriter access to mscorlib internals
for 2.1 (Moonlight) so they can access internalized types
like non-generic System.Collections

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

15 years ago * Monodoc/provider.cs: Overview: MonoDevelop loads monodoc.dll into
Jonathan Pryor [Thu, 16 Apr 2009 18:42:32 +0000 (18:42 -0000)]
* Monodoc/provider.cs: Overview: MonoDevelop loads monodoc.dll into
  it's own process, and spawns monodoc GUI into a separate process,
  then sends Node.URL values (obtained from the MonoDevelop process)
  to load the documentation into the monodoc GUI.  Problem:
  occasionally the requested documentation isn't loaded, but instead
  some completely unrelated documentation is shown instead.  This is
  because the Node.URL value contains HelpSource-dependent data, e.g.
  a Node.URL value of "ecma:0#Foo/" will specify the 1st file
  within...whatever HelpSource is first consulted by monodoc (which
  can vary between monodoc runs, the phase of the moon, etc.).
  Solution: Add a Node.PublicUrl property which returns _stable_ URLs
  which aren't specific to a given HelpSource.
  - Add Node.PublicUrl property, which delegates to
    Provider.GetPublicUrl(string), so that a Provider can generate a
    Provider-independent URL (if possible).
  - Print PublicUrl from Node.PrintTree().
  - Add RootTree.GetSupportedFormats(), RootTree.GetProvider()
    methods.
  - Make RootTree.GetHelpSource() public.
* Monodoc/ecma-provider.cs: Add EcmaDoc.GetCref() method (generates an
  XML documentation //see/@cref value), override
  Provider.GetPublicUrl() (which will return cref's if possible).

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

15 years ago2009-04-16 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 16 Apr 2009 17:50:38 +0000 (17:50 -0000)]
2009-04-16  Geoff Norton  <gnorton@novell.com>

        * ResourceWriter.cs: The magic internal type here is required to match
        Microsofts for SL2 resource deserialization.

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

15 years ago2009-04-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 16 Apr 2009 15:44:11 +0000 (15:44 -0000)]
2009-04-16  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Move the calls to
mono_debug_add_delegate_trampoline () to get_delegate_invoke_impl ().

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

15 years agoIn .:
Sebastien Pouliot [Thu, 16 Apr 2009 15:25:45 +0000 (15:25 -0000)]
In .:
2009-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* corlib.dll.sources: Add System.IO.IsolatedStorage/
MoonIsolatedStorage.cs to the build

In System.IO.IsolatedStorage:
2009-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* MoonIsolatedStorage.cs: New. Manage the shared (location, quota)
information about Moonlight isolated storage.
* MoonIsolatedStorageFile.cs: Adjust with new MoonIsolatedStorage.
Implement IncreaseQuotaTo UI.
* MoonIsolatedStorageFileStream.cs: Adjust with MoonIsolatedStorage.

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

15 years ago2009-04-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 16 Apr 2009 14:33:40 +0000 (14:33 -0000)]
2009-04-16  Atsushi Enomoto  <atsushi@ximian.com>

* ClientRuntimeChannel.cs, ClientProxyGenerator.cs, ClientBase.cs,
  ChannelFactory_1.cs :
  Sort of reverted internal client channel type changes from
  February, but to work fine in SL2 too. Now ChannelFactory<T>
  can handle combined interface of IClientChannel and the contract.

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

15 years ago2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 16 Apr 2009 14:29:45 +0000 (14:29 -0000)]
2009-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* HttpWebRequest_2_1.cs: Rework the throwing of NIE so gui-compare
does not report them (since they are the "right" behavior)
* WebClient_2_1.cs: Fix BaseAddress property to return the URI to
the XAP file. Implement protected GetWebRequest which will make an
absolute URI from a relative one (using BaseAddress). That remove
the need of the previous hack.
* WebRequest_2_1.cs: Remove previous hack

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

15 years ago2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 16 Apr 2009 13:01:04 +0000 (13:01 -0000)]
2009-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* certmgr.cs: Don't throw if we're missing an argument. Fix by
Romain Tartiere (bug #464765). Updated help to specify that
"option type" is mandatory in some cases.

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

15 years ago2009-04-16 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 16 Apr 2009 12:26:14 +0000 (12:26 -0000)]
2009-04-16  Marek Habersack  <mhabersack@novell.com>

* HttpContext.cs: local resources code now uses the custom
resource provider factory, just like the global resources
code. Fixes bug #493263

2009-04-16  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs:
AssignPropertyFromResources now checks whether the field/property
passed to it is decorated with the Localizable custom attribute
and whether the resource provider contains an entry for that
property.

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

15 years ago2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 16 Apr 2009 12:03:19 +0000 (12:03 -0000)]
2009-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* IsolatedStorageFile.cs: Fix thread-safety issue at creation time.
[Fix bug #431039]
* IsolatedStorageFileStream.cs: Fix missing path check in Verify.
[Fix bug #487659]

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

15 years ago2009-04-16 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 16 Apr 2009 09:51:12 +0000 (09:51 -0000)]
2009-04-16  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: using a regexp to check whether an
expression is a Bind one. Fixes bug #493639

2009-04-16  Marek Habersack  <mhabersack@novell.com>

* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/NoBindForMethodsWithBindInName.aspx

2009-04-16  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompilerTest.cs: added test for bug #493639

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

15 years ago2009-04-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 16 Apr 2009 09:42:47 +0000 (09:42 -0000)]
2009-04-16  Atsushi Enomoto  <atsushi@ximian.com>

* DuplexChannelFactory.cs : a bit of constructor implementation.

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

15 years agominor issues in documentation
Stephane Delcroix [Thu, 16 Apr 2009 09:18:28 +0000 (09:18 -0000)]
minor issues in documentation

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

15 years ago * Mono.Documentation/webdoc.cs: Remove console debug spew. If you run
Jonathan Pryor [Thu, 16 Apr 2009 03:08:40 +0000 (03:08 -0000)]
* Mono.Documentation/webdoc.cs: Remove console debug spew.  If you run
  with `mdoc -v`, each URL will be printed as it's processed.

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

15 years ago2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Apr 2009 01:40:02 +0000 (01:40 -0000)]
2009-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* cli-tables-tests.md: Tests for the field list of the typedef table.

* assembly-with-complex-type.cs: New assembly source.

* Makefile: Compile the new assembly source.

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

15 years ago2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Apr 2009 01:39:52 +0000 (01:39 -0000)]
2009-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_typedef_table): Add tests for FieldList and
a missing of for interface types.

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

15 years ago2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Apr 2009 01:39:36 +0000 (01:39 -0000)]
2009-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_pe_optional_header): Add comment of why
the code is commented.

* metadata-verify.c (verify_resources_table): Remove spurious printf
and don't fail if there are unmanaged resources. Gmcs generates a useless
one for all assemblies - I bet it's some MS compatibility junk.

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

15 years ago2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Apr 2009 01:39:21 +0000 (01:39 -0000)]
2009-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* cli-tables-tests.md: Tests for the extends field of the typedef table.

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

15 years ago2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Apr 2009 01:39:12 +0000 (01:39 -0000)]
2009-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_typedef_table): Verify the extends field.

* metadata-verify.c (mono_image_verify): Add a is_corlib.

* verify-internals.h: Same.

* pedump.c: Fix for mono_image_verify new signature.

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

15 years ago2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:53 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* cli-tables-tests.md: More tests for the typedef table.

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

15 years ago2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:43 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_typedef_table): Verify for some invalid
flags combinations.

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

15 years ago2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:29 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_module_table): Ignore the generation field.

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

15 years ago2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:14 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* gen-md-tests.c: Add the or-uint effect.

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

15 years ago2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:05 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* data-directory-tests.md:
* header-tests.md:
* resources-tests.md: Add comments related to faulty verification
semantics on MS.

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

15 years ago * Mono.Documentation/webdoc.cs: When extracting files from the .zip
Jonathan Pryor [Thu, 16 Apr 2009 00:45:43 +0000 (00:45 -0000)]
* Mono.Documentation/webdoc.cs: When extracting files from the .zip
  file, ensure that the output file is closed.  Properly pre-render
  ecma namespace documentation.

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

15 years ago * Monodoc/ecma-provider.cs: EcmaHelpSource.GetText() doesn't need to
Jonathan Pryor [Thu, 16 Apr 2009 00:41:28 +0000 (00:41 -0000)]
* Monodoc/ecma-provider.cs: EcmaHelpSource.GetText() doesn't need to
  call GetCachedText() twice.

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

15 years ago * Monodoc/provider.cs: Correct UseWebdocCache logic.
Jonathan Pryor [Thu, 16 Apr 2009 00:21:29 +0000 (00:21 -0000)]
* Monodoc/provider.cs: Correct UseWebdocCache logic.
* Monodoc/xhtml-provider.cs: Use GetCachedText().

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

15 years ago * Makefile: Add reference to ICSharpCode.SharpZipLib.dll.
Jonathan Pryor [Wed, 15 Apr 2009 21:12:18 +0000 (21:12 -0000)]
* Makefile: Add reference to ICSharpCode.SharpZipLib.dll.
* mdoc.exe.sources: Add Mono.Rocks/ObjectRocks.cs,
  Mono.Rocks/StreamRocks.cs.
* Mono.Documentation/webdoc.cs: Refactor into smaller methods.  Extract
  ZIP file contents in addition to generating HTML output.  Use
  monodoc helper methods to determine cache directory.
* Mono.Documentation/ObjectRocks.cs: Rename to
  Mono.Rocks/ObjectRocks.cs.
* Mono.Rocks/ObjectRocks.cs: Add Check.Destination().
* Mono.Rocks/StreamRocks.cs: Added; extension methods for Streams.

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

15 years ago * Monodoc/provider.cs: UseWebdocCache is a better name that
Jonathan Pryor [Wed, 15 Apr 2009 21:01:23 +0000 (21:01 -0000)]
* Monodoc/provider.cs: UseWebdocCache is a better name that
  IgnoreCache (considering that cache is disabled by default).

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

15 years ago * Monodoc/provider.cs:
Jonathan Pryor [Wed, 15 Apr 2009 20:59:04 +0000 (20:59 -0000)]
* Monodoc/provider.cs:
  - Add HelpSource.IgnoreCache field, so that if the cache is present
    it will be ignored.  (Required by 'mdoc export-html-webdoc' so it
    gets "fresh" content to generate the cache, and by monodoc GUI as
    it can't use the cache'd HTML; cache'd HTML is for ASP.NET
    webdoc only.)
  - Alter the cache directory from e.g. sources/netdocs to
    sources/cache/netdocs (as defined by
    XmlDocUtils.GetCacheDirectory()).
  - Add HelpSource.GetCachedText() method which will return the
    contents of the cache for an id.
* Monodoc/addins-provider.cs, Monodoc/ecma-provider.cs,
  Monodoc/error-provider.cs, Monodoc/man-provider.cs,
  Monodoc/simple-provider.cs: Use GetCachedText().
* Mono.Documentation/XmlDocUtils.cs: Add GetCacheDirectory(),
  GetCacheFileName() methods.

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

15 years agoMove 'ISourceFile', 'ICompileUnit' and 'IMethodDef' from MonoSymbolWriter.cs into...
Martin Baulig [Wed, 15 Apr 2009 19:34:34 +0000 (19:34 -0000)]
Move 'ISourceFile', 'ICompileUnit' and 'IMethodDef' from MonoSymbolWriter.cs into MonoSymbolFile.cs.

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

15 years ago2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 15 Apr 2009 18:30:49 +0000 (18:30 -0000)]
2009-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* XmlMtomDictionaryReader.cs : new.
* XmlDictionaryReader.cs : implemented CreateMtomReader().

* System.Runtime.Serialization.dll.sources : added mtom reader.

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

15 years agoIgnore unknown extended opcodes in the line number table if they're between 0x40...
Martin Baulig [Wed, 15 Apr 2009 17:50:49 +0000 (17:50 -0000)]
Ignore unknown extended opcodes in the line number table if they're between 0x40 and 0x7f.
2009-04-15  Martin Baulig  <martin@ximian.com>

* MonoSymbolTable.cs
(LineNumberTable.DW_LNE_MONO__extensions_start): New const.
(LineNumberTable.DW_LNE_MONO__extensions_end): New const.
(LineNumberTable.DoRead): Ignore unknown extended opcodes if
they're within the Mono extension range.

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

15 years agoDon't print a warning for unknown extended opcodes in the line number table if they...
Martin Baulig [Wed, 15 Apr 2009 17:48:06 +0000 (17:48 -0000)]
Don't print a warning for unknown extended opcodes in the line number table if they're between 0x40 and 0x7f.
2009-04-15  Martin Baulig  <martin@ximian.com>

* debug-mono-symfile.c
(mono_debug_symfile_lookup_location): Don't print a warning for
unknown extended opcodes if they're within 0x40 and 0x7f.

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

15 years ago * Mono.Documentation/webdoc.cs: The timestamp logic was wrong it the
Jonathan Pryor [Wed, 15 Apr 2009 14:30:49 +0000 (14:30 -0000)]
* Mono.Documentation/webdoc.cs: The timestamp logic was wrong it the
  output directory didn't exist.  Fix.

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

15 years ago * Mono.Documentation/webdoc.cs: Do as make(1) does: if the
Jonathan Pryor [Wed, 15 Apr 2009 13:41:13 +0000 (13:41 -0000)]
* Mono.Documentation/webdoc.cs: Do as make(1) does: if the
  target directory already exists and is newer than the source files,
  don't regenerate output.  (Greatly speeds things up if nothing has
  changed.)  Add a --force-update option to disable this behavior.

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

15 years ago2009-04-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 15 Apr 2009 13:32:47 +0000 (13:32 -0000)]
2009-04-15  Marek Habersack  <mhabersack@novell.com>

* TemplateParser.cs: use generic lists for import, namespace and
interface caches. If a namespace is added (e.g. by parsing the
Import directive), find the assembly in which namespace is
defined.

2009-04-15  Marek Habersack  <mhabersack@novell.com>

* BuildManager.cs: do not add all assemblies in bin/ when serving
a precompiled site. Fixes bug #493873
When serving a precompiled site, check if the bin/ directory
contains certain well-known assemblies and load them if present.

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

15 years ago * Mono.Documentation/webdoc.cs: Change the default -o value to
Jonathan Pryor [Wed, 15 Apr 2009 13:09:33 +0000 (13:09 -0000)]
* Mono.Documentation/webdoc.cs: Change the default -o value to
  include a "cache" intermediate directory.  This makes it easier to
  kill the entire cache at once.

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

15 years ago2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 15 Apr 2009 11:26:42 +0000 (11:26 -0000)]
2009-04-15  Atsushi Enomoto  <atsushi@ximian.com>

        * jis.table : regenerated. Fixed bug #491799.

        * I18N.CJK.Test.cs : added test for bug #491799.

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

15 years ago2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 15 Apr 2009 11:19:20 +0000 (11:19 -0000)]
2009-04-15  Atsushi Enomoto  <atsushi@ximian.com>

        * uni2tab.c : don't use obsoleted shiftjis.txt.

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

15 years ago2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 15 Apr 2009 11:18:18 +0000 (11:18 -0000)]
2009-04-15  Atsushi Enomoto  <atsushi@ximian.com>

        * table_from.cs, table_to.cs : fix misuse of indexers (invalid
          code).

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

15 years ago2009-04-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 15 Apr 2009 11:11:13 +0000 (11:11 -0000)]
2009-04-15  Marek Habersack  <mhabersack@novell.com>

* HttpApplicationFactory.cs: if a notification is received from a
FileSystemWatcher which was configured to watch for
subdirectories, uses a filter (currently we have just one such
watcher - waiting for changes to '?eb.?onfig') and the event
doesn't match the filter, ignore the event. Fixes bug #495011

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

15 years agooops, I happened to commit every pending ones and missed ChangeLog here :(
Atsushi Eno [Wed, 15 Apr 2009 08:56:38 +0000 (08:56 -0000)]
oops, I happened to commit every pending ones and missed ChangeLog here :(

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

15 years ago2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 15 Apr 2009 08:54:10 +0000 (08:54 -0000)]
2009-04-15  Atsushi Enomoto <atsushi@ximian.com>

* Expression.cs : extensions could return null and it should be
  regarded as empty node-set, not an error.

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

15 years ago2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 15 Apr 2009 08:18:12 +0000 (08:18 -0000)]
2009-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceDocument.cs : remove Utility class. It is not precise
  implementation to write extensions.
* ServiceDocumentFormatter.cs : virtual extension writer methods
  should call possibly overriden Write[Element/Attribute]Extensions()
  in possibly derived document item classes.
  Implemented LoadElementExtensions().
* AtomPub10CategoriesDocumentFormatter.cs,
  AtomPub10ServiceDocumentFormatter.cs : Implemented GetSchema().

* AtomPub10CategoriesDocumentFormatterTest.cs,
  AtomPub10ServiceDocumentFormatterTest.cs : aded GetSchema() and
  WriteElementExtensions() tests.

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

15 years agoFix bug #494219.
Ankit Jain [Wed, 15 Apr 2009 07:56:30 +0000 (07:56 -0000)]
Fix bug #494219.
In ilasm/codegen:

* MethodDef.cs (GetNamedLocalSlot): Return -1 if local var not found.

In ilasm/parser:

* ILParser.jay (instr): Handle unidentified local var id.

In ilasm/scanner:

* StringHelper.cs (startIdChars): New. Set of chars that can start an
identifier.
(Start): Use startIdChars instead of idchars.

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

15 years agoMicro optimization - don't call Page twice
Marek Habersack [Wed, 15 Apr 2009 07:19:42 +0000 (07:19 -0000)]
Micro optimization - don't call Page twice

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

15 years ago2009-04-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 15 Apr 2009 05:41:41 +0000 (05:41 -0000)]
2009-04-15 Gonzalo Paniagua Javier <gonzalo@novell.com>

* HtmlInputText.cs: make sure we're inside a Page before dereferencing
it.

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

15 years ago * Mono.Documentation/webdoc.cs: Provide nice default -o value.
Jonathan Pryor [Wed, 15 Apr 2009 04:58:07 +0000 (04:58 -0000)]
* Mono.Documentation/webdoc.cs: Provide nice default -o value.

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

15 years ago * Mono.Documentation/webdoc.cs: Load documentation through a
Jonathan Pryor [Wed, 15 Apr 2009 04:43:40 +0000 (04:43 -0000)]
* Mono.Documentation/webdoc.cs: Load documentation through a
  HelpSource, not through the RootTree, as URLs of the form
  "ecma:0#AvoidExtensionMethodOnSystemObjectRule/" use the number (0
  in this case) as a HelpSource-relative identifier.  Result: you get
  the wrong documentation if you go through RootTree.

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

15 years ago * Makefile: Add reference to System.Web.dll, for HttpUtility.
Jonathan Pryor [Wed, 15 Apr 2009 04:19:02 +0000 (04:19 -0000)]
* Makefile: Add reference to System.Web.dll, for HttpUtility.
* mdoc.exe.sources: Add ObjectRocks.cs, webdoc.cs to the build.
* Mono.Documentation/mdoc.cs: Add export-html-webdoc command, which
  "pre-renders" HTML for use by the webdoc ASP.NET renderer.
* Mono.Documentation/webdoc.cs: Added; MDocExportWebdocHtml
  implementation; attempts to pre-render HTML based on .tree/.zip
  file contents.
* Mono.Documentation/ObjectRocks.cs: Added; extension methods for tree
  traversal (from Mono.Rocks).  For use in webdoc.cs.

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

15 years ago2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 15 Apr 2009 00:40:53 +0000 (00:40 -0000)]
2009-04-14 Rodrigo Kumpera  <rkumpera@novell.com>

* cli-tables-tests.md: Initial tests for the typedef table.

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

15 years ago2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 15 Apr 2009 00:40:43 +0000 (00:40 -0000)]
2009-04-14 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Initial code to verify the typedef table.

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

15 years ago2009-04-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 14 Apr 2009 23:40:33 +0000 (23:40 -0000)]
2009-04-15  Zoltan Varga  <vargaz@gmail.com>

* runtime-invoke.cs: Add a test for #494847.

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

15 years ago2009-04-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 14 Apr 2009 23:40:24 +0000 (23:40 -0000)]
2009-04-15  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_runtime_invoke_sig): Don't share runtime
invoke signatures returning an enum. Fixes #494847.

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

15 years ago2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 14 Apr 2009 20:16:21 +0000 (20:16 -0000)]
2009-04-14 Rodrigo Kumpera  <rkumpera@novell.com>

* valid_br_before_try_block.il: Regression test for #494812.

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

15 years ago2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 14 Apr 2009 20:15:59 +0000 (20:15 -0000)]
2009-04-14 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (mono_method_verify): Don't fail if an unconditional branch
with non empty stack happens before the beginning of a try block.

Fixes #494812.

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

15 years ago2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 14 Apr 2009 20:15:38 +0000 (20:15 -0000)]
2009-04-14 Rodrigo Kumpera  <rkumpera@novell.com>

* cli-tables-tests.md: More tests for the typeref table.

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

15 years ago2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 14 Apr 2009 20:15:18 +0000 (20:15 -0000)]
2009-04-14 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Verify typename and typenamespace fields of
the typeref table.

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

15 years ago2009-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 14 Apr 2009 20:14:51 +0000 (20:14 -0000)]
2009-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* invalid_backward_branch.il: Fix typo.

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

15 years ago2009-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 14 Apr 2009 20:14:28 +0000 (20:14 -0000)]
2009-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* Makefile: Fix build of gen-md-tests.

* cli-tables-tests.md: Tests for the typeref table.

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

15 years ago2009-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 14 Apr 2009 20:14:05 +0000 (20:14 -0000)]
2009-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Initial code to verify the typeref table.

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

15 years ago2009-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 14 Apr 2009 20:13:33 +0000 (20:13 -0000)]
2009-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (verify_delegate_compatibility): Fix error message.

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

15 years ago2009-04-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 14 Apr 2009 20:07:00 +0000 (20:07 -0000)]
2009-04-14  Zoltan Varga  <vargaz@gmail.com>

* mono-gdb.py (MonoClassPrinter.to_string): Add a MonoClass* pretty
printer.

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

15 years ago2009-04-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 14 Apr 2009 19:10:14 +0000 (19:10 -0000)]
2009-04-14  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c tramp-arm.c mini-arm.c: Implement static rgctx
trampolines for ARM. Add full-aot support for delegate invokes for ARM.

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

15 years ago2009-04-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 14 Apr 2009 17:41:35 +0000 (17:41 -0000)]
2009-04-14  Sebastien Pouliot  <sebastien@ximian.com>

* security-core-clr.c: Fix typo

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

15 years ago2009-04-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 14 Apr 2009 17:35:01 +0000 (17:35 -0000)]
2009-04-14  Sebastien Pouliot  <sebastien@ximian.com>

* UriTest2.cs: More test cases for the handling of %2f and %5c

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

15 years ago2009-04-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 14 Apr 2009 17:33:03 +0000 (17:33 -0000)]
2009-04-14  Sebastien Pouliot  <sebastien@ximian.com>

* Uri.cs: Fix processing of %2f and %5c in paths. Avoid a few
computation where the result is not used (overwritten)

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

15 years ago * Monodoc/provider.cs: Fix NullReferenceException in 'mdoc dump-tree'.
Jonathan Pryor [Tue, 14 Apr 2009 16:03:20 +0000 (16:03 -0000)]
* Monodoc/provider.cs: Fix NullReferenceException in 'mdoc dump-tree'.

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

15 years ago2009-04-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 14 Apr 2009 14:24:12 +0000 (14:24 -0000)]
2009-04-14  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (delegate_hash_table_add): Make delegate_target_locations
a MonoGHashTable to keep its values alive.
(emit_marshal_boolean): Fix a warning.

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

15 years ago2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 14 Apr 2009 12:03:28 +0000 (12:03 -0000)]
2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ThreadExceptionDialog.cs: Draw the error icon, previously missing.
Fixes #474253.

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

15 years ago2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 14 Apr 2009 11:15:03 +0000 (11:15 -0000)]
2009-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ContainerControl.cs: Implement support for Control.CausesValidation,
by adding a pending list of controls to be validated in the top
container control, and postpone validation as needed.
Also remove any control in the validation chain in case it gets removed
from its owner before the pending validation actually happens.
Fixes #457170.

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

15 years ago2009-04-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 14 Apr 2009 11:06:35 +0000 (11:06 -0000)]
2009-04-14  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_delegate_to_ftnptr): Use mono_gc_alloc_fixed () for
allocating the location holding the this argument to prevent
'too many root sets' errors.

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

15 years ago2009-04-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 14 Apr 2009 11:04:11 +0000 (11:04 -0000)]
2009-04-14  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_magic_trampoline): Fix the build.

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

15 years agoNew test.
Marek Safar [Tue, 14 Apr 2009 09:01:16 +0000 (09:01 -0000)]
New test.

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

15 years ago2009-04-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 14 Apr 2009 09:00:56 +0000 (09:00 -0000)]
2009-04-14  Marek Safar  <marek.safar@gmail.com>

A fix for bug #494243
* report.cs (SymbolRelatedToPreviousError): Fixed NRE.

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

15 years ago2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 14 Apr 2009 03:36:16 +0000 (03:36 -0000)]
2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>

* socket-io.c: don't return IPv4/IPv6 addresses if the machine does
not have any interface configured for IPv4/IPv6.

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

15 years ago2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 14 Apr 2009 03:34:32 +0000 (03:34 -0000)]
2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>

* assembly.c: fix typo in error message.

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

15 years ago.gitignore.
Zoltan Varga [Mon, 13 Apr 2009 22:14:40 +0000 (22:14 -0000)]
.gitignore.

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

15 years ago2009-04-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 13 Apr 2009 22:12:28 +0000 (22:12 -0000)]
2009-04-14  Zoltan Varga  <vargaz@gmail.com>

* thread-static.cs: Add a test for accesses through reflection.

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

15 years ago2009-04-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 13 Apr 2009 22:12:21 +0000 (22:12 -0000)]
2009-04-14  Zoltan Varga  <vargaz@gmail.com>

* liveness.c (visit_bb): Remove a needless assert.

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

15 years ago2009-04-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 13 Apr 2009 22:12:14 +0000 (22:12 -0000)]
2009-04-14  Zoltan Varga  <vargaz@gmail.com>

* object.c (mono_class_create_runtime_vtable): Set field->offset to -1
to mark fields as special static.
(mono_field_static_get_value): Handle special static fields.
(mono_field_static_set_value): Ditto.

* class-internals.h (struct _MonoClassField): Document this.

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

15 years ago2009-04-13 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 13 Apr 2009 21:16:55 +0000 (21:16 -0000)]
2009-04-13  Bill Holmes  <billholmes54@gmail.com>

* cominterop.c (mono_cominterop_emit_marshal_com_interface): Assigning
  the argument a value of null for the MARSHAL_ACTION_MANAGED_CONV_OUT
  case.  This will handle when managed code returns null to native code.

Code is contributed under MIT/X11 license.

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

15 years ago2009-04-13 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 13 Apr 2009 21:07:26 +0000 (21:07 -0000)]
2009-04-13  Bill Holmes  <billholmes54@gmail.com>

* object.c (build_imt_slots): Changing a free to a g_free to match
  the g_malloc0 in add_imt_builder_entry that allocated this memory.

Code is contributed under MIT/X11 license.

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

15 years ago2009-04-13 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 13 Apr 2009 20:41:07 +0000 (20:41 -0000)]
2009-04-13  Bill Holmes  <billholmes54@gmail.com>

* Makefile.am: Adding marshalbool.cs.

* libtest.c: Adding native code for marshalbool.cs tests.

* marshalbool.cs: Adding tests for emit_marshal_boolean.

Contributed under MIT/X11 license.

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

15 years ago2009-04-13 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 13 Apr 2009 20:38:45 +0000 (20:38 -0000)]
2009-04-13  Bill Holmes  <billholmes54@gmail.com>

* marshal.c (emit_marshal_boolean): Adding code to ensure that
  the correct TRUE value is passed through the marshaling layer.

Code is contributed under MIT/X11 license.

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

15 years ago2009-04-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 13 Apr 2009 20:08:15 +0000 (20:08 -0000)]
2009-04-13  Zoltan Varga  <vargaz@gmail.com>

* pinvoke2.cs: Add a test for #492330.

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

15 years ago2009-04-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 13 Apr 2009 20:08:08 +0000 (20:08 -0000)]
2009-04-13  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_emit_managed_wrapper): Handle closed delegates
correctly. Fixes #492330.

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

15 years ago2009-04-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 13 Apr 2009 19:51:41 +0000 (19:51 -0000)]
2009-04-13  Zoltan Varga  <vargaz@gmail.com>

* marshal.c: Fix the embedding of object pointers into JITted code in
the native-to-managed wrappers by allocating some GC tracked memory, and
embedding the address of that.

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

15 years ago2009-04-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 13 Apr 2009 19:51:32 +0000 (19:51 -0000)]
2009-04-13  Zoltan Varga  <vargaz@gmail.com>

* marshal.c: Fix the embedding of object pointers into JITted code in
the native-to-managed wrappers by allocating some GC tracked memory, and
embedding the address of that.

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

15 years ago2009-04-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 13 Apr 2009 19:51:19 +0000 (19:51 -0000)]
2009-04-13  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_create_delegate_trampoline): Delegate the
full aot support to the arch specific code.

* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Add full-aot support.

* aot-compiler.c (emit_trampolines): Emit delegate invoke impl trampolines.

* aot-compiler.c (emit_named_code): Rename this to 'emit_trampoline'.

* mini-amd64.c (mono_arch_get_delegate_invoke_impls): New function to
collect information about the delegate invoke impl trampolines.

* mini.h (MonoAotTrampInfo): New structure collecting the information needed
to save trampolines during full-aot mode.

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

15 years ago * sys-time.c: Properly set the modification time, instead of using the
Jonathan Pryor [Mon, 13 Apr 2009 16:44:08 +0000 (16:44 -0000)]
* sys-time.c: Properly set the modification time, instead of using the
  access time as the modification time.  Fixes #494253.

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

15 years ago2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 13 Apr 2009 16:28:20 +0000 (16:28 -0000)]
2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>

* HttpUtility.cs: the collection returned from ParseQueryString knows
how to convert the key/value pairs to a string.

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

15 years agoBetter test.
Marek Safar [Mon, 13 Apr 2009 13:19:38 +0000 (13:19 -0000)]
Better test.

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

15 years ago2009-04-13 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 13 Apr 2009 13:19:10 +0000 (13:19 -0000)]
2009-04-13  Marek Safar  <marek.safar@gmail.com>

A fix for bug #493887
* statement.cs: Don't skip string multi-section with default or
null label when populating string hashtable.

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

15 years ago2009-04-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 13 Apr 2009 11:16:02 +0000 (11:16 -0000)]
2009-04-13  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Quiet 'copying selected object files' messages from
newer libtool versions as well.

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