mono.git
16 years agoIn .:
Robert Jordan [Thu, 23 Aug 2007 06:13:25 +0000 (06:13 -0000)]
In .:
2007-08-23  Robert Jordan  <robertj@gmx.net>

* configure.in: add get|setpriority detection.

In mono/io-layer:
2007-08-23  Robert Jordan  <robertj@gmx.net>
* processes.[c|h]: Implement Get|SetPriorityClass ().
Code is contributed under MIT/X11 license.

In mono/metadata:
2007-08-23  Robert Jordan  <robertj@gmx.net>
* icall-def.h, process.*: implemented Get|SetPriorityClass icalls.
Code is contributed under MIT/X11 license.

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

16 years ago2007-08-23 Robert Jordan <robertj@gmx.net>
Robert Jordan [Thu, 23 Aug 2007 05:47:48 +0000 (05:47 -0000)]
2007-08-23  Robert Jordan  <robertj@gmx.net>

* MarshalTest.cs: Added test for HGlobal allocations. See bug #82499.

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

16 years ago2007-08-22 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Thu, 23 Aug 2007 00:30:30 +0000 (00:30 -0000)]
2007-08-22  Everaldo Canuto  <ecanuto@novell.com>

* FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
code to this method. It is calling every time filter changes. This method
will help to fix the bug #80887.

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

16 years ago2007-08-22 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 22 Aug 2007 21:48:16 +0000 (21:48 -0000)]
2007-08-22  Jonathan Pobst  <monkey@jpobst.com>

* CheckBox.cs: Implement AutoSize calculation.

2007-08-22  Jonathan Pobst  <monkey@jpobst.com>

* ComboBoxTest.cs: Add test for AutoSize behavior.

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

16 years ago2007-08-22 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 22 Aug 2007 20:39:39 +0000 (20:39 -0000)]
2007-08-22  Jonathan Pobst  <monkey@jpobst.com>

* CheckBox.cs: Use new 2.0 rendering for 2.0.
* Theme.cs: Method declarations for 2.0 rendering path.
* ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.

2007-08-22  Jonathan Pobst  <monkey@jpobst.com>

* System.Windows.Forms.dll.sources: CheckBoxPainter.cs.

2007-08-22  Jonathan Pobst  <monkey@jpobst.com>

* CheckBoxPainter.cs: Added.

2007-08-22  Jonathan Pobst  <monkey@jpobst.com>

* ThemeElementsDefault.cs: Add accessor for CheckBoxPainter.

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

16 years ago2007-08-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 22 Aug 2007 16:25:40 +0000 (16:25 -0000)]
2007-08-22  Martin Baulig  <martin@ximian.com>

* pthread_stop_world.c
(GC_mono_debugger_add_all_threads): Removed.
(GC_mono_debugger_get_stack_ptr): New public function.

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

16 years agoWed Aug 22 18:35:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 22 Aug 2007 16:12:03 +0000 (16:12 -0000)]
Wed Aug 22 18:35:12 CEST 2007 Paolo Molaro <lupus@ximian.com>

* sgen-gc.h, sgen-gc.c: abstracted most of the OS-specific code.

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

16 years ago2007-08-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 22 Aug 2007 15:39:10 +0000 (15:39 -0000)]
2007-08-22  Martin Baulig  <martin@ximian.com>

* debug-mini.h
(MonoDebuggerThreadInfo): New typedef.
(mono_debugger_thread_table): New global variable.
(mono_debugger_thread_created): New public function.
(mono_debugger_thread_cleanup): New public function.

* debug-debugger.h
(MonoDebuggerInfo):
- removed `get_current_thread' and `lookup_assembly'.
- removed `data_table'.
- added `thread_table'.

* mini.c
(mono_thread_start_cb): Call mono_debugger_thread_created().
(mono_thread_attach_cb): Likewise.
(mini_thread_cleanup): Call mono_debugger_thread_cleanup().
(mini_cleanup): Move mono_debug_cleanup() down, after free'ing the
initial domain.

* driver.c (mono_main): Move mono_debug_init() up, before calling
mini_init(); mono_debug_init_1() and mono_debug_init_2() are gone.

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

16 years ago2007-08-22 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 22 Aug 2007 15:38:52 +0000 (15:38 -0000)]
2007-08-22  Martin Baulig  <martin@ximian.com>

* mono-debug.c: Store debugging info on a per-domain basis and
free it on domain unload.  Add support for unloading symbol files.

* mono-debug.h
(MonoDebugList): New typedef.
(MonoSymbolTable):
- add `data_tables and `type_table'.
- replace 'symbol_files' and `num_symbol_files' with a
  `MonoDebugList *'.
(mono_debug_data_table): Removed.
(mono_debug_list_add): New public function.
(mono_debug_list_remove): New public function.
(mono_debug_init_1): Renamed into mono_debug_init_corlib().
(mono_debug_init_2_memory): Renamed into
mono_debug_open_image_from_memory().
(mono_debug_close_image): New public function.
(mono_debug_domain_create): Likewise.
(mono_debug_domain_unload): Likewise.
(MONO_DEBUGGER_VERSION): Bump to 60.

* mono-debug-debugger.h
(MonoDebuggerEvent):
- remove `RELOAD_SYMTABS' and `METHOD_COMPILED'.
- rename `ADD_MODULE' into `LOAD_MODULE'; add `UNLOAD_MODULE'.
- add `DOMAIN_CREATE' and `DOMAIN_UNLOAD'.
- rename `THREAD_CREATED' and `THREAD_EXITED' into
  `GC_THREAD_CREATED' and `GC_THREAD_EXITED'.
- re-add `THREAD_CREATED' and `THREAD_EXITED'; with different
  meaning.
(mono_debugger_add_symbol_file): Removed.
(mono_debugger_add_type): Removed.
(mono_debugger_lookup_type): Removed.
(mono_debugger_lookup_assembly): Removed.

* domain.c
(mono_domain_create): Call mono_debug_domain_create().
(mono_init_internal): Call mono_debug_init_corlib().

* assembly.c
(mono_assembly_close): Call mono_debug_close_image().

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

16 years agoWed Aug 22 17:26:02 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 22 Aug 2007 15:02:51 +0000 (15:02 -0000)]
Wed Aug 22 17:26:02 CEST 2007 Paolo Molaro <lupus@ximian.com>

* sgen-gc.c: use the mono-mmap facilitites instead of hard-coding the
mmap call.

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

16 years agoWed Aug 22 17:17:09 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 22 Aug 2007 14:54:17 +0000 (14:54 -0000)]
Wed Aug 22 17:17:09 CEST 2007 Paolo Molaro <lupus@ximian.com>

* sgen-gc.c: ensure section->pin_queue_end is initialized
correctly when non pinning objects in the section have been found.

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

16 years agoFixed the g_strsplit call...
Paolo Molaro [Wed, 22 Aug 2007 13:43:24 +0000 (13:43 -0000)]
Fixed the g_strsplit call...

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

16 years ago2007-08-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 22 Aug 2007 13:03:54 +0000 (13:03 -0000)]
2007-08-22  Marek Habersack  <mhabersack@novell.com>

* appdomain.c (set_domain_search_path): cope with PrivateBinPath
containing a list of directories separated by ':'. MSDN docs say
the directories should be separated with ';'. Part of a bugfix for
bug #81446

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

16 years ago2007-08-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 22 Aug 2007 12:18:30 +0000 (12:18 -0000)]
2007-08-22  Marek Safar <marek.safar@gmail.com>

* Enumerable.cs: More SelectionMany.

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

16 years ago2007-08-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Aug 2007 10:36:47 +0000 (10:36 -0000)]
2007-08-22  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelServices.cs : implement ensureSecurity support in
  RegisterChannel(IChannel,bool). Note that we don't have secure
  channels in Sys.Runtime.Remoting.dll yet.

* ChannelServicesTest.cs : new test fixture.

* corlib_test.dll.sources : added ChannelServicesTest.cs.

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

16 years ago* GenericProvider.cs: fixed broken functionality of keyMapping
Vladimir Krasnov [Wed, 22 Aug 2007 06:16:09 +0000 (06:16 -0000)]
* GenericProvider.cs: fixed broken functionality of keyMapping

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

16 years agouse Path.PathSeparator where appropriate
Marek Habersack [Wed, 22 Aug 2007 00:07:57 +0000 (00:07 -0000)]
use Path.PathSeparator where appropriate

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

16 years ago * ListViewGroupCollection.cs: Fix a typo of the previous patch.
Carlos Alberto Cortez [Tue, 21 Aug 2007 21:54:59 +0000 (21:54 -0000)]
* ListViewGroupCollection.cs: Fix a typo of the previous patch.

2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2007-08-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 21 Aug 2007 21:13:54 +0000 (21:13 -0000)]
2007-08-21  Marek Habersack  <mhabersack@novell.com>

        * ApplicationHostTest.cs: adjust the test for the PrivateBinPath
        changes.

2007-08-21  Marek Habersack  <mhabersack@novell.com>

        * ProvidersHelper.cs: use HttpApplication.LoadTypeFromPrivateBin
        to get the provider settings type.

2007-08-21  Marek Habersack  <mhabersack@novell.com>

        * HttpApplicationFactory.cs: watch for changes in all the
        private binary directories for the current application domain.

        * HttpApplication.cs: turn the PrivateBinPath property into an
        internal enumerable, so that code throughout the assembly can
        iterate over the list of private bin directories configured for
        the application domain.
        Added a new internal method LoadTypeFromPrivateBin, for sharing
        with other parts of the assembly.

2007-08-21  Marek Habersack  <mhabersack@novell.com>

        * SimpleWebHandlerParser.cs: use HttpApplication.PrivateBinPath
        enumerator when loading or adding assemblies from binary
        directories. Remove unused PrivateBinPath property.

        * ControlBuilder.cs: remove unused PrivateBinPath property.

        * TemplateParser.cs: use HttpApplication.PrivateBinPath when
        adding assemblis and loading types.

2007-08-21  Marek Habersack  <mhabersack@novell.com>

        * ApplicationHost.cs: AppDomainSetup.PrivateBinPath should contain
        a list of paths relative to AppDomainSetup.ApplicationBase, not a
        full path.
        We no longer check if the bin directories exist, the user can
        create them while the application is running.

2007-08-21  Marek Habersack  <mhabersack@novell.com>

        * ObjectDataSourceView.cs: get rid of PrivateBinPath property,
        it's unused.

2007-08-21  Marek Habersack  <mhabersack@novell.com>

        * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
        to look up assemblies in the binary path(s).

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

16 years ago2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 21 Aug 2007 18:18:55 +0000 (18:18 -0000)]
2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewGroupCollection.cs: Implement AddRange the right way, to
only call Redraw on the parent one time.

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

16 years agoTue Aug 21 20:08:09 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 21 Aug 2007 17:45:13 +0000 (17:45 -0000)]
Tue Aug 21 20:08:09 CEST 2007 Paolo Molaro <lupus@ximian.com>

* io.c: made convert_arg_to_utf8() and write_file() static.
Worked around gcc's incorrect warning.

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

16 years ago2007-08-21 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 21 Aug 2007 16:44:05 +0000 (16:44 -0000)]
2007-08-21  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_type_retrieve_from_typespec) : fixed the return type
it should MonoType and not MonoClass.

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

16 years ago2007-08-21 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 21 Aug 2007 15:47:26 +0000 (15:47 -0000)]
2007-08-21  Marek Safar  <marek.safar@gmail.com>

* cs-parser.jay: Orderby clause

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

16 years agoNew test of orderby
Marek Safar [Tue, 21 Aug 2007 15:46:31 +0000 (15:46 -0000)]
New test of orderby

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

16 years ago2007-08-21 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 21 Aug 2007 15:41:42 +0000 (15:41 -0000)]
2007-08-21  Marek Safar <marek.safar@gmail.com>

* AOrderedEnumerable: New abtract base.

* Enumerable.cs, Queryable.cs: Public methods update.

* InternalOrderedSequence.cs: Fixed ThenBy.

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

16 years ago2007-08-21 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 21 Aug 2007 15:29:24 +0000 (15:29 -0000)]
2007-08-21 Igor Zelmanovich <igorz@mainsoft.com>

* ClientScriptManager.cs: fixed onsubmit script for MultiForm environment

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

16 years agoadded #if !TERGET_J2EE
Igor Zelmanovich [Tue, 21 Aug 2007 15:26:18 +0000 (15:26 -0000)]
added #if !TERGET_J2EE

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

16 years ago* Test/System.Windows.Forms/DataGridViewCellTest.cs: Added
Rolf Bjarne Kvinge [Tue, 21 Aug 2007 15:23:46 +0000 (15:23 -0000)]
* Test/System.Windows.Forms/DataGridViewCellTest.cs: Added
  GetClipboardContentTest, GetClipboardContentTestException.
* Test/System.Windows.Forms/DataGridViewClipboardHeaderTest.cs,
  Test/System.Windows.Forms/DataGridViewClipboardTest.cs: Added.
* Test/System.Windows.Forms/DataGridViewColumnHeaderTest.cs: Added
  GetClipboardContentTestException
* Test/System.Windows.Forms/DataGridViewRowHeaderTest.cs: Added
  GetClipboardContentTestException/2.
* Test/System.Windows.Forms/DataGridViewTest.cs: Added
  GetClipboardContentsDisabled, GetClipboardContents,
  GetClipboardContents_HeadersAlways,
  GetClipboardContents_HeadersNever and GenerateClipboardTest with
  several helper functions.
* System.Windows.Forms_test.dll.sources: Added
  DataGridViewClipboardHeaderTest.cs, DataGridViewClipboardTest.cs,
  DataGridViewColumnHeaderTest.cs, DataGridViewRowHeaderTest.cs.
* System.Windows.Forms/DataGridViewRowHeaderCell.cs,
  System.Windows.Forms/DataGridViewColumnHeaderCell.cs: Implemented
  GetClipboardContent.
* System.Windows.Forms/DataGridViewCell.cs: Implemented
  GetClipboardContent, GetEditedFormattedValue, GetFormattedValue.
* System.Windows.Forms/DataGridView.cs: Implemented
  GetClipboardContent, TopLeftHeaderCell.

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

16 years ago2007-08-21 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 21 Aug 2007 14:37:18 +0000 (14:37 -0000)]
2007-08-21  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutStyleCollection.cs: corcompare fix.

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

16 years ago* Test/System.Windows.Forms/DataGridViewColumnCollectionTest.cs,
Rolf Bjarne Kvinge [Tue, 21 Aug 2007 14:32:04 +0000 (14:32 -0000)]
* Test/System.Windows.Forms/DataGridViewColumnCollectionTest.cs,
  Test/System.Windows.Forms/DataGridViewComboBoxCellTest.cs,
  Test/System.Windows.Forms/DataGridViewRowCollectionTest.cs,
  Test/System.Windows.Forms/DataGridViewTextBoxColumnTest.cs,
  Test/System.Windows.Forms/DataGridViewBandTest.cs: Fixed line
  endings.
* Test/System.Windows.Forms/DataGridViewCommon.cs: Fixed line endings,
  added CreateAndFillForClipboard.

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

16 years ago* Test/System.Windows.Forms/DataObjectTest.cs: Added TestConvertible.
Rolf Bjarne Kvinge [Tue, 21 Aug 2007 14:26:03 +0000 (14:26 -0000)]
* Test/System.Windows.Forms/DataObjectTest.cs: Added TestConvertible.
* System.Windows.Forms/DataObject.cs: Implemented retrieval of
  convertible / not convertible objects.

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

16 years agoTue Aug 21 16:40:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 21 Aug 2007 14:18:46 +0000 (14:18 -0000)]
Tue Aug 21 16:40:04 CEST 2007 Paolo Molaro <lupus@ximian.com>

* mini-x86.c, inssel-x86.brg: group multiple stack adjustments
together when passing several arguments of type double (gives a small
speedup and saves a few bytes of generated code).

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

16 years agore-install smcs.exe as well
Jb Evain [Tue, 21 Aug 2007 14:18:36 +0000 (14:18 -0000)]
re-install smcs.exe as well

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

16 years ago2007-08-21 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 21 Aug 2007 13:53:06 +0000 (13:53 -0000)]
2007-08-21  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripItem.cs: When changing the item's text, invalidate before we resize
ourselves.  This ensures the entire old bounds are repainted, in case our new
size is smaller.  [Fixes bug #82518]

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

16 years ago2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Aug 2007 13:10:37 +0000 (13:10 -0000)]
2007-08-21  Atsushi Enomoto  <atsushi@ximian.com>

* XmlReflectionImporter.cs : do not reject XmlArrayAttribute on
  byte[] (processed as primitive SchemaType). Fixed bug #81880.

* XmlReflectionImporterTest.cs : test for bug #81880.

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

16 years ago2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Aug 2007 12:53:10 +0000 (12:53 -0000)]
2007-08-21  Atsushi Enomoto  <atsushi@ximian.com>

* ConfigurationManager.cs : To open exe configuration, use
  GetEntryAssembly() first, and GetCallingAssembly() only when
  it was not found. Should fix bug #82071.

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

16 years ago2007-08-21 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 21 Aug 2007 12:28:05 +0000 (12:28 -0000)]
2007-08-21  Jb Evain  <jbevain@novell.com>

* Makefile: tune on `all`, and only re-installed the tuned
assemblies on `install`.

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

16 years ago2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Aug 2007 12:25:24 +0000 (12:25 -0000)]
2007-08-21  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSchemaProviderAttribute.cs : added IsAny.

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

16 years ago2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Aug 2007 12:21:01 +0000 (12:21 -0000)]
2007-08-21  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSerializationReader.cs :
  implemented ReaderCount and CheckReaderCount().

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

16 years agofix by Marek, define NET_3_5 on 2.0 only
Jb Evain [Tue, 21 Aug 2007 12:18:35 +0000 (12:18 -0000)]
fix by Marek, define NET_3_5 on 2.0 only

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

16 years agodefine NET_3_5 only when not targetting net_2_1
Jb Evain [Tue, 21 Aug 2007 12:14:34 +0000 (12:14 -0000)]
define NET_3_5 only when not targetting net_2_1

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

16 years ago2007-08-21 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 21 Aug 2007 11:38:46 +0000 (11:38 -0000)]
2007-08-21  Marek Safar  <marek.safar@gmail.com>

* cs-parser.jay, linq.cs: Implemented orderby clause.

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

16 years ago2007-08-21 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 21 Aug 2007 11:37:04 +0000 (11:37 -0000)]
2007-08-21  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs (AnonymousMethod): Generate private anonymous method
to fix problem with private arguments.

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

16 years ago2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Aug 2007 11:32:27 +0000 (11:32 -0000)]
2007-08-21  Atsushi Enomoto  <atsushi@ximian.com>

* Driver.cs : for Euskara culture (eu_ES) do not trim dd which is
  laid after 'ren' in the long format.

* culture-info-table.h : regenerated.

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

16 years agoSet eol-style to native.
Gert Driesen [Tue, 21 Aug 2007 11:27:38 +0000 (11:27 -0000)]
Set eol-style to native.

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

16 years ago* FileTest.cs: Added test for File.GetAttributes (and indirectly also
Gert Driesen [Tue, 21 Aug 2007 11:26:57 +0000 (11:26 -0000)]
* FileTest.cs: Added test for File.GetAttributes (and indirectly also
for SetAttributes). Removed use of deprecated Assertion class.

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

16 years ago2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Aug 2007 09:24:42 +0000 (09:24 -0000)]
2007-08-21  Atsushi Enomoto  <atsushi@ximian.com>

* MapCodeGenerator.cs : avoid possible duplicates in generated field
  names. Fixed bug #82078.

* XmlCodeExporterTests.cs : test for bug #82078.

* 82078.xsd : new test file.

* Makefile : extra distfiles (82078.xsd).

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

16 years ago2007-08-21 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 21 Aug 2007 09:14:03 +0000 (09:14 -0000)]
2007-08-21  Marek Safar <marek.safar@gmail.com>

* Enumerable.cs, Queryable.cs: Public methods update.

* InternalOrderedSequence.cs, OrderedSequence.cs: Derives from
IOrderedEnumerable<TElement>.

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

16 years agosvn:eol-style
Marek Safar [Tue, 21 Aug 2007 09:12:22 +0000 (09:12 -0000)]
svn:eol-style

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

16 years ago2007-08-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Aug 2007 06:56:09 +0000 (06:56 -0000)]
2007-08-21  Atsushi Enomoto  <atsushi@ximian.com>

* XslFunctions.cs : fix wrong unboxing in extension functions.
  Fixed bug #82493.

* XslTransformTests.cs : added test for bug #82493.

* 82394.xml, 82493.xsl : new test files.

* Makefile : extra distfiles (82493.xml/.xsl).

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

16 years ago * bug-81466.il, bug-81466-lib.il, Makefile.am:
Massimiliano Mantione [Tue, 21 Aug 2007 05:53:28 +0000 (05:53 -0000)]
* bug-81466.il, bug-81466-lib.il, Makefile.am:
Added test for bug #81466.

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

16 years ago2007-08-20 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Mon, 20 Aug 2007 23:10:38 +0000 (23:10 -0000)]
2007-08-20  Everaldo Canuto  <ecanuto@novell.com>

* XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
flag to make fast handle of mouse events, without this the mouse move is
handled in some manner, whether it is a mouse move or not. Fixes #81588.

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

16 years ago * ListView.cs: When doing layout calculations don't use a ref
Carlos Alberto Cortez [Mon, 20 Aug 2007 21:26:38 +0000 (21:26 -0000)]
* ListView.cs: When doing layout calculations don't use a ref
param to keep the current item; instead use its Index value (this
is specially important when doing the layout with Groups
and Items being sparse). Also don't take into account items added to
the Group but not yet added to the main ListView.Items collection.

2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago * ListViewGroupCollection.cs: Forgot to mimic an issue
Carlos Alberto Cortez [Mon, 20 Aug 2007 19:30:35 +0000 (19:30 -0000)]
* ListViewGroupCollection.cs: Forgot to mimic an issue
in the indexer (don't assign the ListView owner for new values).

2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 20 Aug 2007 19:26:01 +0000 (19:26 -0000)]
2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewGroupCollectionTest.cs: New tests for the indexers.

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

16 years ago2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 20 Aug 2007 19:05:52 +0000 (19:05 -0000)]
2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewGroupCollection.cs: Make the string indexer use
the int based indexer to re-use code, instead of duplicate the code.
Also Redraw as needed and take into account null values.

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

16 years ago2007-08-20 William Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 20 Aug 2007 18:48:55 +0000 (18:48 -0000)]
2007-08-20  William Holmes  <billholmes54@gmail.com>

Implementing System.IO.File.Replace
*File.cs:  Add implementation for IO.File.Replace methods.
*MonoIO.cs: Declared an internal call for ReplaceFile
*FileTest.cs:  Added a test for IO.File.Replace.

Code is contributed under MIT/X11 license.

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

16 years ago2007-08-20 William Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 20 Aug 2007 18:47:52 +0000 (18:47 -0000)]
2007-08-20  William Holmes  <billholmes54@gmail.com>

Implementing System.IO.File.Replace
*file-io.c: Added ves_icall_System_IO_MonoIO_ReplaceFile
 to call ReplaceFile Kernel32 on windows or in io-layer.
*file-io.h: Added deceleration for ves_icall_System_IO_MonoIO_ReplaceFile
*icall-def.h: Register ves_icall_System_IO_MonoIO_ReplaceFile
 as an internal call.
*io.c: Added implementation for ReplaceFile.
*io.h: Added deceleration for ReplaceFile method.

Code is contributed under MIT/X11 license.

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

16 years ago2007-08-20 Wade Berrier <wberrier@novell.com>
Wade Berrier [Mon, 20 Aug 2007 18:42:13 +0000 (18:42 -0000)]
2007-08-20  Wade Berrier  <wberrier@novell.com>

       * processes.c: include sys/resource.h for rusage to fix
       mac 10.3 build

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

16 years agoSet eol-style.
Gert Driesen [Mon, 20 Aug 2007 18:39:25 +0000 (18:39 -0000)]
Set eol-style.

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

16 years ago* EnumConverter.cs: Conversion to and from Enum [] is 2.0 only.
Gert Driesen [Mon, 20 Aug 2007 18:37:49 +0000 (18:37 -0000)]
* EnumConverter.cs: Conversion to and from Enum [] is 2.0 only.
Modified conversion to string to support enum names and integral
values, and throw ArgumentException if value is not valid.
For conversion to InstanceDescriptor, use ConvertToString to get name
of field. Avoid endless loop when converting to Enum [].
* ToolboxItemFilterType.cs: Spaces to tabs.
* TypeConverter.cs: Improve exception messages (to match MS).
* EnumConverterTests.cs: Added tests for EnumConverter.

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

16 years ago2007-08-20 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 20 Aug 2007 17:59:29 +0000 (17:59 -0000)]
2007-08-20  Jonathan Pobst  <monkey@jpobst.com>

* StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
[Fixes bug #82481]

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

16 years ago2007-08-20 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 20 Aug 2007 17:40:28 +0000 (17:40 -0000)]
2007-08-20  Marek Safar  <marek.safar@gmail.com>

* Consts.cs.in: Add NET_3_5 constants.

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

16 years ago2007-08-20 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 20 Aug 2007 17:38:42 +0000 (17:38 -0000)]
2007-08-20  Marek Safar  <marek.safar@gmail.com>

* Makefile: Hardcoded 3.5 define for now.

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

16 years ago2007-08-20 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 20 Aug 2007 17:36:57 +0000 (17:36 -0000)]
2007-08-20  Marek Safar <marek.safar@gmail.com>

* AssemblyInfo.cs: Add a few more attributes.

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

16 years agosvn:eolstyle
Marek Safar [Mon, 20 Aug 2007 17:35:26 +0000 (17:35 -0000)]
svn:eolstyle

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

16 years ago2007-08-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Aug 2007 16:46:46 +0000 (16:46 -0000)]
2007-08-20  Jb Evain  <jbevain@novell.com>

* mini.c (mono_method_to_ir): fix leak on InvalidProgramException.

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

16 years agoin mono/mono/mini:
Jb Evain [Mon, 20 Aug 2007 16:18:27 +0000 (16:18 -0000)]
in mono/mono/mini:
2007-08-20  Jb Evain  <jbevain@novell.com>

* mini.c (mono_method_to_ir): throw MethodAccessException
and FieldAccessException instead of InvalidProgramException.

in mono/mono/metadata:
2007-08-20  Jb Evain  <jbevain@novell.com>

* class-internals: add definitions for MONO_EXCEPTION_METHOD_ACCESS
and MONO_EXCEPTION_FIELD_ACCESS.

* debug-helpers.[c|h]: new mono_field_full_name function.

in mono/mono/tests:
2007-08-20  Jb Evain  <jbevain@novell.com>

* field-access.il, method-access.il, Makefile.am: tests
for FieldAccessException and MethodAccessException.

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

16 years ago2007-08-20 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 20 Aug 2007 14:17:39 +0000 (14:17 -0000)]
2007-08-20  Jonathan Pobst  <monkey@jpobst.com>

* ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
when other buttons are clicked or navigated to.

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

16 years ago2007-08-20 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 20 Aug 2007 14:05:53 +0000 (14:05 -0000)]
2007-08-20  Mark Probst  <mark.probst@gmail.com>

* class.c: Removed class_security_level() and moved it to
security-core-clr.c.

* security-core-clr.c, security-core-clr.h: class_security_level()
is now public and renamed to mono_security_core_clr_class_level().
It also looks for security attributes in the classes a class is
nested in.

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

16 years agoSystem.Xml.Core contains unsage code as well
Jb Evain [Mon, 20 Aug 2007 13:45:00 +0000 (13:45 -0000)]
System.Xml.Core contains unsage code as well

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

16 years agosmcs contains unsafe code
Jb Evain [Mon, 20 Aug 2007 13:30:28 +0000 (13:30 -0000)]
smcs contains unsafe code

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

16 years agoFixed the build...
Paolo Molaro [Mon, 20 Aug 2007 13:27:42 +0000 (13:27 -0000)]
Fixed the build...

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

16 years ago2007-08-20 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 20 Aug 2007 13:01:11 +0000 (13:01 -0000)]
2007-08-20  Mark Probst  <mark.probst@gmail.com>

* security-core-clr.c, security-core-clr.h: CoreCLR security
utility functions.

* Makefile.am: Added security-core-clr.[ch].

* security-manager.c, security-manager.h: Functions and enum for
setting and getting the security mode.

* class.c: CoreCLR security checks.

2007-08-20  Mark Probst  <mark.probst@gmail.com>

* mini.c: CoreCLR security checks.

* mini.h: Removed MonoSecurityMode (moved to
metadata/security-manager.h) and mono_security_mode global var
(replaced by set/get functions in security-manager.h).

* driver.c: Added "core-clr-test" security mode for testing.  Used
set-function for setting security mode.

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

16 years agoMon Aug 20 15:23:01 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 20 Aug 2007 13:00:20 +0000 (13:00 -0000)]
Mon Aug 20 15:23:01 CEST 2007 Paolo Molaro <lupus@ximian.com>

* configure.in: use more symbol renaming fo OSX (bug #82463).

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

16 years ago2007-08-20 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 20 Aug 2007 12:59:59 +0000 (12:59 -0000)]
2007-08-20  Mark Probst  <mark.probst@gmail.com>

* SecurityManager.cs: Changed arguments of MethodAccessException
to IntPtr, to avoid having to embed reference object values in the
native code.

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

16 years ago2007-08-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Aug 2007 12:47:11 +0000 (12:47 -0000)]
2007-08-20  Jb Evain  <jbevain@novell.com>

* AssemblyInfo.cs: agclr doesn't need to
be friend anymore.

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

16 years ago2007-08-20 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 20 Aug 2007 12:10:31 +0000 (12:10 -0000)]
2007-08-20  Mark Probst  <mark.probst@gmail.com>

* SecurityManager.cs: Added two methods needed for CoreCLR
security.

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

16 years ago2007-08-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Aug 2007 12:06:37 +0000 (12:06 -0000)]
2007-08-20  Jb Evain  <jbevain@novell.com>

* AssemblyInfo.cs: System.Silverlight doesn't need to
be friend anymore.

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

16 years ago2007-08-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Aug 2007 11:42:45 +0000 (11:42 -0000)]
2007-08-20  Jb Evain  <jbevain@novell.com>

* scripts/smcs.in: use --runtime=moonlight instead of
forcing MONO_PATH.

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

16 years agoMore tests.
Marek Safar [Mon, 20 Aug 2007 11:38:25 +0000 (11:38 -0000)]
More tests.

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

16 years ago2007-08-20 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 20 Aug 2007 11:38:08 +0000 (11:38 -0000)]
2007-08-20  Marek Safar  <marek.safar@gmail.com>

* linq.cs: Switch to lambda expressions.

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

16 years ago2007-08-20 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 20 Aug 2007 11:34:43 +0000 (11:34 -0000)]
2007-08-20  Marek Safar  <marek.safar@gmail.com>

* cs-parser.jay: An anonymous type can be empty.

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

16 years ago* System.Windows.Forms/XplatUIX11.cs: Treat toolwindows as if they had
Rolf Bjarne Kvinge [Mon, 20 Aug 2007 11:30:12 +0000 (11:30 -0000)]
* System.Windows.Forms/XplatUIX11.cs: Treat toolwindows as if they had
  no window manager, since it's XplatUIX11 that attaches them.

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

16 years agoNew test.
Marek Safar [Mon, 20 Aug 2007 11:27:39 +0000 (11:27 -0000)]
New test.

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

16 years ago2007-08-20 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 20 Aug 2007 11:27:12 +0000 (11:27 -0000)]
2007-08-20  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs (AnonymousTypeClass): An anonymous type can be empty.

* decl.cs (MemberName): Ignore generic type with no generic arguments.

* expression.cs (AnonymousTypeDeclaration): An anonymous type can be
empty. Add cloning suport.

* roottypes.cs (GetAnonymousType): Fixed argument comparison logic.

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

16 years ago2007-08-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 20 Aug 2007 10:38:56 +0000 (10:38 -0000)]
2007-08-20  Marek Habersack  <mhabersack@novell.com>

* MasterPage.cs: use the place holder IDs collection instead of
the placholder collection to see if we have the place holder in
the master page. Fixes bug #82485.

* MasterPageParser.cs: store the content place holder ids in the
internal cache to gain access to them when needed.

2007-08-20  Marek Habersack  <mhabersack@novell.com>

* ContentPlaceHolderBuilder.cs: store place holder id in the
parser's internal place holder id list for later reference. Fixes
bug #82485.

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

16 years agoMon Aug 20 12:41:09 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 20 Aug 2007 10:18:46 +0000 (10:18 -0000)]
Mon Aug 20 12:41:09 CEST 2007 Paolo Molaro <lupus@ximian.com>

* Process.cs: implemented icall for system/user times.

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

16 years agoMon Aug 20 12:38:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 20 Aug 2007 10:16:20 +0000 (10:16 -0000)]
Mon Aug 20 12:38:42 CEST 2007 Paolo Molaro <lupus@ximian.com>

* icall-def.h, process.c, process.h: implemented icall to get
user/system processor times.

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

16 years agoMon Aug 20 12:36:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 20 Aug 2007 10:14:09 +0000 (10:14 -0000)]
Mon Aug 20 12:36:42 CEST 2007 Paolo Molaro <lupus@ximian.com>

* processes.c: implemented query for user/system times using
getrusage ().

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

16 years agoMon Aug 20 12:34:36 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 20 Aug 2007 10:11:39 +0000 (10:11 -0000)]
Mon Aug 20 12:34:36 CEST 2007 Paolo Molaro <lupus@ximian.com>

* configure.in: check for gerusage().

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

16 years ago* System.Windows.Forms/DataGridView.cs: If a column has been added,
Rolf Bjarne Kvinge [Mon, 20 Aug 2007 09:40:59 +0000 (09:40 -0000)]
* System.Windows.Forms/DataGridView.cs: If a column has been added,
  recreate the editing row. Fixes #82226.
* Test/System.Windows.Forms/DataGridViewTest.cs: Added
  EditingRowAfterAddingColumns.

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

16 years ago* System.Windows.Forms/TextControl.cs: Use Math.Max instead of Math.Min
Rolf Bjarne Kvinge [Mon, 20 Aug 2007 09:11:07 +0000 (09:11 -0000)]
* System.Windows.Forms/TextControl.cs: Use Math.Max instead of Math.Min
  when deciding the length of the tag to draw. Makes disappearing
  text show up again.

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

16 years ago* System.Windows.Forms/StatusBar.cs: Take into account any icons when a
Rolf Bjarne Kvinge [Mon, 20 Aug 2007 09:10:09 +0000 (09:10 -0000)]
* System.Windows.Forms/StatusBar.cs: Take into account any icons when a
  panel has AutoSize = Contents. Fixes #82487.
* Test/System.Windows.Forms/StatusBarPanelTest.cs: Added IconWidth.

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

16 years ago* ContextStackTest.cs: Fix build of unit tests on 1.0 profile.
Gert Driesen [Mon, 20 Aug 2007 08:44:09 +0000 (08:44 -0000)]
* ContextStackTest.cs: Fix build of unit tests on 1.0 profile.

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

16 years ago2007-08-20 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 20 Aug 2007 08:21:52 +0000 (08:21 -0000)]
2007-08-20  Marek Safar  <marek.safar@gmail.com>

* convert.cs, ecore.cs, expression.cs, literal.cs: Use factory method
to create EmptyCast. It handles EmptyConstantCast specialization for
constants.

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

16 years ago2007-08-19 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Mon, 20 Aug 2007 03:05:56 +0000 (03:05 -0000)]
2007-08-19  Andreia Gaita  <avidigal@novell.com>

* System.Windows.Forms.dll.sources: Add HtmlElement*

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

16 years ago2007-08-19 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Mon, 20 Aug 2007 03:03:48 +0000 (03:03 -0000)]
2007-08-19  Andreia Gaita  <avidigal@novell.com>

* Added HtmlElement.cs, HtmlElementCollection.cs,
  HtmlElementEventArgs.cs, HtmlElementEventHandler.cs

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

16 years ago2007-08-19 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Mon, 20 Aug 2007 02:55:18 +0000 (02:55 -0000)]
2007-08-19  Andreia Gaita  <avidigal@novell.com>

* BindingSource.cs: Implement this, dispose and getenumerator.
* DataGridViewRowCollection.cs: Move the InvalidOperationException
out of AddInternal, throw it only on public Add calls. The
UsingWebBrowser sample was blowing up with this when setting the
DataSource after adding DataBindings, so it's likely that .net
only throws this exception when Add is called directly.

* ToolStripControlHost.cs: Return the hosted control's text
property, and not the ToolStripItem one (it would always return
the initial value).

* HtmlDocument.cs: Implement GetElementById and All
* WebBrowser.cs: Remove exception on set_DocumentStream.

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

16 years ago2007-08-20 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 20 Aug 2007 01:57:32 +0000 (01:57 -0000)]
2007-08-20  Jb Evain  <jbevain@novell.com>

* List.cs (AddCollection): return early if the collection
to be added is empty.

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