Compare commits

...
1661 Commits
Author SHA1 Message Date
Atsushi Eno 41ca39c136 oops, forgot to apply the patch here in bug #457089 by Michael Barker.
svn path=/branches/messaging-2008/mcs/; revision=120980
2008-12-08 07:06:43 +00:00
Atsushi Eno 56f2a5eee8 Apply RabbitMQ support patch by Michael Barker, on bug #457089.
svn path=/branches/messaging-2008/mcs/; revision=120957
2008-12-07 09:55:03 +00:00
Atsushi Eno 571a0e148c 2008-10-27 Atsushi Enomoto <[email protected]>
Patch by Michael Barker:
	a patch that adds support for passing all of the Message
	properties via RabbitMQ (as per version 1.1 of System.Messaging).
	This includes Recoverable (supporting persistence) and Priority (which
	would support priority based delivery if RabbitMQ supported it) as
	well as state and argument checking.


svn path=/branches/messaging-2008/mcs/; revision=117134
2008-10-27 10:10:13 +00:00
Atsushi Eno 6abd64b916 add missing files (see bug #432471).
svn path=/branches/messaging-2008/mcs/; revision=116496
2008-10-20 08:06:16 +00:00
Atsushi Eno 7b8ca08adf import AMQP/Rabbit based implementation by Michael Barker (see r116493).
svn path=/branches/messaging-2008/mcs/; revision=116494
2008-10-20 07:49:40 +00:00
Atsushi Eno 7966931ae7 import RabbitMQ.Client (see bug #432471 and
http://lists.ximian.com/pipermail/mono-devel-list/2008-October/029498.html).


svn path=/branches/messaging-2008/mcs/; revision=116493
2008-10-20 07:31:10 +00:00
Carlos Alberto Cortez 479bffe2ea 2008-10-19 Carlos Alberto Cortez <[email protected]>
* ListViewItem.cs: When deserializing enumerate over the data, instead
	of accessing the data directly. This way we handle much better the
	cases were we lack information.
	Fixes #417520.


svn path=/trunk/mcs/; revision=116489
2008-10-20 05:00:34 +00:00
Carlos Alberto Cortez 22ec782eea 2008-10-19 Carlos Alberto Cortez <[email protected]>
* ListView.cs: When removing an item from a main ListView.Items
	collection (and not a ListViewGroupCollection.Items one), remove it
	also from the group, as .net does. Patch by Mario Carrion (mario at
	novell dot com).
	Fixes #436653.


svn path=/trunk/mcs/; revision=116488
2008-10-20 00:59:55 +00:00
Cedric Vivier 157dbbb8eb 2008-10-20 Cedric Vivier <[email protected]>
* Debugger.cs: Implement Debugger.IsAttached

svn path=/trunk/mcs/; revision=116487
2008-10-20 00:03:54 +00:00
Cedric Vivier dc02988cef 2008-10-20 Cedric Vivier <[email protected]>
* icall-def.h, icall.c: Add icall for Debugger.IsAttached

svn path=/trunk/mono/; revision=116486
2008-10-20 00:03:15 +00:00
Zoltan Varga da12c6451c 2008-10-19 Zoltan Varga <[email protected]>
* class.c (mono_method_get_vtable_index): Use
	mono_method_get_vtable_slot () for accessing method->slot.

svn path=/trunk/mono/; revision=116481
2008-10-19 21:38:23 +00:00
Zoltan Varga c7a208a6c4 2008-10-19 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_emit_method_call_full): Remove a needless call to
	mono_class_setup_vtable ().

	* mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Use
	mono_class_get_vtable_entry () for accessing klass->vtable.

	* aot-runtime.c (load_method): Avoid a crash when using MONO_LOG_LEVEL.

	* aot-compiler.c (add_generic_instances): Avoid a crash if a class is not
	found.

svn path=/trunk/mono/; revision=116478
2008-10-19 21:34:19 +00:00
Zoltan Varga 6227b91180 2008-10-19 Zoltan Varga <[email protected]>
* object.c (build_imt_slots): Use mono_class_get_method_by_index () for
	accessing klass->methods.

	* class.c (mono_method_get_vtable_slot): New helper function.
	(mono_class_get_vtable_entry): Ditto.
	(mono_class_setup_vtable_general): Use mono_method_get_vtable_slot () for
	accessing method->slot.

svn path=/trunk/mono/; revision=116475
2008-10-19 21:31:24 +00:00
Zoltan Varga 33a52ca95c 2008-10-19 Zoltan Varga <[email protected]>
* generic-sharing.c (mono_class_get_method_generic): Pass the declaring
	method to get_inflated_method ().

svn path=/trunk/mono/; revision=116436
2008-10-19 18:26:39 +00:00
Gert Driesen 43e5b5d27a * HttpWebRequestTest.cs: Fixed test for bug #429200.
svn path=/trunk/mcs/; revision=116431
2008-10-19 18:07:02 +00:00
Zoltan Varga 13685684b8 2008-10-19 Zoltan Varga <[email protected]>
* class.c (mono_class_get_inflated_method): New helper method to obtain
	a method of an inflated class without calling setup_methods ().
	(mono_class_get_cctor): Use get_inflated_method.

	* generic-sharing.c (mono_class_get_method_generic): Ditto.

svn path=/trunk/mono/; revision=116430
2008-10-19 17:50:27 +00:00
Zoltan Varga 23481eb822 2008-10-19 Zoltan Varga <[email protected]>
* marshal.c image.c: Lazily create all the marshal caches.

svn path=/trunk/mono/; revision=116421
2008-10-19 14:35:22 +00:00
Zoltan Varga 34345cfab2 2008-10-19 Zoltan Varga <[email protected]>
* image.c (mono_image_init): Move initialization of runtime_invoke
	caches to marshal.c.

	* marshal.c (get_cache): New helper function to lazily initialize a 
	wrapper cache.
	(mono_marshal_get_runtime_invoke): Share more runtime invoke wrappers.

svn path=/trunk/mono/; revision=116420
2008-10-19 13:43:38 +00:00
Zoltan Varga e07bb5f66e 2008-10-19 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_save_token_info): Don't save references made from
	wrappers.

svn path=/trunk/mono/; revision=116418
2008-10-19 12:09:32 +00:00
Zoltan Varga 9c5dfd4bb1 2008-10-19 Zoltan Varga <[email protected]>
* aot-compiler.c (add_generic_instances): Add static rgctx wrappers for cctors
	of generic instances.

	* aot-runtime.c (find_extra_method): Search in all loaded AOT images.

svn path=/trunk/mono/; revision=116417
2008-10-19 11:52:18 +00:00
Mark Probst 3789f35e44 2008-10-19 Mark Probst <[email protected]>
* cpu-ppc.md, mini-ppc.c: The length of the code generated for
	OP_JMP depends on the method signature.  Calculate it properly.

svn path=/trunk/mono/; revision=116416
2008-10-19 10:57:24 +00:00
Zoltan Varga 87a2dd9e35 2008-10-19 Zoltan Varga <[email protected]>
* debug-helpers.c (mono_method_full_name): Include generic arguments.

svn path=/trunk/mono/; revision=116415
2008-10-19 10:54:29 +00:00
Zoltan Varga 36dbbe7766 2008-10-19 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_find_jit_info): Handle extra methods which are
	called directly.

	* aot-compiler.c (emit_and_reloc_code): Allow direct calling of generic
	instances.
	(emit_extra_methods): Add another table mapping method indexes to 
	offsets in the extra_method_info table.

	* mini.h: Bump AOT file format version.
	
	* aot-runtime.c: Merge most of the code from mono_aot_get_method
	and mono_aot_get_method_from_token () into one function.

svn path=/trunk/mono/; revision=116414
2008-10-19 10:42:21 +00:00
Mark Probst 38de496877 2008-10-19 Mark Probst <[email protected]>
* mini-ppc.c (emit_load_volatile_arguments): Inner loop needs a
	separate counter.

svn path=/trunk/mono/; revision=116413
2008-10-19 10:39:45 +00:00
Andreia Gaita c6771e9446 * tests2.sh: Remove extra echos
svn path=/trunk/mcs/; revision=116411
2008-10-19 02:30:23 +00:00
Andreia Gaita a7af2b6876 * Managed.Windows.Forms/Test/System.Windows.Forms/FormTest.cs: Fix
failing test on .NET/Win

2008-10-19  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=116410
2008-10-19 02:14:26 +00:00
Andreia Gaita b048393df4 * Managed.Windows.Forms/System.Windows.Forms/Form.cs:
* Managed.Windows.Forms/Test/System.Windows.Forms/FormTest.cs: Forms
  that get closed without a handle being created are disposed in 2.0.
  Fixes failing FormTest.FormClose and FormTest.FormClose2 on windows.

2008-10-19  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=116409
2008-10-19 02:12:28 +00:00
Carlos Alberto Cortez 3cb8ab03ee 2008-10-18 Carlos Alberto Cortez <[email protected]>
* ListView.cs: If both scrollbars are visible, the vertical one
	shouldn't extend too far down.
	Fixes #435771.


svn path=/trunk/mcs/; revision=116408
2008-10-19 01:32:14 +00:00
Jonathan Pryor 08ae241dda * Makefile.am (man_MANS): Remove unpackaged files.
svn path=/trunk/mono/; revision=116407
2008-10-18 23:33:00 +00:00
Zoltan Varga b007a87887 2008-10-19 Zoltan Varga <[email protected]>
* aot-runtime.c: Merge most of the code from mono_aot_get_method
	and mono_aot_get_method_from_token () into one function.

svn path=/trunk/mono/; revision=116406
2008-10-18 22:41:09 +00:00
Zoltan Varga 0863defa2f 2008-10-18 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Fix the hash function used for the extra
	methods.

svn path=/trunk/mono/; revision=116399
2008-10-18 21:12:51 +00:00
Jonathan Pryor 32dc107b2e * configure.in: Generate data/monodoc.pc.
svn path=/trunk/mono/; revision=116398
2008-10-18 20:35:02 +00:00
Jonathan Pryor 1296a2da6c * Makefile $(LIBRARY_PACKAGE): Set to monodoc, as we historically
have had a monodoc package (and thus should preserve it).

svn path=/trunk/mcs/; revision=116393
2008-10-18 19:37:37 +00:00
Jonathan Pryor 8993639c64 * data/Makefile.am: Add monodoc.pc to $(pkgconfig_DATA), $(DISTCLEANFILES).
svn path=/trunk/mono/; revision=116392
2008-10-18 19:35:18 +00:00
Jonathan Pryor 2562ae1c5e * data/monodoc.pc.in: Fixup sourcesdir.
* data/Makefile.am (EXTRA_DIST): Add monodoc.pc.in.

svn path=/trunk/mono/; revision=116391
2008-10-18 19:33:27 +00:00
Jonathan Pryor 22193f218a Migrating from monodoc to mono/data...
svn path=/trunk/mono/; revision=116390
2008-10-18 19:28:10 +00:00
Jonathan Pryor 2e7a77d597 * mdvalidator.1: Rename to mdvalidater.1.
* Makefile.am (man_MANS): Rename to mdvalidator.1 to mdvalidater.1.

svn path=/trunk/mono/; revision=116389
2008-10-18 19:25:44 +00:00
Jonathan Pryor 87eee7f25d Oops.
svn path=/trunk/mono/; revision=116388
2008-10-18 19:24:42 +00:00
Jonathan Pryor 0f3fc3bfd0 * Makefile.am (man_MANS): Add mdoc.5 and mono-config.5.
svn path=/trunk/mono/; revision=116387
2008-10-18 19:22:35 +00:00
Jonathan Pryor b5fc24ea88 Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116386
2008-10-18 19:20:48 +00:00
Zoltan Varga 6a985c22b1 Remove a debug printf.
svn path=/trunk/mono/; revision=116385
2008-10-18 19:18:33 +00:00
Zoltan Varga 0cbc013a7d 2008-10-18 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Change a !compile_aot assert to
	disable_aot.

	* mini.c (mono_patch_info_equal): Compare the generic context as well.

	* mini.h: Bump aot file format version.

	* aot-compiler.c aot-runtime.c: Generalize the wrapper handling code so the
	AOT file can contain native code for methods which are not in the METHOD
	table. Generate code for non-sharable generic instances of generic methods
	found in the METHODSPEC table.

svn path=/trunk/mono/; revision=116384
2008-10-18 19:17:35 +00:00
Jonathan Pryor 9de7b7e5ed * rules.make (dist-default): Distribute the Documentation directory,
if present.

svn path=/trunk/mcs/; revision=116379
2008-10-18 15:49:11 +00:00
Jonathan Pryor fd99bc1cf1 Add Documentation...
svn path=/trunk/mcs/; revision=116377
2008-10-18 15:20:13 +00:00
Jonathan Pryor 203c327493 Take 2! (net_2_0 needs to come before net_1_1...)
svn path=/trunk/mcs/; revision=116371
2008-10-18 14:16:13 +00:00
Jonathan Pryor 451dc90d64 * rules.make (MDOC): MONO_PATH needs to include net_1_1 so monodoc.dll
can be found.

svn path=/trunk/mcs/; revision=116366
2008-10-18 13:29:37 +00:00
Gert Driesen d1cb3ec055 Set eol-style to native.
svn path=/trunk/mcs/; revision=116365
2008-10-18 13:15:30 +00:00
Gert Driesen 4d15471618 Set eol-style to native.
svn path=/trunk/mcs/; revision=116364
2008-10-18 13:11:11 +00:00
Gert Driesen b018548ce8 Set eol-style to native.
svn path=/trunk/mcs/; revision=116363
2008-10-18 13:10:01 +00:00
Gert Driesen 7766557543 Set eol-style to native.
svn path=/trunk/mcs/; revision=116362
2008-10-18 13:08:41 +00:00
Gert Driesen 5e14587425 Set eol-style to native.
svn path=/trunk/mcs/; revision=116361
2008-10-18 13:08:01 +00:00
Gert Driesen 6408cf1ed8 Set eol-style to native.
svn path=/trunk/mcs/; revision=116360
2008-10-18 13:06:46 +00:00
Gert Driesen 47f075a896 Set eol-style to native.
svn path=/trunk/mcs/; revision=116359
2008-10-18 13:06:13 +00:00
Gert Driesen f94a21b457 * EventLogTest.cs: Fixed compiler warning.
svn path=/trunk/mcs/; revision=116358
2008-10-18 12:57:33 +00:00
Gert Driesen 5a2e778eae * HttpWebRequestTest.cs: Added test for bug #429200.
svn path=/trunk/mcs/; revision=116357
2008-10-18 12:55:28 +00:00
Jonathan Pryor d5ae53dd5b * docs/Makefile (MONODOC_INSTALL_DIR): Prefix path with $(DESTDIR) so
that it installs properly under the buildbot.

svn path=/trunk/mcs/; revision=116356
2008-10-18 12:31:23 +00:00
Mark Probst 4ee1528690 2008-10-18 Mark Probst <[email protected]>
* mono.1: Documentation for "--no-x86-stack-align" option.

svn path=/trunk/mono/; revision=116353
2008-10-18 12:16:28 +00:00
Gert Driesen 0ef99c99a7 * TypeDescriptorTests.cs:
* PropertyDescriptorTests.cs: Define alias for S.C.DescriptionAttribute
to avoid ambiguous reference error using more recent versions of
NUnit (which also contains a DescriptionAttribute).

svn path=/trunk/mcs/; revision=116351
2008-10-18 08:03:37 +00:00
Andreia Gaita 85a0293129 * Test/System.Windows.Forms/tests2.sh: Some useful test options, see
usage (default behaviour remains the same)

svn path=/trunk/mcs/; revision=116347
2008-10-18 04:07:30 +00:00
Jonathan Pryor 875a3b9711 * scripts/Makefile.am: Install scripts for mdoc-compat commands.
* scripts (svn:ignore): Ignore generated files.
	* scripts/mdassembler, scripts/mdvalidater, scripts/monodocer, 
	  scripts/monodocs2html, scripts/monodocs2slashdoc: Added; 
	  "compatibility" scripts, converting the
	  previous commands into mdoc commands.

svn path=/trunk/mono/; revision=116345
2008-10-18 02:38:30 +00:00
Jonathan Pryor d861729060 * README.makefiles: Add documentation about the new doc-update target.
svn path=/trunk/mcs/; revision=116341
2008-10-18 00:25:54 +00:00
Jonathan Pryor fa236206f2 * Makefile: Reference the monodoc.dll from the net_1_1 profile, as
that's the only one that will get built.

svn path=/trunk/mcs/; revision=116336
2008-10-17 23:57:56 +00:00
Zoltan Varga f9b87f4109 2008-10-18 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Remove the aot restriction when
	encoding generic type handles.

	* ir-emit.h (NEW_AOTCONST_TOKEN): Add a generic_context argument.
	(NEW_TYPE_FROM_HANDLE_CONST): Add a generic_context argument.

	* ir-emit.h: Rewrite the EMIT_NEW_XXXCONST macros to use the NEW_XXXCONST
	macros + MONO_ADD_INS.

	* mini.c (mono_jump_info_token_new2): New function which takes a generic
	context as well.

	* mini.h (MonoJumpInfoToken): Include fields for a generic context.

	* mini.h: Bump aot file format version.

	* aot-compiler.c aot-runtime.c: Update after changes to MonoJumpInfoToken.

svn path=/trunk/mono/; revision=116335
2008-10-17 23:41:58 +00:00
Jonathan Pobst 5931947131 2008-10-17 Jonathan Pobst <[email protected]>
* DataGridView.cs: Add the ability to resize columns and rows with
	the mouse.  Also support double-clicking to autoresize.
	* DataGridViewColumn.cs: Invalidate the grid if a column's width changes.
	* DataGridViewRow.cs: Invalidate the grid if a row's height changes.
	* DataGridViewTextBoxCell.cs: Add 1 to preferred width so ellipsis
	isn't shown on autoresize.
	[Fixes bug #420193]

svn path=/trunk/mcs/; revision=116321
2008-10-17 21:35:02 +00:00
Jonathan Pryor d0169d7f85 * Makefile: Distribute monodoc.dll.config.in.
svn path=/trunk/mcs/; revision=116320
2008-10-17 21:33:55 +00:00
Jonathan Pryor 63b756b100 * scripts/Makefile.am: Create scripts for mdoc sub-commands.
svn path=/trunk/mono/; revision=116319
2008-10-17 20:55:34 +00:00
Jonathan Pryor 497fc41fac * scripts/Makefile.am: Add mod.
svn path=/trunk/mono/; revision=116318
2008-10-17 20:46:20 +00:00
Jonathan Pryor ed66500217 Moving from monodoc/scripts to mono/scripts...
svn path=/trunk/mono/; revision=116317
2008-10-17 20:27:48 +00:00
Jonathan Pryor 7566219554 * Makefile: Add mod to the build.
* mod/ChangeLog: Started.
	* mod/mod.exe.sources: Added; sources for mod.exe.
	* mod/Makefile: Added; build mod.exe.

svn path=/trunk/mcs/; revision=116316
2008-10-17 20:25:52 +00:00
Jonathan Pryor 918110a983 Moving from monodoc/engine to mcs/tools/mod...
svn path=/trunk/mcs/; revision=116315
2008-10-17 20:18:43 +00:00
Mark Probst 7891546e9d 2008-10-17 Mark Probst <[email protected]>
* mini-x86.h, mini-x86.c, exceptions-x86.c: Align stack on all
	platforms, with definable stack alignment value.  Set to 16 now
	for all platforms.

	* mini.c, mini.h, driver.c: Command line option for disabling
	stack alignment.

svn path=/trunk/mono/; revision=116313
2008-10-17 20:15:10 +00:00
Jonathan Pryor f549706461 * Makefile: Add man pages added from monodoc/man...
svn path=/trunk/mono/; revision=116311
2008-10-17 20:12:38 +00:00
Jonathan Pryor e0a808dcfe * Makefile: Fix $(EXTRA_DISTFILES) so that make distcheck doesn't
fail on mdoc anymore...

svn path=/trunk/mcs/; revision=116308
2008-10-17 19:55:30 +00:00
Bill Holmes 91f7c5b45d 2008-10-17 Bill Holmes <[email protected]>
* eglib.vcproj : Adding src\gtimer-win32.c to the VC project.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=116305
2008-10-17 19:34:18 +00:00
Jonathan Pryor fede500629 * Makefile: Use NO_INSTALL to prevent installation instead of using
do-install and do-uninstall.

svn path=/trunk/mcs/; revision=116304
2008-10-17 19:32:54 +00:00
Jonathan Pryor b4df83584a * Makefile: Generate a monodoc.dll.config (installed by gacutil), so
that monodoc.dll can find the documentation sources.

svn path=/trunk/mcs/; revision=116302
2008-10-17 19:29:21 +00:00
Jonathan Pryor 36cd60d920 * Makefile: Add mdoc, monodoc to the build.
svn path=/trunk/mcs/; revision=116295
2008-10-17 19:21:08 +00:00
Raja R Harinath dae1e48c31 * docs/Makefile (DISTFILES): Don't use 'find' to list files.
svn path=/trunk/mcs/; revision=116294
2008-10-17 19:18:45 +00:00
Jonathan Pryor 767f437a33 Migrating from monodoc/engine to mcs/tools/monodoc...
svn path=/trunk/mcs/; revision=116293
2008-10-17 19:16:21 +00:00
Raja R Harinath 2d557adc18 A few fixes for monodoc
* Makefile (net_2_0_SUBDIRS): Add 'docs'.
* docs/Makefile: Build documentation only in the net_2_0 profile.
* build/rules.make (MDOC): Pass a proper MONO_PATH.
* tools/mdoc/Makefile (MCS1): Use 'class/lib/net_1_1', not 'class/lib/1.0'.

svn path=/trunk/mcs/; revision=116292
2008-10-17 19:13:04 +00:00
Jonathan Pryor f2fc15c092 * docs/Makefile: Add install/uninstall support.
svn path=/trunk/mcs/; revision=116291
2008-10-17 19:01:35 +00:00
Rodrigo B. de Oliveira 1a988ae12a always generate the local var sig
svn path=/trunk/mcs/; revision=116290
2008-10-17 18:55:21 +00:00
Jonathan Pryor 211912a8b1 Moving from monodoc/engine to mcs/docs...
svn path=/trunk/mcs/; revision=116289
2008-10-17 18:54:11 +00:00
Jonathan Pryor 799133707c Add doc-update target support.
The doc-update target updates the Documentation/en directory for libraries
(and is otherwise ignored).

svn path=/trunk/mcs/; revision=116287
2008-10-17 18:45:17 +00:00
Jonathan Pryor 7c077f7b17 * Makefile: Add fixup-docs target, to simplify importing NDesk.Options
documentation for use in Mono.Options

svn path=/trunk/mcs/; revision=116286
2008-10-17 18:36:28 +00:00
Jonathan Pryor 1ee9b11694 * Documentation/**: Flush updated documentation.
svn path=/trunk/mcs/; revision=116285
2008-10-17 18:35:13 +00:00
Raja R Harinath 3381374b05 Make robust to 'make clean; make'
* Makefile (CYCLIC_DEPS): If we're using BOOT_COMPILE, don't
bother looking for cyclic dependencies -- they'll fail to load
even if the dlls exist.
(handle-missing-deps): Rename from 'echo-warning'.  Remove cyclic
dependencies for real, if they exist.
Reported by Jonathan Pryor.

svn path=/trunk/mcs/; revision=116284
2008-10-17 18:31:13 +00:00
Jonathan Pryor 2ed9d86e9c * docs/Makefile: Assemble documentation.
* docs/cs-errors.config: Update to refer to correct directory.
	* docs/mono-tools.config: Man pages are in mono/man now...

svn path=/trunk/mcs/; revision=116283
2008-10-17 18:28:30 +00:00
Atsushi Eno d69b539266 2008-10-17 Atsushi Enomoto <[email protected]>
* DynamicDataRouteHandler.cs, DynamicDataRoute.cs, MetaTable.cs,
	  MetaModel.cs : ongoing implementation.

	* DynamicDataRouteTest.cs, TestStubTypes.cs: new tests.
	* MetaModelTest.cs : fixed test namespace and type aliases.
	  Now that this test does not always run first, remove run-order-
	  dependent assertions. Added some more assertions.


svn path=/trunk/mcs/; revision=116282
2008-10-17 18:26:31 +00:00
Jonathan Pryor 14c633f63b Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116281
2008-10-17 18:25:56 +00:00
Jonathan Pryor e6fdbcfa78 Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116280
2008-10-17 18:23:24 +00:00
Jonathan Pryor b63fd75668 Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116279
2008-10-17 18:23:19 +00:00
Jonathan Pryor 20d9fa2265 Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116278
2008-10-17 18:23:13 +00:00
Atsushi Eno ac7f00d699 2008-10-17 Atsushi Enomoto <[email protected]>
* RouteValueDictionary.cs : its string comparison is case
	  insensitive.

	* RouteValueDictionaryTest.cs : test for case-insensitive comparison.


svn path=/trunk/mcs/; revision=116277
2008-10-17 18:21:36 +00:00
Jonathan Pryor 98b2915dca Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116276
2008-10-17 18:21:31 +00:00
Jonathan Pryor 63ac57704e Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116275
2008-10-17 18:21:25 +00:00
Jonathan Pryor fc533eff15 Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116274
2008-10-17 18:21:19 +00:00
Jonathan Pryor 01c9d58963 Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116273
2008-10-17 18:21:13 +00:00
Jonathan Pryor 18932bb171 Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116272
2008-10-17 18:21:07 +00:00
Jonathan Pryor e6a15c231d Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116271
2008-10-17 18:21:01 +00:00
Jonathan Pryor 38a98b16f1 Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116270
2008-10-17 18:20:53 +00:00
Jonathan Pryor 6d7519ac7a Migrating from monodoc/man to mono/man...
svn path=/trunk/mono/; revision=116269
2008-10-17 18:20:46 +00:00
Rodrigo Kumpera df396bea92 2008-10-17 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Tests for new methods in Vector4ui.

svn path=/trunk/mono/; revision=116267
2008-10-17 17:41:29 +00:00
Rodrigo Kumpera b1b2c3046b 2008-10-17 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Add packed int shuffle.

	* cpu-x86.md: Same.

	* mini-x86.c (mono_arch_output_basic_block): Same.

	* simd-intrinsics.c (vector4ui_intrinsics): Add compare equal,
	extract mask, max, min, shuffle.

	* simd-intrinsics.c (vector8us_intrinsics): Add max and min.

svn path=/trunk/mono/; revision=116266
2008-10-17 17:41:18 +00:00
Rodrigo Kumpera 2c15bf34ca 2008-10-17 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add packed int shuffle.

svn path=/trunk/mono/; revision=116265
2008-10-17 17:41:14 +00:00
Rodrigo Kumpera 0aa123f339 2008-10-17 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Tests for new methods in Vector8us.

svn path=/trunk/mono/; revision=116264
2008-10-17 17:41:03 +00:00
Mario Carrion 0f3376338f 2008-10-17 Mario Carrion <[email protected]>
* ComboBox.cs: Remove UIAListbox.


svn path=/trunk/mcs/; revision=116262
2008-10-17 17:24:13 +00:00
Zoltan Varga 16a4b4fbc6 Fix the OP_IREM_IMM optimization.
svn path=/trunk/mono/; revision=116260
2008-10-17 17:01:54 +00:00
Rodrigo Kumpera 0e8861b625 2008-10-17 Rodrigo Kumpera <[email protected]>
* Vector4ui.cs: Remove Average as there is no sse instruction for that.

svn path=/trunk/mcs/; revision=116259
2008-10-17 16:37:39 +00:00
Rodrigo Kumpera 83776da75d 2008-10-17 Rodrigo Kumpera <[email protected]>
* Vector4ui.cs: Added Min, Max, Average, ExtractByteMask,
	Shuffle and CompareEqual.

svn path=/trunk/mcs/; revision=116256
2008-10-17 16:15:50 +00:00
Mario Carrion e94c28ddbe 2008-10-17 Mario Carrion <[email protected]>
* ComboBox.cs, ListBox.cs: Using added/removed item in
  OnUIACollectionChangedEvent instead of index.


svn path=/trunk/mcs/; revision=116254
2008-10-17 16:09:31 +00:00
Jb Evain 66d4542989 blah
svn path=/trunk/mcs/; revision=116249
2008-10-17 15:44:14 +00:00
Jb Evain 8b91d2c738 fixicate
svn path=/trunk/mcs/; revision=116248
2008-10-17 15:38:52 +00:00
Jb Evain ed1b06d8da 2008-10-17 Jb Evain <[email protected]>
* Mono.Cecil.Mdb/MdbWriter.cs: Adjust to Cecil changes.


svn path=/trunk/mcs/; revision=116244
2008-10-17 15:28:52 +00:00
Jb Evain f5dd729cd1 2008-10-17 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionWriter.cs: remove dead code.
	* Mono.Cecil.Cil/ISymbolWriter.cs: simplify Write method.


svn path=/trunk/mcs/; revision=116242
2008-10-17 15:27:46 +00:00
Marek Habersack f3bc4a2f46 Use UNIX line endings consistently
svn path=/trunk/mcs/; revision=116241
2008-10-17 15:26:06 +00:00
Marek Safar 9a02a105f5 New test.
svn path=/trunk/mcs/; revision=116240
2008-10-17 15:19:17 +00:00
Marek Safar ced634506f 2008-10-17 Marek Safar <[email protected]>
* ecore.cs: Resolve correctly ambiguous params delegate methods.


svn path=/trunk/mcs/; revision=116239
2008-10-17 15:16:23 +00:00
Jonathan Pryor 58bb51e13e Migrating from monodoc/class to mcs/class...
svn path=/trunk/mcs/; revision=116237
2008-10-17 15:04:14 +00:00
Jonathan Pryor 4b137467bc Migrating from monodoc/ecma334 to mcs/docs/ecma334...
svn path=/trunk/mcs/; revision=116235
2008-10-17 15:01:25 +00:00
Atsushi Eno fac89a5692 2008-10-17 Atsushi Enomoto <[email protected]>
* UrlPattern.cs : fixed pattern match for such string that has
	  suffix. (DynamicData uses it.)

	* RouteTest.cs : added test for DynamicData default pattern.


svn path=/trunk/mcs/; revision=116234
2008-10-17 14:59:28 +00:00
Jonathan Pryor c9106395cd Migrating from monodoc/class to mcs/docs...
svn path=/trunk/mcs/; revision=116233
2008-10-17 14:56:54 +00:00
Rodrigo B. de Oliveira 328b0b88a1 patch enabling better handling of local var debug info applied
svn path=/trunk/mcs/; revision=116232
2008-10-17 14:56:36 +00:00
Marek Habersack 81c4068d12 2008-10-17 Marek Habersack <[email protected]>
* ImageMap.cs: added the SupportsEventValidation attribute to the
	class.
	Validate the event in RaisePostBackEvent ().
	Register for event validation in Render ().

	* DropDownList.cs, ListBox.cs: validate the event in LoadPostData ().

	* TextBox.cs: validate the event in LoadPostData ().
	Register for event validation in AddAttributesToRender ().

	* HiddenField.cs: validate the event in RaisePostDataChangedEvent.
	Register for event validation in Render ().

	* RadioButton.cs: validate the event in LoadPostData ().
	Register for event validation in InternalAddAttributesToRender.

	* CheckBox.cs, RadioButtonList.cs: validate the event in
	RaisePostDataChangedEvent.

	* Menu.cs: added the SupportsEventValidation attribute to the
	class.
	Validate the event in RaisePostBackEvent ().
	Register for event validation in GetClientEvent ().

	* DetailsView.cs, GridView.cs: validate the event in
	RaisePostBackEvent ().
	Register for validation in GetCallbackScript () and in OnPreRender

	* Button.cs, Table.cs, BulletedList.cs, Calendar.cs, LinkButton.cs,
	ImageButton.cs, TreeView.cs: validate the event in RaisePostBackEvent ().

2008-10-17  Marek Habersack  <[email protected]>

	* Control.cs: added the ValidateEvent internal method, used by
	classes descending from Control to automatically trigger event
	validation.

	* Page.cs: removed the CheckForValidationSupport method. It moved
	to Control.cs
	RaisePostBackEvent no longer validates the events, this
	functionality has been moved to Control.ValidateEvent.

2008-10-17  Marek Habersack  <[email protected]>

	* HtmlInputHidden.cs: validate the event in LoadPostDataInternal.

	* HtmlInputButton.cs: validate the event in
	RaisePostBackEventInternal ().
	Register for event validation in RenderAttributes ()

	* HtmlTextArea.cs: validate the event in
	RaisePostBackDataChangedEvent ().

	* HtmlButton.cs: validate the event in RaisePostBackEvent ().
	Register for event validation in RenderAttributes ()

	* HtmlAnchor.cs: validate the event in RaisePostBackEvent ().
	Register for event validation in RenderAttributes ().

	* HtmlInputRadioButton.cs, HtmlSelect.cs: validate the event in
	LoadPostData.

	* HtmlInputText.cs, HtmlInputImage.cs, HtmlInputCheckBox.cs,
	HtmlInputPassword.cs: validate the event in
	RaisePostDataChangedEvent ().

2008-10-17  Marek Habersack  <[email protected]>

	* MenuAdapterTest.cs: work around event validation failure in the
	test environment.

2008-10-17  Marek Habersack  <[email protected]>

	* PageTest.cs: use a custom version of HtmlInputHidden control to
	work around the new event validation code which doesn't work in
	this instance.

svn path=/trunk/mcs/; revision=116231
2008-10-17 14:56:19 +00:00
Jonathan Pryor 51a3877cec Migrating from monodoc/class to mcs/docs...
svn path=/trunk/mcs/; revision=116230
2008-10-17 14:55:25 +00:00
Jonathan Pobst 2e0833d825 2008-10-17 Jonathan Pobst <[email protected]>
* ComboBox.cs: When we are sorting the items, if the item's type
	doesn't support IComparer, use a default one that compares based
	off the item's visible text.
	[Fixes bug #436328]

2008-10-17  Jonathan Pobst  <[email protected]>

	* ComboBoxTest.cs: Add test for bug #436328.

svn path=/trunk/mcs/; revision=116229
2008-10-17 14:55:12 +00:00
Jonathan Pryor 81d16bd132 Migrating from monodoc/class to mcs/docs...
svn path=/trunk/mcs/; revision=116227
2008-10-17 14:52:56 +00:00
Jonathan Pryor d17b80fc2a Migrating from monodoc/class to mcs/docs...
svn path=/trunk/mcs/; revision=116226
2008-10-17 14:52:51 +00:00
Jonathan Pryor ec72009da0 Migrating from monodoc/class to mcs/docs...
svn path=/trunk/mcs/; revision=116225
2008-10-17 14:52:43 +00:00
Jonathan Pryor c9fbe4680d * */Documentation/**: Flush updated documentation.
svn path=/trunk/mcs/; revision=116223
2008-10-17 14:46:20 +00:00
Jonathan Pryor 5980d617f2 * Documentation/en/**: Move to appropriate assembly-specific
directories.

svn path=/trunk/mcs/; revision=116222
2008-10-17 14:43:50 +00:00
Jb Evain 5b6511fffb 2008-10-17 Jb Evain <[email protected]>
* Makefile: clean the Makefile, following the pattern in ../class,
	to make it easier to add tools.


svn path=/trunk/mcs/; revision=116220
2008-10-17 14:36:02 +00:00
Marek Safar a1ae223b84 2008-10-17 Marek Safar <[email protected]>
* generic.cs, anonymous.cs: Simplified GetDeclarations.


svn path=/trunk/mcs/; revision=116219
2008-10-17 14:22:14 +00:00
Jonathan Pryor d68c52732f Migrating from monodoc/class/Mono.GetOptions to mcs/class/Mono.GetOptions/Documentation...
svn path=/trunk/mcs/; revision=116218
2008-10-17 14:20:41 +00:00
Jonathan Pryor 7580b20058 Migrating from monodoc/class/System.XML to mcs/class/System.XML/Documentation...
svn path=/trunk/mcs/; revision=116217
2008-10-17 14:12:20 +00:00
Jonathan Pryor 09642b7eb7 Migrating from monodoc/class/System.Web.Services to mcs/class/System.Web.Services/Documentation...
svn path=/trunk/mcs/; revision=116216
2008-10-17 14:12:16 +00:00
Jonathan Pryor 58c7375806 Migrating from monodoc/class/System.Web to mcs/class/System.Web/Documentation...
svn path=/trunk/mcs/; revision=116215
2008-10-17 14:12:12 +00:00
Jonathan Pryor ee97d1824e Migrating from monodoc/class/System.Security to mcs/class/System.Security/Documentation...
svn path=/trunk/mcs/; revision=116214
2008-10-17 14:12:08 +00:00
Jonathan Pryor e8b42c803a Migrating from monodoc/class/System.Runtime.Serialization.Formatters.Soap to mcs/class/System.Runtime.Serialization.Formatters.Soap/Documentation...
svn path=/trunk/mcs/; revision=116213
2008-10-17 14:12:04 +00:00
Jonathan Pryor f5627bfedc Migrating from monodoc/class/System.Runtime.Remoting to mcs/class/System.Runtime.Remoting/Documentation...
svn path=/trunk/mcs/; revision=116212
2008-10-17 14:12:00 +00:00
Jonathan Pryor 2505f3eeca Migrating from monodoc/class/System.Drawing to mcs/class/System.Drawing/Documentation...
svn path=/trunk/mcs/; revision=116211
2008-10-17 14:11:56 +00:00
Jonathan Pryor ba26273371 Migrating from monodoc/class/System.DirectoryServices to mcs/class/System.DirectoryServices/Documentation...
svn path=/trunk/mcs/; revision=116210
2008-10-17 14:11:52 +00:00
Jonathan Pryor c2efa83efe Migrating from monodoc/class/System.Design to mcs/class/System.Design/Documentation...
svn path=/trunk/mcs/; revision=116209
2008-10-17 14:11:46 +00:00
Jonathan Pryor b009fed890 Migrating from monodoc/class/System.Data to mcs/class/System.Data/Documentation...
svn path=/trunk/mcs/; revision=116208
2008-10-17 14:11:42 +00:00
Jonathan Pryor 3576c91ed4 Migrating from monodoc/class/System.Core to mcs/class/System.Core/Documentation...
svn path=/trunk/mcs/; revision=116207
2008-10-17 14:11:38 +00:00
Jonathan Pryor cd915faef8 Migrating from monodoc/class/System.Configuration.Install to mcs/class/System.Configuration.Install/Documentation...
svn path=/trunk/mcs/; revision=116206
2008-10-17 14:11:34 +00:00
Jonathan Pryor 99508cb453 Migrating from monodoc/class/Npgsql to mcs/class/Npgsql/Documentation...
svn path=/trunk/mcs/; revision=116205
2008-10-17 14:11:29 +00:00
Jonathan Pryor 91f5e1e3b0 Migrating from monodoc/class/Novell.Directory.Ldap to mcs/class/Novell.Directory.Ldap/Documentation...
svn path=/trunk/mcs/; revision=116204
2008-10-17 14:11:24 +00:00
Jonathan Pryor b2e920c6ab Migrating from monodoc/class/System to mcs/class/System/Documentation...
svn path=/trunk/mcs/; revision=116203
2008-10-17 14:11:20 +00:00
Jonathan Pryor eb0f971a00 Migrating from monodoc/class/Mono.Security.Win32 to mcs/class/Mono.Security.Win32/Documentation...
svn path=/trunk/mcs/; revision=116202
2008-10-17 14:11:16 +00:00
Jonathan Pryor eee6918822 Migrating from monodoc/class/Mono.Security to mcs/class/Mono.Security/Documentation...
svn path=/trunk/mcs/; revision=116201
2008-10-17 14:11:12 +00:00
Jonathan Pryor 7955f002a6 Migrating from monodoc/class/Mono.Posix to mcs/class/Mono.Posix/Documentation...
svn path=/trunk/mcs/; revision=116200
2008-10-17 14:11:08 +00:00
Jonathan Pryor 5e4e72b763 Migrating from monodoc/class/Mono.Data.SqliteClient to mcs/class/Mono.Data.SqliteClient/Documentation...
svn path=/trunk/mcs/; revision=116199
2008-10-17 14:04:16 +00:00
Jonathan Pryor b75c0daea3 Migrating from monodoc/class/Mono.Cairo to mcs/class/Mono.Cairo/Documentation...
svn path=/trunk/mcs/; revision=116198
2008-10-17 14:04:11 +00:00
Jonathan Pryor aa2d9d6fc7 Migrating from monodoc/class/Microsoft.Build.Utilities to mcs/class/Microsoft.Build.Utilities/Documentation...
svn path=/trunk/mcs/; revision=116197
2008-10-17 14:04:05 +00:00
Jonathan Pryor 35b7bde685 Migrating from monodoc/class/Microsoft.Build.Framework to mcs/class/Microsoft.Build.Framework/Documentation...
svn path=/trunk/mcs/; revision=116196
2008-10-17 14:04:01 +00:00
Jonathan Pryor 24ca1a8f7d Migrating from monodoc/class/Commons.Xml.Relaxng to mcs/class/Commons.Xml.Relaxng/Documentation...
svn path=/trunk/mcs/; revision=116195
2008-10-17 14:03:53 +00:00
Jonathan Pryor 52b170b153 * Makefile (DIST_ONLY_SUBDIRS): Add mono-shlib-cop; fixes the build.
svn path=/trunk/mcs/; revision=116194
2008-10-17 14:03:09 +00:00
Jonathan Pryor 0f51f2001f Migrating from monodoc/class to mcs/docs...
svn path=/trunk/mcs/; revision=116193
2008-10-17 13:56:58 +00:00
Jonathan Pryor feb0a0421f * Mono.Documentation/monodocer.cs: -overrides & -pretty should default
to true.  (Not a major change, as mdoc.exe already did this, so it
	  really only impacts monodocer1.exe, which is internal...)

svn path=/trunk/mcs/; revision=116192
2008-10-17 13:39:40 +00:00
Rodrigo B. de Oliveira ed854799a6 CompactFramework compilation fixes
svn path=/trunk/mcs/; revision=116191
2008-10-17 13:29:04 +00:00
Paolo Molaro 17c237a114 Fri Oct 17 15:23:00 CEST 2008 Paolo Molaro <[email protected]>
* processes.c: patch from Geoff Norton ([email protected]) to
	strdup the open program on OSX (bug #431811).


svn path=/trunk/mono/; revision=116189
2008-10-17 13:26:13 +00:00
Paolo Molaro 07214d3261 Fix missing break.
svn path=/trunk/mono/; revision=116186
2008-10-17 13:09:38 +00:00
Mark Probst 98dfaa9d49 2008-10-17 Mark Probst <[email protected]>
* method-to-ir.c (mono_method_to_ir2): "refanytype" produces a
	RuntimeTypeHandle, not a TypedReference.

svn path=/trunk/mono/; revision=116185
2008-10-17 13:02:39 +00:00
Paolo Molaro 470823dfdf Fri Oct 17 14:40:50 CEST 2008 Paolo Molaro <[email protected]>
* simd-intrinsics.c: remove relocations.


svn path=/trunk/mono/; revision=116183
2008-10-17 12:41:43 +00:00
Marek Safar 6cfacb8376 New test.
svn path=/trunk/mcs/; revision=116181
2008-10-17 11:35:45 +00:00
Marek Safar a53adefec9 New tests.
svn path=/trunk/mcs/; revision=116180
2008-10-17 11:34:52 +00:00
Marek Safar 1e78065f03 2008-10-17 Marek Safar <[email protected]>
* cs-tokenizer.cs: More precise cast parsing.


svn path=/trunk/mcs/; revision=116179
2008-10-17 11:32:21 +00:00
Zoltan Varga 64da4d24af 2008-10-17 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Port the IREM_IMM 
	optimizations from the x86 backend.

svn path=/trunk/mono/; revision=116178
2008-10-17 10:53:34 +00:00
Paolo Molaro b04f395f8f Fri Oct 17 12:00:51 CEST 2008 Paolo Molaro <[email protected]>
* simd-methods.h, simd-intrinsics.c: debloat method names and
	prepare for no relocations.


svn path=/trunk/mono/; revision=116177
2008-10-17 10:03:55 +00:00
Paolo Molaro 45f969c293 Fri Oct 17 10:51:32 CEST 2008 Paolo Molaro <[email protected]>
* loader.c: fixed check for interface type.


svn path=/trunk/mono/; revision=116171
2008-10-17 08:52:33 +00:00
Miguel de Icaza ace2e9e1b8 2008-10-17 Miguel de Icaza <[email protected]>
* atomic.h: Add CodeWarrior macros from Unity3D.

svn path=/trunk/mono/; revision=116166
2008-10-17 06:04:25 +00:00
Carlos Alberto Cortez e0500805ea 2008-10-17 Carlos Alberto Cortez <[email protected]>
* ColumnHeader.cs: Invalidate ListView.header_control when setting
	ImageIndex/ImageKey.
	* ThemeWin32Classic.cs: When drawing the column header, draw a image
	for the column if available, and make the required adjustments to the
	text location.
	Fixes #435105.


svn path=/trunk/mcs/; revision=116165
2008-10-17 05:50:10 +00:00
Miguel de Icaza 7a559618d0 2008-10-17 Miguel de Icaza <[email protected]>
* Allow types to be defined on the eglib-config.h file, that could
	be a platform specific generated type file.

	* gtimer.c: split functionality in platforms.

svn path=/trunk/mono/; revision=116164
2008-10-17 05:34:16 +00:00
Jonathan Pryor aaa6341aa6 Migrating from monodoc/class to mcs/docs...
svn path=/trunk/mcs/; revision=116159
2008-10-17 04:39:54 +00:00
Jonathan Pryor af2b6034aa Migrating from monodoc/class to mcs/docs...
svn path=/trunk/mcs/; revision=116158
2008-10-17 04:39:02 +00:00
Jonathan Pryor 43a6f94f70 Migrating from monodoc/class to mcs/docs...
svn path=/trunk/mcs/; revision=116157
2008-10-17 04:38:48 +00:00
Jonathan Pryor ed2655a43b Migrating from monodoc/class to mcs/docs...
svn path=/trunk/mcs/; revision=116156
2008-10-17 04:38:34 +00:00
Jonathan Pryor 15ccd379d6 Migrating from monodoc/class to mcs/docs...
svn path=/trunk/mcs/; revision=116155
2008-10-17 04:38:01 +00:00
Rodrigo Kumpera 0d3b222f7f 2008-10-16 Rodrigo Kumpera <[email protected]>
* Vector16b.cs: Added Min, Max, Average, ExtractByteMask,
	SumOfAbsoluteDifferences and CompareEqual.

svn path=/trunk/mcs/; revision=116154
2008-10-17 04:30:49 +00:00
Jonathan Pryor 6f3f104057 Migrating monodoc/class/[ASSEMBLY] to mcs/class/[ASSEMBLY]/Documentation...
svn path=/trunk/mcs/; revision=116152
2008-10-17 04:18:25 +00:00
Jonathan Pryor 891390e44d * Mono.Documentation/monodocer.cs: Only provide a Main() method and
use Mono.GetOptions when targeting .NET 1.0 (i.e. monodocer1.exe).

svn path=/trunk/mcs/; revision=116151
2008-10-17 04:11:03 +00:00
Jonathan Pryor 9091180e15 Moving from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116150
2008-10-17 04:08:09 +00:00
Jonathan Pryor 727e88b8e8 Moving from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116149
2008-10-17 04:07:39 +00:00
Jonathan Pryor 0680dd7e4e Moving from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116148
2008-10-17 04:07:20 +00:00
Jonathan Pryor 9bd0e2fa32 Moving from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116147
2008-10-17 04:07:01 +00:00
Jonathan Pryor 93df4b1ec4 Not sure why this was here, as it was _moved_ to Test...
svn path=/trunk/mcs/; revision=116145
2008-10-17 04:02:49 +00:00
Jonathan Pryor a7f2195a5f This never should have been renamed in the first place...
svn path=/trunk/mcs/; revision=116144
2008-10-17 04:01:08 +00:00
Neville Gao 29277338af Control enabled to support accessibility.
svn path=/trunk/mcs/; revision=116143
2008-10-17 03:58:40 +00:00
Jonathan Pryor 0173fa7078 * . (svn:ignore), Test (svn:ignore): Ignore generated files.
* assembler.cs, mdoc.cs, monodocer.cs, monodocs2html.cs,
	  monodocs2slashdoc.cs, normalize.cs, validate.cs, XhtmlWriter.cs:
	  Move to Mono.Documentation.
	* defaulttemplate.xsl, overview.xsl, stylesheet.xsl: Moved to
	  Resources.
	* DocTest: Moved to Test.
	* DocTest-v1.cs, DocTest-v2.patch, TestEcmaDocs.xml: Moved to Test.
	* mdoc.exe.sources: Added; mcs include file to build mdoc.exe.
	* Makefile: Added; build mdoc.exe, monodocer1.exe, and unit tests for
	  mdoc.exe
	* Mono.Documentation/assembler.cs, Mono.Documentation/normalize.cs,
	  Mono.Documentation/mdoc.cs, Mono.Documentation/monodocs2slashdoc.cs,
	  Mono.Documentation/monodocs2html.cs, Mono.Documentation/validate.cs:
	  Modify command line handling to remove Mono.GetOptions dependency.
	* Test/DocTest-v1.cs: Update //code/@src attribute due to changed paths.
	* Test/msxdoc-expected.importslashdoc.xml,
	* Test/en.expected.importslashdoc/Mono.DocTest/DocAttribute.xml: Flush 
	  due to above DocTest-v1.cs change.

svn path=/trunk/mcs/; revision=116141
2008-10-17 03:52:12 +00:00
Jonathan Pryor 069fa649d3 * Mono.Documentation/ManifestResourceResolver.cs,
Mono.Documentation/XmlDocUtils.cs: Make types public so that they
	  can be used from ../mdoc/mdoc.exe.

svn path=/trunk/mcs/; revision=116138
2008-10-17 01:50:48 +00:00
Jonathan Pryor 5ec51197dc * scripts/Makefile.am: Move mono-shlib-cop to scripts_2_0.
svn path=/trunk/mono/; revision=116137
2008-10-17 01:24:18 +00:00
Jonathan Pryor 041e9091ba * Makefile (SUBDIRS, net_2_0_SUBDIRS): Move mono-shlib-cop to
net_2_0_SUBDIRS so that it can use Mono.Options...

svn path=/trunk/mcs/; revision=116136
2008-10-17 01:21:24 +00:00
Jonathan Pryor 6324a9a341 Migrating monodoc utilities to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116134
2008-10-17 01:00:11 +00:00
Jonathan Pryor d79ab5bf6a * mono-shlib-cop.cs: Migrate from Mono.GetOptions to Mono.Options.
* mono-shlib-cop.exe.sources: Include Mono.Options source.

svn path=/trunk/mcs/; revision=116126
2008-10-16 23:56:26 +00:00
Jonathan Pryor 475b9ff79d * Makefile: Update $(thisdir).
svn path=/trunk/mcs/; revision=116124
2008-10-16 23:43:34 +00:00
Jonathan Pryor 069b3a9843 * Assmbly/AssemblyInfo.cs: Change location of mono.snk (since the
monodoc directory was moved from mcs/class to mcs/tools).

svn path=/trunk/mcs/; revision=116123
2008-10-16 23:37:42 +00:00
Jonathan Pryor 4c5aa42ffd monodoc.dll is a private assembly, and will never be stabalized, so it belongs
in mcs/tools...

svn path=/trunk/mcs/; revision=116122
2008-10-16 23:30:38 +00:00
Jonathan Pryor ed2a971208 * Makefile: Improve make clean support.
svn path=/trunk/mcs/; revision=116120
2008-10-16 23:24:55 +00:00
Rodrigo Kumpera e50b30a4d8 2008-10-16 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Add packed min/equal and sum of absolute differences.

	* cpu-x86.md: Same.

	* mini-x86.c (mono_arch_output_basic_block): Same.

	* simd-intrinsics.c (vector16b_intrinsics): Add average, compare equal,
	extract mask, max, min and sum of absolute differences.

	* simd-intrinsics.c: Increase SIMD_INTRINSIC_NAME_MAX due to new huge
	method name.

svn path=/trunk/mono/; revision=116118
2008-10-16 23:22:30 +00:00
Rodrigo Kumpera 6ac739c2e5 2008-10-16 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add packed int compare equals and
	psabw.

svn path=/trunk/mono/; revision=116117
2008-10-16 23:22:27 +00:00
Jonathan Pryor d1a2ebc543 * Makefile: Add EXTRA_DISTFILES; monodoc.dll should depend upon
Makefile (in case the /resource: lines change); shorten the .gif
	  resource names.

svn path=/trunk/mcs/; revision=116116
2008-10-16 23:20:36 +00:00
Jonathan Pryor ea7cce7385 * Test (svn:ignore): Ignore generated files.
* Makefile: Add tests for man-provider.

svn path=/trunk/mcs/; revision=116115
2008-10-16 23:12:58 +00:00
Jonathan Pryor 30eb48c19b * ChangeLog: Added/Started.
* Makefile: Added; build monodoc.dll.
	* **/*: Move files to conform to location standards.

svn path=/trunk/mcs/; revision=116114
2008-10-16 22:54:47 +00:00
Rodrigo Kumpera 472eac1b0e 2008-10-16 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Test for the other mono_simd_simplify_indirection bug.
	Renamed one test for consistency.

svn path=/trunk/mono/; revision=116107
2008-10-16 21:53:19 +00:00
Rodrigo Kumpera 272bcad575 2008-10-16 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (mono_simd_simplify_indirection): Apply the previous
	fix to the code that deal with other blocks.

svn path=/trunk/mono/; revision=116106
2008-10-16 21:53:14 +00:00
Jonathan Pryor 5582709a22 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116105
2008-10-16 21:33:02 +00:00
Jonathan Pryor 3e30c53419 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116104
2008-10-16 21:32:57 +00:00
Jonathan Pryor 94885d8fad Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116103
2008-10-16 21:32:51 +00:00
Jonathan Pryor 3d6a3719c4 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116102
2008-10-16 21:32:45 +00:00
Jonathan Pryor c9f8a4993d Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116101
2008-10-16 21:32:39 +00:00
Jonathan Pryor 8d6c34d827 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116100
2008-10-16 21:32:34 +00:00
Jonathan Pryor 875ff77cb1 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116099
2008-10-16 21:32:28 +00:00
Jonathan Pryor 083b460187 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116098
2008-10-16 21:32:17 +00:00
Jonathan Pryor 46a2e86069 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116097
2008-10-16 21:32:11 +00:00
Jonathan Pryor 8e57b1e839 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116096
2008-10-16 21:32:05 +00:00
Jonathan Pryor 35cdbc7a4c Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116095
2008-10-16 21:31:59 +00:00
Jonathan Pryor fb6b3a7766 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116094
2008-10-16 21:31:53 +00:00
Jonathan Pryor bf69967879 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116093
2008-10-16 21:31:48 +00:00
Jonathan Pryor e460ca3b0a Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116092
2008-10-16 21:31:42 +00:00
Jonathan Pryor 4e95f2c222 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116091
2008-10-16 21:31:36 +00:00
Jonathan Pryor 93cc3e5209 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116090
2008-10-16 21:31:30 +00:00
Jonathan Pryor f9d3e1232a Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116089
2008-10-16 21:11:47 +00:00
Jonathan Pryor 9b14c7523c Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116088
2008-10-16 21:11:38 +00:00
Jonathan Pryor cb0881db29 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116087
2008-10-16 21:11:30 +00:00
Jonathan Pryor 922bce0c10 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116086
2008-10-16 21:11:21 +00:00
Jonathan Pryor e3669a0646 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116085
2008-10-16 21:11:12 +00:00
Jonathan Pryor 5bb5205778 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116084
2008-10-16 21:11:04 +00:00
Jonathan Pryor af2f60ec7e Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116083
2008-10-16 21:10:55 +00:00
Jonathan Pryor 666b54c8e5 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116082
2008-10-16 21:10:45 +00:00
Jonathan Pryor 1c91f606f0 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116081
2008-10-16 21:10:13 +00:00
Jonathan Pryor 1a4035a57b Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116079
2008-10-16 21:09:11 +00:00
Jonathan Pryor dbc1f9d306 Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116078
2008-10-16 21:09:01 +00:00
Jonathan Pryor e05e71e57d Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116077
2008-10-16 21:08:48 +00:00
Jonathan Pryor 6f418e0611 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116076
2008-10-16 21:07:49 +00:00
Jonathan Pryor 996ce5cba0 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116075
2008-10-16 21:07:18 +00:00
Jonathan Pryor 63c01be160 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116074
2008-10-16 21:06:04 +00:00
Jonathan Pryor 8cda157a5e Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116073
2008-10-16 21:02:47 +00:00
Jonathan Pryor 9576932287 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116072
2008-10-16 21:02:39 +00:00
Jonathan Pryor 70f0199709 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116071
2008-10-16 21:02:33 +00:00
Jonathan Pryor d78a36beac Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116070
2008-10-16 21:02:25 +00:00
Jonathan Pryor 242a8f336c Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116069
2008-10-16 21:02:19 +00:00
Jonathan Pryor 7ef454a872 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116068
2008-10-16 21:02:13 +00:00
Jonathan Pryor 95ec0c7686 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116067
2008-10-16 21:02:07 +00:00
Jonathan Pryor 8241264383 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116066
2008-10-16 21:01:57 +00:00
Jonathan Pryor f64d4b5c26 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116065
2008-10-16 21:01:51 +00:00
Jonathan Pryor bd1c57e389 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116064
2008-10-16 21:01:46 +00:00
Jonathan Pryor 04ab310bf7 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116063
2008-10-16 21:01:37 +00:00
Jonathan Pryor 77ed962a9e Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116062
2008-10-16 21:01:32 +00:00
Jonathan Pryor f19695226b Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116061
2008-10-16 21:00:33 +00:00
Jonathan Pryor b13d889607 Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116060
2008-10-16 21:00:22 +00:00
Jonathan Pryor 57069fb9ae Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116059
2008-10-16 21:00:07 +00:00
Jonathan Pryor cbf7589056 Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116058
2008-10-16 20:59:57 +00:00
Jonathan Pryor c506e13b35 Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116057
2008-10-16 20:58:50 +00:00
Jonathan Pryor 28dcb527e7 Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116056
2008-10-16 20:58:37 +00:00
Jonathan Pryor f2ee5ec346 Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116055
2008-10-16 20:58:21 +00:00
Jonathan Pryor 74a9578ca8 Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116054
2008-10-16 20:57:41 +00:00
Jonathan Pryor 09537de465 Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116053
2008-10-16 20:57:31 +00:00
Jonathan Pryor 8d2a2d30cb Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116052
2008-10-16 20:57:20 +00:00
Jonathan Pryor 1b3d7409bf Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116051
2008-10-16 20:57:03 +00:00
Jonathan Pryor aacba69559 Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116050
2008-10-16 20:56:51 +00:00
Jonathan Pryor e3b245ffe4 Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116049
2008-10-16 20:56:11 +00:00
Jonathan Pryor 37975549ee Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116048
2008-10-16 20:55:35 +00:00
Jonathan Pryor cf7a4ec1a7 Prepping for mdoc et. al. move from monodoc/tools to mcs/tools/mdoc...
svn path=/trunk/mcs/; revision=116047
2008-10-16 20:55:00 +00:00
Jonathan Pryor 69bca7b7b2 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116045
2008-10-16 20:44:31 +00:00
Jonathan Pryor b302cefc02 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116044
2008-10-16 20:44:25 +00:00
Jonathan Pryor 8f7f797e5f Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116043
2008-10-16 20:44:18 +00:00
Jonathan Pryor 63a288f368 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116042
2008-10-16 20:44:11 +00:00
Jonathan Pryor c81d3da202 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116041
2008-10-16 20:44:04 +00:00
Jonathan Pryor ef439a67e9 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116040
2008-10-16 20:43:58 +00:00
Jonathan Pryor 6d36b22456 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116039
2008-10-16 20:43:53 +00:00
Jonathan Pryor e540a2b2bd Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116038
2008-10-16 20:38:58 +00:00
Jonathan Pryor f77d585de9 Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
svn path=/trunk/mcs/; revision=116037
2008-10-16 20:38:02 +00:00
Rodrigo Kumpera f94e5814eb 2008-10-16 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Test for the mono_simd_simplify_indirection bug.

svn path=/trunk/mono/; revision=116035
2008-10-16 20:08:17 +00:00
Rodrigo Kumpera e410b6c4aa 2008-10-16 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (mono_simd_simplify_indirection): Simplify the code
	that deals with vreg interference. Explicitly check for OP_LDADDR to be
	able to process the source reg.

svn path=/trunk/mono/; revision=116034
2008-10-16 20:08:12 +00:00
Atsushi Eno c6d276424f checking in ongoing implementation before DynamicDataRoute.
svn path=/trunk/mcs/; revision=116032
2008-10-16 19:29:07 +00:00
Jonathan Pobst 4fc2b345de 2008-10-16 Jonathan Pobst <[email protected]>
* DataGridView.cs: When a user begins an edit in the 'new row',
	make that a real row, and add a new 'new row'.  If the user
	cancels the edit, remove the new 'new row' and reset everything.
	Also, ensure UserAddedRow and UserRemovedRow events are raised.
	[Fixes bug #430954]

svn path=/trunk/mcs/; revision=116029
2008-10-16 19:05:56 +00:00
Paolo Molaro 88b947cb3a Thu Oct 16 20:59:11 CEST 2008 Paolo Molaro <[email protected]>
* appdomain.c: check for NULL setup before it's referenced.


svn path=/trunk/mono/; revision=116027
2008-10-16 19:00:28 +00:00
Ivan Zlatev 7d076af3af 2008-10-16 Ivan N. Zlatev <[email protected]>
* TableLayoutSettings.cs: Fix NREs when deserializing and
	panel is not yet set.
	[Fixes bug #436199]

svn path=/trunk/mcs/; revision=116022
2008-10-16 17:52:23 +00:00
Jonathan Pobst d5579ebb9d 2008-10-16 Jonathan Pobst <[email protected]>
* DataGridView.cs: Invalidate after deleting a row.

svn path=/trunk/mcs/; revision=116017
2008-10-16 17:08:53 +00:00
Jonathan Pobst 70c77fd475 2008-10-16 Jonathan Pobst <[email protected]>
* DataGridView.cs: Handle Enter and Escape keys.
	  - Move call to EndEdit to MoveCurrentCell.
	  - Remove call to EndEdit from navigation key routines.
	  - Fire CellLeave and CellEnter.

svn path=/trunk/mcs/; revision=116015
2008-10-16 16:48:08 +00:00
Jonathan Pobst c818cce52c 2008-10-16 Jonathan Pobst <[email protected]>
* DataGridViewCell.cs: Some fixes to the new cell border
	painting code.

svn path=/trunk/mcs/; revision=116010
2008-10-16 15:59:11 +00:00
Martin Baulig 8f88461357 2008-10-16 Martin Baulig <[email protected]>
* mini-ops.h, cpu-amd64.md, cpu-x86.md: Added new `hard_nop' opcode.

	* inssel.brg: Add `OP_HARD_NOP'.

	* mini.h (MonoCompile): Added `keep_cil_nops' flag.

	* mini.c (mono_method_to_ir): In `CEE_NOP': generate a
	`OP_HARD_NOP' instruction when running inside the debugger.

	* method-to-ir.c (mono_method_to_ir2): In `CEE_NOP': generate a
	`OP_HARD_NOP' instruction when running inside the debugger.


svn path=/trunk/mono/; revision=116007
2008-10-16 15:36:54 +00:00
Jonathan Pobst 93724d2e89 2008-10-16 Jonathan Pobst <[email protected]>
* ThemeEngine.cs: Enable visualstyles rendering by default
	(on platforms that support it).

svn path=/trunk/mcs/; revision=116005
2008-10-16 15:28:36 +00:00
Martin Baulig 2b3fbc4189 2008-10-16 Martin Baulig <[email protected]>
* mini-ops.h, cpu-amd64.md, cpu-x86.md: Added new `hard_nop' opcode.

	* inssel.brg: Add `OP_HARD_NOP'.

	* mini.c: In `CEE_NOP': generate a `OP_HARD_NOP' instruction
	when running inside the debugger.


svn path=/trunk/mono/; revision=116004
2008-10-16 15:26:07 +00:00
Martin Baulig 40e82d0d81 2008-10-16 Martin Baulig <[email protected]>
* anonymous.cs (AnonymousMethodStorey): Put back the
	`hoisted_locals' hashtable and use it in EmitType().


svn path=/trunk/mcs/; revision=116003
2008-10-16 14:32:28 +00:00
Atsushi Eno 95398f45bf 2008-10-16 Atsushi Enomoto <[email protected]>
* System.Web.Routing_test.dll.sources:
	  added RouteValueDictionaryTest.cs.

	* RouteValueDictionary.cs : object argument is actually for
	  anonymous type instance.

	* RouteValueDictionaryTest.cs : new test.


svn path=/trunk/mcs/; revision=116002
2008-10-16 14:20:23 +00:00
Paolo Molaro 63ed5ae3ca Thu Oct 16 16:12:23 CEST 2008 Paolo Molaro <[email protected]>
* class.c: remove the unused old vtable setup code.


svn path=/trunk/mono/; revision=116001
2008-10-16 14:13:35 +00:00
Jb Evain 0a1be3c7b8 2008-10-16 Jb Evain <[email protected]>
* WebHeaderCollection_2_1.cs: update to SL2 api.


svn path=/trunk/mcs/; revision=115982
2008-10-16 12:24:27 +00:00
Jb Evain fad03eb32d 2008-10-16 Jb Evain <[email protected]>
* masterinfos/silverlight/*.info: update to SL2.


svn path=/trunk/mcs/; revision=115981
2008-10-16 12:20:32 +00:00
Jb Evain e91bcd21c0 2008-10-16 Jb Evain <[email protected]>
* WebResponse_2_1.cs: update API to SL2.


svn path=/trunk/mcs/; revision=115978
2008-10-16 12:14:57 +00:00
Paolo Molaro e0d1d13d46 Thu Oct 16 12:53:29 CEST 2008 Paolo Molaro <[email protected]>
* class.c: don't depend on interface order in
	setup_interface_offsets (bug #435777).
	* reflection.c: sort the InterfaceImpl table (patch from
	Jb Evain  <[email protected]>).


svn path=/trunk/mono/; revision=115963
2008-10-16 10:56:41 +00:00
Marek Habersack 8f2e4aa6d1 2008-10-16 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: when looking up application type
	event handlers (the Application_* methods), look deep in the
	parent chain - we must support private handler methods in base
	types as well.

svn path=/trunk/mcs/; revision=115961
2008-10-16 09:54:32 +00:00
Rodrigo Kumpera 5575de87a9 2008-10-15 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (get_simd_vreg): Using sreg1 of OP_XMOVE
    	now works. The issue with the regalloc tripping up no longer
    	happens.

    	* simd-intrinsics.c (load_simd_vreg): Same.

svn path=/trunk/mono/; revision=115948
2008-10-16 02:45:47 +00:00
Rodrigo Kumpera d00fd2cc77 2008-10-15 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Tests for new Vector8ui methods.

svn path=/trunk/mono/; revision=115947
2008-10-16 02:34:33 +00:00
Rodrigo Kumpera 038a0297b9 2008-10-15 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (get_simd_vreg): Simplify code and test
	only for type. This fixes crashes where MonoInst::klass is checked
	for ops of type != VTYPE or OBJ.

	* simd-intrinsics.c (load_simd_vreg): Same.

svn path=/trunk/mono/; revision=115946
2008-10-16 02:34:28 +00:00
Jonathan Pryor a44ad6af84 * time.c: Add Mono_Posix_Syscall_nanosleep().
svn path=/trunk/mono/; revision=115944
2008-10-16 00:52:09 +00:00
Marek Habersack 5ecf20ac0e 2008-10-16 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: IsWritablePropertyOrField doesn't
	use PropertyInfo.CanWrite to check whether the property is
	writable anymore, it calls GetSetMethod (false) instead.

svn path=/trunk/mcs/; revision=115941
2008-10-16 00:04:47 +00:00
Rodrigo Kumpera 24bfd16753 2008-10-15 Rodrigo Kumpera <[email protected]>
* Vector8us.cs: Added Min, Max, Average, ExtractByteMask and
	ShuffleLow/ShuffleHigh.

svn path=/trunk/mcs/; revision=115921
2008-10-15 21:08:55 +00:00
Rodrigo Kumpera 5014a1f2b2 2008-10-15 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Add ops for packed shuffle/max/avg and
	extract mask.

	* cpu-x86.md: Same.

	* mini-x86.c (mono_arch_output_basic_block): Same.

	* simd-intrinsics.c (vector8us_intrinsics): Add avg, shuffle and
	extract mask.

	* simd-intrinsics.c (simd_intrinsic_emit_extract_mask): New function
	to emit extract mask op.

	* simd-intrinsics.c (simd_intrinsic_emit_shuffle): Retrofic this function
	to emit word shuffles.

svn path=/trunk/mono/; revision=115920
2008-10-15 20:52:56 +00:00
Rodrigo Kumpera fbe285b722 2008-10-15 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add packed int max/min/avg/shuffle and extract mask.

svn path=/trunk/mono/; revision=115919
2008-10-15 20:52:54 +00:00
Jonathan Pryor 4f57ed04a9 * configure.in: Add checks for struct flock, struct timespec.
* support/fcntl.c: Use Mono_Posix_{From,To}Flock() for flock conversion.
	* support/Makefile.am: Include <time.h> in map.c.
	* support/map.c, support/map.h: Flush; adds Flock, Timespec support.

svn path=/trunk/mono/; revision=115916
2008-10-15 20:20:57 +00:00
Jonathan Pryor 7c2e41d7ae * Syscall.cs: [Map] Flock, add Timespec, bind nanosleep(2).
* NativeConvert.generated.cs: Flush (Add TryCopy methods for Flock,
	  Timespec).

svn path=/trunk/mcs/; revision=115915
2008-10-15 20:20:23 +00:00
Ivan Zlatev 3253807354 2008-10-15 Ivan N. Zlatev <[email protected]>
* TimerTest.cs: Enabling test case for bug #325033, because it's
	fixed.

svn path=/trunk/mcs/; revision=115912
2008-10-15 20:03:11 +00:00
Ivan Zlatev 01b71e1dfa 2008-10-15 Ivan N. Zlatev <[email protected]>
* XplatUIX11.cs, XplatUICarbon.cs: Do not Timer.Tick before
	MainForm.OnLoad has completed unless DoEvents is forced.
	[Fixes bug #412536]

svn path=/trunk/mcs/; revision=115910
2008-10-15 19:30:21 +00:00
Jb Evain bebf1be05c revert my not so awesome patch
svn path=/trunk/mono/; revision=115907
2008-10-15 18:08:16 +00:00
Ivan Zlatev 9bff8a5b68 2008-10-15 Ivan N. Zlatev <[email protected]>
* StringCollectionEditor.cs: Minor fixes.
	Patch by Andy Hume.

svn path=/trunk/mcs/; revision=115901
2008-10-15 17:48:16 +00:00
Jb Evain 5c6e775b22 2008-10-15 Jb Evain <[email protected]>
* reflection.c (build_compressed_metadata): sort the
	MONO_TABLE_INTERFACEIMPL table as per the standard.


svn path=/trunk/mono/; revision=115875
2008-10-15 15:38:52 +00:00
Jonathan Pobst b9940c2b71 2008-10-15 Jonathan Pobst <[email protected]>
* ToolTip.cs: Ensure that Timer.Internal cannot be set to 0.

svn path=/trunk/mcs/; revision=115873
2008-10-15 15:26:09 +00:00
Jonathan Pobst 3e69ff6e79 2008-10-15 Jonathan Pobst <[email protected]>
* Control.cs: Make our implementation of DrawToBitmap better 
	match WmPaint.  [Fixes bug #435579]

svn path=/trunk/mcs/; revision=115872
2008-10-15 15:03:14 +00:00
Marek Safar 6c205a11b5 Fixed build problem
svn path=/trunk/mcs/; revision=115869
2008-10-15 14:33:47 +00:00
Marek Safar c20307a7b0 2008-10-15 Marek Safar <[email protected]>
* cs-tokenizer.cs, nullable.cs, expression.cs, statement.cs,
	cs-parser.jay: Tokenizer optimizations and memory reduction, saves
	~5MB for corlib.


svn path=/trunk/mcs/; revision=115867
2008-10-15 14:19:21 +00:00
Jb Evain 75454512b7 2008-10-15 Cedric Vivier <[email protected]>
* SymbolWriterImpl.cs: implement `SetMethodSourceRange` using the
	new underlying MonoSymbolWriter's API so that the symbol files
	generated by SRE-using compiler are useful again.


svn path=/trunk/mcs/; revision=115862
2008-10-15 12:43:26 +00:00
Marek Habersack 5b94dd8088 2008-10-15 Marek Habersack <[email protected]>
* HttpResponse.cs: CacheabilityUpdatedEvent is no longer
	used. cached_response is allocated only when the IsCached property
	is assigned the 'true' value. 

	* HttpCachePolicy.cs: CacheabilityUpdatedEvent is no longer used,
	removed all the traces of it. SetCacheability should not switch
	output caching on.

2008-10-15  Marek Habersack  <[email protected]>

	* OutputCacheModule.cs: do not take any action if Response returns
	null from GetCachedResponse.

2008-10-15  Marek Habersack  <[email protected]>

	* Page.cs: Response caching is switched on only when output
	caching is configured for this page instance. Fixes bug #435549.

svn path=/trunk/mcs/; revision=115861
2008-10-15 12:31:16 +00:00
Mark Probst 57f8ec6284 2008-10-15 Mark Probst <[email protected]>
* mini.c (mono_allocate_stack_slots_full): Align stack frame to
	the largest alignment needed by a variable, but at least
	sizeof(gpointer).

svn path=/trunk/mono/; revision=115849
2008-10-15 09:58:20 +00:00
Rodrigo Kumpera 5429389d92 2008-10-14 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Tests for the fixes in the last commit.

svn path=/trunk/mono/; revision=115814
2008-10-14 20:53:12 +00:00
Andreia Gaita d9c4ecdabb * System.Windows.Forms/WebBrowser.cs: Use DocumentElement as the
document's root for the whole content. Should fix DocumentText and
  DocumentStream problems.

svn path=/trunk/mcs/; revision=115809
2008-10-14 19:54:09 +00:00
Rodrigo Kumpera d3b129e3ab 2008-10-14 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (get_simd_vreg): Drop the is_this_ptr, this function
    	no longer handles STACK_PTR input.

    	* simd-intrinsics.c (get_simd_vreg): Don't crash when MonoInst::klass == -1.

    	* simd-intrinsics.c (load_simd_vreg): New function that works like
    	get_simd_vreg 	but handles STACK_PTR input.

    	* simd-intrinsics.c (simd_intrinsic_emit_getter): Use load_simd_vreg
    	as the input can be an arbitrary pointer.

    	* simd-intrinsics.c (simd_intrinsic_emit_ctor): Try the
    	LDADDR local optimization directly otherwise use a store op.

svn path=/trunk/mono/; revision=115808
2008-10-14 19:52:18 +00:00
Jonathan Pobst 0c81639669 2008-10-14 Jonathan Pobst <[email protected]>
* DataGridViewColumnCollection.cs: Remove calls to OnColumnAddedInternal,
	these will get called in DGV.OnCollectionChanged.  Make sure 
	OnCollectionChanged always gets called.
	* DataGridView.cs: Make a OnColumnRemovedInternal that removes the cells
	from every row.  Call this in OnCollectionChanged.
	[Fixes bug #433669]

svn path=/trunk/mcs/; revision=115807
2008-10-14 19:36:57 +00:00
Atsushi Eno 95c594bef0 initial DynamicData checkin. They are almost all stubs.
svn path=/trunk/mcs/; revision=115804
2008-10-14 18:35:28 +00:00
Gert Driesen 19098dd864 * XmlDsigXsltTranformTest.cs: Added test for .ctor (bool).
* XmlDsigEnvelopedTransformTest.cs: Added test for .ctor (bool). Use
Assert class. Improved properties tests.
* XmlDsigC14TransformTest.cs: Added test for .ctor (bool).
* XmlDsigExcC14NTransformTest.cs: Added .ctor tests and added asserts
IncludsiveNamespacesPrefixList
* XmlDsigExcC14NWithCommentsTransformTest.cs: Added basic .ctor and
properties tests.
* XmlDsigC14NWithCommentsTransformTest.cs: Fixed line endings.
* XmlLicenseTransformTest.cs: Added basic .ctor and properties tests.
* XmlDsigBase64Transform.cs: Use constant for Algorithm namespace.
* XmlDsigExcC14NTransform.cs: Fixed ctors to use WithComments
algorithm if includeComments is true. Assign includeNamespacesPrefixList
to instance field.
* XmlDsigExcC14NWithCommentsTransform.cs: Remove unnecessary
assignment to Algorithm now that base ctor is fixed.
* XmlDsigC14NWithCommentsTransform.cs: Remove unnecessary assignment
to Algorithm now that base ctor is fixed.
* XmlDsigC14NTransform.cs: In default ctor, just invoke .ctor (bool).
In .ctor (bool), assign WithComments algorithm if includeComments is
true. Use constants for Algorithm namespace.
* XmlDsigEnvelopedSignatureTransform.cs: Use constant for Algorithm
namespace.
* XmlDsigXPathTransform.cs: Use constant for Algorithm namespace.
* XmlDsigXsltTransform.cs: Use constant for Algorithm namespace.
* XmlLicenseTransform.cs: Assign Algorithm in ctor.
* XmlSignature.cs: Added constant for XmlLicenseTransform algorithm.
* System.Security_test.dll.sources: Added XmlLicenseTransformTest.cs
and XmlDsigExcC14NWithCommentsTransformTest.cs.

svn path=/trunk/mcs/; revision=115803
2008-10-14 18:33:13 +00:00
Atsushi Eno 2b9876326a initial System.ComponentModel.DataAnnotations checkin.
(DynamicData dependency)


svn path=/trunk/mcs/; revision=115802
2008-10-14 18:31:56 +00:00
Gert Driesen e7e623f5ea * ImageListTest.cs: Improved test for ICollection.CopyTo.
svn path=/trunk/mcs/; revision=115801
2008-10-14 18:25:44 +00:00
Jonathan Pryor 8b6c36186b * data/mono-options.pcs.in: We're not installing Mono.Options.dll into
the GAC anymore, we're just concerned `pkg-config --variable=Source` 
	  support.

svn path=/trunk/mono/; revision=115791
2008-10-14 15:38:59 +00:00
Rodrigo Kumpera c5690c3dc0 2008-10-14 Rodrigo Kumpera <[email protected]>
* Vector4f.cs: Added DuplicateLow and DuplicateHigh.

svn path=/trunk/mcs/; revision=115790
2008-10-14 15:38:28 +00:00
Jonathan Pryor 7d7d090005 * Makefile: Don't bother installing Mono.Options.dll into the GAC (or
anywhere else), instead just follow a subset of the App Deployment 
	  Guidelines and install just the source into $prefix/lib/mono-options.

svn path=/trunk/mcs/; revision=115789
2008-10-14 15:37:06 +00:00
Rodrigo Kumpera 2f6b86ed61 2008-10-14 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Tests for dup low and dup high.

svn path=/trunk/mono/; revision=115788
2008-10-14 15:36:25 +00:00
Rodrigo Kumpera 928fb23178 2008-10-14 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Add dup low and dup high ops.

	* cpu-x86.md: Same.

	* mini-x86.c (mono_arch_output_basic_block): Same.

	* simd-intrinsics.c (vector4f_intrinsics): Same.

svn path=/trunk/mono/; revision=115786
2008-10-14 15:02:06 +00:00
Rodrigo Kumpera 791d286ac5 2008-10-14 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add movsldup and movshdup.

svn path=/trunk/mono/; revision=115785
2008-10-14 15:02:05 +00:00
Andreia Gaita 27d8c6cc2c Rewrite of OuterHTML to fix winforms' DocumentText and some minor fixes.
* Mono.WebBrowser2K5.csproj:
* Mono.WebBrowser.dll.sources:
* Mono.Mozilla/interfaces/nsIDocumentEncoder.cs:
* Mono.Mozilla/interfaces/extras/DocumentEncoderFlags.cs:
* Mono.Mozilla/interfaces/nsIDocumentEncoderNodeFixup.cs:
  Added new interfaces to support retrieving node contents (OuterHTML and probably
  others)

* Mono.WebBrowser/Exception.cs: New exception for the
  DocumentEncoder service

* Mono.Mozilla/DOM/HTMLElement.cs: Rewrite OuterHTML,
  looks like the old approach doesn't work on 1.9, but DocumentRange is
  not working properly when I use selectNode directly, so the silliness
  of recreating the current tag's html by going through all the
  properties is ongoing.

* Mono.Mozilla/DOM/Element.cs:
* Mono.Mozilla/DOM/Document.cs:
* Mono.Mozilla/DOM/Node.cs:
* Mono.Mozilla/DOM/HTMLElement.cs: The Node class now
  always stores retrieved unmanaged nodes, regardless of type, and
  child classes only cast from it for easier access.

* Mono.Mozilla/DOM/Node.cs: The Node class now always
  stores retrieved unmanaged nodes, regardless of type, and child
  classes only cast from it for easier access. Added a reference to the
  original unmanaged object prior to proxying (Documentencoder only
  works with non-proxies objects, apparently)

* Mono.Mozilla/DOM/Window.cs: Expose the unmanaged
  window object internally, the selection api needs it.

* Mono.Mozilla/Base.cs:
* Mono.Mozilla/WebBrowser.cs: Get the service manager
  from the proper thread

2008-10-14  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=115783
2008-10-14 14:46:43 +00:00
Marek Safar 2f3db2f36a 2008-10-14 Marek Safar <[email protected]>
* cs-tokenizer.cs: Add bool type to the list of valid cast tokens.


svn path=/trunk/mcs/; revision=115779
2008-10-14 14:22:01 +00:00
Sebastien Pouliot cb61a1b3da 2008-10-14 Sebastien Pouliot <[email protected]>
* XContainer.cs (AddFirst): Avoid stackoverflow (infinite recursion).


svn path=/trunk/mcs/; revision=115774
2008-10-14 13:54:22 +00:00
Marek Safar 1c223cb9b3 New test.
svn path=/trunk/mcs/; revision=115770
2008-10-14 12:33:06 +00:00
Marek Safar 89688faa6f 2008-10-14 Marek Safar <[email protected]>
* statement.cs: Mutate scope initializers.


svn path=/trunk/mcs/; revision=115769
2008-10-14 12:30:17 +00:00
Marek Habersack 071470bef4 2008-10-14 Marek Habersack <[email protected]>
* Control.cs: SaveViewStateRecursive must return view state even
	if EnableViewState is false. This is apparently what .NET does, as
	some commercial ASP.NET controls take advantage of that via
	reflection.

2008-10-14  Marek Habersack  <[email protected]>

	* CompositeDataBoundControl.cs: renamed the itemcount ViewState
	item from "_ItemCount" to "_!ItemCount" for .NET
	compatibility. This item is accessed and used by some commercial
	ASP.NET controls.

	* DataBoundControl.cs: OnPagePreLoad must force databinding also
	when the request is not a postback.

svn path=/trunk/mcs/; revision=115766
2008-10-14 11:36:32 +00:00
Marek Safar 3047748cd1 New test.
svn path=/trunk/mcs/; revision=115765
2008-10-14 11:25:35 +00:00
Marek Safar 7b11ee8233 2008-10-14 Marek Safar <[email protected]>
* expression.cs: Use typeless value for This constant.
	
	* ecore.cs: Access FieldInfo via GetConstructedFieldInfo.


svn path=/trunk/mcs/; revision=115764
2008-10-14 11:25:06 +00:00
Jb Evain b606d5f44b 2008-10-14 Jb Evain <[email protected]>
* Mono.Cecil/SecurityDeclarationReader.cs: protect against
	wrongly formatted security attributes.


svn path=/trunk/mcs/; revision=115758
2008-10-14 10:16:02 +00:00
Marek Safar 75358d90b9 2008-10-14 Marek Safar <[email protected]>
* cs-tokenizer.cs, cs-parser.jay: Unify context sensite keyword
	tokenizer.


svn path=/trunk/mcs/; revision=115753
2008-10-14 08:45:14 +00:00
Carlos Alberto Cortez 8195c117a1 2008-10-13 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: WM_KEYDOWN and WM_KEYUP messages should be sent to the
	textbox if auto complete is used, since we need to navigate over it.
	And in this case don't pass this messages to the base impl. Also hide
	the auto complete list box when displaying the drop down listbox.
	* TextBox.cs: new internal members to expose some of the auto complete
	functionality to combobox.


svn path=/trunk/mcs/; revision=115750
2008-10-14 08:01:06 +00:00
Jonathan Pryor caecb65b54 * data/mono-options.pc.in: Add a Sources variable so that
`pkg-config --variable Sources mono-options` can be used to grab the
	  sources to Mono.Options (useful for embedding).

svn path=/trunk/mono/; revision=115734
2008-10-14 04:17:39 +00:00
Jonathan Pryor 6c4cd51a45 * Makefile: Install Options.cs into the GAC, so that mono-options.pc
can perform source install (as suggeted by App Deployment Guidelines).

svn path=/trunk/mcs/; revision=115733
2008-10-14 04:08:48 +00:00
Jonathan Pryor 8b77cd0348 Oops, forgot to add the ChangeLogs...
svn path=/trunk/mcs/; revision=115732
2008-10-14 04:08:34 +00:00
Jonathan Pryor 0ec8339fff * configure.in: Generate data/mono-options.pc.
* data/Makefile.am: Support mono-options.pc.in and mono-options.pc.
	* data/mono-options.pc.in: Added.

svn path=/trunk/mono/; revision=115729
2008-10-14 02:53:24 +00:00
Jonathan Pryor 3e206c47dd Add Mono.Options, a command-line helper library.
* Makefile (net_2_0_dirs): Add Mono.Options.
	* Mono.Options/ChangeLog: Started.
	* Mono.Options/Makefile: Added; build Mono.Options; do NOT install as 
	  an ABI-stable package.
	* Mono.Options/Mono.Options.dll.sources: Added; sources for 
	  Mono.Options.dll.
	* Mono.Options/Mono.Options_test.dll.sources: Added; Test sources.
	* Mono.Options/Mono.Options/ChangeLog: Started.
	* Mono.Options/Mono.Options/Options.cs: Added; Command line option 
	  parser.  A (renamed) copy of NDesk.Options 0.2.1 (see git repo for 
	* Mono.Options/Test/ChangeLog: Started.
	* Mono.Options/Test/OptionContextTest.cs,
	  Mono.Options/Test/OptionSetTest.cs, Mono.Options/Test/OptionTest.cs,
	  Mono.Options/Test/Utils.cs: Added; unit tests for Mono.Options 0.2.1.
	* Mono.Options/Assembly/ChangeLog: Started.
	* Mono.Options/Assembly/AssemblyInfo.cs: Added; assembly-level 
	  attributes for Mono.Options.dll.

svn path=/trunk/mcs/; revision=115728
2008-10-14 02:50:09 +00:00
Andreia Gaita ade949658b * Mono.WebBrowser/tools/xpidl2cs/xpidl2cs.pl: add option parsing. add
support for choosing a specific interface to process inside an idl
  which defines several interfaces

2008-10-14  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=115715
2008-10-13 23:34:46 +00:00
Rodrigo Kumpera 37dc25ccae 2008-10-13 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Tests for recently added functionality.

svn path=/trunk/mono/; revision=115714
2008-10-13 23:31:55 +00:00
Marek Safar 9b45882487 2008-10-13 Marek Safar <[email protected]>
* cs-tokenizer.cs: Add missing alias qualifier and dotted generic
	type to type cast.


svn path=/trunk/mcs/; revision=115707
2008-10-13 22:42:37 +00:00
Rodrigo Kumpera 551fcb0c12 2008-10-13 Rodrigo Kumpera <[email protected]>
* Vector4f.cs: Added bitwise ops, reciprocal, interleave
	and all flavors of compare.
	Optimized Shuffle.

	* Vector8us.cs: It turns out that packuswb doesn't work with unsigned
	numbers that binary equivalent to negative numbers in signed form.
	Removed PackWithUnsignedSaturation.

	* Vector4ui.cs: Added SSE4.1 comment to relevant method. Removed
	PackWithUnsignedSaturation for the same reason as above.

svn path=/trunk/mcs/; revision=115706
2008-10-13 22:40:20 +00:00
Marek Safar 9d75e373d5 Update.
svn path=/trunk/mcs/; revision=115705
2008-10-13 22:37:45 +00:00
Marek Safar 22798877f9 Add global alias test.
svn path=/trunk/mcs/; revision=115704
2008-10-13 22:33:20 +00:00
Marek Safar f7b6c48d87 2008-10-13 Marek Safar <[email protected]>
* cs-tokenizer.cs: Add missing alias qualifier to type cast.


svn path=/trunk/mcs/; revision=115702
2008-10-13 22:27:43 +00:00
Rodrigo Kumpera 22ee8bfc23 2008-10-13 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Add remaining sse1 fp ops.

	* cpu-x86.md: Add remaining sse1 fp ops.

	* mini-x86.c (mono_arch_output_basic_block): Same.

	* mini.h: Add enum for simd FP compare conditions.

	* simd-intrinsics.c (vector4f_intrinsics): Add all new ops.

	* simd-intrinsics.c (simd_intrinsic_emit_binary): Set inst_c0 to flags
	so the backed can generate the appropriate op.

svn path=/trunk/mono/; revision=115701
2008-10-13 22:13:25 +00:00
Rodrigo Kumpera 2a327c39bf 2008-10-13 Rodrigo Kumpera <[email protected]>
This patch squeese one more byte from the SimdIntrinsc struct.

	* mini-x86.c (mono_arch_cpu_enumerate_simd_versions: Use the version number
	a a shift amount intead of simply or'ing it.

	* mini.h: Change SIMD_VERSION_* values to be sequential intead of masks.

	* simd-intrinsics.c (struct SimdIntrinsc): Squeese simd_version and simd_emit_mode into a single
	byte so we can have an aditional flags field without increasing struct size.

	* simd-intrinsics.c (emit_intrinsics): Use the value of simd_version as a shift amount before checking
	against the simd_supported_versions bitmask.

	* simd-intrinsics.c: Set SIMD_INTRINSIC_NAME_MAX to an appropriate value.

svn path=/trunk/mono/; revision=115700
2008-10-13 22:13:17 +00:00
Rodrigo Kumpera fd69a0b48e 2008-10-13 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add remaining FP sse1 ops.
	Add sse ps encoding with imm operand.
	Add remaining sse1 ops.

svn path=/trunk/mono/; revision=115699
2008-10-13 22:13:15 +00:00
Jonathan Pobst 975befcbf6 2008-10-13 Jonathan Pobst <[email protected]>
* TableLayout.cs: My previous fix broke a test, tweak it a bit.

svn path=/trunk/mcs/; revision=115698
2008-10-13 21:35:27 +00:00
Zoltan Varga 9a535ac873 2008-10-13 Zoltan Varga <[email protected]>
* assembly.c (mono_assembly_open_full): Avoid loading images while holding
	the low level assemblies lock.

svn path=/trunk/mono/; revision=115696
2008-10-13 20:42:56 +00:00
Bill Holmes 815c97080f 2008-10-13 Bill Holmes <[email protected]>
* mono-proclib.c : Adding a compilation check for HAVE_UNISTD_H.

	Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=115694
2008-10-13 20:09:51 +00:00
Bill Holmes d70b913243 2008-10-13 Bill Holmes <[email protected]>
* libmono.vcproj : Removing metadata\rawbuffer.c from the VC project.

	* eglib.vcproj : Adding gdate-win32.c, gdir-win32.c, gfile-posix.c,
	  gfile-win32.c, gmisc-win32.c, and gmodule-win32.c to the VC project.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=115693
2008-10-13 20:06:24 +00:00
Bill Holmes c0ebd68241 2008-10-13 Bill Holmes <[email protected]>
* src/gdate-win32.c : Fix compiler errors for MSVC.

	* src/gpath.c : Fix compiler errors for MSVC.

	* src/gfile-posix.c : Adding declaration for mkstemp for the win 32
	  implementation in gfile-win32.c.

	Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=115692
2008-10-13 20:01:21 +00:00
Miguel de Icaza df28a903e7 Update
svn path=/trunk/mono/; revision=115685
2008-10-13 18:41:21 +00:00
Ivan Zlatev e48044c813 2008-10-13 Ivan N. Zlatev <[email protected]>
* XplatUIX11.cs, XplatUICarbon.cs, Form.cs: Do not Timer.Tick before
	MainForm.OnLoad has completed.
	[Fixes bug #412536]

svn path=/trunk/mcs/; revision=115683
2008-10-13 18:35:30 +00:00
Carlos Alberto Cortez d80b9b39ab 2008-10-13 Carlos Alberto Cortez <[email protected]>
* TextBox.cs: Apply an old-approved patch that adds autocomplete's
	Append support to this controls. We need it to apply new patches.


svn path=/trunk/mcs/; revision=115681
2008-10-13 18:33:21 +00:00
Gert Driesen 04871c3259 Fixed reference to bug number.
svn path=/trunk/mcs/; revision=115678
2008-10-13 18:23:10 +00:00
Marek Safar ad8cae428f New test.
svn path=/trunk/mcs/; revision=115672
2008-10-13 17:05:30 +00:00
Marek Safar b2091f606b 2008-10-13 Marek Safar <[email protected]>
* cs-tokenizer.cs, expression.cs, cs-parser.jay: Reworked parens
	parser and tokenizer. Fixes many ambiguities including #433258.


svn path=/trunk/mcs/; revision=115671
2008-10-13 17:02:36 +00:00
Paolo Molaro bd23e8ade8 Changes to follow PlatformID corlib changes.
svn path=/trunk/mcs/; revision=115659
2008-10-13 15:04:34 +00:00
Paolo Molaro be0a6793d8 Mon Oct 13 16:40:56 CEST 2008 Paolo Molaro <[email protected]>
* Environment.cs, OperatingSystem.cs: complete support for
	PlatformID (bug #433108).


svn path=/trunk/mcs/; revision=115658
2008-10-13 14:45:16 +00:00
Paolo Molaro 49fa2e3e01 Fixed the tests checking for PlatformID.
svn path=/trunk/mcs/; revision=115657
2008-10-13 14:39:59 +00:00
Paolo Molaro 53ecb95a6e Mon Oct 13 16:35:26 CEST 2008 Paolo Molaro <[email protected]>
* domain-internals.h, domain.c, icall.c, image.c, marshal.c,
	object.c, reflection.c, socket-io.c, threads.c: introduced
	mono_framework_version () to return the major framewrok version,
	changed the code that was using more complex patterns to use it.
	Return the correct value for PlatformID for OSX.


svn path=/trunk/mono/; revision=115656
2008-10-13 14:38:55 +00:00
Paolo Molaro 43c05dda29 Mon Oct 13 14:39:52 CEST 2008 Paolo Molaro <[email protected]>
* Process.cs: added icall and implementation of many memory-related
	query methods (bug #434473).


svn path=/trunk/mcs/; revision=115653
2008-10-13 12:42:08 +00:00
Paolo Molaro 1c1d9f7d30 Mon Oct 13 14:38:01 CEST 2008 Paolo Molaro <[email protected]>
* icall-def.h, process.h, process.c: added an icall to get info about
	processes using mono-proclib.


svn path=/trunk/mono/; revision=115652
2008-10-13 12:39:34 +00:00
Paolo Molaro 623b03f8dd Mon Oct 13 14:36:10 CEST 2008 Paolo Molaro <[email protected]>
* mono-proclib.c, mono-proclib.h: added a function to deal with
	error handling if the caller needs the info.


svn path=/trunk/mono/; revision=115651
2008-10-13 12:37:47 +00:00
Marek Habersack 8c1cedc902 2008-10-13 Marek Habersack <[email protected]>
* Table.cs, TableRowCollection.cs, TableRow.cs: render table
	sections when necessary. Fixes bug #434555

svn path=/trunk/mcs/; revision=115649
2008-10-13 11:23:32 +00:00
Paolo Molaro 3ed5537606 Mon Oct 13 11:26:19 CEST 2008 Paolo Molaro <[email protected]>
* configure.in: check for shm_open ().


svn path=/trunk/mono/; revision=115647
2008-10-13 09:27:10 +00:00
Marek Habersack 10ea40ece6 2008-10-13 Marek Habersack <[email protected]>
* HandlerFactoryConfiguration.cs: do not store call-specific data
	in a class field.

svn path=/trunk/mcs/; revision=115645
2008-10-13 09:24:01 +00:00
Paolo Molaro 047e3ebda3 Blind file add.
svn path=/trunk/mono/; revision=115644
2008-10-13 09:19:09 +00:00
Paolo Molaro 561e378a17 Mon Oct 13 11:14:44 CEST 2008 Paolo Molaro <[email protected]>
* mono-perfcounters.c: use the mono-proclib functions to
	access process information.


svn path=/trunk/mono/; revision=115642
2008-10-13 09:16:26 +00:00
Paolo Molaro 87f40b07ce Mon Oct 13 11:11:43 CEST 2008 Paolo Molaro <[email protected]>
* Makefile.am, mono-proclib.c, mono-proclib.h: utility functions to
	access process-related information.


svn path=/trunk/mono/; revision=115641
2008-10-13 09:14:40 +00:00
Paolo Molaro 17e47fa05d Get rid of obsolete files.
svn path=/trunk/mono/; revision=115640
2008-10-13 09:10:31 +00:00
Paolo Molaro 9c465565c7 Mon Oct 13 11:00:49 CEST 2008 Paolo Molaro <[email protected]>
* domain.c, assembly.c, debug-mono-symfile.c, debug-mono-symfile.h,
	monosn.c, Makefile.am, pedump.c, image.c, metadata-internals.h,
	reflection.c: remove rawbuffer usage: mmap support is more sanely
	provided by utils/mono-mmap.


svn path=/trunk/mono/; revision=115639
2008-10-13 09:04:45 +00:00
Paolo Molaro 4539fb1dd2 Mon Oct 13 10:58:10 CEST 2008 Paolo Molaro <[email protected]>
* mini.c: remove rawbuffer code (the only use here is unsafe because
	it takes locks during signal handling and the kernel now provides much
	better info in proc/pid/smaps these days).


svn path=/trunk/mono/; revision=115638
2008-10-13 09:00:23 +00:00
Zoltan Varga 304ee9fbb0 2008-10-13 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Fix the changes to
	OP_X86_PUSH_OBJ. Fixes #434620.

	* objects.cs: Add a test.

svn path=/trunk/mono/; revision=115632
2008-10-13 07:24:36 +00:00
Carlos Alberto Cortez 0c282d5d8f 2008-10-12 Carlos Alberto Cortez <[email protected]>
* Control.cs: When updating z order in child controls, send to back
	the implicit controls. Also, do it explicitly, instead of making
	GetAllControls return the implicit controls in a specific order, and
	thus avoid depending on that, which could change in the future.
	Fixes #434304.


svn path=/trunk/mcs/; revision=115614
2008-10-13 06:01:46 +00:00
Rodrigo Kumpera bad54e0677 2008-10-12 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add macro for sse41 ops.
	Add defined for pack ops, dword shifts/mul/pack.

2008-10-12  Rodrigo Kumpera  <[email protected]>

	* basic-simd.cs: Remove PackWithUnsignedSaturation tests as it turns out
	that the packuswb/packusdw don't work with unsigned numbers for what
	would be negative numbers in signed format.

	* cpu-x86.md: Add doubleword forms of many ops and packing ones.
	Fix the len of fconv_to_r8_x and xconv_r8_to_i4.

	* mini-ops.h: Add doubleword forms of many ops and packing ones.

	* mini-x86.c: Emit doubleword forms of many ops and packing ones.

	* simd-intrinsics.c (SimdIntrinsc): Rename the flags field to simd_version.

	* simd-intrinsics.c (vector4f_intrinsics): Use simd_version field for sse3 ops.

	* simd-intrinsics.c (vector4u_intrinsics): Rename to vector4ui_intrinsics and
	add more ops.

	* simd-intrinsics.c (simd_version_name): New function, returns the name of the
	version as the enum in mini.h.

	* simd-intrinsics.c (emit_intrinsics): Instead of having a special emit mode
	for sse3 ops, check the simd_version field if present. This way the code
	works with all versions of sse.

svn path=/trunk/mono/; revision=115610
2008-10-13 01:13:10 +00:00
Rodrigo Kumpera 0e5ab50ff4 Added changelog
svn path=/trunk/mono/; revision=115599
2008-10-12 21:00:25 +00:00
Miguel de Icaza e4c35f9099 Reformat
svn path=/trunk/mono/; revision=115590
2008-10-12 18:48:20 +00:00
Sebastien Pouliot 37ca67bcf5 Mono.Cecil.Cil/SymbolStoreHelper.cs: Change two static readonly fields to const.
svn path=/trunk/mcs/; revision=115572
2008-10-12 15:55:18 +00:00
Sebastien Pouliot dcb051c81a 2008-10-12 Sebastien Pouliot <[email protected]>
* EnvelopedCms.cs, SignedCms.cs: Remove unneeded field 
	initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115569
2008-10-12 15:05:08 +00:00
Sebastien Pouliot aef5ecbb98 2008-10-12 Sebastien Pouliot <[email protected]>
* EncryptedReference.cs, EncryptedType.cs: Remove unneeded field
	initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115568
2008-10-12 15:03:58 +00:00
Sebastien Pouliot 2e14e0c6c1 2008-10-12 Sebastien Pouliot <[email protected]>
* DataProtectionPermissionAttribute.cs, DataProtectionPermission.cs:
	Remove unneeded field initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115567
2008-10-12 15:02:52 +00:00
Sebastien Pouliot 144ccc1623 2008-10-12 Sebastien Pouliot <[email protected]>
* ColorPalette.cs, ImageFormat.cs: Remove unneeded field 
	initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115566
2008-10-12 14:52:16 +00:00
Sebastien Pouliot 6f720f0e3f 2008-10-12 Sebastien Pouliot <[email protected]>
* PaperSize.cs, PreviewPrintController.cs, PrinterSettings.cs,
	PrintingPermissionAttribute.cs, PrintingPermission.cs: Remove unneeded
	field initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115565
2008-10-12 14:48:17 +00:00
Atsushi Eno 338ec0c526 2008-10-12 Atsushi Enomoto <[email protected]>
* mono.1 : svn.myrealbox -> anonsvn.mono-project .


svn path=/trunk/mono/; revision=115564
2008-10-12 14:04:59 +00:00
Zoltan Varga ed60685813 2008-10-12 Zoltan Varga <[email protected]>
* BinaryReaderTest.cs: Add a test for #434581.

svn path=/trunk/mcs/; revision=115561
2008-10-12 10:46:05 +00:00
Zoltan Varga 61c51fe227 2008-10-12 Zoltan Varga <[email protected]>
* BinaryReader.cs (Read7BitEncodedInt): Check for an invalid encoding.
	Fixes #434581.

svn path=/trunk/mcs/; revision=115560
2008-10-12 10:45:11 +00:00
Massimiliano Mantione ef03d239ee Added "aci" option to emit the object "id" at each allocation.
svn path=/trunk/mono/; revision=115557
2008-10-12 10:19:36 +00:00
Zoltan Varga 65aa574677 2008-10-12 Zoltan Varga <[email protected]>
* configure.in: Only process Makefiles with patch-quiet.sh which have a 
	corresponding Makefile.in.

svn path=/trunk/mono/; revision=115555
2008-10-12 09:53:52 +00:00
Zoltan Varga d8f48342d4 Fix a typo.
svn path=/trunk/mono/; revision=115554
2008-10-12 08:23:33 +00:00
Gert Driesen a8ad1768dc * HttpResponse.cs: Simplify code for outputting ASP.NET version, as
version header cannot be configured. MS corrected this documenation
error in .NET 2.0 SDK.
* HttpRuntimeConfig.cs: Added support for several undocumented options,
and removed support for options that are not supported or 2.0 only.
* HttpRuntimeConfigurationHandler.cs: Added support for several
undocumented options, and removed support for options that are not
support or 2.0 only.

svn path=/trunk/mcs/; revision=115553
2008-10-12 07:56:44 +00:00
Carlos Alberto Cortez 08bc6783a4 2008-10-11 Carlos Alberto Cortez <[email protected]>
* X11Dnd.cs: Try to call Application.DoEvents before returning in a
	call to StartDrag, since we must fire DragDrop/DragLeave *before*
	that, as .net does - instead of firing DragDrop/DragLeave *after* the
	call to Control.DoDragDrop has completed. This is needed since at the
	point of returning, we have sent related dnd ClientMessages, but we
	need to wait for them to fire the wmf respective ones.
	Fixes #325076.


svn path=/trunk/mcs/; revision=115542
2008-10-11 22:53:31 +00:00
Sebastien Pouliot e6fab5bf89 Mono.Cecil/ConstructorCollection.cs: Fix a NRE if a null parameter is provided to one of the GetConstructor overloads.
svn path=/trunk/mcs/; revision=115539
2008-10-11 18:15:19 +00:00
Paolo Molaro f5a06fd7d7 Sat Oct 11 19:46:19 CEST 2008 Paolo Molaro <[email protected]>
* gc.c: use posix semaphores when possible so that
	mono_gc_finalize_notify() is signal safe.


svn path=/trunk/mono/; revision=115538
2008-10-11 17:48:10 +00:00
Zoltan Varga 62992b8397 2008-10-11 Zoltan Varga <[email protected]>
* reflection.c: Implement DISABLE_REFLECTION_EMIT, remove some
	#ifdef DISABLE_REFLECTION_SAVE stuff, only the exported functions need to
	be #ifdef-ed out, the linker will remove the rest.

svn path=/trunk/mono/; revision=115524
2008-10-11 15:02:11 +00:00
Zoltan Varga f15b460bb8 2008-10-11 Zoltan Varga <[email protected]>
* configure.in: Make --enable-minimal=reflection_emit turn on
	==enable-minimal=reflection_emit_save too.

svn path=/trunk/mono/; revision=115522
2008-10-11 13:40:37 +00:00
Zoltan Varga 9e00044f08 2008-10-11 Zoltan Varga <[email protected]>
* marshal.c: Implement DISABLE_COM.

svn path=/trunk/mono/; revision=115519
2008-10-11 12:41:34 +00:00
Zoltan Varga 0fb1b7abad 2008-10-11 Zoltan Varga <[email protected]>
* reflection.c: Implement DISABLE_REFLECTION_EMIT_SAVE.

svn path=/trunk/mono/; revision=115515
2008-10-11 09:18:26 +00:00
Zoltan Varga acdf04c0ab 2008-10-11 Zoltan Varga <[email protected]>
* README: Add docs for the option.

svn path=/trunk/mono/; revision=115514
2008-10-11 09:17:38 +00:00
Zoltan Varga b088dcf4b2 2008-10-11 Zoltan Varga <[email protected]>
* configure.in: Add --enable-minimal=reflection_emit_save option.

svn path=/trunk/mono/; revision=115513
2008-10-11 09:16:22 +00:00
Zoltan Varga d87e651623 2008-10-11 Zoltan Varga <[email protected]>
* TimerTest.cs (TestChange): Modify a constant to avoid a random assert.

svn path=/trunk/mcs/; revision=115511
2008-10-11 08:15:42 +00:00
Zoltan Varga b28bfcf5be 2008-10-11 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h (amd64_jump_code_size): Fix the 64 bit support.

svn path=/trunk/mono/; revision=115509
2008-10-11 05:26:06 +00:00
Miguel de Icaza 65468b7637 2008-10-11 Miguel de Icaza <[email protected]>
* locales.c (string_invariant_compare_char): Optimization: do not
	call g_unichar_type unless we actually need the information.

svn path=/trunk/mono/; revision=115508
2008-10-11 05:06:19 +00:00
Miguel de Icaza 653242de6a 2008-10-11 Miguel de Icaza <[email protected]>
* src/glib.h: Move g_strdup here, to consolidate all allocations
	in this header, will help for merging the allocation work later. 

svn path=/trunk/mono/; revision=115507
2008-10-11 04:56:59 +00:00
Miguel de Icaza b1f9f3b723 2008-10-11 Miguel de Icaza <[email protected]>
* src/gpattern.c (compile_pattern): From Unity, use -1 in the enum
	for MatchType.

svn path=/trunk/mono/; revision=115506
2008-10-11 04:50:57 +00:00
Miguel de Icaza e01e441539 2008-10-11 Miguel de Icaza <[email protected]>
* src/gpath.c: Split this one as well.

svn path=/trunk/mono/; revision=115505
2008-10-11 04:47:44 +00:00
Miguel de Icaza cac3270953 2008-10-11 Miguel de Icaza <[email protected]>
* src/gmodule-win32.c, src/gmisc-unix.c, src/gmisc-win32.c,
	src/gmodule-unix.c: split functionality in platforms.
	
	* src/goutput.c (g_logv): On some platforms, before we abort we
	want to flush the stdout/stderr.

svn path=/trunk/mono/; revision=115504
2008-10-11 04:28:32 +00:00
Miguel de Icaza 437c91bb10 2008-10-10 Miguel de Icaza <[email protected]>
* Split functionality that is operating system specific into
	-win32.c, -unix.c and -posix.c 

	* Use g_malloc everywhere, and g_free, so that these can be easily
	overwritten consistently.


svn path=/trunk/mono/; revision=115497
2008-10-10 22:47:47 +00:00
Zoltan Varga 99b046e7ca 2008-10-10 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline_full): Increase
	the max length to 64.

svn path=/trunk/mono/; revision=115495
2008-10-10 21:57:47 +00:00
Zoltan Varga b8d29d72a7 2008-10-10 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h (amd64_jump_code_size): Handle non 32-bit targets.

svn path=/trunk/mono/; revision=115494
2008-10-10 21:55:37 +00:00
Mark Probst 93f2a87d98 2008-10-10 Mark Probst <[email protected]>
* object.c, class-internals.h: Also create remoting trampolines
	for generic methods.  Pass the domain to the remoting trampoline
	creation function, too.

2008-10-10  Mark Probst  <[email protected]>

	* method-to-ir.c: Only do the fast virtual generic method call for
	non-wrapper methods.

	* mini.h, mini-trampolines.c: The new generic virtual remoting
	trampoline handles virtual method calls via the vtable (as done by
	the fast virtual generic method calls) to remoting proxies.

	* mini.c (mono_jit_create_remoting_trampoline): For generic
	methods reate a generic virtual remoting trampoline.

	* mini-amd64.h: Enable fast virtual generic method calls again.

svn path=/trunk/mono/; revision=115493
2008-10-10 21:36:34 +00:00
Rodrigo Kumpera a4c92f20fd 2008-10-10 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c: Fixed intrinsic name typo.

   	* mini.h: Added missing simd exported function.

	* basic-simd.cs: Added tests for Vector4ui.
	Fixed broken test for Vector16b.

svn path=/trunk/mono/; revision=115484
2008-10-10 20:17:51 +00:00
Rodrigo Kumpera 3b4e35bd07 2008-10-10 Rodrigo Kumpera <[email protected]>
* Vector4ui.cs: Added common operations found in
	other unsigned int vector types.

	* Vector8us.cs (ShiftRightArithmetic): Do proper sign extention.

	* Vector8us.cs: Fix conversion operators.

	* Vector16b.cs (ShiftRightArithmetic): Do proper sign extention.

	* Vector16b.cs: Fix conversion operators.

svn path=/trunk/mcs/; revision=115482
2008-10-10 20:01:03 +00:00
Zoltan Varga 80aa96eda1 2008-10-10 Zoltan Varga <[email protected]>
* class.c (mono_class_init): Fix+re-enable the finalize optimization.

svn path=/trunk/mono/; revision=115477
2008-10-10 18:37:13 +00:00
Zoltan Varga b8d9e16060 2008-10-10 Zoltan Varga <[email protected]>
* AssemblyTest.cs (LoadWithPartialName): Fix this test after the
	'default' -> 'net_1_1' profile change.

svn path=/trunk/mcs/; revision=115476
2008-10-10 18:28:49 +00:00
Zoltan Varga 8d5ec767bf Revert r115184 as it seems to break the moon build.
svn path=/trunk/mono/; revision=115475
2008-10-10 18:25:56 +00:00
Zoltan Varga 05c1354871 2008-10-10 Zoltan Varga <[email protected]>
* */Makefile.am: Use 'net_1_1' instead of 'default'.

svn path=/trunk/mono/; revision=115473
2008-10-10 18:13:00 +00:00
Mark Probst 8179392f5a 2008-10-10 Mark Probst <[email protected]>
* mini-ppc.c: Use SP (r1), not frame_reg (which might be r31) to
	restore registers when doing tail calls.

svn path=/trunk/mono/; revision=115472
2008-10-10 18:05:46 +00:00
Rodrigo Kumpera 4640abd7c2 Author: Rodrigo Kumpera <[email protected]>
Date:   Fri Oct 10 13:56:18 2008 -0300

    2008-10-10  Rodrigo Kumpera  <[email protected]>

    	* class.c (mono_class_create_from_typedef): Vector4u was renamed to
    	Vector4ui.

    2008-10-10  Rodrigo Kumpera  <[email protected]>

    	* simd-intrinsics.c (emit_intrinsics): Vector4u was renamed to
    	Vector4ui.

svn path=/trunk/mono/; revision=115466
2008-10-10 17:05:57 +00:00
Rodrigo Kumpera d4f52528be Author: Rodrigo Kumpera <[email protected]>
Date:   Fri Oct 10 13:40:28 2008 -0300

    2008-10-10  Rodrigo Kumpera  <[email protected]>

    	* Vector16b.cs, Vector4f.cs, Vector4ui.cs,Vector8us.cs:
    	Type renaming adjustments.

    2008-10-10  Rodrigo Kumpera  <[email protected]>

    	* Mono.Simd.dll.sources: Type renaming adjustments.

svn path=/trunk/mcs/; revision=115465
2008-10-10 16:49:16 +00:00
Rodrigo Kumpera c16b8b41d8 2008-10-10 Rodrigo Kumpera <[email protected]>
* Vector4u.cs: Renamed to Vector4ui.cs.

svn path=/trunk/mcs/; revision=115463
2008-10-10 16:33:30 +00:00
Gonzalo Paniagua Javier 9afb15d0be 2008-10-10 Gonzalo Paniagua Javier <[email protected]>
* versioninfo.c: remove the use of g_strdown.


svn path=/trunk/mono/; revision=115458
2008-10-10 15:51:13 +00:00
Gonzalo Paniagua Javier 30e6ae5c03 2008-10-10 Gonzalo Paniagua Javier <[email protected]>
* assembly.c:
	* locales.c: remove the use of g_strdown. Fixes bug #322313.


svn path=/trunk/mono/; revision=115457
2008-10-10 15:50:25 +00:00
Rodrigo Kumpera 6a87d65193 2008-10-10 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Add test for Vecto16b.PackWithUnsignedSaturation.

svn path=/trunk/mono/; revision=115455
2008-10-10 15:41:14 +00:00
Rodrigo Kumpera 7c3544bd2d 2008-10-10 Rodrigo Kumpera <[email protected]>
* Vector8us.cs: Use Math.Min/Max instead of ?:.
    	Fixed PackWithUnsignedSaturation.

    	* Vector16b.cs: Use Math.Min/Max instead of ?:.
    	Removed unused PackWithUnsignedSaturation.

svn path=/trunk/mcs/; revision=115453
2008-10-10 15:16:39 +00:00
Paolo Molaro 4adfaadd1d Fri Oct 10 17:01:42 CEST 2008 Paolo Molaro <[email protected]>
* assembly.c: in mono_assembly_load_friends() take the assemblies lock
	for the least possible amount of time (extending the fix in r113458).


svn path=/trunk/mono/; revision=115451
2008-10-10 15:04:49 +00:00
Massimiliano Mantione e4910dd41d Document the new "sas" option.
svn path=/trunk/mono/; revision=115449
2008-10-10 15:01:47 +00:00
Massimiliano Mantione b8be278663 Added support for handling the stack trace of each allocation event.
svn path=/trunk/mono/; revision=115444
2008-10-10 14:47:34 +00:00
Rodrigo Kumpera 24da25279c 2008-10-10 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_create_from_typedef): Retrofit to new type names.

2008-10-10  Rodrigo Kumpera  <[email protected]>

	* simd-intrinsics.c (emit_intrinsics): Retrofit to new type names.

svn path=/trunk/mono/; revision=115443
2008-10-10 14:46:20 +00:00
Rodrigo Kumpera 3a473c56f9 2008-10-10 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Retrofit for API changes.

svn path=/trunk/mono/; revision=115440
2008-10-10 14:28:53 +00:00
Rodrigo Kumpera c485ecccd0 Author: Rodrigo Kumpera <[email protected]>
Date:   Fri Oct 10 10:44:48 2008 -0300

    Initial versions of Vector16b and Vector8us

svn path=/trunk/mcs/; revision=115438
2008-10-10 14:24:02 +00:00
Marek Safar 5df76beb7f New test.
svn path=/trunk/mcs/; revision=115437
2008-10-10 14:21:15 +00:00
Marek Safar f0fd85c7ed 2008-10-10 Marek Safar <[email protected]>
* cs-parser.jay: Fixed missing accessor recovery.


svn path=/trunk/mcs/; revision=115436
2008-10-10 14:21:05 +00:00
Mark Probst fc3c850eea 2008-10-10 Mark Probst <[email protected]>
* mini-ppc.c: Handle integer stack arguments for tail calls.

svn path=/trunk/mono/; revision=115431
2008-10-10 14:19:02 +00:00
Rodrigo Kumpera 7499cba16c 2008-10-10 Rodrigo Kumpera <[email protected]>
* optflags-def.h: Removed sse3 optimization.

    	* driver.c: Same.

    	* mini-x86.c (mono_arch_cpu_optimizazions): Remove detection of
    	sse3.

    	* mini-x86.c: Added mono_arch_cpu_enumerate_simd_versions.

    	* mini.h: Added enumeration with simd versions.

    	* simd-intrinsics.c (emit_intrinsics): Use the new static var
    	for detecting SSE3.

    	* simd-intrinsics.c: Added mono_simd_intrinsics_init.

    	* mini.c (mini_init): Call mono_simd_intrinsics_init.

svn path=/trunk/mono/; revision=115428
2008-10-10 13:07:21 +00:00
Atsushi Eno 3a1215a94b 2008-10-10 Atsushi Enomoto <[email protected]>
* data/net_2_0/web.config: add UrlRouting.axd handler (forbidden).


svn path=/trunk/mono/; revision=115427
2008-10-10 11:46:57 +00:00
Marek Safar 163ebf3995 Update.
svn path=/trunk/mcs/; revision=115426
2008-10-10 11:36:29 +00:00
Marek Safar 093cca0e8b 2008-10-10 Marek Safar <[email protected]>
A fix for bug #433701
	* expression.cs: Better error message.


svn path=/trunk/mcs/; revision=115425
2008-10-10 11:36:20 +00:00
Atsushi Eno 8cb21562bb 2008-10-10 Atsushi Enomoto <[email protected]>
* UrlRoutingModule.cs : implement PostMapRequestHandler() and 
	  PostResolveRequestCache() to work correctly in order.
	  Now it should practically work.

	* UrlRoutingModuleTest.cs , TestStubTypes.cs : added test for
	  pipeline processing of requests.


svn path=/trunk/mcs/; revision=115424
2008-10-10 11:34:01 +00:00
Marek Safar bf7f5d0e15 Updated.
svn path=/trunk/mono/; revision=115423
2008-10-10 11:23:35 +00:00
Marek Safar 5bf59cd7ee The default is now 4
svn path=/trunk/mcs/; revision=115422
2008-10-10 11:06:21 +00:00
Marek Safar 1c21e088c1 2008-10-10 Marek Safar <[email protected]>
* cs-parser.jay, expression.cs: Start reporting real parser errors.
	
	* Makefile: Disabled unused debug symbols.

	Also fixes: #320556, #321097, #321656, #321876, #351316


svn path=/trunk/mcs/; revision=115421
2008-10-10 11:02:53 +00:00
Marek Safar c04c40760d New tests, update.
svn path=/trunk/mcs/; revision=115420
2008-10-10 10:55:11 +00:00
Marek Habersack 5bc1fc2fe1 2008-10-10 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: allow whitespace around parentheses 
	in the Bind and Eval expressions.

svn path=/trunk/mcs/; revision=115402
2008-10-10 00:15:16 +00:00
Rodrigo Kumpera 2e11c8d6a8 Author: Rodrigo Kumpera <[email protected]>
Date:   Thu Oct 9 18:10:57 2008 -0300

    	* basic-simd.cs: Added tests for Vector8u and Vector16u.

    	* basic-simd.cs: Fixed test naming.

svn path=/trunk/mono/; revision=115398
2008-10-09 21:55:04 +00:00
Rodrigo Kumpera f82b72d825 2008-10-09 Rodrigo Kumpera <[email protected]>
* mini-ops.h: Added ops for packed and saturated math, shifts
    	and packing/unpacking.

    	* cpu-x86.md: Added descriptors for the above ops.

    	* mini-x86.c: Added code to emmit the above ops.

    	* simd-intrinsics.c: Added support for Vector16u and Vector8u.

svn path=/trunk/mono/; revision=115384
2008-10-09 20:12:02 +00:00
Rodrigo Kumpera 6de2b94648 2008-10-09 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_create_from_typedef): Added Vector8u and Vector16u
	as possible simd intrinsic types.
	Optimized the test to check for the common prefix first.

svn path=/trunk/mono/; revision=115368
2008-10-09 18:28:18 +00:00
Rodrigo Kumpera c045424bce 2008-10-09 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add macros for sse shift, pack, unpack,
	saturated math and packed byte/word/dword math.

svn path=/trunk/mono/; revision=115367
2008-10-09 18:28:16 +00:00
Atsushi Eno 3d0520e5eb 2008-10-09 Atsushi Enomoto <[email protected]>
* LinqDataSource.cs : implement ContextType/ContextTypeName.
	* LinqDataSourceView.cs : some ExecuteSelect() implementation.
	  Cache type members which are from reflection.


svn path=/trunk/mcs/; revision=115363
2008-10-09 17:37:35 +00:00
Atsushi Eno c738fe6cac 2008-10-09 Atsushi Enomoto <[email protected]>
* Makefile: add System.Web.Abstractions and System.Web.Routing.


svn path=/trunk/mcs/; revision=115362
2008-10-09 17:32:22 +00:00
Miguel de Icaza 955837e1cd 2008-10-09 Miguel de Icaza <[email protected]>
* eval.cs: rename "<interactive>" to "{interactive}", to work
	around a requirement in the compiler that this be a valid
	filename, and in Windows it is not (433886).

svn path=/trunk/mcs/; revision=115360
2008-10-09 17:04:55 +00:00
Gonzalo Paniagua Javier 21228475c3 2008-10-09 Gonzalo Paniagua Javier <[email protected]>
* web.config: default values for httpRuntime are different in 2.0


svn path=/trunk/mono/; revision=115357
2008-10-09 16:55:17 +00:00
Paolo Molaro 27c75551ac Test case for bug#433908.
svn path=/trunk/mono/; revision=115350
2008-10-09 15:50:25 +00:00
Paolo Molaro 205b920cfb Thu Oct 9 17:38:24 CEST 2008 Paolo Molaro <[email protected]>
* class.c: back out part of a broken optimization committed on
	March 23th (bug #433908).


svn path=/trunk/mono/; revision=115349
2008-10-09 15:40:01 +00:00
Everaldo Canuto bd17a3aec2 2008-10-09 Everaldo Canuto <[email protected]>
* LinkLabel.cs: Recreate link pieces when change Padding.

svn path=/trunk/mcs/; revision=115348
2008-10-09 15:37:21 +00:00
Everaldo Canuto 062841d804 In Default:
2008-10-09  Everaldo Canuto  <[email protected]>

	* LinkLabelPainter.cs: Take Padding into account when drawing the linklabel
	text.


svn path=/trunk/mcs/; revision=115347
2008-10-09 15:34:49 +00:00
Everaldo Canuto 9ac302575b In System.Windows.Forms:
2008-10-09  Everaldo Canuto  <[email protected]>

	* LinkLabel.cs: Take Padding into account when recreate link pieces.


svn path=/trunk/mcs/; revision=115346
2008-10-09 15:32:53 +00:00
Marek Habersack 921ce34c44 2008-10-09 Marek Habersack <[email protected]>
* web.config: added the default monoSettings section which works around
	an incompatibility between mcs and csc, mentioned in bug #433806

	* machine.config: added definition of the monoSettings section to 
	the system.web group

svn path=/trunk/mono/; revision=115338
2008-10-09 14:46:50 +00:00
Marek Habersack 1923115250 2008-10-09 Marek Habersack <[email protected]>
* MonoSettingsSection.cs: added - a section for mono-specific
	settings.

2008-10-09  Marek Habersack  <[email protected]>

	* BuildManager.cs: if monoSettings section is found in the
	system.web section in web.config, use its contents to augment
	compiler configuration. Used to work around the issue reported in
	bug #433806

2008-10-09  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added System.Web.Configuration_2.0/MonoSettingsSection.cs

svn path=/trunk/mcs/; revision=115337
2008-10-09 14:45:06 +00:00
Jb Evain cd85f78fe7 another attempt at fixing the build
svn path=/trunk/mcs/; revision=115335
2008-10-09 14:23:30 +00:00
Everaldo Canuto 233acbb014 In .:
2008-10-08  Everaldo Canuto  <[email protected]>

	* LabelPainter.cs: Use control.PaddingClientRectangle instead of calculate
	rectangle with padding. Also break some lines that theres more than 120
	characters.

2008-09-24  Jonathan Pobst  <[email protected]>

	* TabControlPainter.cs: Add 1 pixel to the tab text rectangle
	to keep the text from getting cut off on XP.
	[Fixes bug #428116]

2008-09-16  Jonathan Pobst  <[email protected]>

	* TabControlPainter.cs: Hook tab painting into ShowFocusCues.

2008-07-31  George Giolfan  <[email protected]>

	* TabControlPainter.cs: Added DrawScrollButton, GetButtonState.

2008-06-09  Carlos Alberto Cortez <[email protected]>

	* TabControlPainter.cs: When calculating the display rectangle for
	TabPage elements, don't include TabControlSelectedDelta.Y as part of
	the page height, since it is only added ad the end (this is the way
	it's done in TabControl). This way having a lot of pages with
	Multiline as true doesn't add much extra space between the tab pages
	labels and the actual tab pages area.
	Fixes #393912.

2008-05-21  George Giolfan <[email protected]>

	* TabControlPainter.cs: Added HasHotElementStyles.

2008-05-19  George Giolfan <[email protected]>

	* TabControlPainter.cs: Refactored: Extracted DrawBackground.

2008-05-16  Carlos Alberto Cortez <[email protected]>

	* TabControlPainter.cs: Use HotPrefix.Show as the value of
	StringFormat.HotPrefix when drawing the tab text.
	Fixes #355193.

2008-05-16  Carlos Alberto Cortez <[email protected]>

	* TabControlPainter.cs: Use StringAlignment.Near as the value for
	StringFormat.Alignment when drawing the tab text.
	Fixes part of #352399.

2008-02-25  Jonathan Pobst  <[email protected]>

	* LabelPainter.cs: Take Padding into account when drawing
	the label text.

2008-01-23  Everaldo Canuto  <[email protected]>

	* LabelPainter.cs: Added.

2008-01-22  Everaldo Canuto  <[email protected]>

	* LinkLabelPainter.cs: Change Draw method to virtual.

2008-01-22  Everaldo Canuto  <[email protected]>

	* LinkLabelPainter.cs: Added.

2007-09-04  Everaldo Canuto  <[email protected]>

	* CheckBoxPainter.cs: Adjust checkbox light color to ControlLightLight to
	mimic win32 look. Fixes #82656 (2.0).

2007-08-28  Jonathan Pobst  <[email protected]>

	* RadioButtonPainter.cs: Added.

2007-08-22  Jonathan Pobst  <[email protected]>

	* CheckBoxPainter.cs: Added.

2007-08-19  Everaldo Canuto  <[email protected]>

	* TabControlPainter.cs: Fix regression in default padding x.

2007-08-19  Everaldo Canuto  <[email protected]>

	* TabControlPainter.cs: Fix border thickness, padding and tab text format to 
	be horizontal centralized. Fixes #82471.

2007-08-18  Everaldo Canuto  <[email protected]>

	* TabControlPainter.cs: Remove one vertical pixel from tab drawing, the 
	bottom line was one pixel more than needed.

2007-07-26  Everaldo Canuto  <[email protected]>

	* TabControlPainter.cs: Adjust vertical image position on tab. Fixes #81837.

2007-07-26  Everaldo Canuto  <[email protected]>

	* TabControlPainter.cs: Uses str_rect to draw text since it take in account
	the image size. Fixes #81836.

2007-07-20  Jonathan Pobst  <[email protected]>

	* ToolStripPainter.cs: Patch from Rolf.  We weren't painting a
	Checked button as sunken.  [Fixes bug #82151]

2007-07-16  Jonathan Pobst  <[email protected]>

	* ButtonPainter.cs: For flat buttons, draw mouse highlight when
	button is focused.  Remove random extra rectangle.

2007-07-16  Jonathan Pobst  <[email protected]>

	* ButtonPainter.cs: For Flat button, if no mouse over / press
	backcolor is specified, calculate one from the normal backcolor.

2007-07-12  Jonathan Pobst  <[email protected]>

	* ButtonPainter.cs: For Flat button, if BorderSize is 0, don't
	draw the rectangle.  Setting the pen's width to 1 isn't good
	enough, it still draws the border.  [Fixes bug #82081]

2007-07-03  Jonathan Pobst  <[email protected]>

	* ToolStripPainter.cs: Added. This is where we paint toolstrips
	using the ToolStripSystemRenderer.

2007-05-04  Andreia Gaita  <[email protected]>

	* TabControlPainter.cs: Use ControlPaint static methods
	instead of ThemeEngine ones (seeing as they're there and
	all :p )

2007-04-15  Andreia Gaita  <[email protected]>

	* ButtonPainter.cs: refactoring of the button drawing
	that was originally located in ThemeElementsDefault
	
	* TabControlPainter.cs: refactoring of the tabcontrol
	drawing code originally located in the ThemeWin32Classic.
	Also, fixes and changes:
		- replaced most hardcoded values with properties to 
		make it easier to customize implementations.
		- fixed left and right alignment drawing problems
		- fixed flatbutton border drawing on left and
		right alignment
		- fixed #79619
		- fixed paddings, spacings and positioning.

	

svn path=/trunk/mcs/; revision=115333
2008-10-09 14:04:07 +00:00
Everaldo Canuto d9099562ae In System.Windows.Forms:
2008-10-08  Everaldo Canuto  <[email protected]>

	* Control.cs: Implement internal property PaddingClientRectangle, it will be
	useful for drawing controls that must take care about Padding property.


svn path=/trunk/mcs/; revision=115332
2008-10-09 13:25:45 +00:00
Jb Evain 3838b45730 try fixing the build
svn path=/trunk/mcs/; revision=115331
2008-10-09 13:07:33 +00:00
Mark Probst 274cbff95a 2008-10-09 Mark Probst <[email protected]>
* profiler.c (simple_shutdown): Don't call mono_thread_attach() on
	Win32.  Should fix #432388 for most cases until we have the new
	profiler on Win32.

svn path=/trunk/mono/; revision=115330
2008-10-09 12:09:46 +00:00
Marek Habersack e7f4c49538 2008-10-09 Marek Habersack <[email protected]>
* CompilerCollection.cs: use all the compiler information from
	config file when adding new CompilerInfo. Fixes bug #433802

svn path=/trunk/mcs/; revision=115329
2008-10-09 11:51:09 +00:00
Marek Habersack 4e78b2f2ff 2008-10-09 Marek Habersack <[email protected]>
* WebTest.cs: made the Host property internal. It is used to
	access the host's application domain when necessary in some
	tests.

	* MyTemplateControls.cs: added

2008-10-09  Marek Habersack  <[email protected]>

	* NunitWebResources/TemplateControlParsingTest.aspx: added

2008-10-09  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: compile the file on 1.1 as well.
	Added a test for template parsing in compound controls.

svn path=/trunk/mcs/; revision=115324
2008-10-09 10:24:45 +00:00
Marek Safar 9c51479719 2008-10-09 Marek Safar <[email protected]>
* cs-tokenizer.cs, cs-parser.jay: Fixed more subtle parser problems


svn path=/trunk/mcs/; revision=115323
2008-10-09 10:20:22 +00:00
Ankit Jain c9b98757af In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* CreateItem.cs (Execute): Implement.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* CreateItemTest.cs (TestExcludeAndCondition): New. NotWorking.

svn path=/trunk/mcs/; revision=115316
2008-10-09 09:12:13 +00:00
Zoltan Varga 574c089f79 2008-10-09 Zoltan Varga <[email protected]>
* Makefile (DIST_ONLY_SUBDIRS): Add csharplib.

svn path=/trunk/mcs/; revision=115313
2008-10-09 08:21:58 +00:00
Zoltan Varga a1531dd064 2008-10-09 Zoltan Varga <[email protected]>
* RegexBugs.cs: Add test for #432172.

svn path=/trunk/mcs/; revision=115312
2008-10-09 08:00:46 +00:00
Zoltan Varga 51f5de6c95 2008-10-09 Zoltan Varga <[email protected]>
* CILCompiler.cs: Implement NoBitmap/NoBitmapIgnoreCase. Fixes #432172.

svn path=/trunk/mcs/; revision=115310
2008-10-09 07:48:52 +00:00
Gonzalo Paniagua Javier dc319cf57f 2008-10-09 Gonzalo Paniagua Javier <[email protected]>
* OdbcDataReader.cs: apply patch from Steve ? that fixes bug #433741.
	GetBytes() was returning only the last byte.


svn path=/trunk/mcs/; revision=115305
2008-10-09 05:17:43 +00:00
Daniel Nauck 47780b084a 2008-10-09 Daniel Nauck <[email protected]>
* Makefile: add Mono.CSharp to the build


svn path=/trunk/mcs/; revision=115294
2008-10-08 23:35:41 +00:00
Daniel Nauck 9502eab949 2008-10-09 Daniel Nauck <[email protected]>
* link.xml: follow up r114301 and rename csharplib
                into Mono.CSharp


svn path=/trunk/mcs/; revision=115285
2008-10-08 23:13:56 +00:00
Gonzalo Paniagua Javier 1430a2179b 2008-10-08 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequestTest.cs: mini-test case for NTLM auth.


svn path=/trunk/mcs/; revision=115278
2008-10-08 21:56:47 +00:00
Gonzalo Paniagua Javier e58c6fcbd3 2008-10-08 Gonzalo Paniagua Javier <[email protected]>
* AppDomain.cs: (Load(AssemblyName)) Use the CodeBase after the Name
	when both are provided.
	Fixes bug #322228.


svn path=/trunk/mcs/; revision=115266
2008-10-08 20:21:38 +00:00
Gonzalo Paniagua Javier 61bbe5b41b 2008-10-08 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs:
	* ServicePoint.cs:
	* WebConnectionGroup.cs:
	* HttpWebRequest.cs:
	* WebConnectionStream.cs: reuse the same connection when doing NTLM
	authentication. Fixes bug #323375.
	Implemented support for UnsafeAuthenticatedConnectionSharing.


svn path=/trunk/mcs/; revision=115265
2008-10-08 20:16:33 +00:00
Jonathan Pobst 935294ef33 2008-10-08 Jonathan Pobst <[email protected]>
* TableLayout.cs: If multiple controls are set to the same cell,
	flow the additional ones to other empty cells.  [Fixes bug #433531]

svn path=/trunk/mcs/; revision=115259
2008-10-08 19:16:50 +00:00
Gonzalo Paniagua Javier f374f900d4 2008-10-08 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs:
	* HttpListenerResponse.cs: fix typo that caused the "connection close"
	header to be sent. Do not close the socket when the encoding is not
	chunked and reuse is possible.
	Fixes bug #433371.


svn path=/trunk/mcs/; revision=115250
2008-10-08 17:52:29 +00:00
Zoltan Varga 0596250228 2008-10-08 Zoltan Varga <[email protected]>
* Makefile.am: Use 'net_1_1' instead of 'default'.

svn path=/trunk/mono/; revision=115248
2008-10-08 16:58:17 +00:00
Jonathan Pobst 1167b514de 2008-10-08 Jonathan Pobst <[email protected]>
* BindingSource.cs: Make item_type internal so we can access it in DGV.
	* DataGridView.cs: Add support for autogenerating columns from a
	BindingSource.

svn path=/trunk/mcs/; revision=115247
2008-10-08 16:44:11 +00:00
Atsushi Eno 30dfcbfa2d 2008-10-08 Atsushi Enomoto <[email protected]>
* Makefile: add reference to S.D.Linq.

	* LinqDataSource.cs, LinqDataSourceView.cs :
	  some more implementation.


svn path=/trunk/mcs/; revision=115240
2008-10-08 16:17:05 +00:00
Atsushi Eno f9180a15be this too :(
svn path=/trunk/mcs/; revision=115239
2008-10-08 16:13:20 +00:00
Atsushi Eno 9b7ec8f918 I forgot ChangeLog entry one month ago.
svn path=/trunk/mcs/; revision=115237
2008-10-08 16:11:16 +00:00
Gonzalo Paniagua Javier 8fb497d524 Stupid mistake
svn path=/trunk/mono/; revision=115236
2008-10-08 16:06:50 +00:00
Gonzalo Paniagua Javier c058b49aef 2008-10-08 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: if GetRequestStream has already been called,
	return the same stream that we returned in the first call.
	Fixes bug #429200.


svn path=/trunk/mcs/; revision=115225
2008-10-08 15:25:53 +00:00
Zoltan Varga 401c675c83 2008-10-08 Zoltan Varga <[email protected]>
* aot-compiler.c (compile_method): Enable AOT for generic code.

	* ir-emit.h (NEW_DOMAINCONST): Use domainvars in AOT code as well.

svn path=/trunk/mono/; revision=115221
2008-10-08 15:07:54 +00:00
Bill Holmes e7061f5af4 2008-10-08 Bill Holmes <[email protected]>
* Variant.cs : Adding the BRECORD field to ensure the right size on
	  a 64-bit OS.  32-bit 16 bytes, 32-bit 24 bytes.

	Contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=115219
2008-10-08 15:06:13 +00:00
Zoltan Varga 1514ebac8e 2008-10-08 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_generic_context_hash): Call generic_inst_hash
	instead of using inst->id so the hash is stable for AOT.

svn path=/trunk/mono/; revision=115218
2008-10-08 15:05:01 +00:00
Marek Habersack 332a1a151b 2008-10-08 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: templates must be instantiated even
	for builders which process children as properties.

svn path=/trunk/mcs/; revision=115217
2008-10-08 14:51:11 +00:00
Paolo Molaro be1f6fa586 Wed Oct 8 16:35:43 CEST 2008 Paolo Molaro <[email protected]>
* mini.c: add a workaround for a common screwup that ends up blamed
	to mono (other processes blocking signal delivery).


svn path=/trunk/mono/; revision=115213
2008-10-08 14:37:48 +00:00
Bill Holmes 2b942c181d 2008-10-08 Bill Holmes <[email protected]>
* Variant.cs (SetValue) : Adding code to handle enums.

	Contributed under MIT/X11 license.

svn path=/trunk/mcs/; revision=115212
2008-10-08 14:31:23 +00:00
Bill Holmes 4e73b74b85 2008-10-08 Bill Holmes <[email protected]>
* Variant.cs : Cleaning up some tab formatting problems.

	Contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=115210
2008-10-08 14:16:37 +00:00
Marek Safar 09e04ad9a0 Removed obsolete comment
svn path=/trunk/mcs/; revision=115197
2008-10-08 11:35:05 +00:00
Marek Safar 4ad326bd3d Updates
svn path=/trunk/mcs/; revision=115196
2008-10-08 11:15:28 +00:00
Marek Safar 5f2912b8f8 2008-10-08 Marek Safar <[email protected]>
* cs-tokenizer.cs, eval.cs, anonymous.cs, statement.cs, class.cs
	cs-parser.jay: Generic type declaration and type arguments cleanup.


svn path=/trunk/mcs/; revision=115195
2008-10-08 11:15:11 +00:00
Atsushi Eno e9bef803a2 2008-10-08 Atsushi Enomoto <[email protected]>
* Expression.cs : give us information about which type does not
	  implement Emit().


svn path=/trunk/mcs/; revision=115194
2008-10-08 10:42:26 +00:00
Marek Habersack 7bbd8d5027 2008-10-08 Marek Habersack <[email protected]>
* ControlParameter.cs: Evaluate calls DataBinder.Eval to do the
	evaluation now. This makes it support complex expressions.

2008-10-08  Marek Habersack  <[email protected]>

	* DataBinder.cs: in Eval expression needs to be trimmed before
	checking whether it's an empty string.
	GetIndexedPropertyValue must explicitly look for the "Item"
	property, the lack of the DefaultMember attribute on type must not
	throw exceptions.

2008-10-08  Marek Habersack  <[email protected]>

	* ControlParameterTest.cs: added a test for ControlParameter
	evaluating a complex property expression.

svn path=/trunk/mcs/; revision=115193
2008-10-08 10:31:17 +00:00
Zoltan Varga 5740b30af9 2008-10-08 Zoltan Varga <[email protected]>
* Makefile.am (assembliesdir): Use $(libdir) instead of 
	$(exec_prefix)/lib.

svn path=/trunk/mono/; revision=115184
2008-10-08 08:47:31 +00:00
Zoltan Varga 78aee8fe1d 2008-10-08 Zoltan Varga <[email protected]>
* mono-compiler.h (MONO_THREAD_VAR_OFFSET): Apply a patch from
	the fedora packagers to the IA64 MONO_THREAD_VAR_OFFSET definition.

svn path=/trunk/mono/; revision=115182
2008-10-08 08:37:14 +00:00
Zoltan Varga 524874f325 Add missing changelog entry.
svn path=/trunk/mono/; revision=115175
2008-10-08 06:58:07 +00:00
Zoltan Varga d5fa08b67b 2008-10-08 Zoltan Varga <[email protected]>
* Makefile.am (dist-hook): Use 'net_1_1' instead of 'default'.

svn path=/trunk/mono/; revision=115174
2008-10-08 06:57:46 +00:00
Daniel Morgan cf3b4b10d7 2008-10-07 Daniel Morgan <[email protected]>
* DbConnectionStringBuilder.cs: fix setting and getting
	the ConnectionString property

svn path=/trunk/mcs/; revision=115173
2008-10-08 06:35:01 +00:00
Daniel Morgan ed24b3a67e 2006-12-07 Nagappan A <[email protected]>
* Mono.Data.SqlExpressions: Created directory.

2006-07-18 Dean Brettle <[email protected]>
	* SqlTest.cs: Added test for inserting zero-length varbinary.

svn path=/trunk/mcs/; revision=115172
2008-10-08 06:30:22 +00:00
Zoltan Varga e127b5c045 2008-10-08 Zoltan Varga <[email protected]>
* README: Update after the profile changes.

svn path=/trunk/mcs/; revision=115168
2008-10-08 06:02:21 +00:00
Zoltan Varga 9d24fa4f8b 2008-10-08 Zoltan Varga <[email protected]>
* runtime/Makefile.am: Rename 'default' profile to 'net_1_1'.

svn path=/trunk/mono/; revision=115167
2008-10-08 05:59:43 +00:00
Zoltan Varga f10ff05fc6 2008-10-08 Zoltan Varga <[email protected]>
* Makefile */Makefile build/profiles/*.make: Rename the 'default'
	profile to 'net_1_1'.

svn path=/trunk/mcs/; revision=115166
2008-10-08 05:58:51 +00:00
Zoltan Varga caf3a7995f 2008-10-08 Zoltan Varga <[email protected]>
* PlatformID.cs: Define Xbox/MacOSX on the 2.0 profile too, since it
	is part of NET 3.5 SP1.

svn path=/trunk/mcs/; revision=115164
2008-10-08 05:39:11 +00:00
Christian Hergert 3eb3075f11 2008-10-07 Christian Hergert <[email protected]>
* System.Web.UI.HtmlControls/HtmlImage.cs: Do not render the src
	attribute if it is null or empty.  An empty src attribute makes
	browsers download the current page url as the url of the image.

	* Test/System.Web.UI.HtmlControls/HtmlImageTest.cs: Add test to
	make sure the src attribute is not rendered when it is empty.


svn path=/trunk/mcs/; revision=115158
2008-10-07 23:41:53 +00:00
Gonzalo Paniagua Javier eceef02fa9 2008-10-07 Gonzalo Paniagua Javier <[email protected]>
* AssemblyBuilder.cs: use CodeBase to get to the original assembly
	path because Location might point the the shadow copy. Bug #409646
	and others fixed.


svn path=/trunk/mcs/; revision=115151
2008-10-07 22:23:33 +00:00
Gonzalo Paniagua Javier d1655ebe8a 2008-10-07 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c:
	* icall.c: create a .ini file for shadow-copied assemblies that
	contains the location of the original assembly. Use this to return the
	proper CodeBase for shadow-copied assemblies. Fixes bug #323606.
	Also fix the number of '/' for windows when returning the CodeBase.
	Fixes bug #430920.


svn path=/trunk/mono/; revision=115146
2008-10-07 22:06:07 +00:00
Zoltan Varga b8ffc45ae5 2008-10-07 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Clear ins_flag on all code paths
	in the LDFLD/STFLD opcodes. Fixes #432673.

	* iltests.il.in: Add a new test.

svn path=/trunk/mono/; revision=115144
2008-10-07 21:47:38 +00:00
Bill Holmes 629b61c193 2008-10-07 Bill Holmes <[email protected]>
* marshal.c (cominterop_get_ccw) : Fixing a copy paste error from r115126.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=115131
2008-10-07 19:03:05 +00:00
Bill Holmes 92e143be31 2008-10-07 Bill Holmes <[email protected]>
* marshal.c (cominterop_get_native_wrapper) : Adding a call to mono_class_setup_vtable
	  if if the class vtable needs initialized.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=115127
2008-10-07 18:19:33 +00:00
Bill Holmes 75b3845e7f 2008-10-07 Bill Holmes <[email protected]>
* marshal.c (cominterop_get_native_wrapper_adjusted, cominterop_get_ccw) : 
	  Adding default MonoMarshalSpecs for COM methods.  OBJECT->STRUCT,
	  STRING->BSTR, and CLASS->INTERFACE.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=115126
2008-10-07 18:16:44 +00:00
Bill Holmes 13df72fc8a 2008-10-07 Bill Holmes <[email protected]>
* libmono.vcproj : Adding simd-intrinsics.c to the VC project.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=115125
2008-10-07 18:15:33 +00:00
Paolo Molaro 11133d6450 Tue Oct 7 19:59:07 CEST 2008 Paolo Molaro <[email protected]>
* mini-arm.c: attach the thread in unmanaged->managed transitions
	using delegates (bug #433148).


svn path=/trunk/mono/; revision=115124
2008-10-07 18:00:51 +00:00
Rodrigo Kumpera 7fe46b6741 2008-10-07 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Use new ShuffleSel constants.

svn path=/trunk/mono/; revision=115122
2008-10-07 17:55:21 +00:00
Rodrigo Kumpera 24fa75fa81 2008-10-07 Rodrigo Kumpera <[email protected]>
* Vector4f.cs (ShuffleSel): Better naming for the constants.
	Added some helper constants.

svn path=/trunk/mcs/; revision=115120
2008-10-07 17:42:34 +00:00
Rodrigo Kumpera c83fdcf075 * AssemblyInfo.cs : Added CLSCompliant attribute.
* Vector4u.cs: Mask type as not CLS compliant.

	* Vector4c.cs: Mask methods returning Vector4u as not CLS compliant.

svn path=/trunk/mcs/; revision=115119
2008-10-07 17:42:32 +00:00
Rodrigo Kumpera a0d11e857a Added Changelog entry.
svn path=/trunk/mono/; revision=115115
2008-10-07 16:56:55 +00:00
Rodrigo Kumpera f250f001ed driver.c (opt_sets): Added combinations of simd, sse2 and sse3.
mini-x86.c (mono_arch_cpu_optimizazions): Detect sse3 and now
	only disable simd intrinsics if no sse2 is detected.

	* optflags-def.h: Added sse3.

	* simd-intrinsics.c: Avoid generated sse3 intrinsics if the optimization
	is disabled.

svn path=/trunk/mono/; revision=115114
2008-10-07 16:56:53 +00:00
Jonathan Pobst be3f0451f6 2008-10-07 Jonathan Pobst <[email protected]>
* DataGridView.cs: Comment out an exception that is getting thrown
	too often currently.

svn path=/trunk/mcs/; revision=115104
2008-10-07 16:22:38 +00:00
Jonathan Pobst c743700bb3 2008-10-06 Jonathan Pobst <[email protected]>
* DataGridView.cs: Always rebind to the datasource, as things may
	have changed in it that we aren't capturing yet.

svn path=/trunk/mcs/; revision=115100
2008-10-07 16:20:10 +00:00
Jonathan Pobst 6d71628791 2008-10-06 Jonathan Pobst <[email protected]>
* DataGridViewTextBoxCell.cs: Don't default to VerticalCenter font
	drawing mode.  If we are top aligned, give ourselves some top padding.

svn path=/trunk/mcs/; revision=115097
2008-10-07 15:46:07 +00:00
Gonzalo Paniagua Javier b9b4f42c35 2008-10-07 Gonzalo Paniagua Javier <[email protected]>
* ServicePointManager.cs: better handling of possible collisions of the
	hash for schema/host/port. Fixes bug #417891.


svn path=/trunk/mcs/; revision=115096
2008-10-07 15:40:04 +00:00
Jb Evain 0a9e83e3c6 blah
svn path=/trunk/mcs/; revision=115090
2008-10-07 14:23:45 +00:00
Jb Evain 9bae9dc2d1 2008-10-07 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionReader.cs: don't cache generic typespecs,
	as some compiler reuse generic instance signatures with different
	generic contexts.


svn path=/trunk/mcs/; revision=115089
2008-10-07 14:03:25 +00:00
Atsushi Eno 8a46dfd0cc 2008-10-07 Atsushi Enomoto <[email protected]>
* data/Makefile.am : there seems a couple more of required changes.


svn path=/trunk/mono/; revision=115082
2008-10-07 12:30:30 +00:00
Marek Habersack 21b2f7ce0e 2008-10-07 Marek Habersack <[email protected]>
* Math.cs: implemented the away from zero rounding for the Round
	(double, int, MidpointRounding) overload.

2008-10-07  Marek Habersack  <[email protected]>

	* MathTest.cs: added tests for rounding doubles with truncation in
	the away from zero mode.

svn path=/trunk/mcs/; revision=115081
2008-10-07 12:08:13 +00:00
Marek Habersack de876d8a5f 2008-10-07 Marek Habersack <[email protected]>
* sysmath.h: changed the declaration of the
	ves_icall_System_Math_Round2 icall by adding an extra
	away_from_zero parameter.

	* sysmath.c (ves_icall_System_Math_Round2): added support for
	away from zero rounding. The icall now takes an extra boolean
	parameter to signal that away from zero operation is requested.

svn path=/trunk/mono/; revision=115080
2008-10-07 12:07:28 +00:00
Atsushi Eno 5c32b6ed58 2008-10-07 Atsushi Enomoto <[email protected]>
* scripts/Makefile.am : one more dist fix is needed.


svn path=/trunk/mono/; revision=115071
2008-10-07 10:54:50 +00:00
Atsushi Eno 503b80ae4c 2008-10-07 Atsushi Enomoto <[email protected]>
* Makefile : changed some net_2_0_dirs orders; Sys.Web.Extensions
	  will depend on Sys.Data.Linq (LinqDataSource).


svn path=/trunk/mcs/; revision=115069
2008-10-07 10:50:16 +00:00
Zoltan Varga b2a0a0b40b 2008-10-07 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Fix Delegate/MulticastDelegate classes
	when adding delegate-invoke wrappers.

svn path=/trunk/mono/; revision=115067
2008-10-07 10:21:15 +00:00
Atsushi Eno 329f9eaae3 2008-10-07 Atsushi Enomoto <[email protected]>
* configure.in : fix missing change for previous change.


svn path=/trunk/mono/; revision=115062
2008-10-07 09:24:20 +00:00
Atsushi Eno 224fce3adc 2008-10-07 Atsushi Enomoto <[email protected]>
* scripts/mono-nunit.pc.in, data/mono-nunit.pc.in:
	  move former to latter.
	* scripts/Makefile.am : remove packaging info.
	* data/Makefile.am : add mono-nunit.pc too.


svn path=/trunk/mono/; revision=115060
2008-10-07 09:16:30 +00:00
Zoltan Varga 1b092921fa 2008-10-07 Zoltan Varga <[email protected]>
* Makefile.am: Reenable the simd tests.

svn path=/trunk/mono/; revision=115038
2008-10-07 03:32:33 +00:00
Zoltan Varga 170cd69963 2008-10-07 Zoltan Varga <[email protected]>
* Makefile (net_2_0_dirs): Add Mono.Simd.

svn path=/trunk/mcs/; revision=115037
2008-10-07 03:31:16 +00:00
Bill Holmes c099f31e11 2008-10-07 Bill Holmes <[email protected]>
* mini-amd64.c (mono_arch_emit_outarg_vt) : In the ArgValuetypeAddrInIReg case,
	  add a call to mono_call_inst_add_outarg_reg for the arg->dreg to make sure that no
	  other vreg is allocated to that hreg.

	Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=115031
2008-10-07 00:07:05 +00:00
Carlos Alberto Cortez 19da9663b9 2008-10-06 Carlos Alberto Cortez <[email protected]>
* X11Dnd.cs: When firing the default dnd enter/leave events, fire the
	events on the control under the mouse pointer, instead of firing them
	on the window generating the dnd operation. To achieve this re-use the
	code used to get the window under the pointer when getting MouseMove
	events.
	Fixes #381876.


svn path=/trunk/mcs/; revision=115030
2008-10-07 00:00:06 +00:00
Zoltan Varga f0edd88708 2008-10-07 Zoltan Varga <[email protected]>
* Makefile.am: Disable the simd tests for now as Mono.Simd is not
	yet checked in.

svn path=/trunk/mono/; revision=115027
2008-10-06 23:32:16 +00:00
Carlos Alberto Cortez 1f16deae4f 2008-10-06 Carlos Alberto Cortez <[email protected]>
* X11Dnd.cs: Don't check that that the window sending the dnd events
	is the owner of the selection. Although Gtk+ sets it that way, it's
	not a requirement of the XDnd protocol, and Qt doesn't seem to do it.
	So, just as Gtk+ does, we set our window sending the dnd events as the
	owner of the selection, but don't check it when receiving them. This
	should fix interoperability with Qt/Kde.
	Fixes #324251.


svn path=/trunk/mcs/; revision=115023
2008-10-06 22:44:27 +00:00
Rodrigo Kumpera 85c53e15b0 Author: Rodrigo Kumpera <[email protected]>
Date:   Mon Oct 6 18:52:47 2008 -0300

    	* basic-test.cs: New tests for simd intrinsics.

    	* Makefile.am: Add new tests.

svn path=/trunk/mono/; revision=115018
2008-10-06 22:02:32 +00:00
Jonathan Pobst 2c76255d08 2008-10-06 Jonathan Pobst <[email protected]>
* DataGridView.cs: Make sure we take the vertical scrollbar into
	account when autosizing columns.

svn path=/trunk/mcs/; revision=115017
2008-10-06 22:01:23 +00:00
Jonathan Pobst edb2458817 revert accidental commits
svn path=/trunk/mcs/; revision=115016
2008-10-06 21:48:19 +00:00
Rodrigo Kumpera f99ff1ae06 Added Changelog
svn path=/trunk/mono/; revision=115015
2008-10-06 21:42:30 +00:00
Rodrigo Kumpera 7c6015236b * cpu-x86.md: Added new instructions to handle float to int using SSE regs.
* mini-ops.h: Same.

	* mini-x86.h: Enable mono_arch_decompose_opts if simd intrinsics are enabled.

	* mini-x86.c (mono_arch_decompose_opts): Decompose float to int conversion
	using SSE2 aware opcodes.

	* mini-x86.c (emit_float_to_int): Disable the SSE2 optimization if OPT_SIMD
	is enabled, this code path is only reachable if conversion ops are emmited after
	mono_method_to_ir.

	* mini.h: Added MonoCompile::fconv_to_r8_x_var to hold the float to int var.

	This optimization saves 6 bytes per conversion against the old version.

svn path=/trunk/mono/; revision=115014
2008-10-06 21:42:27 +00:00
Zoltan Varga b56a036615 2008-10-06 Zoltan Varga <[email protected]>
* aot-compiler.c (compile_method): Don't skip methods referencing 
	generic methods without a corresponding entry in token_info_hash, since
	encode_method_ref () can handle all generic methods now.

	* method-to-ir.c (mono_save_token_info): Don't save the token info if a 
	generic context is set.

svn path=/trunk/mono/; revision=115011
2008-10-06 21:24:45 +00:00
Jonathan Pobst b7253cb945 2008-10-06 Jonathan Pobst <[email protected]>
* DataGridView.cs: Handle sorting datetimes.

svn path=/trunk/mcs/; revision=115008
2008-10-06 21:04:50 +00:00
Zoltan Varga 04b72436dc 2008-10-06 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Put back a disable_aot for
	generic sharing of LDTOKEN.

svn path=/trunk/mono/; revision=115007
2008-10-06 21:04:12 +00:00
Zoltan Varga dda7be13a2 2008-10-06 Zoltan Varga <[email protected]>
* Activator.cs (CreateInstance): Don't return the return value of the
	ctor.Invoke (object, ...) overload since it is null, return 'newOb' instead.

svn path=/trunk/mcs/; revision=115005
2008-10-06 20:44:43 +00:00
Gonzalo Paniagua Javier 6b5d46c6d7 2008-10-06 Gonzalo Paniagua Javier <[email protected]>
* ChunkStream.cs: (ReadTrailer) make sure the array access is not out
	of bounds. Fixes bug #322715.


svn path=/trunk/mcs/; revision=115003
2008-10-06 20:35:46 +00:00
Mark Probst a05195a8c1 2008-10-06 Mark Probst <[email protected]>
* mini-amd64.h: Temporarily disabled fast virtual generic method
	calls because it breaks the System.Runtime.Remoting tests.

svn path=/trunk/mono/; revision=114994
2008-10-06 19:11:48 +00:00
Zoltan Varga c4ce186fff 2008-10-06 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_delegate_begin_invoke): Put the wrapper in
	the delegate klass so it can work with full-aot.
	(mono_marshal_get_delegate_end_invoke): Ditto.
	(mono_marshal_get_delegate_invoke): Ditto.

svn path=/trunk/mono/; revision=114976
2008-10-06 17:31:55 +00:00
Zoltan Varga aabaee070e 2008-10-06 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Add delegate-invoke wrappers.

svn path=/trunk/mono/; revision=114973
2008-10-06 17:24:28 +00:00
Sebastien Pouliot facb079bc0 2008-10-06 Sebastien Pouliot <[email protected]>
* TestColor.cs: Add test case, from Gert Driesen, for bug #410693
	* TestRectangleF.cs: Add test case, from Imie Nazwisko, for bug #431587

svn path=/trunk/mcs/; revision=114972
2008-10-06 17:16:34 +00:00
Sebastien Pouliot 6dfeaed97e 2008-10-06 Sebastien Pouliot <[email protected]>
* Color.cs: Fix Color serialization by changing 'value' visibility
	to private and make everyone access it thru an internal property. 
	This also simplify the A, R, G and B properties and probably covers 
	a few other cases where a similar hack would have been required.
	[Fix bug #410693]
	* KnownColors.cs: Assign Color.Value property and not the value field.

svn path=/trunk/mcs/; revision=114971
2008-10-06 17:13:56 +00:00
Paolo Molaro cabb2c8b30 Remove the declaration, too.
svn path=/trunk/mono/; revision=114970
2008-10-06 17:08:58 +00:00
Paolo Molaro ddee43464b Add a bit of explanation about the double use of HashCode.
svn path=/trunk/mcs/; revision=114969
2008-10-06 17:06:51 +00:00
Zoltan Varga 99f9b550c2 2008-10-06 Zoltan Varga <[email protected]>
* method-to-ir.c (check_inline_called_method_name_limit): Return TRUE
	so inlining actually works.
	(check_inline_caller_method_name_limit): Ditto.

svn path=/trunk/mono/; revision=114968
2008-10-06 17:04:11 +00:00
Sebastien Pouliot 9aa4eb45ae 2008-10-06 Sebastien Pouliot <[email protected]>
* TestRectangleF.cs: Add test case for bug #431587


svn path=/trunk/mcs/; revision=114954
2008-10-06 15:06:44 +00:00
Sebastien Pouliot 4414e5801c RectangleF.cs: Fix edge intersection. Path by Brian Browning. [Fix bug #431587]
svn path=/trunk/mcs/; revision=114953
2008-10-06 15:05:57 +00:00
Paolo Molaro 542d5b756e Mon Oct 6 16:10:02 CEST 2008 Paolo Molaro <[email protected]>
* gc.c, attach.h, attach.c: remove a bad pattern:
	add_finalizer_callback () is not implemented correctly, it can't
	without adding more overhead to the finalizer loop and it's not
	even needed, since we know exactly what we need to call, so there is
	no need to do so through an expensive function pointer.


svn path=/trunk/mono/; revision=114944
2008-10-06 14:14:15 +00:00
Paolo Molaro fb8e108a66 Mon Oct 6 15:12:25 CEST 2008 Paolo Molaro <[email protected]>
* Array.cs: better message when keys cannot be compared
	when sorting (bug #368455).


svn path=/trunk/mcs/; revision=114936
2008-10-06 13:14:21 +00:00
Paolo Molaro 9de173db0d Mon Oct 6 11:04:38 CEST 2008 Paolo Molaro <[email protected]>
* mini-ppc.c: mono_arch_flush_icache () cast pointer using gsize for
	64 bit safety (from Olaf Hering and Andreas Färber).


svn path=/trunk/mono/; revision=114929
2008-10-06 09:06:33 +00:00
Paolo Molaro 3555435166 Mon Oct 6 09:46:09 CEST 2008 Paolo Molaro <[email protected]>
* UTF8Encoding.cs: rewritten InternalGetByteCount () and
	InternalGetBytes (): among other things this versions are
	10% to 60% faster, depending on input type and size.


svn path=/trunk/mcs/; revision=114925
2008-10-06 07:50:20 +00:00
Marek Habersack 11ae307228 2008-10-06 Marek Habersack <[email protected]>
* machine.config: added entries to ignore the mobileControls and
	deviceFilters sections.

svn path=/trunk/mono/; revision=114924
2008-10-06 06:50:27 +00:00
Zoltan Varga 2785965055 2008-10-06 Zoltan Varga <[email protected]>
* DictionaryTest.cs: Add a test for #432441.

svn path=/trunk/mcs/; revision=114916
2008-10-06 03:38:50 +00:00
Zoltan Varga 9a6df6496c 2008-10-06 Zoltan Varga <[email protected]>
* Dictionary.cs (Clear): Clear the linkSlots array as well, as 
	Enumerator.MoveNext () depends on it. Fixes #432441.

svn path=/trunk/mcs/; revision=114915
2008-10-06 03:35:26 +00:00
Zoltan Varga 1d9db65f6c 2008-10-06 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_aot_trampoline): Delegate processing to
	mono_magic_trampoline () if aot_get_method_from_token () fails. Remove
	unused virtual call support code.

	* aot-runtime.c (decode_method_ref): Add a 'no_aot_trampoline' out argument.
	
	* aot-runtime.c (mono_aot_get_method_from_vt_slot): Return NULL for methods
	which can't use aot trampolines.
	(decode_patch): Don't create aot trampolines for methods which can't use
	them.

	* aot-compiler.c (encode_method_ref): Add a marker for methods which can't
	use aot trampolines.

	* mini.h: Bump AOT image format version.

svn path=/trunk/mono/; revision=114912
2008-10-06 00:11:43 +00:00
Marek Safar 07b5926775 2008-10-05 Marek Safar <[email protected]>
* cs-parser.jay: Allow parsing weird array creation construct.


svn path=/trunk/mcs/; revision=114890
2008-10-05 18:03:39 +00:00
Zoltan Varga 2cfa98755d 2008-10-05 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Pass cil_method instead of cmethod
	to save_token_info () since cmethod is inflated for constrained calls.

svn path=/trunk/mono/; revision=114889
2008-10-05 17:44:06 +00:00
Marek Safar 658ad84993 Updated
svn path=/trunk/mcs/; revision=114886
2008-10-05 09:23:19 +00:00
Marek Safar 0bd0ea513c 2008-10-05 Marek Safar <[email protected]>
* cs-parser.jay: Conflicts reduction.


svn path=/trunk/mcs/; revision=114885
2008-10-05 09:23:04 +00:00
Gert Driesen 2b4812d44a * CustomizableFileSettingsProvider.cs (LoadPropertyValue): Do not
hide ArgumentException.

svn path=/trunk/mcs/; revision=114883
2008-10-05 09:13:33 +00:00
Gonzalo Paniagua Javier 0ab75f9991 2008-10-04 Gonzalo Paniagua Javier <[email protected]>
* NetworkInterface.cs: detect wireless 802.11 on linux.


svn path=/trunk/mcs/; revision=114857
2008-10-05 02:01:08 +00:00
Zoltan Varga 2c59d2664d 2008-10-05 Zoltan Varga <[email protected]>
* mini-<ARCH>.h mini-x86.c: Remove some unused defines.

svn path=/trunk/mono/; revision=114854
2008-10-05 00:18:47 +00:00
Gonzalo Paniagua Javier 1cd9846abc 2008-10-04 Gonzalo Paniagua Javier <[email protected]>
* CustomizableFileSettingsProvider.cs: when reading application or
	user settings, only read those settings appropriate for the context.
	This avoids duplicate key errors when 2 different groups have a key
	with the same name.
	* ApplicationSettingsBase.cs: the context is a hashtable with several
	values set upon creation: SettingsKey, GroupName and
	SettingsClassType.

	Fixes bug #432466.


svn path=/trunk/mcs/; revision=114853
2008-10-04 21:50:11 +00:00
Andreas Färber 5ca975dd60 2008-10-04 Andreas Faerber <[email protected]>
* Makefile.am: Add build rules for ppc64.
	This avoids the build failing at pedump with unresolved symbols
	due to lack of arch_sources. Instead it will now fail earlier
	due to lack of cpu-ppc64.md.

	This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=114845
2008-10-04 19:11:10 +00:00
Zoltan Varga d573bd98f6 2008-10-04 Zoltan Varga <[email protected]>
* gc.c: Define a dummy version of mono_gc_add_finalizer_thread_callback ()
	for the no-gc case.
	* attach.c (mono_attach_init): Remove the #ifdef.

svn path=/trunk/mono/; revision=114843
2008-10-04 18:39:03 +00:00
Gonzalo Paniagua Javier 3a62ec8a81 2008-10-04 Gonzalo Paniagua Javier <[email protected]>
* ApplicationSettingsBase.cs: honor the IsSynchronized value in the
	Context, Properties, PropertyValues and Providers. All of them might
	initialize an instance field for the class. Hopefully this fixes some
	nullrefs.


svn path=/trunk/mcs/; revision=114842
2008-10-04 18:24:39 +00:00
Andreas Färber 86a537a188 2008-10-04 Andreas Faerber <[email protected]>
* attach.c (mono_attach_init): Don't use
	mono_gc_add_finalizer_thread_callback when compiling without GC.
	Fixes #432306.

	This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=114841
2008-10-04 17:23:51 +00:00
Gonzalo Paniagua Javier cffdef0f69 2008-10-04 Gonzalo Paniagua Javier <[email protected]>
* ApplicationSettingsBase.cs: honor the IsSynchronized value in the
	indexer.


svn path=/trunk/mcs/; revision=114837
2008-10-04 16:42:47 +00:00
Gonzalo Paniagua Javier 37c9fa847e 2008-10-03 Gonzalo Paniagua Javier <[email protected]>
* HttpApplication.cs: make sure we release the resources used by the
	request and/or the response at the end of the request.
	Fixes bug #430040.


svn path=/trunk/mcs/; revision=114832
2008-10-04 15:27:52 +00:00
Marek Safar 7b0f03145e Disabled for now
svn path=/trunk/mcs/; revision=114831
2008-10-04 14:32:41 +00:00
Marek Safar f69ec4431d 2008-10-04 Marek Safar <[email protected]>
* cs-parser.jay: Conflicts reduction.


svn path=/trunk/mcs/; revision=114830
2008-10-04 14:32:20 +00:00
Raja R Harinath 42b9af250c Fix #398325
* flowanalysis.cs (MyBitvector.MakeShared): Rename from 'Shared'
property.  Add a 'count' hint about the use of the shared vector.
Ensure that we don't leak out dirty bits.
(UsageVector.MergeChild): Throw away information about variables
in child vectors.
Based on patch and analysis by Moritz Kroll <[email protected]>.

svn path=/trunk/mcs/; revision=114825
2008-10-04 10:39:14 +00:00
Raja R Harinath 8a05311c00 update known issues
svn path=/trunk/mcs/; revision=114824
2008-10-04 10:38:49 +00:00
Ivan Zlatev 6b6d973cef 2008-10-04 Ivan N. Zlatev <[email protected]>
* ButtonBase.cs, Control.cs, Label.cs, PictureBox.cs, TabControl.cs,
	TextBoxBase.cs, ToolBar.cs, TrackBar.cs, TreeView.cs: Cleanup
	compilation warnings.

svn path=/trunk/mcs/; revision=114812
2008-10-03 23:03:15 +00:00
Ivan Zlatev e0926ece88 2008-10-03 Ivan N. Zlatev <[email protected]>
* RTF.cs, Application.cs, BindingContext.cs, BindingSource.cs,
	ContextMenuStrip.cs, Control.cs, Hwnd.cs, Line.cs, MaskedTextBox.cs,
	ProgressBar.cs, SaveFileDialog.cs, TextControl.cs, Theme.cs,
	ToolBar.cs, ToolStripItemCollection.cs, TrackBar.cs: Cleanup
	compilation warnings.

svn path=/trunk/mcs/; revision=114809
2008-10-03 22:48:09 +00:00
Ivan Zlatev 6b8bb74546 2008-10-03 Ivan N. Zlatev <[email protected]>
* DataGridView.cs, DataGridViewCell.cs,
	DataGridViewCellValidatingEventArgs.cs,
	DataGridViewComboBoxEditingControl.cs, DataGridViewHeaderCell.cs,
	DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
	DataGridViewTextBoxEditingControl.cs: Cleanup compilation warnings.

svn path=/trunk/mcs/; revision=114808
2008-10-03 22:23:20 +00:00
Mark Probst ebf9be4d03 2008-10-04 Mark Probst <[email protected]>
* mini-amd64.c (mono_arch_emit_call): Support stack arguments for
	tail calls.

	* iltests.il.in: Add test case for tail call with many arguments.

svn path=/trunk/mono/; revision=114807
2008-10-03 22:18:06 +00:00
Jb Evain 8b15c6b4fe mark as working
svn path=/trunk/mcs/; revision=114804
2008-10-03 21:59:40 +00:00
Jb Evain 8f9bbdd2e7 2008-10-03 Jb Evain <[email protected]>
* Expression.cs: make sure we properly test complex generic methods
	as a Call candidate.


svn path=/trunk/mcs/; revision=114803
2008-10-03 21:59:03 +00:00
Jb Evain cd52c501ce add failing test
svn path=/trunk/mcs/; revision=114802
2008-10-03 21:38:03 +00:00
Miguel de Icaza 8f0599b8c8 Sort the options in enable-minimal, and add simd
svn path=/trunk/mono/; revision=114800
2008-10-03 21:34:34 +00:00
Paolo Molaro 2b223a5248 Fri Oct 3 23:08:06 CEST 2008 Paolo Molaro <[email protected]>
* Dictionary.cs: by popular demand, return keys/values in insertion
	order when possible.


svn path=/trunk/mcs/; revision=114791
2008-10-03 21:17:58 +00:00
Rodrigo Kumpera 8755e5a45d Initial version.
svn path=/trunk/mcs/; revision=114784
2008-10-03 20:37:36 +00:00
Ivan Zlatev 1d06736516 2008-10-03 Ivan N. Zlatev <[email protected]>
* HtmlElementEventArgs.cs, HtmlWindowCollection.cs:
	Cleanup compilation warnings.

svn path=/trunk/mcs/; revision=114777
2008-10-03 19:51:29 +00:00
Rodrigo Kumpera 40e23b4395 Merge branch 'simd'
svn path=/trunk/mono/; revision=114773
2008-10-03 18:28:59 +00:00
Zoltan Varga 53f30b63d7 2008-10-03 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Add an !cfg->compile_aot assert
	to the fast virtual generic method code until the aot case is fixed.

svn path=/trunk/mono/; revision=114772
2008-10-03 18:21:50 +00:00
Zoltan Varga c526ac4744 2008-10-03 Zoltan Varga <[email protected]>
* class.c (mono_class_create_from_typedef): Remove the 
	#ifndef DISABLE_SIMD stuff.

svn path=/trunk/mono/; revision=114771
2008-10-03 18:13:26 +00:00
Ivan Zlatev 6a748ff756 2008-10-03 Ivan N. Zlatev <[email protected]>
* XplatUIWin32.cs: Cleanup compilation warnings.

svn path=/trunk/mcs/; revision=114770
2008-10-03 18:10:35 +00:00
Ivan Zlatev b80f296b49 2008-10-03 Ivan N. Zlatev <[email protected]>
* PropertyGrid.cs: Cleanup compilation warnings.

svn path=/trunk/mcs/; revision=114768
2008-10-03 17:59:44 +00:00
Mark Probst 0f265bfd89 2008-10-03 Mark Probst <[email protected]>
* generic-virtual-invoke.2.cs: Use different instantiations and
	iterate the test.

svn path=/trunk/mono/; revision=114767
2008-10-03 17:33:11 +00:00
Marek Safar 5936fd231f New test.
svn path=/trunk/mcs/; revision=114765
2008-10-03 17:27:36 +00:00
Marek Safar 486182fd3e 2008-10-03 Marek Safar <[email protected]>
A fix for bug #431746
	* iterators.cs, anonymous.cs: Re-initialize hoisted iterator
	parameters when iterator is created.


svn path=/trunk/mcs/; revision=114764
2008-10-03 17:27:09 +00:00
Mark Probst e9dfc53268 2008-10-03 Mark Probst <[email protected]>
* mini-ppc.c, mini-ppc.h: Implement generic virtual method thunks.

svn path=/trunk/mono/; revision=114762
2008-10-03 17:14:13 +00:00
Mark Probst 0d44cf32c9 2008-10-03 Mark Probst <[email protected]>
* mini-amd64.c, mini-amd64.h: Implement generic virtual method
	thunks.

2008-10-03  Mark Probst  <[email protected]>

	* generic-virtual.2.cs: Iterate the test to make the generic
	virtual method chunks kick in.

svn path=/trunk/mono/; revision=114756
2008-10-03 14:49:36 +00:00
Zoltan Varga 1d8c7ce41e 2008-10-03 Zoltan Varga <[email protected]>
* invoke.cs: Fix this test after the ConstructorInfo changes.

svn path=/trunk/mono/; revision=114755
2008-10-03 14:48:02 +00:00
Rodrigo Kumpera e2611008d4 2008-10-03 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c: Forgot to add this one.

	* mini-codegen.c: Fix macro in case SIMD is not supported.

svn path=/trunk/mono/; revision=114754
2008-10-03 14:43:03 +00:00
Rodrigo Kumpera 878f81595d 2008-10-03 Rodrigo Kumpera <[email protected]>
This patch land initial JIT support for simd intrinsics.

	* mini-x86.h: Added new define to make --enable_minimal work on x86.

	* Makefile.am: Added simd-intrinsics.c

	* simd-intrinsics.c: New file with simd instrinsic related
	code.

	* cfold.c (mono_constant_fold_ins2): Fold XZERO.

	* cpu-x86.md: Add simd related instructions.

	* driver.c: Added MONO_OPT_SIMD to the default set of optimizations.

	* driver.c: Added two new --regression variants.

	* ir-emit.h (MONO_EMIT_NEW_VZERO): Emit XZERO if the type is a simd intrinsic.

	* local-propagation.c (mono_local_cprop2): Eliminate useless XMOVE.

	* local-propagation.c (mono_local_deadce): Use new macro MONO_IS_NON_FP_MOVE and
	extract some complicated logic to helper functions.

	* method-to-ir.c (mono_type_to_regmove): Handle simd intrinsics.

	* method-to-ir.c (mini_emit_inst_for_method): Emit simd intrinsics.

	* method-to-ir.c (mono_handle_global_vregs): If a simd intrinsic was found, apply
	the specialized simplification pass.

	* method-to-ir.c (mono_spill_global_vars): Use new macro.

	* mini-codegen.c: Added SIMD constants to all regbanks arrays.

	* mini-codegen.c: Added reg_bank_table_init to initialize the reg desc -> bank
	table.

	* mini-codegen.c: Define a version of the reg_bank macro that uses desc_to_reg_type
	if MONO_ARCH_NEED_SIMD_BANK is defined.

	* mini-ops.h: Added the new simd ops.

	* mini-x86.c: Added mono_arch_xregname.

	* mini-x86.c (mono_arch_cpu_optimizazions): Disable MONO_OPT_SIMD if SSE3 is not detected.

	* mini-x86.c (mono_arch_output_basic_block): Add simd related opcodes.

	* mini-x86.h: Define simd related MONO_ARCH macros.

	* mini.c (mono_type_to_load_membase): Handle simd intrinsics.

	* mini.c (mono_type_to_store_membase): Handle simd intrinsics.

	* mini.h: Added new macros MONO_IS_NON_FP_MOVE, MONO_IS_REAL_MOVE, MONO_IS_ZERO and
	MONO_CLASS_IS_SIMD to deal with simd related IR.

	* mini.h (MonoInst): Added spill_var to the backend union.

	* mini.h (MonoCompile): Added uses_simd_intrinsics and iconv_raw_var.

	* mini.h: Added forward declarations of the new simd fuctions.

	* optflags-def.h: Added new optimization names SIMD.

	* regalloc.c (mono_regstate_reset): Set next vreg to be the max value of the 3 reg banks.

	* regalloc.h: Added support for working with 3 register banks.

	* regalloc.h (MonoRegState): Added xsymbolic field if a third regbank is required.

	* ssa2.c (mono_ssa_deadce2): Use new MONO_IS_ZERO macro.

svn path=/trunk/mono/; revision=114753
2008-10-03 14:28:21 +00:00
Rodrigo Kumpera 4f7ed9813a 2008-10-03 Rodrigo Kumpera <[email protected]>
* class-internals.h (MonoClass): Added simd_type bit field.

	* class.c (mono_class_create_from_typedef): Check if type is a simd
	intrinsic.

svn path=/trunk/mono/; revision=114752
2008-10-03 14:28:11 +00:00
Rodrigo Kumpera dad7352ba2 2008-10-03 Rodrigo Kumpera <[email protected]>
* x86/x86-codegen.h: Add macros and enum for SSE instructions.

svn path=/trunk/mono/; revision=114751
2008-10-03 14:28:09 +00:00
Marek Habersack fa3a8d5192 Refactoring to fix the case when the requested virtual path needs to be recompiled alone, previous approach was incorrect.
svn path=/trunk/mcs/; revision=114750
2008-10-03 14:24:08 +00:00
Zoltan Varga daaff32a1c 2008-10-03 Zoltan Varga <[email protected]>
* stack-overflow.cs: Fix warnings. Add unmanaged tests.

svn path=/trunk/mono/; revision=114749
2008-10-03 14:21:09 +00:00
Zoltan Varga e4fde5ebc0 2008-10-03 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_handle_soft_stack_ovf): Fix the previous
	change.

svn path=/trunk/mono/; revision=114748
2008-10-03 14:17:47 +00:00
Paolo Molaro 6c6b19f024 Fri Oct 3 16:03:22 CEST 2008 Paolo Molaro <[email protected]>
* mini-exceptions.c: remove 64 bit related ifdef clutter.


svn path=/trunk/mono/; revision=114747
2008-10-03 14:04:30 +00:00
Mark Probst c8c6d2e12e 2008-10-03 Mark Probst <[email protected]>
* generic-virtual-invoke.2.cs: Test for runtime invoking generic
	virtual methods.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=114746
2008-10-03 12:41:29 +00:00
Mark Probst 535809f7ce 2008-10-03 Mark Probst <[email protected]>
* object.c (mono_method_add_generic_virtual_invocation): Only add
	instantiations to the thunk whose count is at least as large as
	the threshold.

svn path=/trunk/mono/; revision=114744
2008-10-03 11:58:24 +00:00
Marek Safar f3320a409e New tests.
svn path=/trunk/mcs/; revision=114740
2008-10-03 10:21:44 +00:00
Marek Safar 05f86becee 2008-10-03 Marek Safar <[email protected]>
A fix for bug #431827
	* expression.cs: Fixed right based pointer arithmetic operations
	emit.


svn path=/trunk/mcs/; revision=114739
2008-10-03 10:21:22 +00:00
Atsushi Eno dcbb4a43f2 2008-10-03 Atsushi Enomoto <[email protected]>
* ja.po : ok, having pending translation could result
          in a mess when it is updated by other means.


svn path=/trunk/mono/; revision=114737
2008-10-03 09:44:42 +00:00
Marek Safar 70781f237c 2008-10-03 Marek Safar <[email protected]>
A fix for bug #353779
	* assign.cs, expression.cs: Fixed compound assignment conversions.


svn path=/trunk/mcs/; revision=114734
2008-10-03 08:45:45 +00:00
Marek Habersack f0d6c8fe78 2008-10-03 Marek Habersack <[email protected]>
* TemplateParser.cs: make sure the generated class name is a valid
	language independent identifier. Fixes bug #431622

2008-10-03  Marek Habersack  <[email protected]>

	* BuildManager.cs: if an assembly fails to build out of a batch of
	files, extract the virtual path that was requested by the client
	and attempt to compile it alone.

svn path=/trunk/mcs/; revision=114732
2008-10-03 07:53:06 +00:00
Zoltan Varga 68b6604c5a 2008-10-03 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_handle_soft_stack_ovf): Unprotect two pages
	instead of one on 64 bit systems.

svn path=/trunk/mono/; revision=114731
2008-10-03 05:28:26 +00:00
Zoltan Varga 95bf5f1ed8 2008-10-03 Zoltan Varga <[email protected]>
* method-to-ir.c: Remove unused includes.

svn path=/trunk/mono/; revision=114730
2008-10-03 05:22:50 +00:00
Gonzalo Paniagua Javier 1504a3f8f0 2008-10-02 Gonzalo Paniagua Javier <[email protected]>
* Test/System.Reflection/ConstructorInfoTest.cs: enable abstract class
	test.

	* System.Reflection/MonoMethod.cs: throw a MemberAccessException when
	trying to invoke a constructor creating an instance of an abstract
	class. Return null when an instance of an object was passed as a
	parameter when invoking a .ctor.
	Fixes bug #324185.


svn path=/trunk/mcs/; revision=114720
2008-10-02 22:09:26 +00:00
Gonzalo Paniagua Javier 10e0877406 2008-10-02 Gonzalo Paniagua Javier <[email protected]>
* icall.c: changed the Type of the exception thrown when trying to
	invoke a constructor on an abstract class. Part of the fix for bug
	#324185.


svn path=/trunk/mono/; revision=114719
2008-10-02 22:06:03 +00:00
Jonathan Pobst 4e16ba9ea9 2008-10-02 Jonathan Pobst <[email protected]>
* DataGridViewRow.cs: Only clear the row background if we
	are going to paint a new background.

svn path=/trunk/mcs/; revision=114718
2008-10-02 21:31:03 +00:00
Jonathan Pobst 4b98ae1ce5 2008-10-02 Jonathan Pobst <[email protected]>
* DataGridViewCell.cs, DataGridViewColumnHeaderCell.cs,
	DataGridViewRowHeaderCell.cs: Remove PaintPartBorder and
	use PaintBorder instead.

svn path=/trunk/mcs/; revision=114717
2008-10-02 21:27:17 +00:00
Zoltan Varga d1a17472e9 2008-10-02 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_exception_debug_info): Use jinfo->used_regs instead of
	cfg->used_int_regs, since the two are different on arm.

svn path=/trunk/mono/; revision=114713
2008-10-02 21:03:02 +00:00
Jonathan Pobst c0011ea9d1 2008-10-02 Jonathan Pobst <[email protected]>
* DataGridView.cs: When CellBorderStyle is set, update the
	AdvancedCellBorderStyle to match.

svn path=/trunk/mcs/; revision=114712
2008-10-02 20:59:59 +00:00
Jonathan Pobst 0b7db220d0 2008-10-02 Jonathan Pobst <[email protected]>
* DataGridViewCell.cs: Add helper methods to convert Alignment
	to TextFormatFlags and align rectangles.
	* DataGridViewTextBoxCell.cs: Use Alignment when painting text.
	* DataGridViewImageCell.cs: Use Alignment when painting the image.

svn path=/trunk/mcs/; revision=114707
2008-10-02 20:23:18 +00:00
Ivan Zlatev 51cd1c3118 2008-10-02 Ivan N. Zlatev <[email protected]>
* ToolTip.cs: Display tooltips only for controls on the active
        * form.
        [Fixes bug #428115]


svn path=/trunk/mcs/; revision=114706
2008-10-02 20:21:48 +00:00
Jonathan Pobst 7d474becaa 2008-10-02 Jonathan Pobst <[email protected]>
* DataGridView.cs: Make OnCellValueNeeded internal.
	* DataGridViewCell.cs: Raise the CellValueNeeded event so the
	user can supply their own value if they choose.

svn path=/trunk/mcs/; revision=114703
2008-10-02 20:16:43 +00:00
Mark Probst 2a0bbc4467 2008-10-02 Mark Probst <[email protected]>
* class.c, class-internals.h (mono_method_get_vtable_index): New
	function which returns the index into the vtable and properly
	handles inflated virtual generic methods.

2008-10-02  Mark Probst  <[email protected]>

	* method-to-ir.c, inssel.brg, mini-trampolines.c: Use
	mono_method_get_vtable_index() to get the vtable index.

svn path=/trunk/mono/; revision=114701
2008-10-02 19:46:44 +00:00
Marek Safar 38ede7dcba New test.
svn path=/trunk/mcs/; revision=114691
2008-10-02 18:01:46 +00:00
Marek Safar 3b23ad990e 2008-10-02 Marek Safar <[email protected]>
A fix for bug #375262
	* statement.cs: Refactor ArrayForeach to be usable with string
	indexer. Optimized single dimentional arrays foreach.


svn path=/trunk/mcs/; revision=114690
2008-10-02 18:01:32 +00:00
Jonathan Pobst 783e418456 2008-10-02 Jonathan Pobst <[email protected]>
* DataGridViewColumnHeaderCell.cs: Create a new style object
	so the DefaultCellStyle doesn't get changed.

svn path=/trunk/mcs/; revision=114681
2008-10-02 16:33:32 +00:00
Jonathan Pobst 2c0da89587 2008-10-02 Jonathan Pobst <[email protected]>
* ToolStripItem.cs: Check to make sure the owner is actually
	changing in InternalOwner before doing any work.  Fixes some
	failing tests.

svn path=/trunk/mcs/; revision=114676
2008-10-02 16:02:03 +00:00
Mark Probst 1df4dc67e1 2008-10-02 Mark Probst <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Don't create native
	wrappers for array methods, because they're never called (and if
	they were called they wouldn't work).

svn path=/trunk/mono/; revision=114671
2008-10-02 14:52:25 +00:00
Marek Safar ca5ac1d9a8 New test.
svn path=/trunk/mcs/; revision=114670
2008-10-02 14:43:10 +00:00
Marek Safar 2df21b7672 2008-10-02 Marek Safar <[email protected]>
A fix for bug #431255
	* anonymous.cs, expression.cs: Removed broken optimization.


svn path=/trunk/mcs/; revision=114669
2008-10-02 14:42:55 +00:00
Mark Probst e4e350e30e 2008-10-02 Mark Probst <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Array methods are
	special-cased and must not be invoked indirectly via the (M)RGCTX
	when generic sharing is turned on.  Fixes #431413.

2008-10-02  Mark Probst  <[email protected]>

	* bug-431413.2.cs: Test for bug #431413 (multidimensional generic
	arrays).

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=114668
2008-10-02 14:19:23 +00:00
Marek Habersack 4d38fed939 2008-10-02 Marek Habersack <[email protected]>
* ScriptManager.cs: Cosmetical output change - the hidden fields are output after the
	update panels contents is sent in an async request. It makes the
	async response look similar to the MS.NET's one but, more
	importantly, makes debugging easier.

svn path=/trunk/mcs/; revision=114660
2008-10-02 12:03:38 +00:00
Marek Habersack 4e00a2477e 2008-10-02 Marek Habersack <[email protected]>
* ScriptManager.cs: reverting revision 114552 since the real bug
	was somewhere else. The correct fix is to make sure UpdatePanels
	which output something _or_ have been named in the POST request as
	requiring a refresh are marked as such. Only in that situation
	HasBeenRendered returns true (as it should for those panels)

svn path=/trunk/mcs/; revision=114654
2008-10-02 10:02:26 +00:00
Gonzalo Paniagua Javier f1a6211ad2 2008-10-02 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: IN_CLOSE_WRITE is triggered when a writable file is
	closed, but that does not mean that the file was actually modified.
	Fixes bug #323188.

svn path=/trunk/mcs/; revision=114646
2008-10-02 04:09:54 +00:00
Mark Probst 1fff91d580 2008-10-01 Mark Probst <[email protected]>
* object.c, domain.c, object-internals.h, domain-internals.h:
	Generalize IMT thunk machinery to also handle thunks for virtual
	generic method invokes.  When a virtual generic method is invoked
	more than a number of times we insert it into the thunk so that it
	can be called without lookup in unmanaged code.

	* generic-sharing.c, class-internals.h: Fetching a
	MonoGenericInst* for a method from an (M)RGCTX.

2008-10-01  Mark Probst  <[email protected]>

	* method-to-ir.c: When generic sharing is active, call
	non-interface virtual generic methods via the standard trampoline.

	* mini-trampolines.c: Handle virtual generic shared methods.

	* mini.h, mini-x86.c, mini-x86.h: New argument for
	mono_arch_build_imt_thunk() which is non-NULL for virtual generic
	method thunks and which is the trampoline to call if the lookup
	fails.  Enable the virtual generic method thunk for x86.

	* mini-amd64.c, mini-arm.c, mini-ia64.c, mini-sparc.c,
	mini-ppc.c (mono_arch_build_imt_thunk): Add the additional
	argument but assert that it's NULL, because these archs don't yet
	implement the virtual generic method thunk.  Changes in the IMT
	thunk data structures.

svn path=/trunk/mono/; revision=114630
2008-10-01 21:54:55 +00:00
Jonathan Pobst 3e5c68ec6e 2008-10-01 Jonathan Pobst <[email protected]>
* DataGridViewColumnHeaderCell.cs: Correctly calculate style.
	* DataGridView.cs: Use a column header's inherited style instead
	of just using the default.

svn path=/trunk/mcs/; revision=114628
2008-10-01 21:48:01 +00:00
Zoltan Varga d05f8e0b6e Revert r114538, vc++ compiled code uses byref return types.
svn path=/trunk/mono/; revision=114623
2008-10-01 20:57:40 +00:00
Jonathan Pobst 4fed403d66 2008-10-01 Jonathan Pobst <[email protected]>
* SplitContainer.cs: Raise SplitterMoved when the splitter is
	moved through code.

svn path=/trunk/mcs/; revision=114619
2008-10-01 20:48:41 +00:00
Zoltan Varga 98f9b1cbae 2008-10-01 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_globals): Avoid invalid characters in
	the static linking symbol.

svn path=/trunk/mono/; revision=114617
2008-10-01 20:39:52 +00:00
Mario Carrion d36bb3feea 2008-10-01 Mario Carrion <[email protected]>
* ScrollBar.cs: Internal property added: UIAThumbPosition.


svn path=/trunk/mcs/; revision=114608
2008-10-01 20:12:52 +00:00
Jonathan Pobst a0b62ec300 2008-10-01 Jonathan Pobst <[email protected]>
* ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.

svn path=/trunk/mcs/; revision=114606
2008-10-01 19:25:38 +00:00
Jonathan Pobst 98c37a6011 2008-10-01 Jonathan Pobst <[email protected]>
* ToolStripItem.cs: When the user sets Owner, we need to remove
	it from its previous owner and then add it to the new owner's
	item collection.  Also, create InternalOwner, so we can set the owner
	that doesn't do this new stuff.
	* ToolStripItemCollection.cs: Use InternalOwner instead of Owner.

svn path=/trunk/mcs/; revision=114603
2008-10-01 19:21:17 +00:00
Marek Safar 235546d9ab 2008-10-01 Marek Safar <[email protected]>
* anonymous.cs: Use full type parameters of parent generic
	containers. Removed unnecessary AddParentStoreyReference call.


svn path=/trunk/mcs/; revision=114602
2008-10-01 19:09:52 +00:00
Jonathan Pobst 9a2ea458f6 2008-10-01 Jonathan Pobst <[email protected]>
* ToolStripItem.cs: When our parent changes, recalculate our text
	size, since we may be getting our Font from our parent.  When our
	owner's Font changes, recalculate ourselves as we may be using
	that font.

svn path=/trunk/mcs/; revision=114600
2008-10-01 18:42:02 +00:00
Zoltan Varga a14e1ef7b1 2008-10-01 Zoltan Varga <[email protected]>
* objects.cs: Add a test for the range check optimization. Fix warnings.

svn path=/trunk/mono/; revision=114599
2008-10-01 18:34:30 +00:00
Zoltan Varga 169f0c3d1c 2008-10-01 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Add back the 'optimize range checks'
	optimization from the current JIT.

	* method-to-ir.c (mini_emit_inst_for_method): Decompose String.Length
	later in decompose_array_access_opts () to allow more optimizations.

	* method-to-ir.c (mono_handle_soft_float): Rename this to 
	mono_decompose_soft_float () for consistency.

svn path=/trunk/mono/; revision=114597
2008-10-01 18:28:03 +00:00
Zoltan Varga 7ae984b976 2008-10-01 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Add back the 'optimize range checks'
	optimization from the current JIT.

	* method-to-ir.c (mini_emit_inst_for_method): Decompose String.Length
	later in decompose_array_access_opts () to allow more optimizations.

	* method-to-ir.c (mono_handle_soft_float): Rename this to 
	mono_decompose_soft_float () for consistency.

svn path=/trunk/mono/; revision=114596
2008-10-01 18:27:47 +00:00
Ankit Jain d25f2e6b86 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* BuildEngine.cs (.ctor): Replace 'projectFile' param with 'project'.
	(BuildProjectFile): If filename is null (project.LoadXml) then use
	engine.BuildProject
	* BuildTask.cs (InitializeTask): Track api change.
	* Expression.cs (Parse): Skip empty entries in the expression.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* ProjectTest.cs: Refactor BuildProjectFile tests. Add tests for loading
	project from files and xml string.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

	* CallTarget.cs (Execute): Implement.

In tools/xbuild:

	* xbuild/Microsoft.Common.tasks: Add CallTarget and AssignTargetPath task.

svn path=/trunk/mcs/; revision=114590
2008-10-01 16:58:09 +00:00
Zoltan Varga 35d99a534e 2008-10-01 Zoltan Varga <[email protected]>
* pinvoke3.cs libtest.c: Add test for byref string marshalling.

svn path=/trunk/mono/; revision=114586
2008-10-01 16:38:39 +00:00
Zoltan Varga 22c22d1319 2008-10-01 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_string): Applied a variant of a patch by
	tom hindle <[email protected]>. Fix byref native-to-managed string
	marshalling. Fixes #431304.

svn path=/trunk/mono/; revision=114585
2008-10-01 16:37:55 +00:00
Bill Holmes dab447a6a7 2008-10-01 Bill Holmes <[email protected]>
* marshal.c (emit_marshal_variant) : Change the attribute checks to 
	  handle when ref is specified without In or Out.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=114583
2008-10-01 16:29:02 +00:00
Everaldo Canuto 2196b12639 In System.Windows.Forms:
2008-10-01  Everaldo Canuto  <[email protected]>

	* MenuAPI.cs: Select the first option of a popup when opening the popup via
	return key. [Fixes bug #413792].


svn path=/trunk/mcs/; revision=114578
2008-10-01 15:43:02 +00:00
Zoltan Varga 3d0c5415e9 2008-10-01 Zoltan Varga <[email protected]>
* method-to-ir.c (save_cast_details): Extract the cast details saving code
	into a separate function.
	(reset_cast_details): Ditto.
	(handle_unbox): Save cast details. Fixes #431254.

svn path=/trunk/mono/; revision=114577
2008-10-01 15:29:22 +00:00
Marek Safar 219c7cd99f New test.
svn path=/trunk/mcs/; revision=114574
2008-10-01 15:08:11 +00:00
Marek Safar 577c91719f New test.
svn path=/trunk/mcs/; revision=114572
2008-10-01 15:04:19 +00:00
Marek Safar b7e74999f8 2008-10-01 Marek Safar <[email protected]>
A fix for bug #324702
	* class.cs: Use better shorter names for explicit interface member
	implementations.

	* ecore.cs, typemanager.cs: Convert only mscorlib predefined names.


svn path=/trunk/mcs/; revision=114571
2008-10-01 15:03:59 +00:00
Jonathan Pobst 3355d911e9 2008-10-01 Jonathan Pobst <[email protected]>
* ToolStripItem.cs: Make Font, BackColor, and ForeColor be
	ambient properties.  (Get their value from their parents if
	values haven't been set.)

svn path=/trunk/mcs/; revision=114570
2008-10-01 15:00:26 +00:00
Jb Evain 2b80c0c7ee add mono-cecil-strip.1 to the build
svn path=/trunk/mono/; revision=114569
2008-10-01 14:59:22 +00:00
Marek Safar 9f026159f3 2008-10-01 Marek Safar <[email protected]>
* expression.cs: Use new interface to check fixed expression.


svn path=/trunk/mcs/; revision=114568
2008-10-01 14:58:11 +00:00
Jb Evain 689e85889c add man page for mono-cil-strip
svn path=/trunk/mono/; revision=114567
2008-10-01 14:55:01 +00:00
Jb Evain 63aa2a39ef 2008-10-01 Jb Evain <[email protected]>
* scripts/Makefile.am: add mono-cil-strip.


svn path=/trunk/mono/; revision=114566
2008-10-01 14:47:40 +00:00
Jb Evain 8a79e77d0a 2008-10-01 Jb Evain <[email protected]>
* Makefile: add cil-strip to the build.


svn path=/trunk/mcs/; revision=114565
2008-10-01 14:43:03 +00:00
Jb Evain e749dc5d10 add cil-strip tool
svn path=/trunk/mcs/; revision=114564
2008-10-01 14:42:44 +00:00
Jonathan Pobst d0e124e2c1 2008-10-01 Jonathan Pobst <[email protected]>
* ToolStripSystemRenderer.cs: Call overridden methods' bases
	after our logic, so users can do painting by handling the events.
	Currently, we draw over any user painting.

svn path=/trunk/mcs/; revision=114563
2008-10-01 14:38:05 +00:00
Jonathan Pobst 6ca8b4b714 2008-10-01 Jonathan Pobst <[email protected]>
* ToolStripProfessionalRenderer.cs: Call overridden methods' bases
	after our logic, so users can do painting by handling the events.
	Currently, we draw over any user painting.

svn path=/trunk/mcs/; revision=114562
2008-10-01 14:35:58 +00:00
Jb Evain c26b399fcb internalize
svn path=/trunk/mcs/; revision=114561
2008-10-01 14:30:43 +00:00
Jb Evain c5f84ac899 2008-10-01 Jb Evain <[email protected]>
* Mono.Cecil.dll.sources
	* Mono.Cecil.csproj
	* Mono.Cecil/AssemblyStripper.cs
	* Mono.Cecil.Cil/CodeWriter.cs
	* Mono.Cecil.Metadata/MetadataWriter.cs: add a new AssemblyStripper
	class to be used by a tool to empty method bodies for assemblies
	that have been AOTed.


svn path=/trunk/mcs/; revision=114559
2008-10-01 14:24:17 +00:00
Everaldo Canuto 94c91b331e In System.Windows.Forms:
2008-09-30  Everaldo Canuto  <[email protected]>

	* MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.


svn path=/trunk/mcs/; revision=114556
2008-10-01 12:43:20 +00:00
Marek Safar 33028b1a2c New tests, updates.
svn path=/trunk/mcs/; revision=114555
2008-10-01 11:06:26 +00:00
Marek Safar 93d04fc148 2008-10-01 Marek Safar <[email protected]>
A fix for bug #421101
	* expression.cs, statement.cs, ecore.cs: Use IFixedExpression
	interface to check for fixed fixed-buffers.


svn path=/trunk/mcs/; revision=114554
2008-10-01 11:06:03 +00:00
Marek Safar af9e642580 2008-10-01 Marek Safar <[email protected]>
* compiler-tester.cs: Fixed broken value type test.


svn path=/trunk/mcs/; revision=114553
2008-10-01 11:03:42 +00:00
Marek Habersack 123f42b627 2008-10-01 Marek Habersack <[email protected]>
* ScriptManager.cs: be more careful when rendering script blocks
	and checking if the control's page matches the current
	page. Control passed to script registration methods doesn't
	necessarily have to be a Page itself and if it's not we need to
	find the owning page of a script block's control.

svn path=/trunk/mcs/; revision=114552
2008-10-01 10:36:56 +00:00
Marek Habersack 224325b8ba 2008-10-01 Marek Habersack <[email protected]>
* CapabilitiesResult.cs: added support for the "browsers"
	capability - a collection of matching browser ids.

	* nBrowser/Node.cs: store matching browser ids in the capabilities
	collection (to support IsBrowser correctly)

2008-10-01  Marek Habersack  <[email protected]>

	* BrowserCapabilities.cs: IsBrowser needs to compare browser names
	case insensitively.

svn path=/trunk/mcs/; revision=114551
2008-10-01 09:01:53 +00:00
Marek Safar 7383c58406 New test.
svn path=/trunk/mcs/; revision=114550
2008-10-01 08:57:08 +00:00
Marek Safar 3df3bd5aaa 2008-10-01 Marek Safar <[email protected]>
A fix for bug #429264
	* assign.cs, anonymous.cs, ecore.cs: More type mutators added.
	
	* delegate.cs: Removed unnecessary casts.


svn path=/trunk/mcs/; revision=114549
2008-10-01 08:56:52 +00:00
Zoltan Varga fa57bb7b31 2008-10-01 Zoltan Varga <[email protected]>
* method-to-ir.c: Remove some obsolete FIXMEs.

svn path=/trunk/mono/; revision=114539
2008-10-01 02:25:03 +00:00
Zoltan Varga c5f5246886 2008-10-01 Zoltan Varga <[email protected]>
* mini-amd64.c mini-x86.c mini-arm.c mini-ppc.c method-to-ir.c: Remove
	the workaround for byref being set on sig->ret, this does not seem to
	happen any more. Add an assert instead.

svn path=/trunk/mono/; revision=114538
2008-10-01 02:17:32 +00:00
Michael Hutchinson aa4bddf53a 2008-09-30 Michael Hutchinson <[email protected]>
* HttpServerChannel.cs: make sure the channel data object is set 
	  when the port is auto-assigned.
	* HttpClientTransportSink.cs: Use the __RequestUri header for the 
	  request's URI. Includes workaround for bad __RequestUri values.
	
	Fixes Bug 378713 - [regression] Remoting - HttpChannel.


svn path=/trunk/mcs/; revision=114530
2008-10-01 00:00:25 +00:00
Rodrigo Kumpera c1c6b5c915 Squashed commit of the following:
commit de53f0dbd60e84d9bd82e53295bf2f4ed4dd689a
Author: Rodrigo Kumpera <[email protected]>
Date:   Tue Sep 30 18:57:57 2008 -0300

    Reordered the Changelog

commit 3d2e552c303a2fe277b5b97156c42ae400d6d37c
Author: Rodrigo Kumpera <[email protected]>
Date:   Tue Sep 30 18:39:39 2008 -0300

    2008-09-30 Rodrigo Kumpera <[email protected]>

    	* ir-emit.h (alloc_dreg): Write a warning before crashing.

commit c60d0b9a38ef4ba22f2781637e8e55a1144473fa
Author: Rodrigo Kumpera <[email protected]>
Date:   Tue Sep 30 17:48:37 2008 -0300

    2008-09-30 Rodrigo Kumpera <[email protected]>

    	* mini-codegen.c: More work on macros to make them
    	ready for multiple regbanks.

commit ca8eb8c49bd8f42b04257d05593b151cfe7e43b3
Author: Rodrigo Kumpera <[email protected]>
Date:   Tue Sep 30 16:28:34 2008 -0300

    2008-09-30 Rodrigo Kumpera <[email protected]>

    	* method-to.ir.c (mono_type_to_regmove): Remove static modifier.

    	* mini.h: Export mono_type_to_regmove. Fix signature of mono_regname_full.

commit d9daa3e244a54519fe09624b3785914a427b30d0
Author: Rodrigo Kumpera <[email protected]>
Date:   Tue Sep 30 15:08:33 2008 -0300

     * mini-codegen.c (mono_spillvar_offset): Proper support for multiple regbanks.

svn path=/trunk/mono/; revision=114520
2008-09-30 22:05:06 +00:00
Zoltan Varga 460d1f4356 2008-09-30 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_epilog): Remove some duplicated code from
	the stack overflow changes.

svn path=/trunk/mono/; revision=114518
2008-09-30 21:52:31 +00:00
Jonathan Pobst 83e44baebb 2008-09-30 Jonathan Pobst <[email protected]>
* TreeNode.cs, TreeView.cs: Move logic that determines the node
	image to draw to TreeNode.  Give Index/Keys put on the node
	precedence over the global one for the TreeView.

svn path=/trunk/mcs/; revision=114515
2008-09-30 21:33:57 +00:00
Mark Probst 567098b12d 2008-09-30 Mark Probst <[email protected]>
* loader.c (mono_get_method_constrained): Don't expand method with
	the class's context, because it's already a method of that class.

2008-09-30  Mark Probst  <[email protected]>

	* generic-constrained.2.il: Test case for the constrained. prefix
	with generic interfaces.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=114513
2008-09-30 21:26:07 +00:00
Jb Evain f615770859 2008-09-30 Jb Evain <[email protected]>
* QueryableEnumerable.cs: fix ElementType.


svn path=/trunk/mcs/; revision=114511
2008-09-30 21:23:16 +00:00
Jb Evain bd253ea443 add test for IQueryable.ElementType
svn path=/trunk/mcs/; revision=114510
2008-09-30 21:22:49 +00:00
Jonathan Pobst 8d30a88da9 2008-09-30 Jonathan Pobst <[email protected]>
* TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.

2008-09-30  Jonathan Pobst  <[email protected]>

	* TreeNodeTest.cs: Test for ImageKey/ImageIndex plus flush some tests
	sitting in my local tree.

svn path=/trunk/mcs/; revision=114508
2008-09-30 21:13:16 +00:00
Miguel de Icaza 22a47a566a Remove text that was copy pasted from MSBuild
svn path=/trunk/mcs/; revision=114506
2008-09-30 21:05:30 +00:00
Juraj Skripsky c0fa5b39e4 2008-09-30 Juraj Skripsky <[email protected]>
* CachedRawResponse.cs: Don't allocate a 32k buffer that is never 
	used. Fixes enhancement bug #430963.

svn path=/trunk/mcs/; revision=114502
2008-09-30 19:20:35 +00:00
Rodrigo Kumpera 7194a3e485 Fixed the Changelog formating.
svn path=/trunk/mono/; revision=114493
2008-09-30 15:16:08 +00:00
Rodrigo Kumpera a4cc781c1a Added changelog entry
svn path=/trunk/mono/; revision=114492
2008-09-30 15:14:40 +00:00
Rodrigo Kumpera 39e5cc6d53 * mini-codegen.c: Make all bank macros depend on reg_bank.
svn path=/trunk/mono/; revision=114491
2008-09-30 15:14:38 +00:00
Rodrigo Kumpera c7df35be75 * mini-codegen.c (mono_local_regalloc): Make free mask
initialization regbank aware.

svn path=/trunk/mono/; revision=114490
2008-09-30 15:14:37 +00:00
Marek Safar 973164db7d New tests.
svn path=/trunk/mcs/; revision=114489
2008-09-30 15:02:59 +00:00
Marek Safar 3558dde0a4 New tests.
svn path=/trunk/mcs/; revision=114488
2008-09-30 15:02:44 +00:00
Marek Safar a82b65ebfd 2008-09-30 Marek Safar <[email protected]>
A fix for bug #352151
	* decl.cs, iterators.cs, anonymous.cs, report.cs, namespace.cs,
	class.cs: Fixed already defined explicit interface members check.


svn path=/trunk/mcs/; revision=114487
2008-09-30 15:02:07 +00:00
Sebastien Pouliot c46744c504 fix build
svn path=/trunk/mcs/; revision=114484
2008-09-30 14:38:42 +00:00
Veerapuram Varadhan efe5bd6fb8 * SqlDataReader.cs (GetSqlXml): Handle the scenario when Sql Server 2005
returns Xml column type as NTEXT when called from clients that use <
  TDS 8.0 protocol.


svn path=/trunk/mcs/; revision=114482
2008-09-30 14:01:22 +00:00
Marek Safar 8a259f5bf6 Removed unused name
svn path=/trunk/mcs/; revision=114478
2008-09-30 13:44:21 +00:00
Marek Habersack d84f0b5119 2008-09-30 Marek Habersack <[email protected]>
* ListView.cs: implemented all the events.
	CreateChildControls works with non-ICollection data sources now.
	CreateItemsWithoutGroups now counts items placed in the container
	and stores the container in a field, so that RemoveItems can
	properly delete the child controls.
	Implemented the RemoveItems method.
	Implemented Load/SaveControlState.
	Implemented LoadViewState.
	Implemented OnBubbleEvent.
	Implemented all the On* methods.

	* ListViewCommandEventArgs.cs: implemented the CommandSource and
	Item properties.

	* ListViewItemEventArgs.cs: implemented the Item property.

svn path=/trunk/mcs/; revision=114477
2008-09-30 13:38:22 +00:00
Sebastien Pouliot 93d496c914 2008-09-30 Sebastien Pouliot <[email protected]>
* RoleGroupCollectionTest.cs: Add test case this[int].


svn path=/trunk/mcs/; revision=114476
2008-09-30 13:12:54 +00:00
Rodrigo Kumpera 76f3cd3ceb 2008-09-30 Rodrigo Kumpera <[email protected]>
* mini-codegen.c (mono_local_regalloc): Extract callee
        mask selection to a function and make it regbank aware.

svn path=/trunk/mono/; revision=114475
2008-09-30 13:04:36 +00:00
Sebastien Pouliot 48b518fdd7 2008-09-30 Sebastien Pouliot <[email protected]>
* RoleGroupCollection.cs: Fix recursive calls (wrong target)
	[Found using Gendarme's BadRecursiveInvocationRule]


svn path=/trunk/mcs/; revision=114474
2008-09-30 12:55:24 +00:00
Marek Habersack f9d08cbc2f 2008-09-30 Marek Habersack <[email protected]>
* System.Web.Extensions.Design_1.0.dll.sources: added

	* Makefile: added

2008-09-30  Marek Habersack  <[email protected]>

	* System.Web.Extensions_1.0.dll.sources: added

	* Makefile: added

2008-09-30  Marek Habersack  <[email protected]>

	* Makefile (LIB_MCS_FLAGS): added -define:NET_3_5 as the 3.5 parts
	of the assembly are now built as part of the 2.0 profile.

2008-09-30  Marek Habersack  <[email protected]>

	* Makefile (net_2_0_dirs): added System.Web.Extensions_1.0 and
	System.Web.Extensions.Design_1.0
	(net_3_5_dirs): removed System.Web.Extensions, the 3.5 version is
	now built in the 2.0 profile.

svn path=/trunk/mcs/; revision=114471
2008-09-30 09:19:57 +00:00
Atsushi Eno 1f11f208dd 2008-09-30 Atsushi Enomoto <[email protected]>
* attach.c : should be correct build fix.


svn path=/trunk/mono/; revision=114469
2008-09-30 06:32:15 +00:00
Rodrigo Kumpera b3221ebd91 2008-09-30 Rodrigo Kumpera <[email protected]>
* mini-codegen.c (mono_local_regalloc): Changed the cloberring
	code to deal with many regbanks.

svn path=/trunk/mono/; revision=114463
2008-09-30 02:31:19 +00:00
Zoltan Varga 1c0fca02e3 2008-09-30 Zoltan Varga <[email protected]>
* mini-codegen.c: More fp->regbank changes.

svn path=/trunk/mono/; revision=114450
2008-09-29 22:12:58 +00:00
Mario Carrion babcc5d503 2008-09-29 Mario Carrion <[email protected]>
* ListBox.cs: Index fixed.

svn path=/trunk/mcs/; revision=114447
2008-09-29 21:34:59 +00:00
Rodrigo Kumpera a9da91e9f8 * mini-codegen.c: Change asserts to use MONO_NUM_REGBANKS instead
of a hardcoded constant.

2008-09-29  Rodrigo Kumpera  <[email protected]>


svn path=/trunk/mono/; revision=114434
2008-09-29 19:36:31 +00:00
Rodrigo Kumpera a8027098ba 2008-09-29 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (type_from_stack_type): Fix typo.


svn path=/trunk/mono/; revision=114433
2008-09-29 19:34:18 +00:00
Marek Habersack 4ed96de44f 2008-09-29 Marek Habersack <[email protected]>
* Page.cs: Implemented the UniqueFilePathSuffix and MaxPageStateFieldLength
	properties.
	Some coding style changes.

svn path=/trunk/mcs/; revision=114432
2008-09-29 19:31:27 +00:00
Marek Habersack 00359b3759 2008-09-29 Marek Habersack <[email protected]>
* Page.cs: EnableViewState is initialized from the web
	configuration. 
	ViewState is saved only if EnableViewState is true for the page.
	Optimized SavePageControlState implementation.

svn path=/trunk/mcs/; revision=114431
2008-09-29 19:10:29 +00:00
Miguel de Icaza 34bb1c48cf Nothing to see here
svn path=/trunk/mcs/; revision=114426
2008-09-29 17:05:57 +00:00
Miguel de Icaza 75b286fb70 Nothing to see here
svn path=/trunk/mcs/; revision=114425
2008-09-29 17:02:53 +00:00
Carlos Alberto Cortez 1af5af2294 2008-09-29 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: When expanding the tab -because it's selected now-,
	using Right alignment, instead of adding some selected delta value to
	the X origin, substract it, so it gets a location adjacent to the panel, 
	instead of be more separated.
	Fixes #409170.


svn path=/trunk/mcs/; revision=114424
2008-09-29 17:01:10 +00:00
Zoltan Varga 9180642633 2008-09-29 Zoltan Varga <[email protected]>
* Makefile.am (PLATFORM_DISABLED_TESTS): Disable some tests on ia64.

svn path=/trunk/mono/; revision=114418
2008-09-29 16:07:55 +00:00
Zoltan Varga 04ccb6bd06 Fix some typos.
svn path=/trunk/mono/; revision=114417
2008-09-29 16:07:04 +00:00
Zoltan Varga 0f90f293b4 2008-09-29 Zoltan Varga <[email protected]>
* mini-ia64.c (emit_move_return_value): Convert float return values to
			double.

			* objects.cs: Add a new test.

svn path=/trunk/mono/; revision=114416
2008-09-29 16:01:31 +00:00
Rodrigo Kumpera 03e564d8d9 2008-09-29 Rodrigo Kumpera <[email protected]>
* mcs.pot, *.po: Update messages from the mcs tree.


svn path=/trunk/mono/; revision=114415
2008-09-29 15:49:46 +00:00
Rodrigo Kumpera 6682c9a105 2008-09-29 Rodrigo Kumpera <[email protected]>
cs-tokenizer.cs: Fix typo.



svn path=/trunk/mcs/; revision=114414
2008-09-29 15:46:31 +00:00
Jonathan Pobst 5aa6a79629 2008-09-29 Jonathan Pobst <[email protected]>
* dialog-*.png: Remove unused images.  (Were used in MessageBoxes).

2008-09-29  Jonathan Pobst  <[email protected]>

	* System.Windows.Forms.dll.resources: Removed unused dialog-*.png images.

svn path=/trunk/mcs/; revision=114411
2008-09-29 15:15:45 +00:00
Jonathan Pobst 27b5716bc9 2008-09-29 Jonathan Pobst <[email protected]>
* MessageBox.cs: Use SystemIcons for graphics instead of keeping our
	own copies of them.

svn path=/trunk/mcs/; revision=114409
2008-09-29 15:09:10 +00:00
Jb Evain 16b46752b8 2008-09-29 Jb Evain <[email protected]>
* Mono.Cecil/GenericParameter.cs: override TypeReference.Scope.


svn path=/trunk/mcs/; revision=114406
2008-09-29 14:50:39 +00:00
Zoltan Varga 14e5dffb00 2008-09-29 Zoltan Varga <[email protected]>
* scripts/patch-quiet.sh: Handle the ifs used by some versions of
	automake.

svn path=/trunk/mono/; revision=114403
2008-09-29 14:47:38 +00:00
Zoltan Varga 8b7f8e434d 2008-09-29 Zoltan Varga <[email protected]>
* mini-ia64.c (mono_arch_allocate_vars): Disable fp elimination for
	VARARG methods to fix an assert later.


svn path=/trunk/mono/; revision=114401
2008-09-29 14:46:14 +00:00
Rodrigo Kumpera 2040b5c495 * TypeBuilderTest.cs: Fix the 1.0 build.
2008-09-29 Rodrigo Kumpera  <[email protected]>


svn path=/trunk/mcs/; revision=114400
2008-09-29 14:37:27 +00:00
Rodrigo Kumpera 30094d5751 2008-09-29 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Add a test for MakeGenericType with EnumBuilder.
	Tests #430508.


svn path=/trunk/mcs/; revision=114399
2008-09-29 14:32:51 +00:00
Rodrigo Kumpera bcf13aa80d 2008-09-29 Rodrigo Kumpera <[email protected]>
* Type.cs (MakeGenericType): Only use UnderlyingSystemType for user types.
	This must exclude TypeBuilder and EnumBuilder. Fixes #430508.


svn path=/trunk/mcs/; revision=114398
2008-09-29 14:31:22 +00:00
Geoff Norton 342e676117 2008-09-29 Geoff Norton <[email protected]>
* include/private/gcconfig.h: Make Darwin/ARM use mmap() instead of
	sbrk() for its allocator implementation.

svn path=/trunk/mono/; revision=114396
2008-09-29 14:05:48 +00:00
Zoltan Varga 4b20548f8a 2008-09-29 Zoltan Varga <[email protected]>
* attach.c: Fix the previous change.

svn path=/trunk/mono/; revision=114394
2008-09-29 13:54:55 +00:00
Carlos Alberto Cortez 3a070db7ff 2008-09-29 Carlos Alberto Cortez <[email protected]>
* X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
	as well as the other static fields, to avoid using their previous
	values my mistake when handling the dnd events. This should avoid
	handling any status event after the drop has been finalized/cancelled.


svn path=/trunk/mcs/; revision=114378
2008-09-29 10:39:15 +00:00
Atsushi Eno da2f712a4a 2008-09-29 Atsushi Enomoto <[email protected]>
* attach.c : quick w32 build fix.


svn path=/trunk/mono/; revision=114377
2008-09-29 10:21:56 +00:00
Marek Habersack 13b2ad3059 2008-09-29 Marek Habersack <[email protected]>
* HttpApplication.cs: do not assume the passed IAsyncResult is a
	is a valid object in async_handler_complete_cb. Fixes bug #430488

svn path=/trunk/mcs/; revision=114373
2008-09-29 09:33:09 +00:00
Jb Evain 3ab1fbeb90 2008-09-29 Jb Evain <[email protected]>
* DictionaryTest.cs: test for null argument for ContainsKey.
	Patch by Jonathan Anderson  <[email protected]>


svn path=/trunk/mcs/; revision=114372
2008-09-29 07:44:17 +00:00
Jb Evain 399b1652ad 2008-09-29 Jb Evain <[email protected]>
* Dictionary.cs: check for null argument in ContainsKey.
	Patch by Jonathan Anderson  <[email protected]>


svn path=/trunk/mcs/; revision=114371
2008-09-29 07:43:31 +00:00
Marek Habersack a85f32bb17 Remove some code noise
svn path=/trunk/mcs/; revision=114370
2008-09-29 06:54:34 +00:00
Marek Habersack 45c4d688ac 2008-09-29 Marek Habersack <[email protected]>
* OutputCacheModule.cs: invalidate cache entries when the
	corresponding source file (.as?x) is recompiled by hooking up to
	System.Web.Compilation.BuildManager's build cache entry removal
	event. Fixes bug #429926

2008-09-29  Marek Habersack  <[email protected]>

	* BuildManagerRemoveEntryEventHandler.cs: added

	* BuildManager.cs: added a static event to notify interested
	parties when an entry is removed from the buildCache. Fixes bug
	#429926.

svn path=/trunk/mcs/; revision=114369
2008-09-29 06:53:14 +00:00
Miguel de Icaza bc0339e2eb Use new quit system
svn path=/trunk/mcs/; revision=114354
2008-09-29 03:36:23 +00:00
Miguel de Icaza 2af4688df1 2008-09-28 Miguel de Icaza <[email protected]>
* eval.cs (InteractiveBase): The quit command now just sets a
	flag, instead of calling Environment.Exit(), it is milder on
	embedded hosts. 


svn path=/trunk/mcs/; revision=114353
2008-09-29 03:36:10 +00:00
Carlos Alberto Cortez 9bcef54914 2008-09-28 Carlos Alberto Cortez <[email protected]>
* DragAndDropTest.cs: Simplify some of the helper code, as well as
	adding a new test for dnd operations without mouse movement.


svn path=/trunk/mcs/; revision=114348
2008-09-29 01:32:23 +00:00
Carlos Alberto Cortez 89f8ff0952 2008-09-28 Carlos Alberto Cortez <[email protected]>
* X11Dnd.cs: We have to send a dnd enter event as soon as we start the
	operation, instead of waiting until we get any movement - this will
	help us to have the data available in case no movement was detected
	and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
	Finally add a windows.forms-only fallback to fire the mentioned events
	if no movement at all was detected, just like .net does.
	Fixes #381876.


svn path=/trunk/mcs/; revision=114347
2008-09-29 01:27:53 +00:00
Zoltan Varga aa94243b52 2008-09-29 Zoltan Varga <[email protected]>
* mini-mips.h mini-mips.c mini-ops.h cpu-mips.md: Update the mips back
	end so it at least compiles.

svn path=/trunk/mono/; revision=114346
2008-09-29 00:00:36 +00:00
Gonzalo Paniagua Javier 7de20eb8b6 2008-09-28 Gonzalo Paniagua Javier <[email protected]>
* NetworkInterface.cs: special case for loopback interfaces so that
	their a physical interface address is PhysicalInterfaceAddress.None.
	Fixes bug #422118.


svn path=/trunk/mcs/; revision=114343
2008-09-28 23:20:11 +00:00
Miguel de Icaza af9a384c6c 2008-09-28 Miguel de Icaza <[email protected]>
* repl.cs (PrettyPrint): Add support for displaying characters
	properly. 

svn path=/trunk/mcs/; revision=114341
2008-09-28 21:21:32 +00:00
Sebastien Pouliot 0481b077d0 2008-09-28 Sebastien Pouliot <[email protected]>
* XmlDataSource.cs: Make sure the result of the multiplication is a
	long (not an integer casted into a long since it could overflow).
	[Found using Gendarme's ReviewCastOnIntegerMultiplicationRule]


svn path=/trunk/mcs/; revision=114339
2008-09-28 17:47:34 +00:00
Zoltan Varga 66b8a699b9 2008-09-28 Zoltan Varga <[email protected]>
* method-to-ir.c (emit_optimized_ldloca_ir): Fix this.

svn path=/trunk/mono/; revision=114337
2008-09-28 16:21:31 +00:00
Zoltan Varga eb50b38520 Put back a comment removed by the previous change.
svn path=/trunk/mono/; revision=114336
2008-09-28 16:08:44 +00:00
Rodrigo Kumpera f153125291 2008-09-28 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Extract the ldloca + initobj
	optimization to a new function (emit_optimized_ldloca_ir) and enable
	it for both ldloca and ldloca_s.


svn path=/trunk/mono/; revision=114335
2008-09-28 15:48:21 +00:00
Sebastien Pouliot e59e5dbd77 use 'L' instead of 'l' since the later can be confused with '1' and also to please JB ;-)
svn path=/trunk/mcs/; revision=114334
2008-09-28 15:32:03 +00:00
Sebastien Pouliot 2823c1df8b 2008-09-28 Sebastien Pouliot <[email protected]>
* HttpRequest.cs: Make sure the result of the multiplications are
	longs (not integers casted into longs since they could overflow).
	[Found using Gendarme's ReviewCastOnIntegerMultiplicationRule]


svn path=/trunk/mcs/; revision=114333
2008-09-28 15:24:02 +00:00
Sebastien Pouliot 6fb0b958fa 2008-09-28 Sebastien Pouliot <[email protected]>
* Enumerable.cs: Add missing cast Average on IEnumerable<long?> to
	ensure the result is not truncated.
	[Found using Gendarme's ReviewCastOnIntegerDivisionRule]


svn path=/trunk/mcs/; revision=114330
2008-09-28 14:55:32 +00:00
Sebastien Pouliot 77232da4fa 2008-09-28 Sebastien Pouliot <[email protected]>
* EnumerableTest.cs: Add test case for Average with nullable long.


svn path=/trunk/mcs/; revision=114329
2008-09-28 14:55:12 +00:00
Juraj Skripsky 744c5ae2dc Correct the date.
svn path=/trunk/mcs/; revision=114322
2008-09-28 08:23:47 +00:00
Juraj Skripsky bc9fd8e27d 2008-09-28 Juraj Skripsky <[email protected]>
* String.cs (ReplaceUnchecked): Avoid any unnecessary work and 
	string allocations by returning early when no oldValue was found.

2008-09-08  Juraj Skripsky  <[email protected]>

	* StringBuilder.cs (Replace): Return early when no oldValue was 
	found. Avoid extra string allocations.

svn path=/trunk/mcs/; revision=114321
2008-09-28 08:22:28 +00:00
Miguel de Icaza 4990894fc4 2008-09-28 Miguel de Icaza <[email protected]>
* eval.cs: CompiledMethod is now in Mono.CSharp, not nested inside
	the Evaluator, it was inconvenient to use.

svn path=/trunk/mcs/; revision=114316
2008-09-28 07:30:34 +00:00
Miguel de Icaza 9b5cff1565 Expose Report's stream
svn path=/trunk/mcs/; revision=114315
2008-09-28 07:29:20 +00:00
Miguel de Icaza 7c6a25e3b7 Bug fixed -> re-enable
svn path=/trunk/mono/; revision=114314
2008-09-28 07:27:40 +00:00
Zoltan Varga f72488dcc4 2008-09-28 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Remove an unnecessary assert in the
	gshared CASTCLASS code.

svn path=/trunk/mono/; revision=114309
2008-09-28 03:37:57 +00:00
Miguel de Icaza 52534583d5 2008-09-27 Miguel de Icaza <[email protected]>
* Turn off MONO_GENERIC_SHARING=all and go back to corlib as it
	crashes MonoDevelop: #430455.

svn path=/trunk/mono/; revision=114308
2008-09-28 02:37:22 +00:00
Zoltan Varga 2fd16f60e1 2008-09-28 Zoltan Varga <[email protected]>
* driver.c (mono_main): Add a workaround for shutdown crashes seen on
	amd64, where the libc stack unwinder encounters stack frames referring to
	native code in unmapped memory.

svn path=/trunk/mono/; revision=114307
2008-09-28 02:28:23 +00:00
Miguel de Icaza e38b3fb9d2 2008-09-27 Miguel de Icaza <[email protected]>
* getline.cs: Add support for autocompletion.
	


svn path=/trunk/mcs/; revision=114305
2008-09-27 23:31:32 +00:00
Miguel de Icaza e1123c3b0e 2008-09-27 Miguel de Icaza <[email protected]>
* repl.cs (RunRepl): Catch exceptions, and send those as errors
	back to the client.

svn path=/trunk/mcs/; revision=114304
2008-09-27 22:36:12 +00:00
Zoltan Varga d05c10b641 2008-09-28 Zoltan Varga <[email protected]>
* method-to-ir.c (mini_emit_check_array_type): Add support for generic
	sharing.

	* generics.cs: Add new test.

svn path=/trunk/mono/; revision=114303
2008-09-27 22:35:16 +00:00
Miguel de Icaza 0d05dd0a80 2008-09-27 Miguel de Icaza <[email protected]>
* Abdicate: renamed csharplib.dll into Mono.CSharp.dll

svn path=/trunk/mcs/; revision=114301
2008-09-27 21:16:23 +00:00
Miguel de Icaza f5a3c6b9d9 2008-09-27 Miguel de Icaza <[email protected]>
* repl.cs: Rename AttachedCSharpShell to ClientCSharpShell.

	Make most of the CSharpShell code into instance code, so that we
	can override the behavior on ClientCSharpShell and reuse most of
	the logic there.

	CSharpShell now has a virtual `Evaluate' that is used to implement
	the evaluator. 

	Implemented a new more robust protocol for sending the information
	back and forth.

	Now the results are show on the client, and come prettyprinted.


svn path=/trunk/mcs/; revision=114300
2008-09-27 20:43:41 +00:00
Zoltan Varga 80190e407a 2008-09-27 Zoltan Varga <[email protected]>
* mini-arm.h driver.c: Print the fp model when using --version on arm. Also,
	add a check that one of the ARM_FPU_ constants is defined.

svn path=/trunk/mono/; revision=114299
2008-09-27 19:40:33 +00:00
Zoltan Varga c7e1ced91f 2008-09-27 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_handle_soft_stack_ovf): Really fix the build.

svn path=/trunk/mono/; revision=114298
2008-09-27 19:30:26 +00:00
Zoltan Varga 5d461f3804 2008-09-27 Zoltan Varga <[email protected]>
* mini-exceptions.c: Fix build on non-altstack platforms.

svn path=/trunk/mono/; revision=114296
2008-09-27 17:57:25 +00:00
Zoltan Varga 81354ce702 2008-09-27 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Fix aot support for the
	sharing of vtypes.

	* ir-emit.h: Add a comment to NEW_PCONST.

svn path=/trunk/mono/; revision=114295
2008-09-27 17:44:43 +00:00
Zoltan Varga 4ad8683cdb 2008-09-27 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_altstack_restore_prot): Fix a warning.

	* mini.h (MonoJitDomainInfo): Move some fields here from MonoDomain.

	* mini.c aot-runtime.c method-to-ir.c driver.c mini-trampolines.c: Update
	after the changes to MonoJitDomainInfo.

svn path=/trunk/mono/; revision=114293
2008-09-27 16:09:50 +00:00
Zoltan Varga 5b1e37a525 2008-09-27 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_altstack_restore_prot): Fix a warning.

	* mini.h (MonoJitDomainInfo): Move some fields here from MonoDomain.

	* mini.c aot-runtime.c method-to-ir.c driver.c mini-trampolines.c: Update
	after the changes to MonoJitDomainInfo.

svn path=/trunk/mono/; revision=114292
2008-09-27 16:09:37 +00:00
Zoltan Varga 83b532d63c 2008-09-27 Zoltan Varga <[email protected]>
* domain-internals.h (struct _MonoDomain): Move most fields used only by
	the JIT do MonoJitDomainInfo in ../mini/mini.h.

	* domain.c: Remove initialization/cleanup of the removed fields.

svn path=/trunk/mono/; revision=114291
2008-09-27 16:07:04 +00:00
Zoltan Varga a9980b742e 2008-09-27 Zoltan Varga <[email protected]>
* VirtualMachine.cs (Attach): Delete the attach file in a finalizer.

svn path=/trunk/mcs/; revision=114289
2008-09-27 15:32:12 +00:00
Jonathan Pobst 3136ee364b 2008-09-27 Jonathan Pobst <[email protected]>
* Tango-fy SystemIcons.

svn path=/trunk/mcs/; revision=114287
2008-09-27 15:01:55 +00:00
Jonathan Pobst b0f6fc2158 2008-09-27 Jonathan Pobst <[email protected]>
* ThemeWin32Classic.cs: When drawing a status bar panel, don't
	return early if the text is empty because the icon doesn't get
	drawn then.  [Fixes bug #428113]

svn path=/trunk/mcs/; revision=114286
2008-09-27 14:53:07 +00:00
Mark Probst f5a3a8639a 2008-09-27 Mark Probst <[email protected]>
* mini-ppc.c, tramp-ppc.c, mini-ppc.h: Implement generic code sharing.

2008-09-27  Mark Probst  <[email protected]>

	* class.c (mono_class_generic_sharing_enabled): Enable generic
	code sharing for PPC.

svn path=/trunk/mono/; revision=114283
2008-09-27 14:18:30 +00:00
Mark Probst 5809f07f38 2008-09-27 Mark Probst <[email protected]>
* ppc/ppc-codegen.h: A few typecasts to fix compiler warnings.

2008-09-27  Mark Probst  <[email protected]>

	* mini-ppc.c: Compiler warning fixes.

svn path=/trunk/mono/; revision=114279
2008-09-27 13:02:48 +00:00
Mark Probst bb46f96990 2008-09-27 Mark Probst <[email protected]>
* mini-ppc.c: Special handling for 1/2 byte structs on Darwin only
	for pinvokes.

svn path=/trunk/mono/; revision=114277
2008-09-27 12:25:22 +00:00
Mark Probst 9f32598d95 2008-09-27 Mark Probst <[email protected]>
* exceptions-ppc.c, mini-ppc.h: Compile
	mono_arch_handle_altstack_exception() on Darwin, too.

svn path=/trunk/mono/; revision=114272
2008-09-27 09:41:53 +00:00
Mark Probst 3dca0a50c2 2008-09-27 Mark Probst <[email protected]>
* method-to-ir.c (mono_emit_rgctx_method_call_full): Must also
	work on archs which don't have generic sharing implemented, only
	without the vtable_arg.

svn path=/trunk/mono/; revision=114271
2008-09-27 08:57:24 +00:00
Miguel de Icaza 4f1437fcf7 update tuner file to the expanded C# compiler API
svn path=/trunk/mcs/; revision=114269
2008-09-27 06:55:34 +00:00
Miguel de Icaza 5a335ecc9d 2008-09-27 Miguel de Icaza <[email protected]>
* eval.cs (Evaluator): Introduce Compile method, to allow compiled
	code to be invoked without having to reparse.

svn path=/trunk/mcs/; revision=114268
2008-09-27 06:53:07 +00:00
Miguel de Icaza 214290bee8 Fix the test setup, Run was using the wrong test
svn path=/trunk/mcs/; revision=114267
2008-09-27 06:35:45 +00:00
Miguel de Icaza 92106a7845 Update tests
svn path=/trunk/mcs/; revision=114266
2008-09-27 06:29:21 +00:00
Miguel de Icaza b3bbfa26a5 Update tests
svn path=/trunk/mcs/; revision=114265
2008-09-27 06:29:15 +00:00
Miguel de Icaza 465d70cc14 2008-09-27 Miguel de Icaza <[email protected]>
* ecore.cs: The recent changes to FieldExpr broke this as well.
	Fixes LINQ queries in the interactive shell.

svn path=/trunk/mcs/; revision=114264
2008-09-27 06:25:03 +00:00
Miguel de Icaza a16d1cd73a 2008-09-27 Miguel de Icaza <[email protected]>
* Multiple files: indentation fixing for the Mono coding
	guidelines for the switch statement.

svn path=/trunk/mcs/; revision=114263
2008-09-27 06:11:20 +00:00
Miguel de Icaza e243de9685 Indentation
svn path=/trunk/mcs/; revision=114262
2008-09-27 06:02:32 +00:00
Miguel de Icaza 6afe9a8b51 2008-09-27 Miguel de Icaza <[email protected]>
* eval.cs: Make the Evaluator API thread safe.

svn path=/trunk/mcs/; revision=114261
2008-09-27 05:18:15 +00:00
Raja R Harinath b28e7d05a0 * DataView.cs: Convert into a partial class and sequester
interface-implementations and NET_2_0 pieces into separate parts.

svn path=/trunk/mcs/; revision=114232
2008-09-26 20:00:41 +00:00
Raja R Harinath 168c28d876 style nits
svn path=/trunk/mcs/; revision=114231
2008-09-26 20:00:05 +00:00
Raja R Harinath e62e931bc9 update known-issues-smcs
svn path=/trunk/mcs/; revision=114222
2008-09-26 19:08:27 +00:00
Raja R Harinath f2f9c75279 style nits
svn path=/trunk/mcs/; revision=114221
2008-09-26 19:08:07 +00:00
Raja R Harinath c9b2f2ad8d update known issues
svn path=/trunk/mcs/; revision=114220
2008-09-26 19:07:48 +00:00
Raja R Harinath 5afab5a033 style nits
svn path=/trunk/mcs/; revision=114219
2008-09-26 19:07:30 +00:00
Mark Probst 0abeb24e15 2008-09-26 Mark Probst <[email protected]>
* mini.c: Added comment explaining why delegate ctor icall
	wrappers are compiled.

svn path=/trunk/mono/; revision=114207
2008-09-26 17:27:48 +00:00
Mark Probst e0233429da 2008-09-26 Mark Probst <[email protected]>
* mini.c: Don't produce trampolines to delegate ctor icall
	wrappers but compile them upfront.

2008-09-26  Mark Probst  <[email protected]>

	* generic-delegate-ctor.2.cs: Test case for delegate ctor icall
	wrappers.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=114206
2008-09-26 16:50:00 +00:00
Marek Habersack 08f267f0ce 2008-09-26 Marek Habersack <[email protected]>
* BuildManager.cs: when creating a cache entry for a virtual path,
	make it depend on a list of files built recursively from all the
	virtual path's dependencies. Fixes bug #430114

svn path=/trunk/mcs/; revision=114205
2008-09-26 16:46:40 +00:00
Bill Holmes 29c051fcfb 2008-09-26 Bill Holmes <[email protected]>
* libmono.vcproj : Adding attach.c to the VC project.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=114202
2008-09-26 16:24:02 +00:00
Bill Holmes 2ca0980d7e 2008-09-26 Bill Holmes <[email protected]>
* attach.c : Fixing the Windows builds.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=114198
2008-09-26 16:18:44 +00:00
Paolo Molaro 81bf120cd1 Fri Sep 26 17:00:46 CEST 2008 Paolo Molaro <[email protected]>
* mini-amd64.c, mini-amd64.h, tramp-amd64.c: amd64 support code for calling a
	runtime-set function when going back to managed code. Currently this
	is used to set back the protection on the soft ovf pages and/or to
	throw the stack overflow exception that happened in unmanaged code.


svn path=/trunk/mono/; revision=114190
2008-09-26 15:02:35 +00:00
Juraj Skripsky 063fbcfbbd 2008-09-26 Juraj Skripsky <[email protected]>
* OutputCacheModule.cs: Consistently use InternalCache for
	CachedRawResponse items and Cache for CachedVaryBy items.
	Partial fix for bug #429926.

svn path=/trunk/mcs/; revision=114189
2008-09-26 14:56:10 +00:00
Paolo Molaro a984528c38 Fri Sep 26 16:46:23 CEST 2008 Paolo Molaro <[email protected]>
* tramp-x86.c, mini-x86.h, mini-x86.c: x86 support code for calling a
	runtime-set function when going back to managed code. Currently this
	is used to set back the protection on the soft ovf pages and/or to
	throw the stack overflow exception that happened in unmanaged code.


svn path=/trunk/mono/; revision=114188
2008-09-26 14:53:27 +00:00
Paolo Molaro c23e60a3bb Fri Sep 26 16:34:37 CEST 2008 Paolo Molaro <[email protected]>
* mini.h, mini.c, mini-trampolines.c, mini-exceptions.c: added
	the support code for restoring stack protection after stack overflows
	that happen in unmanaged code. Don't set the exec permission on the
	soft overflow area.


svn path=/trunk/mono/; revision=114186
2008-09-26 14:45:58 +00:00
Marek Safar 91ec818b2e 2008-09-26 Marek Safar <[email protected]>
* anonymous.cs, statement.cs, class.cs, cs-parser.jay: Simplified
	constructor parsing.


svn path=/trunk/mcs/; revision=114182
2008-09-26 13:56:29 +00:00
Daniel Nauck 83030f4fcb 2008-09-26 Daniel Nauck <[email protected]>
* de.po : update


svn path=/trunk/mono/; revision=114180
2008-09-26 13:16:01 +00:00
Daniel Nauck 381d931c1d fix build
svn path=/trunk/mono/; revision=114177
2008-09-26 12:12:17 +00:00
Daniel Nauck d3c46e6ead 2008-09-26 Daniel Nauck <[email protected]>
* de.po : update


svn path=/trunk/mono/; revision=114176
2008-09-26 11:44:57 +00:00
Daniel Nauck 7d4594b574 2008-09-26 Daniel Nauck <[email protected]>
* de.po : added german translation
	* LINGUAS : added de


svn path=/trunk/mono/; revision=114172
2008-09-26 10:06:42 +00:00
Marek Safar 00ef06acda 2008-09-26 Marek Safar <[email protected]>
A fix for bug #325326
	* statement.cs: Check possible mistaken empty statement using
	explicit blocks only.


svn path=/trunk/mcs/; revision=114170
2008-09-26 09:33:40 +00:00
Zoltan Varga 8d11605319 2008-09-26 Zoltan Varga <[email protected]>
* delegate9.cs: New test.

svn path=/trunk/mono/; revision=114164
2008-09-26 02:57:55 +00:00
Zoltan Varga 0b1c83129d 2008-09-26 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_delegate_trampoline): Add wrappers even if
	delegate->method_ptr is set. Fixes #428054.

svn path=/trunk/mono/; revision=114163
2008-09-26 02:56:59 +00:00
Miguel de Icaza eee8fa3c99 up
svn path=/trunk/mcs/; revision=114158
2008-09-26 01:05:11 +00:00
Miguel de Icaza 4c0d74d5ba 2008-09-25 Luis Ortiz <[email protected]>
* configure.in: Big arrays are only supported on 64 bit systems. 

	Fixes #430022

svn path=/trunk/mono/; revision=114157
2008-09-26 01:04:15 +00:00
Miguel de Icaza b4f5991e58 2008-09-25 Miguel de Icaza <[email protected]>
* eval.cs (LoadAssembly, ReferenceAssembly): Call
	RootNamespace.ComputeNamespaces to update the internal list of
	namespaces, this is no longer done for us.

	(InteractiveBase): Use the Evaluator APIs instead of calling into
	Driver directly


svn path=/trunk/mcs/; revision=114156
2008-09-26 01:01:28 +00:00
Zoltan Varga 727adf17dc 2008-09-26 Zoltan Varga <[email protected]>
* mono-mmap.c (mono_shared_area_for_pid): Fix a warning.

svn path=/trunk/mono/; revision=114137
2008-09-25 22:24:31 +00:00
Miguel de Icaza d7c20b480f 2008-09-25 Miguel de Icaza <[email protected]>
* repl.cs: On errors, return null.

svn path=/trunk/mcs/; revision=114123
2008-09-25 20:39:14 +00:00
Zoltan Varga 319c16bd7b 2008-09-25 Zoltan Varga <[email protected]>
* tests.cs: Rename to ratests.cs.

svn path=/trunk/mono/; revision=114112
2008-09-25 18:44:16 +00:00
Zoltan Varga 1cea4a91bc 2008-09-25 Zoltan Varga <[email protected]>
* method-to-ir.c: Merge the emit_get_rgctx () calls into the 
	emit_get_rgctx_... functions.

svn path=/trunk/mono/; revision=114111
2008-09-25 18:40:49 +00:00
Zoltan Varga 9e0c3fb151 2008-09-25 Zoltan Varga <[email protected]>
* class.c (mono_class_generic_sharing_enabled): Experimentally change 
	the default generic sharing mode to 'all'.

svn path=/trunk/mono/; revision=114108
2008-09-25 17:52:47 +00:00
Marek Habersack d02561966d 2008-09-25 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: do not trim the control value in
	CompareValidatorEvaluateIsValid.

svn path=/trunk/mcs/; revision=114105
2008-09-25 17:42:59 +00:00
Dick Porter c5516436a5 2008-09-25 Dick Porter <[email protected]>
* wait.c: Make sure we keep references to handles we're waiting
	for.  Fixes bug 424851.


svn path=/trunk/mono/; revision=114097
2008-09-25 17:01:52 +00:00
Marek Safar e9ae71daed New test.
svn path=/trunk/mcs/; revision=114091
2008-09-25 16:30:20 +00:00
Marek Safar 8fdaf9c22e 2008-09-25 Marek Safar <[email protected]>
A fix for bug #429264
	* expression.cs: Missing mutator for access to multidimensional
	arrays.


svn path=/trunk/mcs/; revision=114090
2008-09-25 16:29:45 +00:00
Marek Safar 987466ec28 64 bits fix
svn path=/trunk/mcs/; revision=114084
2008-09-25 15:41:34 +00:00
Marek Safar ca67dce208 2008-09-25 Marek Safar <[email protected]>
* class.cs, statement: Emit DebuggerHidden attribute for iterator
	entry wrapper.
	
	* driver.cs: Missing input argument check.


svn path=/trunk/mcs/; revision=114083
2008-09-25 15:39:54 +00:00
Carlos Alberto Cortez 4c31e4d468 2008-09-25 Carlos Alberto Cortez <[email protected]>
* FileDialog.cs: Implement basic support for sorting by columns in
	Details view. Patch by Eric Petit.
	Fixes #428006.


svn path=/trunk/mcs/; revision=114082
2008-09-25 15:33:59 +00:00
Mark Probst 356db9155f 2008-09-25 Mark Probst <[email protected]>
* method-to-ir.c: Eliminated macro EMIT_GET_RGCTX.

svn path=/trunk/mono/; revision=114081
2008-09-25 15:30:40 +00:00
Marek Habersack 9b82cb4550 2008-09-25 Marek Habersack <[email protected]>
* DoubleTest.cs: added a test for TryParse invoked with various
	strings, including strings with embedded whitespace.

svn path=/trunk/mcs/; revision=114080
2008-09-25 15:29:43 +00:00
Mark Probst 04fbd18512 2008-09-25 Mark Probst <[email protected]>
* mini-trampolines.c (mono_magic_trampoline): Unwrap wrappers
	before asserting that method is sharable.

2008-09-25  Mark Probst  <[email protected]>

	* generic-synchronized.2.cs: Test case for synchronized generic
	methods.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=114079
2008-09-25 15:28:59 +00:00
Jb Evain 58e31c0454 2008-09-25 Jb Evain <[email protected]>
* Mono.Cecil.Binary/MemoryBinaryWriter.cs: Make sure QuadAlign
	properly enlarge the memory stream if needed.
	Patch by Regis Vaquette <[email protected]>.


svn path=/trunk/mcs/; revision=114078
2008-09-25 15:13:22 +00:00
Marek Safar 0166aedda3 2008-09-25 Marek Safar <[email protected]>
* typemanager.cs, generic.cs, eval.cs, decl.cs, anonymous.cs,
	expression.cs, statement.cs, rootcontext.cs, class.cs, 
	cs-parser.jay, driver.cs, generic-mcs.cs, enum.cs: Removed obsolete
	DefineMembers.


svn path=/trunk/mcs/; revision=114077
2008-09-25 14:17:34 +00:00
Marek Safar 884f37046a Update
svn path=/trunk/mcs/; revision=114076
2008-09-25 14:01:21 +00:00
Marek Safar 87fadbe287 Update.
svn path=/trunk/mcs/; revision=114065
2008-09-25 09:47:01 +00:00
Mark Probst 1f97a75d45 2008-09-25 Mark Probst <[email protected]>
* generic-sharing.c, class-internals.h: New function for checking
	whether a method needs a static RGCTX invoke wrapper.  A few
	funtions moved from mini/generic-sharing.c.

	* icall.c: New function used.

2008-09-25  Mark Probst  <[email protected]>

	* method-to-ir.c, mini.c, jit-icalls.c: New function for checking
	whether method needs a static RGCTX wrapper used instead of
	complex conditions.

	* generic-sharing.c, mini.h: A few functions moved to
	metadata/generic-sharing.c.

svn path=/trunk/mono/; revision=114064
2008-09-25 09:43:46 +00:00
Carlos Alberto Cortez a530707212 2008-09-25 Carlos Alberto Cortez <[email protected]>
* ThemeWin32Classis.cs: When drawing gridlines take into account the
	case where ListView.ItemSize hasn't been computed, and provide a
	fallback as well. This prevents a division by 0.


svn path=/trunk/mcs/; revision=114063
2008-09-25 09:39:34 +00:00
Marek Safar f938c63948 Fixed broken test profile
svn path=/trunk/mcs/; revision=114062
2008-09-25 08:22:02 +00:00
Mark Probst 902af77eaa 2008-09-25 Mark Probst <[email protected]>
* method-to-ir.c, mini.c, mini-exceptions.c, mini-trampolines.c:
	Generic code sharing for value types, which essentially means
	treating value type methods like static methods.  The RGCTX is
	passed in the same way.

2008-09-25  Mark Probst  <[email protected]>

	* icall.c (ves_icall_System_Delegate_CreateDelegate_internal):
	Static RGCTX invoke wrapping applies to value type methods, too.

	* class.c (mono_class_setup_vtable_general): In generic-shared
	value types, wrap methods with a static RGCTX invoke wrapper.

svn path=/trunk/mono/; revision=114061
2008-09-25 07:51:31 +00:00
Jb Evain 1b79974421 fix ToArray
svn path=/trunk/mcs/; revision=114060
2008-09-25 07:49:26 +00:00
Zoltan Varga c5e94aff8c 2008-09-25 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Avoid an assert in the NEWOBJ
	opcode when creating multi-dimensional arrays of open types.

	* generic-sharing.c (mono_method_check_context_used): Handle arrays of
	open generic types.

	* generics.cs: Add a test.

svn path=/trunk/mono/; revision=114052
2008-09-25 02:51:10 +00:00
Miguel de Icaza 98d64db8ec 2008-09-24 Miguel de Icaza <[email protected]>
* ecore.cs (FieldExpr): Only initialize eclass when we return a
	fully constructed FieldExpr, fixes the regression introduced in
	the last commit.

svn path=/trunk/mcs/; revision=114051
2008-09-25 01:58:31 +00:00
Daniel Morgan 26d138f191 2008-09-24 Daniel Morgan <[email protected]>
* Test/testblob.cs
	* Test/TestOracleClient.cs: update tests for parameter type of blob

	* System.Data.OracleClient/OracleLob.cs: position was never
	being reset to the offset causing the reading of a Blob to
	be out of range

	* System.Data.OracleClient/OracleParameter.cs: fixes for 
	character and blob types

svn path=/trunk/mcs/; revision=114050
2008-09-25 01:46:57 +00:00
Miguel de Icaza 4f61716b30 update
svn path=/trunk/mono/; revision=114044
2008-09-25 00:07:47 +00:00
Miguel de Icaza 8410fbcea5 Revert
svn path=/trunk/mcs/; revision=114043
2008-09-24 23:59:38 +00:00
Zoltan Varga 7e77879393 2008-09-25 Zoltan Varga <[email protected]>
* attach.c (ipc_connect): Use AF_UNIX instead of AF_FILE to fix the
	osx build.

svn path=/trunk/mono/; revision=114038
2008-09-24 23:33:08 +00:00
Zoltan Varga 06d98a6a46 2008-09-25 Zoltan Varga <[email protected]>
* mini-codegen.c: Use macros everywhere for checking floats instead of == 'f'.

svn path=/trunk/mono/; revision=114035
2008-09-24 23:13:34 +00:00
Miguel de Icaza efea0c3775 2008-09-24 Miguel de Icaza <[email protected]>
* eval-test.cs: Add an evaluation test, to test the basic
	primitives of the expression evaluator.

svn path=/trunk/mcs/; revision=114034
2008-09-24 23:11:15 +00:00
Marek Habersack ff5759d9db 2008-09-25 Marek Habersack <[email protected]>
* Page.cs: make sure view state is loaded for PreviousPage during
	cross-page postback.

svn path=/trunk/mcs/; revision=114033
2008-09-24 22:53:16 +00:00
Miguel de Icaza 071004c2fd 2008-09-24 Miguel de Icaza <[email protected]>
* ecore.cs, expression.cs: Plug back the eclass initialization as
	otherwise it regresses `csharp'. 

svn path=/trunk/mcs/; revision=114032
2008-09-24 22:49:42 +00:00
Zoltan Varga e4c80e658e 2008-09-24 Zoltan Varga <[email protected]>
* mini.h (MonoCompile): Add 'disable_vreg_to_lvreg' flag.

	* mini.c (mini_method_compile): Set it when running under the debugger.	

	* method-to-ir.c (mono_handle_global_vregs): Disable global->local
	vreg optimization if the flag is set.

svn path=/trunk/mono/; revision=114026
2008-09-24 21:50:15 +00:00
Marek Safar d21d229a38 Disable MS_COMPATIBILITY on Mono
svn path=/trunk/mcs/; revision=114023
2008-09-24 21:40:40 +00:00
Marek Safar 7707b0e829 Missing error message
svn path=/trunk/mcs/; revision=114021
2008-09-24 21:32:51 +00:00
Zoltan Varga e92f14442a 2008-09-24 Zoltan Varga <[email protected]>
* AssemblyInfo.cs ChangeLog: New files.

svn path=/trunk/mcs/; revision=114019
2008-09-24 21:06:37 +00:00
Zoltan Varga 403ccbf094 2008-09-24 Zoltan Varga <[email protected]>
* AssemblyInfo.cs ChangeLog: New files.

svn path=/trunk/mcs/; revision=114016
2008-09-24 20:38:37 +00:00
Zoltan Varga 267b06e8ca Fix a typo.
svn path=/trunk/mono/; revision=114013
2008-09-24 20:21:36 +00:00
Jonathan Pobst 487a8705aa 2008-09-24 Jonathan Pobst <[email protected]>
* ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
	correctly draw tooltip backgrounds.

svn path=/trunk/mcs/; revision=114012
2008-09-24 20:21:29 +00:00
Miguel de Icaza b24080211d Format for api docs
svn path=/trunk/mono/; revision=114011
2008-09-24 20:10:15 +00:00
Miguel de Icaza d03125603c Document attach, various other cleanups
svn path=/trunk/mono/; revision=114010
2008-09-24 20:10:06 +00:00
Zoltan Varga d3be0b80c2 2008-09-24 Zoltan Varga <[email protected]>
* Makefile repl.cs: Add support for attaching to arbitrary mono
	processes.

svn path=/trunk/mcs/; revision=114007
2008-09-24 20:01:50 +00:00
Zoltan Varga 1f67a38991 2008-09-24 Zoltan Varga <[email protected]>
* Makefile (net_2_0_dirs): Add Mono.Management.

svn path=/trunk/mcs/; revision=114005
2008-09-24 20:00:38 +00:00
Marek Habersack 42f71afc97 2008-09-24 Marek Habersack <[email protected]>
* Double.cs: check whether decimal_separator, group_separator and
	currency_symbol strings aren't empty before trying to index them
	in Parse ().

svn path=/trunk/mcs/; revision=114004
2008-09-24 19:52:51 +00:00
Zoltan Varga 5e53e8a3e5 2008-09-24 Zoltan Varga <[email protected]>
* configure.in: Add --enable-minimal=attach option.

svn path=/trunk/mono/; revision=114003
2008-09-24 19:38:05 +00:00
Zoltan Varga 0e79d6b8d5 Add new Mono.Management assembly.
svn path=/trunk/mcs/; revision=114002
2008-09-24 19:36:04 +00:00
Michael Hutchinson 62eacba3e2 2008-09-24 Michael Hutchinson <[email protected]>
* HttpServerChannelTests.cs: Don't check for a chunked response from 
	  the Mono HTTP server; it no longer chunks since that was breaking 
	  other tests.


svn path=/trunk/mcs/; revision=114001
2008-09-24 19:32:52 +00:00
Jb Evain 7173090624 2008-09-24 Jb Evain <[email protected]>
* AppDomain.cs (CreateDomain): call the domain initializer in
	the newly created AppDomain. Fixes #429545.


svn path=/trunk/mcs/; revision=114000
2008-09-24 19:31:26 +00:00
Michael Hutchinson d820c9b996 2008-09-24 Michael Hutchinson <[email protected]>
* HttpServerTransportSink.cs: Disable chunking on the server, as 
	  for some reason it was breaking the tests. This reduces efficiency 
	  but right now is unavoidable.
	  
	* HttpServerChannel.cs: Implement AddHookChannelUri. Thanks to 
	  Lluis for the patch.


svn path=/trunk/mcs/; revision=113999
2008-09-24 19:30:33 +00:00
Jb Evain 1146f1a789 2008-09-24 Jb Evain <[email protected]>
* AppDomainSetupTest.cs: fix domain initializer test to actually
	assert that the initializer delegate is called in the new domain.
	Test for #429545.


svn path=/trunk/mcs/; revision=113998
2008-09-24 19:29:59 +00:00
Zoltan Varga 6b6ff668fd 2008-09-24 Zoltan Varga <[email protected]>
* driver.c (mono_main): Add --attach= option to pass options to
	the attach agent.

	* mini.c (sigquit_signal_handler): Start the attach agent.

svn path=/trunk/mono/; revision=113993
2008-09-24 19:04:08 +00:00
Zoltan Varga 1e5993b414 2008-09-24 Zoltan Varga <[email protected]>
* gc.c (mono_gc_add_finalizer_thread_callback): New function to
	register a callback which is called when the finalizer thread is woken
	up.
	(finalizer_thread): Call the callback if it exists.

	* attach.h attach.c: New files, implementing the attach mechanism.

	* appdomain.c: Init/cleanup the attach mechanism on startup/shutdown.

svn path=/trunk/mono/; revision=113991
2008-09-24 19:02:12 +00:00
Jonathan Pobst c5c45d0ee1 2008-09-24 Jonathan Pobst <[email protected]>
* ImageList.cs: Change CopyTo implementation to ensure clones are
	created of our images.
	[Fixes bug #409169]

svn path=/trunk/mcs/; revision=113987
2008-09-24 18:44:24 +00:00
Jonathan Pobst f63b6fcea2 2008-09-24 Jonathan Pobst <[email protected]>
* Control.cs: When setting fonts, we need to ensure we change our
	reference to the new font object, even if it represents the same
	font as before.  If we don't, the original font can get disposed
	and we will still try to use it.
	[Fixes bug #386450]

2008-09-24  Jonathan Pobst  <[email protected]>

	* ControlTest.cs: Add test for bug #386450.

svn path=/trunk/mcs/; revision=113982
2008-09-24 17:13:31 +00:00
Zoltan Varga a8b19cf774 2008-09-24 Zoltan Varga <[email protected]>
* ssapre.c: Disable this to save space since it is not yet ported to
	linear IR.

	* regalloc2.c: Disable this to save space.

svn path=/trunk/mono/; revision=113979
2008-09-24 16:56:28 +00:00
Zoltan Varga af4cdf42d9 2008-09-24 Zoltan Varga <[email protected]>
* mini.h (MonoJitStats): Remove unused analyze_stack_repeat.

svn path=/trunk/mono/; revision=113978
2008-09-24 16:50:46 +00:00
Marek Safar 15372b590e New tests.
svn path=/trunk/mcs/; revision=113977
2008-09-24 16:34:06 +00:00
Marek Safar f552aca039 Fixes the build
svn path=/trunk/mcs/; revision=113976
2008-09-24 16:32:55 +00:00
Marek Safar 26b4edf53a 2008-09-24 Marek Safar <[email protected]>
* typemanager.cs, decl.cs, convert.cs, assign.cs, expression.cs,
	ecore.cs, attribute.cs: Moved obsolete method checks from emit
	phase to resolve phase. It resolves problems with expression trees
	and fixes bugs #323796, #325156
	

svn path=/trunk/mcs/; revision=113975
2008-09-24 16:32:38 +00:00
Andreia Gaita d241e505a9 * AspParser.cs: When parsing text which contain xml tags that resemble
the end string, append the original text instead of the end string,
because the casing might not match between the two. Fixes #320445

2008-09-24  Andreia Gaita <[email protected]> 

svn path=/trunk/mcs/; revision=113972
2008-09-24 15:56:08 +00:00
Jonathan Pobst db6cd41cbe 2008-09-24 Jonathan Pobst <[email protected]>
* TabControlPainter.cs: Add 1 pixel to the tab text rectangle
	to keep the text from getting cut off on XP.
	[Fixes bug #428116]

svn path=/trunk/mcs/; revision=113971
2008-09-24 15:51:14 +00:00
Zoltan Varga 56d99f3095 2008-09-24 Zoltan Varga <[email protected]>
* object.c (mono_object_get_virtual_method): Fix an assertion introduced
	by the previous change.

svn path=/trunk/mono/; revision=113969
2008-09-24 15:44:01 +00:00
Jb Evain e45b7f7abd fix the build, for real
svn path=/trunk/mcs/; revision=113968
2008-09-24 15:09:22 +00:00
Jb Evain b03f3f5890 fix the build
svn path=/trunk/mcs/; revision=113966
2008-09-24 14:52:13 +00:00
Carlos Alberto Cortez a3fda58870 * FileDialog.cs: Take into account Tile view when selecting the view
(2.0 profile).

2008-09-24  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=113965
2008-09-24 14:49:13 +00:00
Jb Evain ffcd4c00cc remove wrong test
svn path=/trunk/mcs/; revision=113964
2008-09-24 14:39:21 +00:00
Paolo Molaro 5c0b706516 Wed Sep 24 16:01:49 CEST 2008 Paolo Molaro <[email protected]>
* decompose.c, method-to-ir.c, mini-codegen.c, regalloc2.c: make
	the -v option useful again.


svn path=/trunk/mono/; revision=113962
2008-09-24 14:03:14 +00:00
Jb Evain aeb10d991e 2008-09-24 Jb Evain <[email protected]>
* AppDomain.cs: implement the CreateDomain overload which
	takes an AppDomain initializer. Fixes #429545.


svn path=/trunk/mcs/; revision=113960
2008-09-24 14:01:36 +00:00
Jb Evain cec2855105 2008-09-24 Jb Evain <[email protected]>
* AppDomainTest.cs: add test for bug #429545.


svn path=/trunk/mcs/; revision=113959
2008-09-24 14:00:43 +00:00
Atsushi Eno b72c134a48 2008-09-24 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : it returns non-null Schemas by default (and
	  returns non-empty set after being set null).


svn path=/trunk/mcs/; revision=113958
2008-09-24 13:49:20 +00:00
Jb Evain 271b49aabf 2008-09-24 Jb Evain <[email protected]>
* Dictionary.cs: properly reset all compounds enumerators.
	Fixes #429530.


svn path=/trunk/mcs/; revision=113954
2008-09-24 13:34:05 +00:00
Jb Evain abb97797a2 2008-09-24 Jb Evain <[email protected]>
* DictionaryTest.cs: add tests for bug #429530.


svn path=/trunk/mcs/; revision=113953
2008-09-24 13:33:27 +00:00
Veerapuram Varadhan 28b3afa6b3 Use unicode encoding instead of ASCII
svn path=/trunk/mcs/; revision=113952
2008-09-24 13:31:28 +00:00
Veerapuram Varadhan 1a2da16c69 Handle zero length stream and validate data before returning Value
property

svn path=/trunk/mcs/; revision=113951
2008-09-24 13:27:30 +00:00
Carlos Alberto Cortez 9cbc3c610b 2008-09-24 Carlos Alberto Cortez <[email protected]>
* ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
	the item bounds, since we can't iterate over them in virtual mode.
	Also fix wrong calculation of the gridlines when using scrolling.
	Fixes #400390.


svn path=/trunk/mcs/; revision=113948
2008-09-24 13:07:58 +00:00
Ankit Jain f83c1e1821 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2008-09-24  Ankit Jain  <[email protected]>

	* Engine.cs: Add argument checks.
	* Project.cs: Likewise.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2008-09-24  Ankit Jain  <[email protected]>

	* EngineTest.cs:
	* ProjectTest.cs: Add tests for Build*

svn path=/trunk/mcs/; revision=113946
2008-09-24 12:15:53 +00:00
Marek Safar 08bfa7b9ca Am I going get it right this time
svn path=/trunk/mcs/; revision=113940
2008-09-24 09:49:15 +00:00
Marek Safar 39ab7e17d5 Move Mono.CompilerServices.SymbolWriter to build after 2.1 raw mscorlib
svn path=/trunk/mcs/; revision=113939
2008-09-24 09:27:23 +00:00
Jb Evain 22ec076e6f micro optimization
svn path=/trunk/mcs/; revision=113936
2008-09-24 08:56:57 +00:00
Marek Safar 2214bc264c Add Mono.CompilerServices.SymbolWriter to 2.1 bootstrap
svn path=/trunk/mcs/; revision=113935
2008-09-24 08:53:55 +00:00
Marek Safar 046714aeab Compile Mono.CompilerServices.SymbolWriter after corlib
svn path=/trunk/mcs/; revision=113929
2008-09-24 08:00:14 +00:00
Zoltan Varga d3fe5c5a5a 2008-09-24 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Add support for
	--break-at-bb.

svn path=/trunk/mono/; revision=113926
2008-09-24 04:11:29 +00:00
Carlos Alberto Cortez 4814f08588 2008-09-23 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: When handling EnterNotify events, take into account
	both the public and implicit controls when trying to detect the
	grab/ungrab process. This should fix ListView selection in Details
	view.


svn path=/trunk/mcs/; revision=113919
2008-09-23 23:42:56 +00:00
Zoltan Varga 5c04755e92 2008-09-24 Zoltan Varga <[email protected]>
* inssel.brg (mini_emit_castclass): Avoid the szarray!=array checks for
	arrays of arrays. Fixes #428406.

	* method-to-ir.c (mini_emit_castclass): Ditto.

	* objects.cs: Add new test.

svn path=/trunk/mono/; revision=113918
2008-09-23 23:26:19 +00:00
Michael Hutchinson 35fc865228 2008-09-23 Michael Hutchinson <[email protected]>
* HttpClientChannel.cs: Fix logic error from ==/!= typo. Stops 
	  channel from trying to handle IPC URLs, which was breaking the 
	  IPC tests.


svn path=/trunk/mcs/; revision=113909
2008-09-23 22:38:38 +00:00
Jonathan Pobst 487874f76e 2008-09-23 Jonathan Pobst <[email protected]>
* TreeView.cs: Redraw the whole node area when the selected node changes.
	Things like state images were not getting redrawn because the invalid
	rectangle was too small.
	[Fixes bug #428211]

svn path=/trunk/mcs/; revision=113905
2008-09-23 22:05:39 +00:00
Mario Carrion 338ba6bf17 2008-09-23 Mario Carrion <[email protected]>
* ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
  [Fixes bug #428993]


svn path=/trunk/mcs/; revision=113904
2008-09-23 21:54:26 +00:00
Jonathan Pobst dbec774f64 fix 1.1 build
svn path=/trunk/mcs/; revision=113899
2008-09-23 21:24:39 +00:00
Jonathan Pobst bc924fcf26 2008-09-23 Jonathan Pobst <[email protected]>
* Form.cs: Do not set the Form's icon in the backend if showicon = false.
	[Fixes bug #428114]

svn path=/trunk/mcs/; revision=113898
2008-09-23 21:22:04 +00:00
Michael Hutchinson 94eb7a2333 2008-09-23 Michael Hutchinson <[email protected]>
* SoapServerFormatterSink.cs: Do not try to parse text/xml code 
	  unless there is a SOAPAction.  Set position on outgoing streams to 
	  zero, so they can be properly parsed in the general infrastructure.
	  Do not try to seek on incoming streams.


svn path=/trunk/mcs/; revision=113897
2008-09-23 21:07:12 +00:00
Michael Hutchinson d997190fc1 svn path=/trunk/mcs/; revision=113894 2008-09-23 20:57:12 +00:00
Michael Hutchinson c1cc8a14f4 svn path=/trunk/mcs/; revision=113893 2008-09-23 20:54:45 +00:00
Marek Habersack dfcfeab6a3 2008-09-23 Marek Habersack <[email protected]>
* HttpWorkerRequest.cs: implemented a SendCalculatedContentLength
	overload. This method apparently does nothing in MS.NET.

svn path=/trunk/mcs/; revision=113892
2008-09-23 20:37:02 +00:00
Jonathan Pobst 3d041e754d 2008-09-23 Jonathan Pobst <[email protected]>
* ThemeWin32Classic.cs: Allow tooltips to be multiline.
	[Fixes bug #427884]

svn path=/trunk/mcs/; revision=113891
2008-09-23 20:29:06 +00:00
Jonathan Pobst 44074dad73 2008-09-23 Jonathan Pobst <[email protected]>
* StatusBar.cs: Add tooltip support.
	[Fixes bug #428113]

svn path=/trunk/mcs/; revision=113889
2008-09-23 20:07:15 +00:00
Marek Safar 9d93de2ba5 2008-09-23 Marek Safar <[email protected]>
* Makefile: Build Mono.CompilerServices.SymbolWriter before it's
	used.


svn path=/trunk/mcs/; revision=113888
2008-09-23 20:04:59 +00:00
Marek Safar 5b9808853d 2008-09-23 Marek Safar <[email protected]>
* Makefile: Use bootstrap profile to build with correct symbol
	writer.


svn path=/trunk/mcs/; revision=113881
2008-09-23 19:16:37 +00:00
Marek Safar 43f104dd7f 2008-09-23 Marek Safar <[email protected]>
* codegen.cs: Report better error when symbol writer is missing.

svn path=/trunk/mcs/; revision=113869
2008-09-23 18:00:16 +00:00
Marek Safar c078a41672 2008-09-23 Marek Safar <[email protected]>
* Makefile: Don't override global debug flag.


svn path=/trunk/mcs/; revision=113868
2008-09-23 17:47:42 +00:00
Marek Safar fb26a556c9 #
# Copy from rules.make because I don't know how to unset MCS_FLAGS
#


svn path=/trunk/mcs/; revision=113864
2008-09-23 17:10:36 +00:00
Veerapuram Varadhan 40c4e63565 Implement incomplete methods - .ctors, get_Value and CreateReader
svn path=/trunk/mcs/; revision=113862
2008-09-23 16:57:08 +00:00
Marek Habersack 05c43d2617 CultureInfoSerializer should use lower case names for the serialized items.
svn path=/trunk/mcs/; revision=113861
2008-09-23 16:48:55 +00:00
Marek Safar 2093cbb992 Copied USE_MCS_FLAGS
svn path=/trunk/mcs/; revision=113850
2008-09-23 15:46:52 +00:00
Marek Habersack 3637dd84a4 2008-09-23 Marek Habersack <[email protected]>
* AspGenerator.cs: ignore whitespace only if it's between
	CodeRender blocks, not between DataBinding and
	CodeRenderExpression.

svn path=/trunk/mcs/; revision=113844
2008-09-23 15:28:49 +00:00
Rodrigo Kumpera 1e76630ab1 In .:
2008-09-23  Rodrigo Kumpera  <[email protected]>

	* method-to-ir.c (type_to_eval_stack_type): The code path for the new JIT
	was wrong at it choked against target_type_is_incompatible for byref types.


svn path=/trunk/mono/; revision=113843
2008-09-23 15:25:48 +00:00
Jb Evain 1f91460164 2008-09-23 Jb Evain <[email protected]>
* masterinfos/silverlight/Mono.CompilerServices.SymbolWriter.info
	* Makefile:
		tune the SymbolWriter as well.


svn path=/trunk/mcs/; revision=113839
2008-09-23 15:05:20 +00:00
Jb Evain 033bd1028e 2008-09-23 Jb Evain <[email protected]>
* Makefile: compile the SymbolWriter during net_2_1_raw.


svn path=/trunk/mcs/; revision=113837
2008-09-23 15:04:36 +00:00
Marek Habersack 1905082013 2008-09-23 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: do not use
	LazyDictionary as enum serializer anymore.

	* ProfileService.cs: do not use
	LazyDictionary as ProfileService serializer anymore.

	* RestHandler.cs: do not use
	LazyDictionary as the Exception or NameValueCollection serializer
	anymore.

2008-09-23  Marek Habersack  <[email protected]>

	* JavaScriptSerializer.cs: removed the LazyDictionary class, it's
	not needed anymore.


svn path=/trunk/mcs/; revision=113832
2008-09-23 14:55:49 +00:00
Juraj Skripsky 0594b0199e 2008-09-23 Juraj Skripsky <[email protected]>
* JsonSerializer.cs: "SerializeGenericDictionary" is an instance method,
	fix retrieval of its MethodInfo.
	Initialize serializeGenericDictionaryMethods (lazily).
	Add and use GetClosedIDictionaryBase to also handle cases where a
	non-generic class implements a closed IDictionary<,> (e.g.
	SomeDictionary : IDictionary<string, object>). Fixes bug #424704.
	First check for IDictionary<,>, then for IDictionary.

2008-09-20  Juraj Skripsky  <[email protected]>

	* JavaScriptSerializerTest.cs: added test for bug #424704.


svn path=/trunk/mcs/; revision=113829
2008-09-23 14:33:54 +00:00
Marek Habersack def3546b31 2008-09-23 Marek Habersack <[email protected]>
* ScriptManager.cs: CultureInfoSerializer no longer derives from
	the obsolete LazyDictionary.

svn path=/trunk/mcs/; revision=113826
2008-09-23 14:20:22 +00:00
Marek Safar 55390aa4f4 Reset MCS_FLAGS flag
svn path=/trunk/mcs/; revision=113825
2008-09-23 14:11:11 +00:00
Marek Safar 4f020c7f91 2008-09-23 Marek Safar <[email protected]>
* ModuleBuilder.cs: Fixed NRE when default symbol writer cannot be
	loaded. 


svn path=/trunk/mcs/; revision=113824
2008-09-23 14:05:29 +00:00
Zoltan Varga 201c10d12c Fix the build.
svn path=/trunk/mono/; revision=113823
2008-09-23 14:04:07 +00:00
Zoltan Varga ec65eaa9e4 2008-09-23 Zoltan Varga <[email protected]>
* mini-codegen.c: Use 'bank' macros instead of 'is_fp' macros in most 
	places.

svn path=/trunk/mono/; revision=113820
2008-09-23 13:47:28 +00:00
Jb Evain ec7d509a9d 2008-09-23 Jb Evain <[email protected]>
* Makefile: only execute the check visibility step if
	CHECK_VISIBILITY is defined.


svn path=/trunk/mcs/; revision=113819
2008-09-23 13:47:22 +00:00
Paolo Molaro 010dd924c3 Tue Sep 23 15:31:45 CEST 2008 Paolo Molaro <[email protected]>
* mini-exceptions.c: update a few more exceptions-related counters.


svn path=/trunk/mono/; revision=113818
2008-09-23 13:32:39 +00:00
Paolo Molaro eb204e2e24 Tue Sep 23 15:28:29 CEST 2008 Paolo Molaro <[email protected]>
* aot-runtime.c, method-to-ir.c, mini.c, mini-trampolines.c: use the
	new functions to allocate from persistent mempools.


svn path=/trunk/mono/; revision=113817
2008-09-23 13:31:40 +00:00
Paolo Molaro 2e4a420748 Tue Sep 23 15:24:03 CEST 2008 Paolo Molaro <[email protected]>
* class.c, domain-internals.h, domain.c, generic-sharing.c, image.c,
	loader.c, marshal.c, metadata-internals.h, metadata.c,
	method-builder.c, object.c, reflection.c: introduced specific functions
	to allocate from the domain and image mempools and cleaned up most of
	the code to use them (still missing a few in reflection.c).
	Keep the loader bytes counter updated.


svn path=/trunk/mono/; revision=113816
2008-09-23 13:28:20 +00:00
Andreia Gaita 62e19d1953 * Mono.Mozilla/interfaces/nsIServiceManager.cs: change signature to
return the object immediately

2008-09-23  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=113808
2008-09-23 11:53:36 +00:00
Marek Safar d985cda818 2008-09-23 Marek Safar <[email protected]>
* codegen.cs: Set .NET symbol writer.
	
	* decl.cs: Guard against null generic arguments.
	
	* report.cs: Don't report exactly same additional details.


svn path=/trunk/mcs/; revision=113807
2008-09-23 11:48:00 +00:00
Jb Evain f9237d27bb forgot changelog
svn path=/trunk/mcs/; revision=113806
2008-09-23 11:28:12 +00:00
Andreia Gaita ab7814213f * Mono.Mozilla/DOM/Node.cs, Mono.WebBrowser/DOM/INode.cs,
Mono.Mozilla/WebBrowser.cs: Expose native accessibility object
* Mono.WebBrowser/Exception.cs, Mono.WebBrowser2K5.csproj,
  Mono.WebBrowser.dll.sources,
  Mono.Mozilla/interfaces/nsIErrorService.cs: Add error service for
  error lookups

2008-09-23  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=113803
2008-09-23 11:08:08 +00:00
Carlos Alberto Cortez d6f0b85d9d 2008-09-23 Carlos Alberto Cortez <[email protected]>
* ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
	alignments of sub items in Details view. Patch by John Mortlock (johnm at 
	hlaustralia.com.au).
	Fixes #425360.


svn path=/trunk/mcs/; revision=113802
2008-09-23 11:03:25 +00:00
Jb Evain 8af6883a38 2008-09-23 Jb Evain <[email protected]>
* ExpressionInterpreter.cs
	* Interpreter.cs
	* Conversion.cs
	* ExpressionValidator.cs
	* Math.cs:
		Integrate changes from db4objects, Inc. The interpreter now
		passes all linq tests.

svn path=/trunk/mcs/; revision=113797
2008-09-23 09:38:54 +00:00
Andreia Gaita 0a5d08cd7f * xpidl2cs.pl: whitespace clean up
2008-09-23  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=113781
2008-09-23 06:34:26 +00:00
Zoltan Varga c262c308e4 2008-09-23 Zoltan Varga <[email protected]>
* mini.h regalloc.h mini-codegen.c: Generalize the regalloc code to allow 
	multiple register banks in the future.

svn path=/trunk/mono/; revision=113780
2008-09-23 05:34:32 +00:00
Zoltan Varga de031479bc 2008-09-23 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Fix a warning.

svn path=/trunk/mono/; revision=113778
2008-09-23 04:22:03 +00:00
Neville Gao 545285844c Add UIA event in AddInternal () to support accessibility.
svn path=/trunk/mcs/; revision=113773
2008-09-23 02:39:28 +00:00
Andreia Gaita 2cabf43929 * Mono.Mozilla/interfaces/nsIDOMRGBColor.cs,
Mono.Mozilla/interfaces/nsITimer.cs,
  Mono.Mozilla/interfaces/nsIAccessible.cs,
  Mono.Mozilla/interfaces/nsIDOMDOMStringList.cs,
  Mono.Mozilla/interfaces/nsIAccessibleRetrieval.cs,
  Mono.Mozilla/interfaces/nsIAccessibleRelation.cs,
  Mono.Mozilla/interfaces/nsITimerCallback.cs,
  Mono.Mozilla/interfaces/nsIAccessibilityService.cs,
  Mono.Mozilla/interfaces/nsIOutputStream.cs,
  Mono.Mozilla/interfaces/nsIPersistentProperties.cs,
  Mono.Mozilla/interfaces/nsIDOMCSSPrimitiveValue.cs,
  Mono.Mozilla/interfaces/nsIDOMCounter.cs,
  Mono.Mozilla/interfaces/nsIObserver.cs,
  Mono.Mozilla/interfaces/extras/nsIReadSegmentFun.cs,
  Mono.Mozilla/interfaces/extras/nsITimerCallbackDelegate.cs,
  Mono.Mozilla/interfaces/nsIProperties.cs,
  Mono.Mozilla/interfaces/nsIDOMRect.cs,
  Mono.Mozilla/interfaces/nsIAccessNode.cs,
  Mono.Mozilla/interfaces/nsIArray.cs,
  Mono.Mozilla/interfaces/nsIAccessibleDocument.cs,
  Mono.WebBrowser.dll.sources, Mono.WebBrowser2K5.csproj: Added
  Accessibility interfaces

2008-09-23  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=113772
2008-09-23 00:59:14 +00:00
Andreia Gaita 931647d00d * xpidl2cs.pl: fix parameter duplication. Add more type conversions
2008-09-23  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=113771
2008-09-23 00:53:24 +00:00
Miguel de Icaza 048aabe5ed Thanks Geoff\!
svn path=/trunk/mono/; revision=113758
2008-09-22 22:18:38 +00:00
Rodrigo Kumpera e2e475941d In .:
2008-09-22  Rodrigo Kumpera  <[email protected]>

	* mini.c (type_to_eval_stack_type): Remove duplicated function.

	* method-to-ir.c (type_to_eval_stack_type): Make this version compatible with both JIT.

	* mini.h: Export type_to_eval_stack_type.

	This function was nearly duplicated in method-to-ir.c and mini.c. The difference
	is only ins->klass of byref types.


svn path=/trunk/mono/; revision=113757
2008-09-22 22:12:46 +00:00
Andreia Gaita 41ba682ef1 * xpidl2cs.pl: fix infinite loop for generate_dependents, conflict
between global variable $file and local one. Add some more prints
  for debugging purposes.

2008-09-22  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=113752
2008-09-22 20:53:22 +00:00
Marek Safar 998009021c New tests.
svn path=/trunk/mcs/; revision=113745
2008-09-22 16:06:08 +00:00
Marek Safar 27782d18cf 2008-09-22 Marek Safar <[email protected]>
A fix for bug #324917
	* cs-parser.jay: Add missing multidimensional non-expression type
	ranks.


svn path=/trunk/mcs/; revision=113743
2008-09-22 16:03:16 +00:00
Paolo Molaro db1f2846b2 Mon Sep 22 17:33:12 CEST 2008 Paolo Molaro <[email protected]>
* domain.c, monitor.c, boehm-gc.c, gc.c: update some of the GC and
	loader-related counters.


svn path=/trunk/mono/; revision=113738
2008-09-22 15:35:39 +00:00
Paolo Molaro b8c21a1d65 Mon Sep 22 17:29:54 CEST 2008 Paolo Molaro <[email protected]>
* mono-perfcounters-def.h, mono-perfcounters.c, class-internals.h:
	added more MS-compatible counters.


svn path=/trunk/mono/; revision=113737
2008-09-22 15:33:12 +00:00
Zoltan Varga 31be5a92d7 2008-09-22 Zoltan Varga <[email protected]>
* method-to-ir.c (mini_emit_memset): Use a default alignment of 4.
	(mini_emit_memcpy2): Ditto.

	* mini-amd64.c: Fix a warning.

svn path=/trunk/mono/; revision=113735
2008-09-22 15:17:01 +00:00
Jonathan Pobst d897d7f666 2008-09-22 Jonathan Pobst <[email protected]>
* TextBoxBase.cs: Set Text to "" instead of null in Clear().
	[Fixes bug #428107]

svn path=/trunk/mcs/; revision=113732
2008-09-22 14:50:13 +00:00
Carlos Alberto Cortez 658ec108f4 2008-09-22 Carlos Alberto Cortez <[email protected]>
* ListView.cs: Don't do anything when EnsureVisible is called inside a
	BeginUpdate/EndUpdate block.
	Fixes #425049.


svn path=/trunk/mcs/; revision=113728
2008-09-22 14:08:48 +00:00
Jb Evain 376f9eb4a2 add Mono.Security to the list of core assemblies
svn path=/trunk/mcs/; revision=113723
2008-09-22 13:47:09 +00:00
Jb Evain 4f47677525 2008-09-22 Jb Evain <[email protected]>
* TypeBinaryExpression.cs: protect against testing void expressions.
	Fixes bug #428309.


svn path=/trunk/mcs/; revision=113721
2008-09-22 13:11:01 +00:00
Jb Evain 9ba7164f00 2008-09-22 Jb Evain <[email protected]>
* ExpressionTest_TypeIs.cs: add test for bug #428309.


svn path=/trunk/mcs/; revision=113720
2008-09-22 13:10:18 +00:00
Carlos Alberto Cortez f6457f514f 2008-09-22 Carlos Alberto Cortez <[email protected]>
* ListViewItemTest.cs: New test for public ctor of
	ListViewSubItemCollection.


svn path=/trunk/mcs/; revision=113714
2008-09-22 12:44:59 +00:00
Marek Safar 1ab4bb8224 New tests.
svn path=/trunk/mcs/; revision=113713
2008-09-22 12:35:16 +00:00
Marek Safar db93626b5e 2008-09-22 Marek Safar <[email protected]>
A fix for bug #428191
	* anonymous.cs: Create an outer generic fields also for non-storey
	anonymous methods.


svn path=/trunk/mcs/; revision=113712
2008-09-22 12:34:49 +00:00
Carlos Alberto Cortez 84c5671f78 2008-09-22 Carlos Alberto Cortez <[email protected]>
* ListViewItem.cs: The semantics for the public .ctor of
	ListViewSubItemCollection need us to already have a Text value for the
	item, which in our implementation have as available *after* adding the
	first sub item. So create an internal .ctor that satisfies our needs
	and let the public .ctor have the same semantics as .net.
	Fixes #427561.


svn path=/trunk/mcs/; revision=113706
2008-09-22 11:00:49 +00:00
Marek Safar 7ec82e714e New tests, and fixed buffer mcs -> gmcs switch.
svn path=/trunk/mcs/; revision=113705
2008-09-22 10:57:33 +00:00
Marek Safar 5cf7ad2307 New tests
svn path=/trunk/mcs/; revision=113704
2008-09-22 10:54:53 +00:00
Marek Safar a08e10cc3e 2008-09-22 Marek Safar <[email protected]>
A fix for bug #378294
	* class.cs: Make fixed size buffers gmcs feature only.


svn path=/trunk/mcs/; revision=113702
2008-09-22 10:47:36 +00:00
Marek Safar 5da13f838b New tests.
svn path=/trunk/mcs/; revision=113699
2008-09-22 10:23:19 +00:00
Marek Safar 09ffb23cc3 2008-09-22 Marek Safar <[email protected]>
A fix for bug #355622, #324993
	* assign.cs, const.cs, class.cs: Create new EmitContext for each
	field initializer.


svn path=/trunk/mcs/; revision=113698
2008-09-22 10:21:52 +00:00
Marek Safar 6dfcd4ea46 Flush
svn path=/trunk/mcs/; revision=113693
2008-09-22 09:13:52 +00:00
Raja R Harinath dd572c250f * scripts/patch-quiet.sh: Skip Makefiles that've already been patched.
svn path=/trunk/mono/; revision=113689
2008-09-22 08:42:13 +00:00
Zoltan Varga f5634652ee 2008-09-22 Zoltan Varga <[email protected]>
* class.c (mono_class_setup_fields): Call setup_fields before accessing
	class->blittable. Fixes #428217.

svn path=/trunk/mono/; revision=113680
2008-09-22 06:23:20 +00:00
Miguel de Icaza 0f1a3e63fd 2008-09-21 Miguel de Icaza <[email protected]>
* csharplib/Makefile: Add a setup to build GMCS as a GAC assembly
	called `csharplib' with only the public classes that we want
	exposed: Mono.CSharp.Evaluator, Mono.CSharp.InteractiveBase and
	Mono.CSharp.InteractiveBase+Simple


svn path=/trunk/mcs/; revision=113671
2008-09-21 20:30:48 +00:00
Zoltan Varga a6eb7f0e68 2008-09-21 Zoltan Varga <[email protected]>
* reflection.c (mono_image_get_field_on_inst_token): Call 
	field_encode_signature () since that handles custom modifiers too.
	Fixes #424663.

svn path=/trunk/mono/; revision=113658
2008-09-21 15:54:49 +00:00
Mark Probst 1e02c73117 2008-09-21 Mark Probst <[email protected]>
* exceptions-ppc.c (mono_arch_get_call_filter): Fixed stack frame
	linking.

svn path=/trunk/mono/; revision=113657
2008-09-21 14:58:32 +00:00
Mark Probst b21957e04f 2008-09-21 Mark Probst <[email protected]>
* exception17.cs: New test case for throwing an exception from
	within a finally block.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=113646
2008-09-21 10:14:01 +00:00
Veerapuram Varadhan efb49f7684 Simplification of if-else part
svn path=/trunk/mcs/; revision=113639
2008-09-20 18:54:17 +00:00
Veerapuram Varadhan 866542814b Handle no brackets scenario
svn path=/trunk/mcs/; revision=113637
2008-09-20 18:08:20 +00:00
Zoltan Varga be7e986c25 2008-09-20 Zoltan Varga <[email protected]>
* reflection.c (add_custom_modifiers): New helper function to merge custom
	modifiers stored in objects to a MonoType.
	(fieldref_encode_signature): Encode custom modifiers.
	(mono_image_get_generic_field_token): Call add_custom_modifiers ().
	(fieldbuilder_to_mono_class_field): Ditto. Fixes #424663.

svn path=/trunk/mono/; revision=113633
2008-09-20 15:34:22 +00:00
Gert Driesen 4e89905665 * PerformanceCounter.cs:
* Stopwatch.cs:
* TraceImpl.cs: Fixed line endings.

svn path=/trunk/mcs/; revision=113630
2008-09-20 11:44:57 +00:00
Gert Driesen a21deeae6a * DiagnosticsConfigurationHandler.cs (AddTraceAttributes): Avoid
wrapping configuration errors thrown during initialization of
TraceImpl. Fixed line endings.

svn path=/trunk/mcs/; revision=113629
2008-09-20 11:41:12 +00:00
Kornél Pál a758271d3d coree.c (_CorValidateImage): Some 64-bit IL only images have entry point calling _CorDllMain imported from mscoree.dll. Set entry point RVA to 0 for 64-bit IL only images because imports are not resolved for IL only images. Special thanks to Bill Holmes for finding this bug and testing the patch. Also fail for 64-bit images marked as CLI_FLAGS_32BITREQUIRED.
svn path=/trunk/mono/; revision=113614
2008-09-20 06:55:33 +00:00
Gonzalo Paniagua Javier b67928068d 2008-09-19 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: when receiving a 0 content-length, free up
	the slot for the next request immediately.
	Fixes bug #427974.


svn path=/trunk/mcs/; revision=113610
2008-09-20 01:53:59 +00:00
Marek Habersack b9c7ab7bc0 2008-09-20 Marek Habersack <[email protected]>
* JsonDeserializer.cs: added support for stand-alone NaN, Infinity
	and -Infinity values, as well as the same within an array.

2008-09-20  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: added some tests

svn path=/trunk/mcs/; revision=113596
2008-09-19 22:41:46 +00:00
Jeffrey Stedfast 545996df9c 2008-09-19 Jeffrey Stedfast <[email protected]>
* HttpServerChannelTests.cs: More unit tests for
	HttpServerChannel.


svn path=/trunk/mcs/; revision=113594
2008-09-19 22:18:21 +00:00
Marek Habersack 93a1d2ad6c 2008-09-19 Marek Habersack <[email protected]>
* Json.cs: added new Serialize overload which takes a TextWriter
	for its output parameter.
	Added Deserialize methods.

	* JsonSerializer.cs: made InitialJavaScriptDateTicks internal.
	Added new Serialize overload which takes a TextWriter for its
	output parameter.
	Added WriteValue overloads for float and double - they must not be
	converted to strings as IConvertibles because their Max/MinValue
	end up converted incorrectly.

	* JavaScriptSerializer.cs: adjustments for the new JSON
	(de)serializer.

	* JsonDeserializer.cs: new JSON deserializer code, fully compliant
	with the .NET AJAX one.

2008-09-19  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: enabled some tests which were
	failing with the old (de)serializer, but work with the new one.

2008-09-19  Marek Habersack  <[email protected]>

	* System.Web.Extensions.dll.sources: removed most of the
	Newtonsoft JSON code, leaving only ReflectionUtils and
	JavaScriptUtils.


svn path=/trunk/mcs/; revision=113590
2008-09-19 21:13:55 +00:00
Rodrigo Kumpera cc1c9e11ba In .:
2008-09-19  Rodrigo Kumpera  <[email protected]>

	* method-to-ir.c: Extract stloc micro-optimization to a
	function and apply it to all cases.


svn path=/trunk/mono/; revision=113584
2008-09-19 20:38:20 +00:00
Miguel de Icaza e8d43117d2 2008-09-19 Miguel de Icaza <[email protected]>
* WaitHandle.cs (WaitOne): Add new 3.5 SP1 overload.

svn path=/trunk/mcs/; revision=113582
2008-09-19 20:21:12 +00:00
Miguel de Icaza 3699604cec Add
svn path=/trunk/mono/; revision=113579
2008-09-19 20:14:24 +00:00
Miguel de Icaza 648202804a Support older Automakes, as reported by Mark, having forward slashes on the list of SUBDIRS fails with old versions
svn path=/trunk/mono/; revision=113578
2008-09-19 20:14:18 +00:00
Miguel de Icaza 700cb66e87 Up
svn path=/trunk/mono/; revision=113577
2008-09-19 20:13:33 +00:00
Miguel de Icaza 7a9d80929e Up
svn path=/trunk/mono/; revision=113576
2008-09-19 20:13:28 +00:00
Marek Safar e47fd103f7 2008-09-19 Marek Safar <[email protected]>
A fix for bug #423791
	* generic.cs: Fixed params output type type-inference.
	

svn path=/trunk/mcs/; revision=113567
2008-09-19 18:22:06 +00:00
Carlos Alberto Cortez a8f31a224b 2008-09-19 Carlos Alberto Cortez <[email protected]>
* BindingTest.cs: New test for data source looking for a data source
	property with a *specific* value type, more specific than just the
	property type.


svn path=/trunk/mcs/; revision=113564
2008-09-19 18:19:43 +00:00
Atsushi Eno a220869ea2 2008-09-19 Atsushi Enomoto <[email protected]>
* ja.po : ongoing work.


svn path=/trunk/mono/; revision=113563
2008-09-19 18:06:38 +00:00
Marek Safar fb0d01cd72 Removed double spaces
svn path=/trunk/mcs/; revision=113560
2008-09-19 17:39:44 +00:00
Carlos Alberto Cortez c822969f8e 2008-09-19 Carlos Alberto Cortez <[email protected]>
* ListControlTest.cs: New test for testing that FormattingEnabled,
	FormatString and FormatInfo property changes *actually* cause a call
	to RefreshItems.


svn path=/trunk/mcs/; revision=113557
2008-09-19 17:29:56 +00:00
Miguel de Icaza 97894197d3 Get a few more in
svn path=/trunk/mono/; revision=113556
2008-09-19 17:29:16 +00:00
Miguel de Icaza fc47f813d8 Friendly localizable string
svn path=/trunk/mcs/; revision=113555
2008-09-19 17:25:13 +00:00
Marek Safar 044def672f 2008-09-19 Marek Safar <[email protected]>
* nullable.cs, expression.cs, namespace.cs, delegate.cs: Duplicate
	error reporting.


svn path=/trunk/mcs/; revision=113554
2008-09-19 17:21:08 +00:00
Miguel de Icaza 4232f1f3c7 Changed from bits to wordsize, as suggested by Paolo
svn path=/trunk/mono/; revision=113553
2008-09-19 17:20:21 +00:00
Miguel de Icaza 36e8fdfcdb 2008-09-19 Miguel de Icaza <[email protected]>
* mono-config.c (dllmap_start): Add support for the bits keyword
	on dllentry and dllmap to easily detect 32 vs 64 bit systems.


svn path=/trunk/mono/; revision=113551
2008-09-19 17:19:18 +00:00
Mark Probst 92bce9bbd4 2008-09-19 Mark Probst <[email protected]>
* reflection.c (inflate_mono_method): When the class the method is
	to be inflated for is itself not inflated, just return the method.

2008-09-19  Mark Probst  <[email protected]>

	* generic-type-builder.2.cs: Test case for a generic sharing issue
	with dynamic methods.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=113549
2008-09-19 16:50:47 +00:00
Carlos Alberto Cortez a33f979485 2008-09-19 Carlos Alberto Cortez <[email protected]>
* ListControl.cs: Changes in Formatting related values should call
	RefreshItems, as .net does.
	* ComboBox.cs:
	* ListBox.cs: In the respective overrides of RefreshItems calculate
	layout as well as refreshing - again, this is what .net does.
	Fixes #426168.


svn path=/trunk/mcs/; revision=113545
2008-09-19 16:10:25 +00:00
Atsushi Eno 411cb5ddec 2008-09-19 Atsushi Enomoto <[email protected]>
* ja.po : new.
        * LINGUAS : added ja.


svn path=/trunk/mono/; revision=113540
2008-09-19 15:45:37 +00:00
Marek Safar f16bca16db New tests.
svn path=/trunk/mcs/; revision=113535
2008-09-19 15:22:30 +00:00
Marek Safar 1d42bab627 2008-09-19 Marek Safar <[email protected]>
A fix for bug #416110
	* generic.cs: Struct constraint results in default ctor and
	ValueType base type constraint to be set.


svn path=/trunk/mcs/; revision=113534
2008-09-19 15:22:11 +00:00
Marek Safar 35d949cb64 2008-09-19 Marek Safar <[email protected]>
A fix for bug #423791
	* generic.cs: Fixed params output type type-inference.


svn path=/trunk/mcs/; revision=113526
2008-09-19 13:58:01 +00:00
Mark Probst a95be12984 2008-09-19 Mark Probst <[email protected]>
* method-to-ir.c: Don't fail generic code sharing in cases we
	already support.

svn path=/trunk/mono/; revision=113522
2008-09-19 12:51:00 +00:00
Atsushi Eno 11ab97e09f 2008-09-19 Atsushi Enomoto <[email protected]>
* XmlSerializer.cs : revert previous change and fix sys.data tests.


svn path=/trunk/mcs/; revision=113521
2008-09-19 12:47:57 +00:00
Carlos Alberto Cortez 8a6bd5aef2 2008-09-19 Carlos Alberto Cortez <[email protected]>
* ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
	since we are already doing that when we change the value of the
	scrollbar or force the call to ScrollWindow in the same method. This
	way we don't cause a Invalidate call for all the listbox bounds for
	methods calling UpdateTopItem with an already updated top item. This
	was happening specially calling EnsureVisible with already visible
	items.


svn path=/trunk/mcs/; revision=113520
2008-09-19 12:22:10 +00:00
Marek Safar 1ca80004fc 2008-09-19 Marek Safar <[email protected]>
* cs-parser.jay, expression.cs: Fixed few expression crashes.


svn path=/trunk/mcs/; revision=113518
2008-09-19 11:47:51 +00:00
Atsushi Eno 5a15db1e4c 2008-09-19 Atsushi Enomoto <[email protected]>
* DefaultContext.cs, Expression.cs: do not premise BaseIterator.


svn path=/trunk/mcs/; revision=113511
2008-09-19 10:46:48 +00:00
Atsushi Eno ecf1894b4b 2008-09-19 Atsushi Enomoto <[email protected]>
* XPathComparer.cs : no need to limit to BaseIterator.


svn path=/trunk/mcs/; revision=113510
2008-09-19 10:45:23 +00:00
Paolo Molaro dcba1a2bbb Fri Sep 19 11:51:36 CEST 2008 Paolo Molaro <[email protected]>
* mono-perfcounters.c: use more user friendly process instance names.


svn path=/trunk/mono/; revision=113504
2008-09-19 09:52:39 +00:00
Marek Safar 9ecde5a356 New test.
svn path=/trunk/mcs/; revision=113503
2008-09-19 09:16:02 +00:00
Marek Safar a78bdb35ee 2008-09-19 Marek Safar <[email protected]>
* cs-tokenizer.cs: Don't break on extra partial modifier.


svn path=/trunk/mcs/; revision=113502
2008-09-19 09:15:43 +00:00
Marek Safar b16f92e3a7 2008-09-19 Marek Safar <[email protected]>
A fix for bug #427592
	* generic.cs: Use common parameter resolve method.


svn path=/trunk/mcs/; revision=113501
2008-09-19 09:13:14 +00:00
Atsushi Eno bf8280aac5 2008-09-19 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : oops, wrong #if ranges.


svn path=/trunk/mcs/; revision=113498
2008-09-19 08:58:05 +00:00
Marek Safar 9d9af28f5d A test for #419888
svn path=/trunk/mcs/; revision=113497
2008-09-19 08:43:38 +00:00
Atsushi Eno 1d36c92121 2008-09-19 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : made some 2.0-only methods available in 1.x
	  so that we don't have to hesitate to optimize xpath using them.


svn path=/trunk/mcs/; revision=113491
2008-09-19 04:09:39 +00:00
Mike Gorse 8e1720afd2 Added KeyFilter [bug 427039]
svn path=/trunk/mcs/; revision=113476
2008-09-18 21:18:11 +00:00
Bill Holmes 3d2a708925 2008-09-18 Bill Holmes <[email protected]>
* marshal.c (emit_marshal_variant) : Change the attribute checks to 
	  handle "[in] ref" and "[in][out] ref" cases.

	* marshal.c (cominterop_get_ccw) : The wrong signature was being passed
	  to mono_mb_create_method.  This was causing problems calling native to
	  managed passing Variants by value.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=113475
2008-09-18 21:04:46 +00:00
Zoltan Varga e576ad2ffb 2008-09-18 Zoltan Varga <[email protected]>
* class.c (can_access_internals): Call mono_assembly_load_friends ()
	before accessing the friend_assembly_names field.

	* assembly.c (mono_assembly_load_friends): Make this callable multiple
	times.
	(mono_assembly_load_from_full): Avoid calling load_friends (), it is
	called lazily when it is needed.

	* metadata-internals.h (struct _MonoAssembly): Add 
	'friend_assembly_names_inited' flag.

svn path=/trunk/mono/; revision=113458
2008-09-18 20:05:12 +00:00
Atsushi Eno acfe2986ae RouteCollection.RouteExistingFiles support.
svn path=/trunk/mcs/; revision=113452
2008-09-18 18:35:32 +00:00
Marek Safar 60132eb05c New test, update
svn path=/trunk/mcs/; revision=113447
2008-09-18 18:18:57 +00:00
Marek Safar 45cbe80091 2008-09-18 Marek Safar <[email protected]>
A fix for bug #414758
	* expression.cs, ecore.cs: Fixed crash when accessing non-static
	property.


svn path=/trunk/mcs/; revision=113445
2008-09-18 18:15:01 +00:00
Carlos Alberto Cortez 8fe9f3f67b 2008-09-18 Carlos Alberto Cortez <[email protected]>
* RelatedPropertyManager.cs: The properties returned by
	GetItemProperties should be that ones of the *actual* object returned
	by the property, not the property type - this is very special when the
	property exposes a type, but the returned object actually is a child
	class and implements more functionality and properties.


svn path=/trunk/mcs/; revision=113442
2008-09-18 18:00:41 +00:00
Paolo Molaro f82fc8c0c7 Thu Sep 18 18:18:47 CEST 2008 Paolo Molaro <[email protected]>
* mono-perfcounters-def.h: fix the types of a few counters.
	* mono-perfcounters.c: implemented the instance names getter
	and a few bugfixes.


svn path=/trunk/mono/; revision=113437
2008-09-18 16:21:53 +00:00
Paolo Molaro 0624d338fe Thu Sep 18 18:16:45 CEST 2008 Paolo Molaro <[email protected]>
* mono-mmap.c, mono-mmap.h: added mono_shared_area_instances ()
	too return the list of mono processes with performance counter data.


svn path=/trunk/mono/; revision=113436
2008-09-18 16:18:14 +00:00
Paolo Molaro 9136ca99bd Thu Sep 18 18:14:25 CEST 2008 Paolo Molaro <[email protected]>
* CounterSampleCalculator.cs: added more calculated types.
	* PerformanceCounter.cs: NextValue() works as well as RawValue.


svn path=/trunk/mcs/; revision=113435
2008-09-18 16:16:20 +00:00
Marek Safar 4c2e865214 2008-09-18 Marek Safar <[email protected]>
* Makefile: Add System.Core reference.


svn path=/trunk/mcs/; revision=113433
2008-09-18 15:51:03 +00:00
Jb Evain fcd7403c93 2008-09-18 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionReader.cs (GetModifierType): protect against
	zero rids.


svn path=/trunk/mcs/; revision=113432
2008-09-18 15:39:21 +00:00
Jb Evain fa3cb255c8 2008-09-18 Jb Evain <[email protected]>
* Mono.Tuner/AdjustVisibility.cs: correctly process public nested types.


svn path=/trunk/mcs/; revision=113422
2008-09-18 15:10:54 +00:00
Mark Probst 8b6f14bd4e 2008-09-18 Mark Probst <[email protected]>
* mini-ppc.c: Handle structs in tailcalls on Darwin.

svn path=/trunk/mono/; revision=113417
2008-09-18 14:16:06 +00:00
Marek Safar 5229b7361d Add System.Core reference
svn path=/trunk/mcs/; revision=113416
2008-09-18 14:11:33 +00:00
Marek Safar a806cdc1de 2008-09-18 Marek Safar <[email protected]>
* driver.cs, namespace.cs: Read types and namespaces after all
	requested assemblies are loaded, fixes issues with System.Core
	auto-reference, and #419888.


svn path=/trunk/mcs/; revision=113415
2008-09-18 14:11:08 +00:00
Carlos Alberto Cortez 6db7cc0f4d 2008-09-18 Carlos Alberto Cortez <[email protected]>
* BindingTest.cs: New test for empty string passed as property.


svn path=/trunk/mcs/; revision=113411
2008-09-18 13:48:35 +00:00
Marek Safar 5acfb85ae9 New test.
svn path=/trunk/mcs/; revision=113408
2008-09-18 13:15:53 +00:00
Marek Safar 092086721d 2008-09-18 Marek Safar <[email protected]>
A fix for bug #417705
	* cs-parser.jay: Fixed as/is operator expression split.


svn path=/trunk/mcs/; revision=113407
2008-09-18 13:13:50 +00:00
Carlos Alberto Cortez 68327e9c50 2008-09-18 Carlos Alberto Cortez <[email protected]>
* Binding.cs: Don't look for the property in the data source if the
	passed string is empty.


svn path=/trunk/mcs/; revision=113406
2008-09-18 12:58:06 +00:00
Atsushi Eno 45bbe0a186 2008-09-18 Atsushi Enomoto <[email protected]>
* LinqDataSource.cs, LinqDataSourceView.cs
	  LinqDataSourceContextEventArgs.cs
	  LinqDataSourceDeleteEventArgs.cs
	  LinqDataSourceDisposeEventArgs.cs
	  LinqDataSourceInsertEventArgs.cs
	  LinqDataSourceSelectEventArgs.cs
	  LinqDataSourceStatusEventArgs.cs
	  LinqDataSourceUpdateEventArgs.cs : easy implementation parts.


svn path=/trunk/mcs/; revision=113405
2008-09-18 12:32:40 +00:00
Ivan Zlatev 4a8892fefd 2008-09-18 Ivan N. Zlatev <[email protected]>
* XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
	fix unused variable warnings.

svn path=/trunk/mcs/; revision=113404
2008-09-18 12:14:19 +00:00
Ivan Zlatev 44c7aa407d 2008-09-18 Ivan N. Zlatev <[email protected]>
* XplatUIX11.cs: Send WM_HELP when F1 is pressed.
	[Fixes bug #427073]

svn path=/trunk/mcs/; revision=113402
2008-09-18 11:31:20 +00:00
Marek Safar 447b5defd4 New tests.
svn path=/trunk/mcs/; revision=113401
2008-09-18 11:09:56 +00:00
Marek Safar a562ded879 New test, update
svn path=/trunk/mcs/; revision=113400
2008-09-18 11:09:32 +00:00
Marek Safar dbcfbb9c1f 2008-09-18 Marek Safar <[email protected]>
* const.cs, expression.cs, statement.cs, ecore.cs, cs-parser.jay:
	Fixed expression tree representation of empty new expression and
	new initializer expression.


svn path=/trunk/mcs/; revision=113399
2008-09-18 11:08:20 +00:00
Atsushi Eno bf8c662df1 2008-09-18 Atsushi Enomoto <[email protected]>
* sv_SE.xml : fix bug #426942 (sv-SE time format was old).

	* culture-info-table.h : regenerated.


svn path=/trunk/mono/; revision=113398
2008-09-18 10:38:37 +00:00
Mark Probst c98c6ed66a 2008-09-18 Mark Probst <[email protected]>
* docs/generic-sharing: More generic sharing porting
	documentation.

svn path=/trunk/mono/; revision=113397
2008-09-18 10:32:51 +00:00
Ivan Zlatev c03811205f 2008-09-18 Ivan N. Zlatev <[email protected]>
* XplatUIX11.cs:
	 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
	 leads to the window manager overriding our border style and zorder.
	 - Allow the activation of non-modal forms, which are children of a
	 modal form.
	[Fixes bug #423417]

svn path=/trunk/mcs/; revision=113396
2008-09-18 10:21:13 +00:00
Robert Jordan 081c1c9c50 2008-09-18 Robert Jordan <[email protected]>
* TcpConnectionPool.cs: Set NoDelay on both profiles.


svn path=/trunk/mcs/; revision=113395
2008-09-18 08:32:17 +00:00
Atsushi Eno 5bd356d8b0 Added LinqDataSource stuff (stubs).
svn path=/trunk/mcs/; revision=113393
2008-09-18 07:22:17 +00:00
Marek Habersack 782118641c Socket.NoDelay is 2.0+ only
svn path=/trunk/mcs/; revision=113392
2008-09-18 06:29:36 +00:00
Marek Habersack 85f272537f 2008-09-18 Marek Habersack <[email protected]>
* SettingsMappingManager.cs: take care of a small race condition
	when mapping sections.

svn path=/trunk/mcs/; revision=113391
2008-09-18 06:18:13 +00:00
Miguel de Icaza 5bf16f648f Added debug information, after staring at console for a while
svn path=/trunk/mcs/; revision=113390
2008-09-18 05:35:39 +00:00
Miguel de Icaza 0957a24a0f 2008-09-18 Miguel de Icaza <[email protected]>
* eval.cs: Remove warning, keep reference to driver around.

	* Hide fields that do not need to be public.

svn path=/trunk/mcs/; revision=113388
2008-09-18 05:14:43 +00:00
Miguel de Icaza 690fbd3efe Remove obsolete target
svn path=/trunk/mcs/; revision=113387
2008-09-18 04:56:16 +00:00
Atsushi Eno 38321ee8e6 check invalid constraint and implement ProcessRequest().
svn path=/trunk/mcs/; revision=113386
2008-09-18 04:29:23 +00:00
Zoltan Varga 10ae206777 2008-09-18 Zoltan Varga <[email protected]>
* TcpConnectionPool.cs: Set the NoDelay flag on the socket to avoid 
	excessive waiting by the tcp stack. Fixes #416462.

svn path=/trunk/mcs/; revision=113381
2008-09-18 02:27:23 +00:00
Miguel de Icaza de5930d538 Update comments
svn path=/trunk/mcs/; revision=113376
2008-09-18 01:43:31 +00:00
Miguel de Icaza 88636d4e04 Another warning gone
svn path=/trunk/mcs/; revision=113372
2008-09-18 00:35:13 +00:00
Miguel de Icaza 34e8a45dd4 Remove TODO, kill warning
svn path=/trunk/mcs/; revision=113371
2008-09-18 00:34:34 +00:00
Miguel de Icaza 0770265c72 2008-09-17 Miguel de Icaza <[email protected]>
* SmtpClient.cs: Actually set some of the headers like Priority,
	ReplyTo and Sender.

svn path=/trunk/mcs/; revision=113370
2008-09-18 00:33:11 +00:00
Jeffrey Stedfast 5b63c536b6 2008-09-17 Jeffrey Stedfast <[email protected]>
* TcpChannel.cs (ParseTcpURL): If given "tcp://", don't set host
	to "", leave it as null.


svn path=/trunk/mcs/; revision=113361
2008-09-17 23:26:51 +00:00
Jeffrey Stedfast 91a48dd5e2 2008-09-17 Jeffrey Stedfast <[email protected]>
* TcpChannelTest.cs: Changed the namespace to MonoTests.Remoting
	like the other Remoting tests and added a client<->server
	communication test. Throw in a ftp:// url for the url-parsing test
	to make sure the parser returns null on that.


svn path=/trunk/mcs/; revision=113358
2008-09-17 22:00:37 +00:00
Jeffrey Stedfast b056688ea7 2008-09-17 Jeffrey Stedfast <[email protected]>
* BaseCalls.cs (RemoteObject): Added more methods for invoking.


svn path=/trunk/mcs/; revision=113357
2008-09-17 22:00:14 +00:00
Ivan Zlatev ab280984dc 2008-09-17 Ivan N. Zlatev <[email protected]>
* XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
	ask the window manager to do the work instead of changing the property
	directly.
	[Fixes bug #423417]

svn path=/trunk/mcs/; revision=113351
2008-09-17 21:00:00 +00:00
Everaldo Canuto a546e1a9da 2008-09-17 Everaldo Canuto <[email protected]>
* CurrencyManager.cs: Check for positon before call ChangeRecordState in
	AddNew to fix some navigation for empty datasets. [Fixes #323053]

svn path=/trunk/mcs/; revision=113348
2008-09-17 19:36:24 +00:00
Sebastien Pouliot e6fd2f6754 2008-09-17 Sebastien Pouliot <[email protected]>
* SignedXmlTest.cs: Add test cases for HMACSHA[256|384|512] and
	HMACRIPEMD160 which are supported in 2.0. Based on test case from
	Fredrik Olsson on bug #425724.


svn path=/trunk/mcs/; revision=113345
2008-09-17 19:10:48 +00:00
Sebastien Pouliot bc20013f7a 2008-09-17 Sebastien Pouliot <[email protected]>
* SignedXmlTest.cs: Add support for signing XML using HMACSHA256,
	HMACSHA384, HMACSHA512 and HMACRIPEMD160.
	[Fix bug #425724]


svn path=/trunk/mcs/; revision=113344
2008-09-17 19:10:13 +00:00
Everaldo Canuto 203337d3d1 2008-09-17 Everaldo Canuto <[email protected]>
* FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set 
	InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
	border and fixes some drawing issues when resize form.

svn path=/trunk/mcs/; revision=113343
2008-09-17 19:00:50 +00:00
Sebastien Pouliot 2890567651 2008-09-17 Sebastien Pouliot <[email protected]>
* CryptoConfigTest.cs: Add test cases for HMAC URI.


svn path=/trunk/mcs/; revision=113342
2008-09-17 18:23:59 +00:00
Everaldo Canuto 74a1cab115 2008-09-17 Everaldo Canuto <[email protected]>
* FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
	
	* ThemeWin32Classic.cs: We don't need to reduce button size when it is
	AcceptButton.


svn path=/trunk/mcs/; revision=113341
2008-09-17 18:23:47 +00:00
Sebastien Pouliot 39b0ef543d 2008-09-17 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Add missing URI for HMAC algorithms.


svn path=/trunk/mcs/; revision=113340
2008-09-17 18:23:02 +00:00
Atsushi Eno a3f31057d1 2008-09-17 Atsushi Enomoto <[email protected]>
* SubtreeXmlReader.cs : Close() should correctly skip empty element.
	  In Read(), make sure to move from Element state.

	* XmlReader.cs : detailed error location in ReadSubtree().

	* XmlReaderCommonTests.cs : another Subtree+EmptyElement case.


svn path=/trunk/mcs/; revision=113339
2008-09-17 17:50:18 +00:00
Marek Safar 65c1c732c9 Add dlls folder.
svn path=/trunk/mcs/; revision=113330
2008-09-17 17:05:01 +00:00
Jeffrey Stedfast 7c1f35071c 2008-09-17 Jeffrey Stedfast <[email protected]>
* TcpClientChannel.cs (TcpClientChannel): Use the default
	SinkProviders if the sinkProvider argument is null.


svn path=/trunk/mcs/; revision=113329
2008-09-17 16:55:24 +00:00
Veerapuram Varadhan 862681f443 Added test for DeriveParameters
svn path=/trunk/mcs/; revision=113328
2008-09-17 16:54:30 +00:00
Veerapuram Varadhan ad382304b1 Escape/trim schema/procedure names before passing them as parameter
values in DeriveParameters.


svn path=/trunk/mcs/; revision=113327
2008-09-17 16:53:59 +00:00
Jeffrey Stedfast ecf535bb83 oops
svn path=/trunk/mcs/; revision=113322
2008-09-17 15:39:00 +00:00
Jeffrey Stedfast 1228b92905 2008-09-17 Jeffrey Stedfast <[email protected]>
* TcpChannel.cs (ParseTcpURL): TcpClientTransportSink needs the
	host component, so extract that info into its own string as well.


svn path=/trunk/mcs/; revision=113321
2008-09-17 15:38:27 +00:00
Atsushi Eno 215f86b887 2008-09-17 Atsushi Enomoto <[email protected]>
* SubtreeXmlReader.cs : make sure to set eof for empty element after
	  Read().

	* XmlReaderCommonTests.cs :
	  added test for NodeType for empty element.


svn path=/trunk/mcs/; revision=113312
2008-09-17 14:24:02 +00:00
Juraj Skripsky 4cca7109cf 2008-09-17 Juraj Skripsky <[email protected]>
* RadioButton.cs (ValueAttribute, LoadPostData): Fixes bug #426959.


svn path=/trunk/mcs/; revision=113310
2008-09-17 13:48:19 +00:00
Atsushi Eno 0f484f3d35 2008-09-17 Atsushi Enomoto <[email protected]>
* XmlSerializer.cs : in 2.0 profile it seems to create XmlReader
	  for stream and textreader, that skips whitespaces.


svn path=/trunk/mcs/; revision=113307
2008-09-17 13:29:18 +00:00
Ivan Zlatev 8fdbc78e33 2008-09-17 Ivan N. Zlatev <[email protected]>
* TextBoxBase.cs: For standard textbox the scrollbars are always
	visible if Multiline is true.
	[Fixes bug #426896]

svn path=/trunk/mcs/; revision=113306
2008-09-17 13:14:19 +00:00
Atsushi Eno 14715d78f1 2008-09-17 Atsushi Enomoto <[email protected]>
* SubtreeXmlReader.cs : return appropriate property values for EOF.


svn path=/trunk/mcs/; revision=113305
2008-09-17 13:10:37 +00:00
Atsushi Eno b3d04b7317 2008-09-17 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadSubtree() is valid only on an element.

	* XmlReaderCommonTests.cs :
	  added test for ReadSubtree() on non-element.


svn path=/trunk/mcs/; revision=113304
2008-09-17 13:04:56 +00:00
Everaldo Canuto c5ac108efc 2008-05-12 Everaldo Canuto <[email protected]>
* DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
	patch.
	


svn path=/trunk/mcs/; revision=113289
2008-09-17 12:27:33 +00:00
Everaldo Canuto f67657405a 2008-05-12 Everaldo Canuto <[email protected]>
[Fixes most od DBNull and HeadersVisible problems]
	
	* DataGrid.cs:
	- ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
	returns the value that we need.
	- Fixed FromPixelToColumn method that return zero for first	column and for
	row header cell, now it returns -1 for row header cell.
	- Fixed HitTest to check row header cell in column header area, it now
	returns HitTestType.None. [Fixes #322864]
	- Fixed the calculation of visible columns in UpdateVisibleColumn, now it
	checks for RowHeadersVisible and other things.
	- If an exception occurs when setting CurrentCell and user type 'yes' in
	message dialog, invalidade current and new cell and set setting_current_cell
	to false to prevent future errors. [Partially fixes #323050]

	* DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
	value (SetColumnValueAtRow), it must be done by grid to properly show 
	messages. [Fixes #323050]

	* ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
	better draw column and row header. Also dont draw anything when column
	headers is not visible.


svn path=/trunk/mcs/; revision=113286
2008-09-17 12:16:07 +00:00
Robert Jordan 8617832076 fix wording
svn path=/trunk/mono/; revision=113282
2008-09-17 11:40:33 +00:00
Robert Jordan 3b1eaca759 2008-09-04 Robert Jordan <[email protected]>
* corlib_test.dll: Add S.R.S/SerializationTest2.cs

In System.Runtime.Serialization.Formatters.Binary:
2008-09-17  Robert Jordan  <[email protected]>>

	* ObjectReader.cs (ReadTypeMetadata): Replace the check for
	ISerializable with something less `reflective'.
	Fixes #421664.

In Test/System.Runtime.Serialization:
2008-09-17  Robert Jordan  <[email protected]>

	* SerializationTest2.cs: Add test case for bug #421664.


svn path=/trunk/mcs/; revision=113278
2008-09-17 11:28:51 +00:00
Robert Jordan ef6905c866 2008-09-17 Robert Jordan <[email protected]>
* DelegateSerializationHolder.cs: Starting with .NET 2.0, delegates
	of non-public methods are allowed to be serialized. Fixes #425345.


svn path=/trunk/mcs/; revision=113277
2008-09-17 11:02:28 +00:00
Robert Jordan f3f5d6fde7 In metadata:
2008-09-17  Robert Jordan  <[email protected]>

	* marshal.c (mono_marshal_get_ldflda_wrapper): Add support for
	context bound objects. Fixes #415577.

	Code is contributed under MIT/X11 license.

In tests:
2008-09-17  Robert Jordan  <[email protected]>

	* Makefile.am: Add test for #415577.


svn path=/trunk/mono/; revision=113274
2008-09-17 10:52:47 +00:00
Paolo Molaro ed34912b86 Wed Sep 17 11:48:00 CEST 2008 Paolo Molaro <[email protected]>
* Timer.cs: rewritten to use Threading.Timer so it doesn't create a
	thread per timer and behaves better. Fixed also a few implementation
	bugs.


svn path=/trunk/mcs/; revision=113267
2008-09-17 09:49:24 +00:00
Atsushi Eno 64a00cfead ongoing UrlRoutingModule implementation and tests.
svn path=/trunk/mcs/; revision=113265
2008-09-17 09:37:25 +00:00
Marek Safar 8e7317eb22 New test.
svn path=/trunk/mcs/; revision=113264
2008-09-17 09:29:35 +00:00
Marek Safar 3dd095007b 2008-09-17 Marek Safar <[email protected]>
A fix for bug #426385
	* expression.cs (ImplicitlyTypedArrayCreation): Use full implicit
	conversion for array elements.


svn path=/trunk/mcs/; revision=113262
2008-09-17 09:09:40 +00:00
Marek Safar ae7cda3291 Update
svn path=/trunk/mcs/; revision=113261
2008-09-17 09:02:25 +00:00
Marek Safar 2edb439815 Update.
svn path=/trunk/mcs/; revision=113260
2008-09-17 08:55:42 +00:00
Marek Safar 0f2616f681 2008-09-17 Marek Safar <[email protected]>
* expression.cs, statement.cs, class.cs, cs-parser.jay: Fixed
	void parsing conflicts.


svn path=/trunk/mcs/; revision=113259
2008-09-17 08:55:15 +00:00
Marek Habersack 5defc3fa29 2008-09-17 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	System.Web.Script.Serialization/Json.cs,
	System.Web.Script.Serialization/JsonSerializer.cs and
	System.Web.Script.Serialization/StringBuilderExtensions.cs

	* System.Web.Script.Serialization/Json.cs: helper class to invoke
	de/serializer.

	* System.Web.Script.Serialization/JsonSerializer.cs: new
	implementation of Json serializer that is free of issues found in
	the old one (and faster + simpler).

	* System.Web.Script.Serialization/JavaScriptSerializer.cs: staging
	transition to the new Json (de)serializer. For now deserialization
	is done using the old JSON code, serialization uses the new
	serializer.

	* System.Web.Script.Serialization/StringBuilderExtensions.cs: a
	set of simple StringBuilder extension methods which check the size
	of the builder against some value and throw an exception if the
	value is exceeded.

svn path=/trunk/mcs/; revision=113254
2008-09-17 06:42:10 +00:00
Daniel Morgan f9e93def34 2008-09-16 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleBFile.cs: do not
	throw a NotImplementedException in internal constructor

svn path=/trunk/mcs/; revision=113246
2008-09-17 02:18:27 +00:00
Daniel Morgan 5bac14c9b0 2008-09-16 Daniel Morgan <[email protected]>
* Test/TestOracleClient.cs: add tests
	for TIMESTAMP Input, Output, InputOutput, Return 
	parameters and handle DBNull.Value too

	* System.Data.OracleClient/OracleCommandBuilder.cs
	* System.Data.OracleClient/OracleDataAdapter.cs: cleanup warnings
	for default profile

	* System.Data.OracleClient.Oci/OciDateTimeDescriptor.cs
	* System.Data.OracleClient/OracleParameter.cs: fix parameters
	for TIMESTAMP Input, Output, InputOutput, Return
	parameters and handle DBNUll.Value via indicator = -1
	However, TIMESTAMP WITH TIMEZONE and TIMESTAMP WITH LOCAL TIMESTAMP
	not tested.

svn path=/trunk/mcs/; revision=113244
2008-09-17 00:35:36 +00:00
Miguel de Icaza 8bf1ca4cce Quick hack to build PresentationFramework
svn path=/trunk/mcs/; revision=113241
2008-09-17 00:20:13 +00:00
Sebastien Pouliot 18a358e7e0 2008-09-16 Sebastien Pouliot <[email protected]>
* System.Net.dll.sources: Add new security-socket related files.


svn path=/trunk/mcs/; revision=113234
2008-09-16 22:08:48 +00:00
Sebastien Pouliot 4c909bac1d 2008-09-16 Sebastien Pouliot <[email protected]>
* CrossDomainSocketPolicyManager.cs: New.
	* ISocketPolicyManager.cs: New.
	* SocketPolicyAsyncResult.cs: New.
	* SocketPolicyCheckCallback.cs: New.
	* SocketSecurityState.cs: New.

svn path=/trunk/mcs/; revision=113233
2008-09-16 22:08:37 +00:00
Jonathan Pobst b84dd3257d 2008-09-16 Jonathan Pobst <[email protected]>
* TabControlPainter.cs: Hook tab painting into ShowFocusCues.

svn path=/trunk/mcs/; revision=113230
2008-09-16 21:51:17 +00:00
Jonathan Pobst 780547b4b1 2008-09-16 Jonathan Pobst <[email protected]>
* TabControlPainter.cs: Hook tab painting into ShowFocusCues.

svn path=/trunk/mcs/; revision=113229
2008-09-16 21:50:31 +00:00
Jonathan Pobst ba2a220c62 2008-09-16 Jonathan Pobst <[email protected]>
* ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
	logic.

svn path=/trunk/mcs/; revision=113227
2008-09-16 21:49:04 +00:00
Jonathan Pobst c3a8e12306 2008-09-16 Jonathan Pobst <[email protected]>
* TreeView.cs: Don't start editing a node on right click, only
	left click.

svn path=/trunk/mcs/; revision=113226
2008-09-16 21:46:58 +00:00
Miguel de Icaza a944dc3b7a Add
svn path=/trunk/mono/; revision=113223
2008-09-16 21:23:56 +00:00
Miguel de Icaza 2bcfca6f5f Remove ugly hack, remove file that is not needed, that should fix the build
svn path=/trunk/mono/; revision=113220
2008-09-16 21:18:00 +00:00
Miguel de Icaza 72dfb1cb41 Re-enable ugly hack, and only use AC_CONFIG_SUBDIRS if we have gettext
svn path=/trunk/mono/; revision=113219
2008-09-16 21:07:11 +00:00
Jonathan Pobst a53abfd078 2008-09-16 Jonathan Pobst <[email protected]>
* VisualStyleElement.cs: Fixed Header.Item.Normal value.

svn path=/trunk/mcs/; revision=113218
2008-09-16 21:04:42 +00:00
Jonathan Pobst ced086db8e 2008-09-16 Jonathan Pobst <[email protected]>
* NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
	disabled over a year ago.
	* Form.cs: Wrap calling Load in a try/catch because it can happen
	before the catch-all one in NativeWindow.
	[Fixes bug #425414]

svn path=/trunk/mcs/; revision=113217
2008-09-16 20:12:51 +00:00
Miguel de Icaza 9b35474c46 Remove Ugly Hack
svn path=/trunk/mono/; revision=113213
2008-09-16 19:40:44 +00:00
Jonathan Pobst b8d03226a0 2008-09-16 Jonathan Pobst <[email protected]>
* ToolStripDropDownMenu.cs: Calculate the connected area better
	to take into account when the drop down is not directly under the
	owner item.
	* ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.

svn path=/trunk/mcs/; revision=113212
2008-09-16 19:28:46 +00:00
Raja R Harinath 3ed1f0c1e5 * Makefile.am (EXTRA_DIST): Update.
* nls.m4, progtest.m4: Really add from Gettext 0.17.

svn path=/trunk/mono/; revision=113211
2008-09-16 19:25:13 +00:00
Paolo Molaro aad4f57326 Tue Sep 16 21:07:11 CEST 2008 Paolo Molaro <[email protected]>
* *.c, *.md, mini-ops.h: introduced relaxed_nop opcode for spin wait
	implementation.


svn path=/trunk/mono/; revision=113210
2008-09-16 19:09:47 +00:00
Paolo Molaro 6a71988302 Tue Sep 16 21:02:59 CEST 2008 Paolo Molaro <[email protected]>
* Thread.cs: fixed SpinWait() implementation (bug #423582).


svn path=/trunk/mcs/; revision=113209
2008-09-16 19:05:54 +00:00
Paolo Molaro 03f38ebb6f Tue Sep 16 21:03:58 CEST 2008 Paolo Molaro <[email protected]>
* icall-def.h, threads-types.h, threads.c: fixed SpinWait()
	implementation (bug #423582).


svn path=/trunk/mono/; revision=113208
2008-09-16 19:05:47 +00:00
Miguel de Icaza d562234867 If we fail to have gettext, do not do po/mcs, horribly workaround
svn path=/trunk/mono/; revision=113207
2008-09-16 18:53:57 +00:00
Bill Holmes 39a395a681 2008-09-16 Bill Holmes <[email protected]>
* eglib.vcproj, genmdesc.vcproj, libgc.vcproj, libmono.vcproj,
	  mono.vcproj, monoburg.vcproj:  Adding i386 preprocessor definition
	  to the Win32 build targets.

	Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=113206
2008-09-16 18:43:04 +00:00
Jonathan Pobst 80d8ab5734 fix typo
svn path=/trunk/mcs/; revision=113200
2008-09-16 17:59:41 +00:00
Jonathan Pobst ba032a9f8f fix 1.1 build
svn path=/trunk/mcs/; revision=113197
2008-09-16 17:50:53 +00:00
Mario Carrion c637b29b48 2008-09-16 Mario Carrion <[email protected]>
* ScrollBar.cs: New event added: UIAValueChanged, generated when
  LargeChange, SmallChange, Maximum or Minimum values are changed.
  [Fixes bug #426464]


svn path=/trunk/mcs/; revision=113190
2008-09-16 17:09:38 +00:00
Mario Carrion b8fd65266a 2008-09-16 Mario Carrion <[email protected]>
* ErrorProvider.cs: Component enabled to support accessibility.
* Application.cs: Updated to Initialize UIA in ErrorProvider.
  [Fixes bug #426459]


svn path=/trunk/mcs/; revision=113189
2008-09-16 17:05:53 +00:00
Jonathan Pobst 9d699ab2df 2008-09-16 Jonathan Pobst <[email protected]>
* TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
	so we don't highlight on first focus.
	[Fixes bug #360869]

svn path=/trunk/mcs/; revision=113182
2008-09-16 16:23:43 +00:00
Veerapuram Varadhan fb07f03a37 **Fixes bug#421336 - sanely handle various scenarios that lead to
exceptions while creating insert/delete and update commands.


svn path=/trunk/mcs/; revision=113180
2008-09-16 16:13:22 +00:00
Jonathan Pobst 7ff6111a15 2008-09-16 Jonathan Pobst <[email protected]>
* TextControl.cs: Correctly calculate the height of the area we 
	need to invalidate when we have started scrolling and viewport_y
	is used.  [Fixes bug #387608]

svn path=/trunk/mcs/; revision=113179
2008-09-16 16:07:46 +00:00
Jonathan Pobst c161ff5ebe 2008-09-16 Jonathan Pobst <[email protected]>
* TextControl.cs: When getting the SelectedText, don't add in
	NewLine characters, as they are already contained in the lines.
	[Fixes bug #321143]

svn path=/trunk/mcs/; revision=113174
2008-09-16 15:51:31 +00:00
Bill Holmes f94097b919 2008-09-16 Bill Holmes <[email protected]>
* src/gunicode.c : Fix a warning.

	Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=113171
2008-09-16 15:31:46 +00:00
Jonathan Pobst 12f3cfcf4a 2008-09-16 Jonathan Pobst <[email protected]>
* TextBoxBase.cs: Replace the buggy Lines setter with one that
	simply concats the lines and send it to the Text setter.
	[Fixes issue #2 and #3 of 388115]

svn path=/trunk/mcs/; revision=113170
2008-09-16 15:25:35 +00:00
Zoltan Varga 6fbaea4486 2008-09-16 Zoltan Varga <[email protected]>
* bug-426309.2.il: New test.

svn path=/trunk/mono/; revision=113167
2008-09-16 15:00:19 +00:00
Zoltan Varga 1d275929c0 2008-09-16 Zoltan Varga <[email protected]>
* object.c (mono_object_get_virtual_method): Handle the case method->slot
	is not set. Fixes #426309.

svn path=/trunk/mono/; revision=113166
2008-09-16 14:59:28 +00:00
Paolo Molaro 8f31c5ac9d Tue Sep 16 16:39:16 CEST 2008 Paolo Molaro <[email protected]>
* trace.c: make tracing more useful and correct, with per-thread
	id and indent info.


svn path=/trunk/mono/; revision=113163
2008-09-16 14:40:32 +00:00
Carlos Alberto Cortez 2c7b213d4c 2008-09-16 Carlos Alberto Cortez <[email protected]>
* BindingTest.cs: New .ctor asertion for DataSourceNullValue default
	value.


svn path=/trunk/mcs/; revision=113162
2008-09-16 14:28:58 +00:00
Carlos Alberto Cortez 8f15c98c0f 2008-09-16 Carlos Alberto Cortez <[email protected]>
* Binding.cs: The default value of DataSourceNullValue should be
	Convert.DBNull actually. Also, the NullValue should only be used *if*
	itself is not null, and use the null/Convert.DBNull value instead.


svn path=/trunk/mcs/; revision=113161
2008-09-16 14:28:34 +00:00
Raja R Harinath 1eb6ba548d update to changed test
svn path=/trunk/mcs/; revision=113160
2008-09-16 14:24:42 +00:00
Raja R Harinath 49d548789b In System.Data:
2008-09-16  brandin claar  <[email protected]>
	    Raja R Harinath  <[email protected]>

	* DataTable.cs (BinarySerialize): Handle empty DataTables.
	(DeserializeRecords): Likewise.
	(BinaryDeserializeTable): Allow DefaultValue to be set to any value.

In Test/System.Data:
2008-09-16  brandin claar  <[email protected]>

	* BinarySerializationTest.cs (TestDefaultValues): New.
	(TestEmptyTable): New.

svn path=/trunk/mcs/; revision=113148
2008-09-16 12:53:08 +00:00
Raja R Harinath 5e7095f954 style nits
svn path=/trunk/mcs/; revision=113147
2008-09-16 12:52:47 +00:00
Veerapuram Varadhan 0dc851f9d1 Check whether the connection is valid or not when Reset'ting the
connection.

svn path=/trunk/mcs/; revision=113145
2008-09-16 12:22:24 +00:00
Marek Habersack 7352e88c0a Added one more null check and a small optimization
svn path=/trunk/mcs/; revision=113134
2008-09-16 10:20:42 +00:00
Juraj Skripsky c9f83117b1 2008-09-16 Juraj Skripsky <[email protected]>
* HttpServerUtility.cs (UrlDecode, UrlEncode): Respect request/response
	encoding. Fixes bug #426539.


svn path=/trunk/mcs/; revision=113133
2008-09-16 10:11:41 +00:00
Marek Habersack f70aa0171c 2008-09-02 Marek Habersack <[email protected]>
* web.config: removed System.Web.Extensions.dll from the assemblies
        (reverting r112073) - it would break all the ASP.NET applications
        which use System.Web.Extensions other than 3.5.0.0


svn path=/trunk/mono/; revision=113128
2008-09-16 08:07:28 +00:00
Marek Habersack 8efdf7adb0 Fix the build
svn path=/trunk/mcs/; revision=113126
2008-09-16 06:20:33 +00:00
Miguel de Icaza 8a52a782c9 2008-09-16 Miguel de Icaza <[email protected]>
* IPv6Address.cs: On the 2.0 profile, avoid throwing/catching
	exceptions inside TryParse.


svn path=/trunk/mcs/; revision=113125
2008-09-16 05:30:40 +00:00
Miguel de Icaza 22bff668a6 2008-09-16 Miguel de Icaza <[email protected]>
* Uri.cs (TryCreate): Implement one of the TryCreate methods
	without throwing exceptions.   Still two more to go, the hardest
	ones. 

	Part of a fix for #424192.



svn path=/trunk/mcs/; revision=113124
2008-09-16 05:23:05 +00:00
Daniel Morgan ef62c8ca6b 2008-09-14 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs: fixes
	for OracleType.Blob parameters.  Also some case statements
	not properly tabbed.

svn path=/trunk/mcs/; revision=113121
2008-09-16 03:07:51 +00:00
Andreia Gaita 2806ed79fe * Mono.Mozilla/AsciiString.cs: Change marshalling to ansi - auto is no
good on windows. Fixes #414146

2008-09-16  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=113117
2008-09-16 01:18:13 +00:00
Jb Evain 26c74b1edf 2008-09-16 Jb Evain <[email protected]>
* gtest-278.cs, gtest-278-3-lib.cs, gtest-278-2-lib.cs: complete
	test for forwarded types with more than only one type forwarded.


svn path=/trunk/mcs/; revision=113111
2008-09-16 00:12:55 +00:00
Jb Evain 6a4adc5879 2008-09-16 Jb Evain <[email protected]>
* class.c (mono_class_from_name): fix the exported type look up
	when the type is defined in a referenced assembly.


svn path=/trunk/mono/; revision=113110
2008-09-16 00:10:20 +00:00
Jb Evain 8b25b7693f 2008-09-16 Jb Evain <[email protected]>
* AssemblyBuilder.cs (AddTypeForwarder): correctly grow the
	type_forwarders array, to make that work for more than one
	type forwarder. Managed part of the fix for #422929.


svn path=/trunk/mcs/; revision=113102
2008-09-15 22:50:49 +00:00
Jb Evain 2872b8e62b 2008-09-16 Jb Evain <[email protected]>
* reflection.c (mono_image_fill_export_table_from_type_forwarders):
	increment the next index counter on each iteration to make that work
	for more than one type forwarder. Unmanaged part to fix #422929.


svn path=/trunk/mono/; revision=113101
2008-09-15 22:48:53 +00:00
Jonathan Pobst 4016007738 2008-09-15 Jonathan Pobst <[email protected]>
* TextControl.cs: Add a method to convert a string newline to the
	newline enum.
	* TextBoxBase.cs: When the user hits enter, insert a native newline.
	[Fixes part 1 of bug #388115]

svn path=/trunk/mcs/; revision=113099
2008-09-15 22:20:38 +00:00
Miguel de Icaza dbb0f254d1 2008-09-15 Andy Hume <[email protected]>
* DateTimeOffset.cs: DateTimeOffset currently has no
	deserialization constructor, thus deserialization
	fails ("SerializationException: The constructor to deserialize an
	object of type System.DateTimeOffset was not found.")

	Patch attached, implements GetObjectData and that constructor.
	Also includes tests, which include round-tripping to/from MSFT.

svn path=/trunk/mcs/; revision=113098
2008-09-15 22:09:52 +00:00
Mario Carrion 5f08425711 2008-09-15 Mario Carrion <[email protected]>
* ToolTip.cs: UnPopup event set to internal to match public API.


svn path=/trunk/mcs/; revision=113096
2008-09-15 21:20:22 +00:00
Miguel de Icaza bac37e1ba0 Add
svn path=/trunk/mono/; revision=113095
2008-09-15 21:19:00 +00:00
Miguel de Icaza 09a08cb7aa Add non-symlink versions
svn path=/trunk/mono/; revision=113094
2008-09-15 21:15:33 +00:00
Miguel de Icaza 221d5090ee Remove symlink versions
svn path=/trunk/mono/; revision=113093
2008-09-15 21:05:32 +00:00
Miguel de Icaza eba6921b4c Add in non-symlink form
svn path=/trunk/mono/; revision=113092
2008-09-15 21:04:28 +00:00
Miguel de Icaza 44b31afe16 Remove po.m4
svn path=/trunk/mono/; revision=113091
2008-09-15 21:04:08 +00:00
Miguel de Icaza f585c1584a 2008-09-15 Miguel de Icaza <[email protected]>
* namespace.cs: Do not report CS0246 (name

svn path=/trunk/mcs/; revision=113089
2008-09-15 20:41:14 +00:00
Miguel de Icaza f2fa465a96 Add mkinstalldirs
svn path=/trunk/mono/; revision=113082
2008-09-15 19:54:13 +00:00
Jonathan Pobst 6eb9a61be5 2008-09-15 Jonathan Pobst <[email protected]>
* TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
	have to remove the Ctrl in order for the focus moving code to kick in.
	[Fixes bug #426170]

svn path=/trunk/mcs/; revision=113081
2008-09-15 19:53:52 +00:00
Jonathan Pobst e92f25b4a6 2008-09-15 Jonathan Pobst <[email protected]>
* CheckedListBox.cs: Return the real item index from Add.  It may not be
	the last item if the list is sorted.  The user can change the NewValue in
	the ItemCheck event, we need to use that value if so.
	* ListBox.cs: Return the real item index from a sorted Add.
	[Fixes bug #426166]

2008-09-15  Jonathan Pobst  <[email protected]>

	* CheckedListBoxTest.cs, ListBoxTest.cs: Add some tests from Andy
	Hume for bug #426166.

svn path=/trunk/mcs/; revision=113076
2008-09-15 19:19:28 +00:00
Ivan Zlatev 63efc74c52 2008-09-15 Ivan N. Zlatev <[email protected]>
* MimeIcon.cs: Add null checks in the GnomeHandler, because it might
	happen that the icons from the theme is missing or the particular size
	unavailable.
	[Fixes bug #424981]

svn path=/trunk/mcs/; revision=113058
2008-09-15 17:03:22 +00:00
Jb Evain a6f5b1f00e 2008-09-15 Jb Evain <[email protected]>
* SecuritySafeCriticalAttribute.cs: Include SecuritySafeCritical in
	the net_2_0 profile, as a recent sp includes it.


svn path=/trunk/mcs/; revision=113038
2008-09-15 14:41:39 +00:00
Jb Evain 376da3a99d 2008-09-15 Jb Evain <[email protected]>
* Mono.Cecil.Signatures/SignatureReader.cs: fix regression
	in reading custom mods.


svn path=/trunk/mcs/; revision=113033
2008-09-15 13:47:48 +00:00
Marek Safar aa5e97b5fe 2008-09-15 Marek Safar <[email protected]>
A fix for bug #425601
	* driver.cs, typemanager.cs, namespace.cs: Automatically reference
	System.Core only when there is no custom ExtensionAttribute
	implementation.


svn path=/trunk/mcs/; revision=113030
2008-09-15 13:08:20 +00:00
Carlos Alberto Cortez 99cfdbba5f 2008-09-15 Carlos Alberto Cortez <[email protected]>
* Binding.cs: When assigning null or DBNull depending on value/ref type,
	use IsValueType instead to get the precise desired value.
	Fixes #424276.


svn path=/trunk/mcs/; revision=113029
2008-09-15 13:07:49 +00:00
Mark Probst cc2e99d062 2008-09-15 Mark Probst <[email protected]>
* mini-ppc.c (mono_arch_emit_call): Convert floats to R4 when
	doing a method call and the argument is an R4.

svn path=/trunk/mono/; revision=113000
2008-09-15 10:57:46 +00:00
Marek Habersack 4caac12664 2008-09-15 Marek Habersack <[email protected]>
* SessionStateModule.cs: correctly let the handler know if an item
	is new when calling SetAndReleaseItemExclusive. Fixes bug #424797
	If handler's GetItem doesn't initialize storeLockId to a non-null
	value, initialize it to 0. Fixes bug #424797

svn path=/trunk/mcs/; revision=112997
2008-09-15 09:54:30 +00:00
Mark Probst b6e5f92917 2008-09-15 Mark Probst <[email protected]>
* object-internals.h: enum ComInterfaceType in
	MonoInterfaceTypeAttribute is guint32, not guint16.

svn path=/trunk/mono/; revision=112985
2008-09-15 06:59:58 +00:00
Raja R Harinath 6435418f8f * configure.in (AC_CONFIG_FILES): Put po/mcs/Makefile.in in its
own stanza.
(AC_OUTPUT): Don't list po/mcs/Makefile, it's automatically
handled by AM_PO_SUBDIRS.

svn path=/trunk/mono/; revision=112983
2008-09-15 04:35:16 +00:00
Atsushi Eno 16a79839e2 2008-09-15 Atsushi Enomoto <[email protected]>
* JsonObject.cs, JsonValue.cs : SL2b2 updates.


svn path=/trunk/mcs/; revision=112982
2008-09-15 03:51:41 +00:00
Raja R Harinath 8320786617 * ConfigXmlDocument.cs (Load): Fix build break in 1.1 profile.
Open code the 'using' with try/finally/Close.

svn path=/trunk/mcs/; revision=112981
2008-09-15 02:01:27 +00:00
Miguel de Icaza d279b9f3ab Small documentation
svn path=/trunk/mcs/; revision=112978
2008-09-14 22:33:16 +00:00
Miguel de Icaza 632ef48384 Update translations
svn path=/trunk/mono/; revision=112976
2008-09-14 22:27:37 +00:00
Miguel de Icaza 339ce978ad Improve for internationalization
svn path=/trunk/mcs/; revision=112975
2008-09-14 22:25:30 +00:00
Miguel de Icaza d780849ff7 Improve for internationalization
svn path=/trunk/mcs/; revision=112974
2008-09-14 22:14:23 +00:00
Carlos Alberto Cortez 6506016e1c 2007-09-14 Carlos Alberto Cortez <[email protected]>
* WinSerialStream.cs: Fix the signature of ClearCommError.
	Fixes #348751.


svn path=/trunk/mcs/; revision=112973
2008-09-14 21:55:20 +00:00
Miguel de Icaza 45bc5d51ba 2008-09-14 Miguel de Icaza <[email protected]>
* Added some infrastructure to start the translation of the
	compiler error messages.

	Currently the compiler does not yet use the infrastructure,
	that needs a bit of work, but the PO infrastructure is in place. 


svn path=/trunk/mono/; revision=112972
2008-09-14 21:46:58 +00:00
Miguel de Icaza 34defca140 Friendlier internationalization strings
svn path=/trunk/mcs/; revision=112971
2008-09-14 20:56:03 +00:00
Miguel de Icaza 758861ec8f Update
svn path=/trunk/mono/; revision=112965
2008-09-14 19:06:06 +00:00
Carlos Alberto Cortez f15005a06b 2008-09-14 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: Throw ArgumentException if NewLine gets an empty
	string value.
	Fixes #339012.


svn path=/trunk/mcs/; revision=112964
2008-09-14 17:39:56 +00:00
Gert Driesen c52dbbeb8b * ConfigurationManagerTest.cs: Added test for bug #323622.
svn path=/trunk/mcs/; revision=112960
2008-09-14 16:57:52 +00:00
Carlos Alberto Cortez 612109ef83 2008-09-14 Carlos Alberto Cortez <[email protected]>
* serial.c: When writing bytes and polling, take into account negative
	values to indicate infinite timeout. Patch by Leszek Ciesielski.
	Fixes #399245.


svn path=/trunk/mono/; revision=112959
2008-09-14 16:53:01 +00:00
Gert Driesen 93ff28fda8 * System_test.dll.sources: Added ConfigXmlDocumentTest.cs.
* ConfigXmlDocumentTest.cs: Added test for Load (String).
* ConfigXmlDocument.cs: Dispose XmlTextReader in Load (String).

svn path=/trunk/mcs/; revision=112958
2008-09-14 16:39:17 +00:00
Gert Driesen 4323fbeaeb Moved ProviderCollectionTest.cs from System assembly to System.Configuration.
svn path=/trunk/mcs/; revision=112950
2008-09-14 12:17:43 +00:00
Daniel Morgan ebcefe02af 2008-09-14 Daniel Morgan <[email protected]>
* Test/TestOracleClient.cs: add tests for parameters
	of oracle type CLOB, add tests for setting oracle type
	directly or inferred via the value, and 
	clean up compile warnings

	* System.Data.OracleClient/OracleParameter.cs: fix
	for handling parameters of oracle type CLOB for
	Input, Output, and Return.  InputOutput is not supported.
	And handle CLOB parameters that are DBNull.Value or
	their value length is zero.

svn path=/trunk/mcs/; revision=112948
2008-09-14 04:06:00 +00:00
Zoltan Varga 1b29e7e9c2 2008-09-14 Zoltan Varga <[email protected]>
* gen-interp.cs: New file to generate the all variants of the character 
	checking opcodes in RxInterpreter.cs.

	* RxInterpreter.cs: Replace hand written code with code generated by
	gen-interp.cs.

svn path=/trunk/mcs/; revision=112947
2008-09-14 01:46:53 +00:00
Zoltan Varga 6dad6b5f3b 2008-09-14 Zoltan Varga <[email protected]>
* RegexBugs.cs: Add a test for #426142.

svn path=/trunk/mcs/; revision=112946
2008-09-14 00:07:44 +00:00
Zoltan Varga 20bceca776 2008-09-14 Zoltan Varga <[email protected]>
* RxInterpreter.cs: Fix the failure case of the No<XXX> opcodes. Fixes
	#426142.

svn path=/trunk/mcs/; revision=112945
2008-09-13 23:57:25 +00:00
Zoltan Varga c478bd1486 2008-09-14 Zoltan Varga <[email protected]>
* Makefile (regex-check): New helper target to run the perl regex test suite.

svn path=/trunk/mcs/; revision=112944
2008-09-13 23:56:19 +00:00
Zoltan Varga 6e79f5b24d 2008-09-14 Zoltan Varga <[email protected]>
* library.make: Allow FIXTURE make variable to be passed to nunit.

svn path=/trunk/mcs/; revision=112943
2008-09-13 23:54:05 +00:00
Zoltan Varga 4af2c10147 2008-09-14 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Do not generate runtime invoke wrappers for
	generic methods.

svn path=/trunk/mono/; revision=112942
2008-09-13 22:45:49 +00:00
Zoltan Varga 8fd67fcea6 2008-09-14 Zoltan Varga <[email protected]>
* ConsoleDriver.cs: Remove obsolete GetTtySize icall.

svn path=/trunk/mcs/; revision=112941
2008-09-13 22:26:26 +00:00
Atsushi Eno 21a3ea47a6 2008-09-13 Atsushi Enomoto <[email protected]>
* System.Web.dll.sources: added System.Web.UI/IAutoFieldGenerator.cs
	  and System.Web.UI.WebControls/IPersistedSelector.cs.

	* IPersistedSelector.cs : new in 3.5 SP1.

	* IAutoFieldGenerator.cs : new in 3.5 SP1.


svn path=/trunk/mcs/; revision=112940
2008-09-13 19:01:32 +00:00
Miguel de Icaza 007c1bc316 Add sample xgettext invocation; Question: what to do next with this?
svn path=/trunk/mcs/; revision=112939
2008-09-13 17:57:32 +00:00
Miguel de Icaza fe214ec321 Allow for gmcs to be signed if the LIBRARY define is set
svn path=/trunk/mcs/; revision=112938
2008-09-13 17:57:17 +00:00
Atsushi Eno f0ec7f3bfa 2008-09-13 Atsushi Enomoto <[email protected]>
* System.Web.dll.sources: added
	  System.Web.UI/CssClassPropertyAttribute.cs.

	* CssClassPropertyAttribute.cs : new in 3.5 SP1.


svn path=/trunk/mcs/; revision=112936
2008-09-13 13:34:19 +00:00
Atsushi Eno 7bdf4220e4 2008-09-13 Atsushi Enomoto <[email protected]>
* DynamicDataSourceOperation.cs, DynamicValidatorEventArgs.cs,
	  IDynamicDataSource.cs, IDynamicValidatorException.cs :
	  oops, everything went into wrong namespace.


svn path=/trunk/mcs/; revision=112935
2008-09-13 13:26:41 +00:00
Atsushi Eno 79ba9748c8 2008-09-13 Atsushi Enomoto <[email protected]>
* System.Web.Extensions.dll.sources :
	  added sys.web.DynamicData types.

	* DynamicDataSourceOperation.cs, DynamicValidatorEventArgs.cs,
	  IDynamicDataSource.cs, IDynamicValidatorException.cs :
	  new in 3.5 SP1.


svn path=/trunk/mcs/; revision=112934
2008-09-13 13:21:54 +00:00
Atsushi Eno 00e5d165e3 2008-09-13 Atsushi Enomoto <[email protected]>
* System.Web.dll.sources: added System.Web.UI/IBindableControl.cs.

	* IBindableControl.cs : new in 3.5 SP1.


svn path=/trunk/mcs/; revision=112933
2008-09-13 13:06:34 +00:00
Atsushi Eno 564ade59ac 2008-09-13 Atsushi Enomoto <[email protected]>
* System.Web.dll.sources: added
	  System.Web.UI.WebControls/DataBoundControlMode.cs.

	* DataBoundControlMode.cs : new 3.5 SP1 type.


svn path=/trunk/mcs/; revision=112932
2008-09-13 12:55:21 +00:00
Atsushi Eno d89ecdf8a2 2008-09-13 Atsushi Enomoto <[email protected]>
* SqlDependency.cs : wrong namespace.


svn path=/trunk/mcs/; revision=112931
2008-09-13 12:37:21 +00:00
Mark Probst ceae45447c 2008-09-13 Mark Probst <[email protected]>
* mini-ppc.c: Convert result to single for OP_ICONV_TO_R4.

svn path=/trunk/mono/; revision=112930
2008-09-13 11:16:15 +00:00
Daniel Morgan b575dfd355 2008-09-13 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleConnection.cs: add stubs
	for method GetSchema which is part of NET_2_0, and clean up warnings

	* System.Data.OracleClient/OracleCommand.cs
	* ystem.Data.OracleClient/OracleParameter.cs
	* System.Data.OracleClient/OracleBFile.cs
	* System.Data.OracleClient.Oci/OciHandle.cs: clean up warnings

	* System.Data.OracleClient.Oci/OciDescriptorHandle.cs
	* System.Data.OracleClient.Oci/OciDefineHandle.cs: make methods internal

svn path=/trunk/mcs/; revision=112925
2008-09-13 05:31:30 +00:00
Daniel Morgan bf9ee16b38 2008-09-13 Daniel Morgan <[email protected]>
* Test/TestOracleClient.cs: add test for LONG (long varchar)
	testing paramters for Input, Output, 
	InputOutput, and ReturnValue and
	situations when any of these could be DBNull.Value

	* System.Data.OracleClient/OracleParameter.cs: fix
	handling of parameters LONG (long varchar).  However,
	it probably would be better to implement LONG using
	piecewise operation.  Also, remove old code.

svn path=/trunk/mcs/; revision=112924
2008-09-13 04:14:29 +00:00
Miguel de Icaza d97ed80f3b 2008-09-12 Miguel de Icaza <[email protected]>
* HttpListenerPrefixCollection.cs, EndPointListener.cs,
	HttpListener.cs, EndPointManager.cs, HttpConnection.cs: Remove
	generics support where necessary to allow this code to be reused
	in the 1.0 profile.

svn path=/trunk/mcs/; revision=112922
2008-09-12 23:59:52 +00:00
Zoltan Varga 4b5c388a7b 2008-09-13 Zoltan Varga <[email protected]>
* RxInterpreter.cs RxCompiler.cs: Implement some missing Category opcodes.

svn path=/trunk/mcs/; revision=112914
2008-09-12 22:28:39 +00:00
Jeffrey Stedfast f54fd3ae5b 2008-09-12 Jeffrey Stedfast <[email protected]>
Fix for bug #320298

	* TcpClientTransportSink.cs: Updated for change to
	TcpChannel.ParseTcpURL(). We now need to do our own integer
	conversion/validation of the port.

	* TcpChannel.cs (ParseTcpURL): We need to match the
	protocol ("tcp") case-insensitively. The objectURI is supposed to
	include the leading '/' character. Also, we need to ignore invalid
	port designators since Microsoft's .NET implementation of
	TcpChannel.Parse() doesn't seem to care that they are valid.


svn path=/trunk/mcs/; revision=112912
2008-09-12 22:10:44 +00:00
Miguel de Icaza 7fbd1028cd UPdate
svn path=/trunk/mono/; revision=112911
2008-09-12 21:50:51 +00:00
Jb Evain fd6f6c88a8 2008-09-12 Jb Evain <[email protected]>
* DictionaryTest.cs: add tests for #425693.


svn path=/trunk/mcs/; revision=112908
2008-09-12 21:01:51 +00:00
Jb Evain 553bc77516 2008-09-12 Jb Evain <[email protected]>
* Dictionary.cs: (ToTValue) allow null values to be added for non
	value types TValues to the dictionary when using the
	non generic IDictionary. Fixes #425693.


svn path=/trunk/mcs/; revision=112907
2008-09-12 20:58:02 +00:00
Jonathan Pobst f138ae9ebe 2008-09-12 Jonathan Pobst <[email protected]>
* TreeNodeCollection.cs: When adding a new node to an opened node,
	we have to invalidate everything below the parent node because
	every node scoots down and we have to repaint them.
	[Fixes bug #411386]

svn path=/trunk/mcs/; revision=112902
2008-09-12 19:50:46 +00:00
Jonathan Pobst 5796d1bade 2008-09-12 Jonathan Pobst <[email protected]>
* ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
	property into account when drawing.
	[Fixes bug #416064]

svn path=/trunk/mcs/; revision=112899
2008-09-12 19:10:54 +00:00
Jb Evain 3a847b4c67 2008-09-12 Jb Evain <[email protected]>
* HashSet.cs (.ctor (IEnumerable<T>,*)): only get the count of the
	enumerable if the source collection implements ICollection<T>, so that
	we only iterate once over the source collection.


svn path=/trunk/mcs/; revision=112897
2008-09-12 18:34:13 +00:00
Atsushi Eno 8acac8067d Route.GetRouteData() and HttpMethodConstraint.Match() with tests.
svn path=/trunk/mcs/; revision=112896
2008-09-12 18:02:55 +00:00
Carlos Alberto Cortez 8fb9aa295c 2008-09-12 Carlos Alberto Cortez <[email protected]>
* ListBox.cs: When calling Items.Clear(), call
	SelectedIndexCollection.ClearCore instead of normal Clear method, to
	not fire any Selected*Changed event - this is done to match .net and
	don't have invalid values when changing the DataSourceProperty.
	Fixes #424273.


svn path=/trunk/mcs/; revision=112895
2008-09-12 17:08:12 +00:00
Mario Carrion 2960bbaadc 2008-09-12 Mario Carrion <[email protected]>
* HelpProvider.cs: Control enabled to support accessibility.
* Application.cs: Updated to Initialize UIA in  HelpProvider. 
  [Fixes bug #425988]


svn path=/trunk/mcs/; revision=112894
2008-09-12 16:57:51 +00:00
Jonathan Pobst f07f400061 2008-09-12 Jonathan Pobst <[email protected]>
* Form.cs: When we are showing a dialog box, if its owner is TopMost,
	make the dialog TopMost as well.
	[Fixes bug #425984]

svn path=/trunk/mcs/; revision=112893
2008-09-12 16:48:12 +00:00
Jonathan Pobst 4b40a34d90 2008-09-12 Jonathan Pobst <[email protected]>
* Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
	clipboard data better.
	[Fixes bug #414446]

svn path=/trunk/mcs/; revision=112891
2008-09-12 16:38:58 +00:00
Jonathan Pobst b6f3655d02 2008-09-12 Jonathan Pobst <[email protected]>
* TextBoxBase.cs: Applied patch from John Mortlock that ensures
	TextChanged and SelectionChanged events fire in the same order as .Net.
	[Fixes bug #425725]

svn path=/trunk/mcs/; revision=112890
2008-09-12 16:24:10 +00:00
Jonathan Pobst 0248a3498b 2008-09-12 Jonathan Pobst <[email protected]>
* DataGridView.cs: When sorting a column, if it only contains numbers,
	do a numeric sort instead of a string sort.
	[Fixes bug #425849]

svn path=/trunk/mcs/; revision=112889
2008-09-12 16:09:10 +00:00
Jonathan Pobst 7d8ae07c3e 2008-09-12 Jonathan Pobst <[email protected]>
* TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
	against NRE's when the settings have a null panel.
	* TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
	the panel gets set.
	[Fixes bug #425647]

2008-09-12  Jonathan Pobst  <[email protected]>

	* TableLayoutSettingsTypeConverter.cs: Don't create an instance of 
	TableLayoutPanel in ConvertFrom.
	[Fixes bug #425647]

svn path=/trunk/mcs/; revision=112886
2008-09-12 15:24:16 +00:00
Raja R Harinath 2d70dde00e sprinkle around a few more partial methods
* DataTable.cs (NewRowAdded): Make into partial method.
(DataTableClearing, DataTableCleared): New partial methods.
(Clear): Use them.

svn path=/trunk/mcs/; revision=112880
2008-09-12 14:31:17 +00:00
Raja R Harinath 7bcda9de4c Use more C# 3.0
* DataTable.cs: Sequester ISupportInitializationNotification
pieces into separate part.
(DataTableInitialized): Turn into a 'partial method' to avoid #ifs.

svn path=/trunk/mcs/; revision=112879
2008-09-12 14:30:35 +00:00
Marek Safar f390cb8732 2008-09-12 Marek Safar <[email protected]>
A test for bug #425669


svn path=/trunk/mcs/; revision=112878
2008-09-12 14:19:47 +00:00
Marek Safar e6fc141eea 2008-09-12 Marek Safar <[email protected]>
A fix for bug #425669
	* generic.cs: Don't cache generic static anonymous method 
	containers.


svn path=/trunk/mcs/; revision=112877
2008-09-12 14:19:14 +00:00
Sebastien Pouliot a1c9f92660 2008-09-12 Sebastien Pouliot <[email protected]>
* ASN1.cs: Use File.Create instead of OpenWrite to make sure nothing
	else if left at the end of the file.


svn path=/trunk/mcs/; revision=112875
2008-09-12 13:53:15 +00:00
Sebastien Pouliot 1c2efbc98f 2008-09-12 Sebastien Pouliot <[email protected]>
* PKCS12.cs, X509Store.cs: Use File.Create instead of OpenWrite to
	make sure nothing else if left at the end of the file. Issue reported
	by Christophe Chevalier.


svn path=/trunk/mcs/; revision=112874
2008-09-12 13:52:33 +00:00
Sebastien Pouliot 8b75282bce 2008-09-12 Sebastien Pouliot <[email protected]>
* FileCertificateStore.cs: Use File.Create instead of OpenWrite
	to make sure nothing else if left at the end of the file.


svn path=/trunk/mcs/; revision=112873
2008-09-12 13:51:08 +00:00
Sebastien Pouliot 2e4644e120 2008-09-12 Sebastien Pouliot <[email protected]>
* ASN1.cs: Use File.Create instead of OpenWrite to make sure nothing
	else if left at the end of the file.


svn path=/trunk/mcs/; revision=112872
2008-09-12 13:50:06 +00:00
Sebastien Pouliot d2b5872696 2008-09-12 Sebastien Pouliot <[email protected]>
* PKCS12.cs, X509Store.cs: Use File.Create instead of OpenWrite to
	make sure nothing else if left at the end of the file. Issue reported
	by Christophe Chevalier.


svn path=/trunk/mcs/; revision=112871
2008-09-12 13:49:42 +00:00
Marek Safar 81eb0df483 New tests.
svn path=/trunk/mcs/; revision=112869
2008-09-12 12:24:51 +00:00
Marek Safar f6be83b65b 2008-09-12 Marek Safar <[email protected]>
* generic.cs, class.cs, delegate.cs: Check recursive inherited
	conflicting constraints.


svn path=/trunk/mcs/; revision=112868
2008-09-12 12:24:40 +00:00
Raja R Harinath c69f1aabad * cs-tokenizer.cs (consume_identifier): Allow partial methods in mcs too.
svn path=/trunk/mcs/; revision=112866
2008-09-12 12:05:17 +00:00
Jb Evain 3e4e204872 2008-09-12 Jb Evain <[email protected]>
* Makefile: tune System.ServiceModel.Web.


svn path=/trunk/mcs/; revision=112865
2008-09-12 11:54:22 +00:00
Jb Evain 85d4a437f3 2008-09-12 Jb Evain <[email protected]>
* Makefile: add System.ServiceModel.Web to the net_2_1_raw build.


svn path=/trunk/mcs/; revision=112864
2008-09-12 11:53:11 +00:00
Jb Evain 88bb572e14 2008-09-12 Jb Evain <[email protected]>
* net_2_1_raw_System.ServiceModel.Web.dll.sources
	* Makefile
	* System.Runtime.Serialization.Json/JsonReader.cs:
		support the SL2 profile compilation.


svn path=/trunk/mcs/; revision=112863
2008-09-12 11:52:10 +00:00
Jb Evain 7d94d68c03 2008-09-12 Jb Evain <[email protected]>
* Makefile: tune System.ServiceModel.dll


svn path=/trunk/mcs/; revision=112861
2008-09-12 11:44:13 +00:00
Jb Evain 4e68e21458 2008-09-12 Jb Evain <[email protected]>
* Makefile: add System.ServiceModel to the net_2_1_raw build.


svn path=/trunk/mcs/; revision=112860
2008-09-12 11:43:32 +00:00
Jb Evain 1f8d43188f add missing files
svn path=/trunk/mcs/; revision=112858
2008-09-12 11:22:58 +00:00
Jb Evain 031fa07cc1 2008-09-12 Astushi Enomoto <[email protected]>
Jb Evain  <[email protected]>

	* Makefile: support net_2_1_raw compilation profile.
	* net_2_1_raw_System.ServiceModel.dll.sources

	* *.cs: SL2 compilation support.


svn path=/trunk/mcs/; revision=112857
2008-09-12 11:21:41 +00:00
Mark Probst 9335ccddce 2008-09-12 Mark Probst <[email protected]>
* cil-coff.h, image.c, reflection.c: Endianness fixes in image
	writing code.

svn path=/trunk/mono/; revision=112853
2008-09-12 10:55:18 +00:00
Marek Safar c5c8ce6b83 New test.
svn path=/trunk/mcs/; revision=112851
2008-09-12 10:11:19 +00:00
Marek Safar 602ed37de8 2008-09-12 Marek Safar <[email protected]>
* literal.cs, convert.cs, expression.cs, statement.cs: More null
	to null pointer conversion fixes.


svn path=/trunk/mcs/; revision=112850
2008-09-12 10:11:04 +00:00
Raja R Harinath 9b04dfb561 * DataTable.cs (AssertNotNullConstraints): Hoist out a more useful
loop-invariant by inverting loops.
(RowExists): Outdent.  Rewrite for slightly better clarity.
(BeginLoadData): Outdent.
(GetChanges): Outdent.  Replace GetEnumerator/while with foreach.

svn path=/trunk/mcs/; revision=112848
2008-09-12 10:05:57 +00:00
Raja R Harinath 0c3cdf3837 Style nits
svn path=/trunk/mcs/; revision=112847
2008-09-12 10:05:38 +00:00
Raja R Harinath b6fc970c96 * DataTable.cs: Convert to a partial class, sequester NET_2_0
specific and IXmlSerializable specific pieces into separate parts.

svn path=/trunk/mcs/; revision=112846
2008-09-12 10:05:21 +00:00
Raja R Harinath 50375651eb Style nits
svn path=/trunk/mcs/; revision=112845
2008-09-12 10:05:02 +00:00
Jb Evain 8904483f55 update
svn path=/trunk/mono/; revision=112844
2008-09-12 10:01:42 +00:00
Jb Evain 99265a4990 2008-09-12 Jb Evain <[email protected]>
* Mono.Linker/Pipeline.cs: add a RemoveStep method.
	* Mono.Linker/Driver.cs: make the linker generate new
	module guids by default.


svn path=/trunk/mcs/; revision=112842
2008-09-12 10:00:50 +00:00
Atsushi Eno 1c1ab5802c Url parser implementation and some tests.
svn path=/trunk/mcs/; revision=112830
2008-09-12 09:37:37 +00:00
Jb Evain 63c1c86805 update
svn path=/trunk/mono/; revision=112829
2008-09-12 09:08:07 +00:00
Zoltan Varga 5f36c9a915 2008-09-12 Zoltan Varga <[email protected]>
* mini.h (MONO_IS_JUMP_TABLE): Handle GOT_ENTRY.
	(MONO_JUMP_TABLE_FROM_INS): Ditto.

svn path=/trunk/mono/; revision=112828
2008-09-12 09:07:12 +00:00
Jb Evain 154670e5fa 2008-09-12 Jb Evain <[email protected]>
* Makefile: make the linker generate new guids for the tuned
	assemblies.


svn path=/trunk/mcs/; revision=112827
2008-09-12 09:01:13 +00:00
Jb Evain d2536e19e3 fix typo
svn path=/trunk/mono/; revision=112826
2008-09-12 09:00:45 +00:00
Jb Evain 0a922a5379 follow common pattern
svn path=/trunk/mcs/; revision=112825
2008-09-12 08:57:16 +00:00
Jb Evain 2be1036471 2008-09-12 Jb Evain <[email protected]>
* Mono.Linker.Steps/RegenerateGuidStep.cs: new step that is used
	to regenerate the Mvid identifier of each linked module.

	* monolinker.exe.sources:
	* Mono.Linker.csproj: add RegeneratedGuidStep to the build.

	* Mono.Linker/Driver.cs: add a -g option to control whether to
	regenerate the modules identifier or not.


svn path=/trunk/mcs/; revision=112824
2008-09-12 08:52:14 +00:00
Zoltan Varga 94a589b65e 2008-09-12 Zoltan Varga <[email protected]>
* scripts/patch-quiet.sh: Remove an obsolete comment. Change the Makefile so
	this script is rerun if Makefile.am changes.

svn path=/trunk/mono/; revision=112822
2008-09-12 07:48:56 +00:00
Sebastien Pouliot 3487383e1e just remove --security but don't try to use the installed SN
svn path=/trunk/mono/; revision=112820
2008-09-12 00:19:43 +00:00
Mario Carrion ecb0ce10ce * ToolTip.cs: Control enabled to support accessibility.
* Application.cs: Updated to Initialize UIA in ToolTip.
  [Fixes bug #425277]


svn path=/trunk/mcs/; revision=112812
2008-09-11 22:54:53 +00:00
Jonathan Pobst 312a89d869 2008-09-11 Jonathan Pobst <[email protected]>
* Control.cs: Make the custom Enumerator internal to fix build.

svn path=/trunk/mcs/; revision=112807
2008-09-11 22:16:57 +00:00
Jonathan Pobst 22ee20bbe4 2008-09-11 Jonathan Pobst <[email protected]>
* DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
	already in edit mode, begin edit mode.  Generally edit mode isn't
	started until the second click, but CheckBoxes are special.

svn path=/trunk/mcs/; revision=112803
2008-09-11 21:19:21 +00:00
Sebastien Pouliot b5442ba65b 2008-09-11 Sebastien Pouliot <[email protected]>
* Makefile.am: Don't use --security to execute SN (since it's not
	part of the tests and fails verification due to other issues).
	<kumpera> spouliot: the issue is that, for some reason, M.M.BinInteger
	is been treated a code not under full trust (so no unsafe code)


svn path=/trunk/mono/; revision=112802
2008-09-11 21:02:22 +00:00
Jonathan Pobst 2311de7fad 2008-09-11 Jonathan Pobst <[email protected]>
* ErrorProvider.cs: Never try to add our icons to ContainerControl,
	since that can be set to anything.  Always add them to the Control's
	parent.  [Fixes bug #416058]

svn path=/trunk/mcs/; revision=112798
2008-09-11 20:05:21 +00:00
Jonathan Pobst 5f55e51c6c 2008-09-11 Jonathan Pobst <[email protected]>
* ListView.cs: Use a custom enumerator for ListViewItemCollection
	so items can be deleted in a foreach.
	[Fixes bug #425342]

2008-09-11  Jonathan Pobst  <[email protected]>

	* ListViewCollectionsTest.cs: Add test for bug #425342.

svn path=/trunk/mcs/; revision=112796
2008-09-11 19:49:54 +00:00
Raja R Harinath 357c708674 update known-issues-smcs
svn path=/trunk/mcs/; revision=112786
2008-09-11 18:42:36 +00:00
Jonathan Pobst 9bd6d1d130 2008-09-11 Jonathan Pobst <[email protected]>
* DataGridViewRow.cs: Better implementation of GetPreferredHeight.
	Store the user set explicit height so that the row can be AutoSized
	and then when AutoSize is turned off, it can get its original size back.
	* DataGridView.cs: Use the Row's GetPreferredHeight instead of 
	duplicating the logic.  When setting AutoSizeRowsMode to None, reset
	rows' heights back to their explicit values.
	[Fixes bug #415780]

svn path=/trunk/mcs/; revision=112785
2008-09-11 18:36:54 +00:00
Raja R Harinath 6d2f49fb47 no need to explicitly DIST the sources file
svn path=/trunk/mcs/; revision=112784
2008-09-11 18:14:31 +00:00
Andrew Jorgensen ed21813184 Cannot have PROGRAM conditional (breaks dist)
svn path=/trunk/mcs/; revision=112781
2008-09-11 17:19:52 +00:00
Mark Probst 5a14249e87 2008-09-11 Mark Probst <[email protected]>
* icall.c: Boolean arguments to a runtime invoke are MonoBoolean,
	not gboolean.

svn path=/trunk/mono/; revision=112779
2008-09-11 16:46:02 +00:00
Carlos Alberto Cortez 2d9d8adb77 2008-09-11 Carlos Alberto Cortez <[email protected]>
* DateTimePicker.cs: When getting focus, select the checkbox if we are
	already showing it. Also, don't change its value when pressing space
	if the checkbox is not visible (ShowCheckBox as false). Finally, the
	checkbox should remain selected as long as Checked is false, and the
	other parts are disabled.
	Fixes #424267.
	

svn path=/trunk/mcs/; revision=112778
2008-09-11 16:31:41 +00:00
Zoltan Varga 8798379e06 2008-09-11 Zoltan Varga <[email protected]>
* driver.c: Add a --agent argument (not supported yet) to load managed
	agent assemblies before loading the main assembly, similarly to how the
	Java VM handles agents.

svn path=/trunk/mono/; revision=112774
2008-09-11 16:08:20 +00:00
Miguel de Icaza 806a18bba6 Another attempt
svn path=/trunk/mcs/; revision=112773
2008-09-11 15:58:55 +00:00
Miguel de Icaza fc5bb02c95 Fix?
svn path=/trunk/mcs/; revision=112768
2008-09-11 15:53:33 +00:00
Miguel de Icaza 2791650aa7 Rename as Evaluator
svn path=/trunk/mcs/; revision=112767
2008-09-11 15:50:56 +00:00
Sebastien Pouliot 6268d0bdd3 2008-09-11 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorageFile.cs: Add application and iste specific 
	initialization. Add rumenditary quota support (not thread or cross 
	process safe). Add a bunch of TODO & FIXME.
	* MoonIsolatedStorageFileStream.cs: Add quota checks (delegated 
	into MoonIsolatedStorageFile).


svn path=/trunk/mcs/; revision=112762
2008-09-11 14:39:16 +00:00
Atsushi Eno 17db992fad some implementations and tests.
svn path=/trunk/mcs/; revision=112761
2008-09-11 14:38:17 +00:00
Jonathan Pobst 6750a5cc0a 2008-09-11 Jonathan Pobst <[email protected]>
* MessageBox.cs: Handle shortcut keys to dialog buttons.
	[Fixes bug #425425]

svn path=/trunk/mcs/; revision=112760
2008-09-11 14:32:42 +00:00
Marek Safar deecdce221 Update
svn path=/trunk/mcs/; revision=112759
2008-09-11 14:07:04 +00:00
Marek Safar c11dfa2df8 2008-09-11 Marek Safar <[email protected]>
* cs-parser.jay, expression.cs: An implicitly typed local variable
	declarator cannot use an array initializer.


svn path=/trunk/mcs/; revision=112758
2008-09-11 14:06:42 +00:00
Mark Probst 45bee91efe 2008-09-11 Mark Probst <[email protected]>
* mini-ppc.c (mono_arch_allocate_vars): Use arch-independent
	function to do stack layout of local variables.

svn path=/trunk/mono/; revision=112757
2008-09-11 13:41:29 +00:00
Marek Safar 211f842deb 2008-09-11 Marek Safar <[email protected]>
* cs-parser.jay: Reduced number of printed tokens, add sorting.


svn path=/trunk/mcs/; revision=112756
2008-09-11 13:20:05 +00:00
Carlos Alberto Cortez ae386f1a13 2008-09-11 Carlos Alberto Cortez <[email protected]>
* Binding.cs: When the value retrieved from the control property is
	null, don't return Convert.DBNull for Nullable instances, since they
	can *actually* get a null value.
	Fixes #424265.


svn path=/trunk/mcs/; revision=112754
2008-09-11 12:39:13 +00:00
Marek Safar b53179b24b Updated.
svn path=/trunk/mcs/; revision=112753
2008-09-11 09:55:10 +00:00
Marek Safar 2ecb02274d New tests.
svn path=/trunk/mcs/; revision=112752
2008-09-11 09:55:01 +00:00
Marek Safar 2c511ac653 2008-09-11 Marek Safar <[email protected]>
* generic.cs (InflatedConstraints): Don't crash when constraints
	are different.
	
	* cs-parser.jay: const_declarator is a block.

	* constant.cs: Check for not allowed NaN conversions.


svn path=/trunk/mcs/; revision=112751
2008-09-11 09:54:44 +00:00
Mark Probst fe05f2a4ed 2008-09-11 Mark Probst <[email protected]>
* mini-ppc.c (calculate_sizes): Bugfix in sigcookie position
	calculation.

svn path=/trunk/mono/; revision=112750
2008-09-11 09:51:06 +00:00
Mark Probst b291641719 2008-09-11 Mark Probst <[email protected]>
* debug-mono-symfile.c (mono_debug_symfile_lookup_location):
	Endianness fixes for MonoSymbolFileOffsetTable.

svn path=/trunk/mono/; revision=112744
2008-09-11 07:43:45 +00:00
Jb Evain 935d94af6a 2008-09-11 Jb Evain <[email protected]>
* Enumerable.cs (Iterate*): use a bool empty instead of an int counter.
	Fixes #425344.


svn path=/trunk/mcs/; revision=112743
2008-09-11 07:20:08 +00:00
Daniel Morgan 22e00a62ba 2008-09-11 Daniel Morgan <[email protected]>
* sqlsharp.1: added commands
	\bcs, \cs, \listproviders, \p

svn path=/trunk/mono/; revision=112742
2008-09-11 04:03:59 +00:00
Zoltan Varga 5e7bbc2922 2008-09-11 Zoltan Varga <[email protected]>
* method-to-ir.c ssa2.c mini.c mini-amd64.c decompose.c ssa.c abcremoval.c
	abcremoval2.c branch-opts.c driver.c dominators.c: Disable parts of the
	JIT if DISABLE_JIT is defined.

	* Makefile.am: Avoid compiling/linking in inssel.c if DISABLE_JIT is
	defined.

svn path=/trunk/mono/; revision=112726
2008-09-11 01:50:25 +00:00
Zoltan Varga fba32a407f 2008-09-11 Zoltan Varga <[email protected]>
* configure.in: Add a DISABLE_JIT automake conditional too.

svn path=/trunk/mono/; revision=112725
2008-09-11 01:49:17 +00:00
Zoltan Varga 819e2df0c5 2008-09-11 Zoltan Varga <[email protected]>
* configure.in: Add a --enable-minimal=jit option to disable jit, only
	allowing full-aot execution.

svn path=/trunk/mono/; revision=112724
2008-09-11 01:40:21 +00:00
Miguel de Icaza 721ce94841 Oops
svn path=/trunk/mcs/; revision=112722
2008-09-10 22:53:52 +00:00
Miguel de Icaza c8401681d0 Update for csharp.exe command
svn path=/trunk/mono/; revision=112720
2008-09-10 22:43:40 +00:00
Miguel de Icaza 343bbc6c83 Expose the compiler Evaluation routine as a method,
move the REPL shell into a separate tool, the compiler
no longer has the shell.

2008-09-10  Miguel de Icaza  <[email protected]>

	* driver.cs: Drop --shell argument, the compiler is no longer a
	REPL. 

	* eval.cs: Move most of the code that deals with evaluation into
	this file and document the public API from repl.cs

	* repl.cs: Remove from here.


svn path=/trunk/mcs/; revision=112718
2008-09-10 22:43:07 +00:00
Bill Holmes 4804068f5a 2008-09-10 Bill Holmes <[email protected]>
* process.c (complete_path) : Removing quotes from the 
	  input path.  The glib file routines do not handle file paths
	  that have quotes around them.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=112715
2008-09-10 21:59:05 +00:00
Jonathan Pobst b9a70ef54a 2008-09-10 Jonathan Pobst <[email protected]>
* Control.cs: Add an internal field to force doublebuffering regardless
	of what the public mechanisms are set to.  This is because MS's native
	controls are doublebuffered even though their .Net bits are set to false.
	* ProgressBar.cs: Set force_double_buffer to true.
	[Fixes bug #406595]

svn path=/trunk/mcs/; revision=112711
2008-09-10 21:19:53 +00:00
Jonathan Pobst e09884d159 2008-09-10 Jonathan Pobst <[email protected]>
* DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
	the cell template.
	* DataGridViewCheckBoxCell.cs: Add proper support for threestate.
	* DataGridViewCell.cs: Implement GetEditedFormattedValue for types
	without EditingControls, paint background selection for types without
	EditingControls, reset the EditingCellValueChanged flag when the
	cell's value is committed.
	* DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
	have EditingControls, remove a double call to a cell's OnContentClickInternal,
	don't do cell changing logic in OnMouseDown if the cell didn't change.
	[Fixes bug #420351]

svn path=/trunk/mcs/; revision=112698
2008-09-10 18:45:16 +00:00
Zoltan Varga 6ce3e31197 2008-09-10 Zoltan Varga <[email protected]>
* configure.in: Move the computation of export_ldflags after libtool has
	been created.

svn path=/trunk/mono/; revision=112695
2008-09-10 18:20:44 +00:00
Mark Probst 21b12efcce 2008-09-10 Mark Probst <[email protected]>
* iltests.il.in: Disable the fconv test on PPC (the result is
	undefined according to ECMA).

svn path=/trunk/mono/; revision=112691
2008-09-10 17:01:27 +00:00
Jb Evain 7b83a1927c simplify
svn path=/trunk/mcs/; revision=112688
2008-09-10 16:43:03 +00:00
Bill Holmes 017eaee375 2008-09-10 Bill Holmes <[email protected]>
* Socket.cs : Adding a comment to provide locations where
	  changes to MonoSocketAsyncResult need to be synced.

	* Process.cs : Update the fields of ProcessAsyncReader to
	  match MonoSocketAsyncResult metadata/socket-io.h

	Code is contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=112681
2008-09-10 15:20:35 +00:00
Bill Holmes e44640993a 2008-09-10 Bill Holmes <[email protected]>
* socket-io.h : Adding a comment to provide locations where
	  changes to MonoSocketAsyncResult need to be synced.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=112680
2008-09-10 15:18:38 +00:00
Zoltan Varga d49bb31423 2008-09-10 Zoltan Varga <[email protected]>
* marshal9.cs: Add test for #425001.

svn path=/trunk/mono/; revision=112672
2008-09-10 13:08:45 +00:00
Zoltan Varga f4fec1ed88 2008-09-10 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_custom): Call NativeToManaged for non-out 
	parameters as well. Fixes #425001.

svn path=/trunk/mono/; revision=112671
2008-09-10 13:07:25 +00:00
Mark Probst 6c6fefe8d0 2008-09-10 Mark Probst <[email protected]>
* iltests.il.in: Enable tail call tests for PPC.

	* mini.h: Add variable for storing incoming valuetype argument
	addresses for tail calls.

	* mini-ppc.c: Implement valuetype arguments and return values for
	tailcalls on Linux.

svn path=/trunk/mono/; revision=112665
2008-09-10 12:14:34 +00:00
Carlos Alberto Cortez 5213e4c994 2008-09-10 Carlos Alberto Cortez <[email protected]>
* DateTimePicker.cs: Fix the edition of am/pm specifier.


svn path=/trunk/mcs/; revision=112662
2008-09-10 11:49:52 +00:00
Marek Safar 988893bc17 New test.
svn path=/trunk/mcs/; revision=112657
2008-09-10 10:42:53 +00:00
Marek Safar d934ae2bc1 2008-09-10 Marek Safar <[email protected]>
A fix for bug #424684
	* generic.cs: Generic class constraints must come first.


svn path=/trunk/mcs/; revision=112656
2008-09-10 10:42:39 +00:00
Marek Safar 3550a0ed82 2008-09-10 Marek Safar <[email protected]>
* compiler-tester.cs: Add non-varags LogLine overload.


svn path=/trunk/mcs/; revision=112646
2008-09-10 10:14:39 +00:00
Atsushi Eno 57b933955b 2008-09-10 Atsushi Enomoto <[email protected]>
* XmlDocument.cs, XmlDocumentNavigator.cs :
          reduce navigator fields.


svn path=/trunk/mcs/; revision=112645
2008-09-10 08:24:55 +00:00
Atsushi Eno 6bb1b11731 2008-09-10 Atsushi Enomoto <atsushi@ximian,com>
* XPathEditableDocument.cs : added some overrides.


svn path=/trunk/mcs/; revision=112644
2008-09-10 08:23:42 +00:00
Daniel Morgan 55ffdd0ba3 2008-09-10 Daniel Morgan <[email protected]>
* Test/TestOracleClient.cs: fix typo,
	  enable more test,
          Tests pass for parameters for Character, Number, and Date
	  for Input, Output, InputOutput, and ReturnValue and
	  situations when any of these could be DBNull.Value

	* System.Data.OracleClient/OracleParameter.cs: fix
	handling of parameters for character, number, and date
	types.  Need to redo all the other types based on the above.

	* System.Data.OracleClient.Oci/OciDefineHandle.cs: rename private
	method DefineLong to DefineLongVarChar

svn path=/trunk/mcs/; revision=112641
2008-09-10 04:56:56 +00:00
Miguel de Icaza f40f6be302 Fixitificate
svn path=/trunk/mono/; revision=112637
2008-09-10 03:01:27 +00:00
Scott Thomas 144022fb14 * BitVector32.cs: Minor fixes. Simplified Section.ToString and
GetHashCode, and BitVector32.Equals.


svn path=/trunk/mcs/; revision=112633
2008-09-10 01:24:11 +00:00
Miguel de Icaza dce857962c 2008-09-09 Miguel de Icaza <[email protected]>
* cs-parser.jay: Improve error reporting for syntax errors in
	statements and expressions, we now report the expected tokens
	instead of reporting the useless "; expected".

	Drop the strings from the token declaration, it turns out that
	they did not do what I thought they did.  Instead they were adding
	two sets of tokens to the tables.

svn path=/trunk/mcs/; revision=112619
2008-09-09 21:47:35 +00:00
Jonathan Pobst d7c06aac45 2008-09-09 Jonathan Pobst <[email protected]>
* TextControl.cs: Add "&" to the list of valid characters in a URL.

svn path=/trunk/mcs/; revision=112618
2008-09-09 21:24:21 +00:00
Miguel de Icaza c272d72834 2008-09-09 Miguel de Icaza <[email protected]>
* skeleton.cs: A little refactoring to support producing a list of
	tokens as opposed to a list of token strings for code that uses
	the yyExpecting code.

svn path=/trunk/mcs/; revision=112612
2008-09-09 19:16:15 +00:00
Atsushi Eno d06d4c3c58 it's mostly done.
svn path=/trunk/mcs/; revision=112611
2008-09-09 19:10:57 +00:00
Sebastien Pouliot c53a459967 2008-09-09 Sebastien Pouliot <[email protected]>
* monoresgen.cs: Make resgen2 report a bit more useful by considering
	the extra XmlException in the exception chain.


svn path=/trunk/mcs/; revision=112610
2008-09-09 18:23:57 +00:00
Marek Safar 01226f2294 New tests.
svn path=/trunk/mcs/; revision=112601
2008-09-09 15:49:11 +00:00
Marek Safar 6223d09d09 2008-09-09 Marek Safar <[email protected]>
* typemanager.cs, generic.cs, parameter.cs, expression.cs, class.cs,
	delegate.cs: Share special type check.


svn path=/trunk/mcs/; revision=112600
2008-09-09 15:48:52 +00:00
Mark Probst aa1c60cc88 2008-09-09 Mark Probst <[email protected]>
* mini-ppc.c: Partially implement tail calls (struct arguments and
	return values not supported).

	* method-to-ir.c: Enable tail calls on PPC.

svn path=/trunk/mono/; revision=112598
2008-09-09 15:12:25 +00:00
Carlos Alberto Cortez 916d86e219 2008-09-09 Carlos Alberto Cortez <[email protected]>
* DateTimePicker.cs: Before incrementing or decrementing any part in
	the textbox, end any current edit. Also when ending the current edit
	use the editing_part_index field instead of the current selected
	value, since they can be out of synch, and we really need to work on
	the *real* current edit part. Finally when PartData.Selected changes,
	always try to end any ongoing edit.
	This should fix some small errors handling mouse navigation and
	increase/decrease operations.


svn path=/trunk/mcs/; revision=112597
2008-09-09 15:11:26 +00:00
Jonathan Pryor 6f6b608851 * TraceImpl.cs:
- Remove the "lock-free" code, which (come to think of it) would be 
	    faulty in a multithreaded environment anyway because the "other"
	    threads won't wait (block) until initialization is complete...
	  - Add InitOnce() calls to all public properties, so that
	    `Debug.AutoFlush=true' will cause InitOnce() to be loaded, lest
	    a `Debug.AutoFlush=true; Debug.Listeners.Add(...)` sequence cause
	    .AutoFlush=true to be ignored as the InitOnce implied by .Add() 
	    will "overwrite" the .AutoFlush.
	  - Split up TraceListenerCollection creation from DefaultTraceListener 
	    addition, as TraceListenerCollection.Add() calls back into 
	    TraceImpl, so if these aren't separate we get an infinite loop
	    and never actually initialize anything.
	  - Fixes #424370.
	* TraceListenerCollection.cs: Add a TraceListenerCollection(bool)
	  constructor, which provides a way to NOT add the
	  DefaultTraceListener (needed by TraceImpl; see above).

svn path=/trunk/mcs/; revision=112596
2008-09-09 15:08:29 +00:00
Jb Evain 2642c934a7 2008-09-09 Jb Evain <[email protected]>
* Makefile: build System.Runtime.Serialization
	during the net_2_1_raw profile.


svn path=/trunk/mcs/; revision=112588
2008-09-09 13:36:50 +00:00
Jb Evain c9819337e8 2008-09-09 Jb Evain <[email protected]>
* Makefile: tune System.Runtime.Serialization as well.


svn path=/trunk/mcs/; revision=112587
2008-09-09 13:35:20 +00:00
Jb Evain 7fc2c6a4a9 in .:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* net_2_1_raw_System.Runtime.Serialization.dll.sources: new sources
	file for the SL2 profile.
	* Makefile: add support for SL2 profile.

in System.Xml.Schema:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* XmlSchema.cs: add helper internal class.

in System.Xml:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs:
	add support to build on the net_2_1 profile.

in System.Runtime.Serialization:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* IDataContractSurrogater.cs, SerializationMap.cs:
	add support to build on the net_2_1 profile.


svn path=/trunk/mcs/; revision=112586
2008-09-09 13:34:57 +00:00
Paolo Molaro c1b9ae0954 Tue Sep 9 15:19:48 CEST 2008 Paolo Molaro <[email protected]>
* Timer.cs: use a separate queue for timers that are far in the future
	so they don't need to be looked at as often (bug #418272).
	Better precision of recheduling time.


svn path=/trunk/mcs/; revision=112584
2008-09-09 13:22:31 +00:00
Atsushi Eno 65acaeb5a9 2008-09-09 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : do not try to validate CloseStartElement
	  when it should be skipped. Fixed bug #422581.

	* XmlSchemaValidatorTests.cs : added test for bug #422581.

	* 422581.xsd, 422581.xml : new files.


svn path=/trunk/mcs/; revision=112583
2008-09-09 13:20:23 +00:00
Marek Safar bf96da6554 2008-09-09 Marek Safar <[email protected]>
* Convert.cs, Decimal.cs: Fixed float/double to decimal range check.


svn path=/trunk/mcs/; revision=112581
2008-09-09 12:57:09 +00:00
Carlos Alberto Cortez 112cd3066d 2008-09-09 Carlos Alberto Cortez <[email protected]>
* DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
	respectively) should handled different, since the 12 hours format
	needs the value typed by the user to be adjusted depending on the
	a.m/p.m value, so it is preserved, and only changed when the value
	reaches the 12 value (when it changes from a.m to p.m).
	Fixes part of #416555.


svn path=/trunk/mcs/; revision=112580
2008-09-09 12:21:35 +00:00
Marek Safar 435be9842c 2008-09-09 Marek Safar <[email protected]>
A test for bug #423981


svn path=/trunk/mcs/; revision=112573
2008-09-09 10:11:20 +00:00
Marek Safar c01417cda2 2008-09-09 Marek Safar <[email protected]>
A fix for bug #423981
	* expression.cs (EmitBranchable): Correctly emit inverted float conditions.


svn path=/trunk/mcs/; revision=112572
2008-09-09 10:10:42 +00:00
Marek Safar ac0b7b262b New test.
svn path=/trunk/mcs/; revision=112571
2008-09-09 09:13:45 +00:00
Marek Safar 623aee8b67 2008-09-09 Marek Safar <[email protected]>
* ecore.cs (ReducedConstantExpression): Implemented ConvertExplicitly and
	ConvertImplicitly.


svn path=/trunk/mcs/; revision=112570
2008-09-09 09:13:28 +00:00
Marek Safar 00b73382de New test.
svn path=/trunk/mcs/; revision=112569
2008-09-09 07:33:21 +00:00
Marek Safar f264ee9ab6 New test.
svn path=/trunk/mcs/; revision=112568
2008-09-09 07:32:56 +00:00
Marek Safar fd5f36bad5 2008-09-09 Marek Safar <[email protected]>
A fix for bugs: #324750, #335946
	* cs-tokenizer.cs, cs-parser.jay, expression.cs: Use a custom 
	lookup rule to determine ?-based tokens.


svn path=/trunk/mcs/; revision=112567
2008-09-09 07:31:24 +00:00
Marek Safar 8e02d91bfa Put back cp to qh
svn path=/trunk/mcs/; revision=112566
2008-09-09 07:31:06 +00:00
Jonathan Pobst 5f81d1a994 2008-09-08 Jonathan Pobst <[email protected]>
* ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
	* ToolStripDropDownItem.cs: Don't fire events and such again if
	ShowDropDown is called on an already dropped down item.
	* ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
	subitems, the user may add some in the DropDownOpening event.
	[Fixes bug #417877]

svn path=/trunk/mcs/; revision=112552
2008-09-08 22:06:13 +00:00
Miguel de Icaza 50946b99fd Fixes: #341443
2008-09-08  Miguel de Icaza  <[email protected]>

	* EndPointListener.cs (SearchListener): Cope with the raw_url not
	being merely a path, but potentially a full URI (see the proxy
	case). 

	* HttpListenerRequest.cs: Cope with raw_url not being merely a
	path, but potentially a full Uri.   Also uses TryCreate, hoping
	that one day it will be faster.

2008-09-08  Miguel de Icaza  <[email protected]>

	* Uri.cs (MaybeUri): A helper routine for methods in other classes
	to quickly determine if something might be a Uri, before calling
	the more expensive Uri.TryCreate (see bug 424192).


svn path=/trunk/mcs/; revision=112551
2008-09-08 21:59:21 +00:00
Miguel de Icaza 6b3db054c1 update
svn path=/trunk/mcs/; revision=112544
2008-09-08 20:51:30 +00:00
Zoltan Varga 9968cf4ef6 2008-09-08 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_wrapper_info): Omit the klass name from
	runtime-invoke wrappers to work around the problem of them getting
	assigned to a random class.

	* aot-runtime.c (mono_aot_get_method): Ditto.

svn path=/trunk/mono/; revision=112539
2008-09-08 19:20:10 +00:00
Jonathan Pobst 213169a1fa 2008-09-08 Jonathan Pobst <[email protected]>
* ComboBox.cs: Fix IOORE when setting SelectedItem to null.
	[Fixes bug #424270]

2008-09-08  Jonathan Pobst  <[email protected]>

	* ComboBoxTest.cs: Add test for bug #424270.

svn path=/trunk/mcs/; revision=112538
2008-09-08 19:16:47 +00:00
Andreia Gaita 22938e69d2 * gluezilla/src/gluezilla.cpp, gluezilla/src/gluezilla.h: Return the
version of xulrunner that's being used so I can distinguish which
  cache directory to use
* mcs/class/Mono.WebBrowser/Mono.Mozilla/Base.cs: Create cache
  directory with a version specific name so there's no conflict when
  the user has both xulrunner runtime 1.8 and 1.9 installed. Get rid
  of gluezillaInstalled flag, redundant. Bind now returns bool so I
  can check if the engine is actually running properly after
  initialization. Check the return value of createBrowserWindow and
  bail out if no valid pointer is returned. Protect the string
  functions with a check so they don't get called if the engine is
  not initialized.
* mcs/class/Mono.WebBrowser/Mono.Mozilla/WebBrowser.cs: Update the
  loaded flag so users can now if the engine is actually running
  properly.

2008-09-08  Andreia Gaita <[email protected]>

svn path=/trunk/mcs/; revision=112531
2008-09-08 18:13:58 +00:00
Miguel de Icaza 83c30dc314 Document
svn path=/trunk/mono/; revision=112528
2008-09-08 17:55:37 +00:00
Miguel de Icaza acc37b4a9b 2008-09-08 Miguel de Icaza <[email protected]>
* repl.cs (OptionalAssign.EmitStatement): It is possible that some
	expressions (like event adding or removing) end up here, so we
	need to treat those as statements.

	Add LoadAssembly method.

svn path=/trunk/mcs/; revision=112527
2008-09-08 17:55:29 +00:00
Jonathan Pobst bdbb4504c9 2008-09-08 Jonathan Pobst <[email protected]>
* MdiClient.cs: When looking for menustrips on a child form to merge,
	look inside ToolStripContainers.
	[Fixes bug #424264]

svn path=/trunk/mcs/; revision=112526
2008-09-08 17:26:04 +00:00
Massimiliano Mantione e9734ce253 Don't build the profilers if DISABLE_PROFILER is set.
svn path=/trunk/mono/; revision=112525
2008-09-08 17:23:54 +00:00
Massimiliano Mantione bd1ea5e24f Added DISABLE_PROFILER automake conditional.
svn path=/trunk/mono/; revision=112524
2008-09-08 17:23:49 +00:00
Ivan Zlatev f4fffbaee9 2008-09-08 Ivan N. Zlatev <[email protected]>
* ErrorProvider.cs: Unbreak my previous commit.

svn path=/trunk/mcs/; revision=112521
2008-09-08 16:57:19 +00:00
Jonathan Pobst 4b7f1da9de 2008-09-08 Jonathan Pobst <[email protected]>
* BackgroundWorker.cs: If the user sets Cancel to true, but then
	throws an exception in DoWork, we need to set Cancel back to false.
	[Fixes bug #328830]

svn path=/trunk/mcs/; revision=112520
2008-09-08 16:56:09 +00:00
Ivan Zlatev 26f69a120c 2008-09-08 Ivan N. Zlatev <[email protected]>
* ErrorProvider.cs: Icon should always be 16x16.
	[Fixes bug #424380]

svn path=/trunk/mcs/; revision=112517
2008-09-08 16:14:09 +00:00
Rodrigo Kumpera d1753383d8 In .:
2008-09-08  Rodrigo Kumpera  <[email protected]>

	* InotifyWatcher.cs: Really fix #359181.


svn path=/trunk/mcs/; revision=112515
2008-09-08 16:01:21 +00:00
Massimiliano Mantione 6140609c09 Made the ChangeLog clearer (I should have done two separate commits...).
svn path=/trunk/mono/; revision=112514
2008-09-08 15:52:14 +00:00
Miguel de Icaza 02277da675 Revert patch, the tests are not working on non UK timezones
svn path=/trunk/mcs/; revision=112508
2008-09-08 15:11:48 +00:00
Massimiliano Mantione 1960acd06b Added three icalls to control the profiler from the profiled application.
svn path=/trunk/mono/; revision=112506
2008-09-08 15:02:08 +00:00
Zoltan Varga 82dff9c9dd 2008-09-08 Zoltan Varga <[email protected]>
* FieldInfoTest.cs (SetValueOpenGeneric): Fix copy-paste error.

svn path=/trunk/mcs/; revision=112505
2008-09-08 14:39:31 +00:00
Zoltan Varga e3b73ad706 2008-09-08 Zoltan Varga <[email protected]>
* TypeTest.cs EnumTest.cs: Fix warnings.

svn path=/trunk/mcs/; revision=112503
2008-09-08 14:38:15 +00:00
Miguel de Icaza 769304fa14 Fix Windows Build
svn path=/trunk/mono/; revision=112502
2008-09-08 14:17:38 +00:00
Carlos Alberto Cortez 26813c97b3 2008-09-08 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: In BaseStream property call CheckOpen instead of
	duplicating the code.


svn path=/trunk/mcs/; revision=112498
2008-09-08 12:34:47 +00:00
Daniel Morgan c207abbc88 2008-09-08 Daniel Morgan <[email protected]>
* TestOracleClient.cs: remove some warnings
	and improve OracleParameter tests 
	for VARCHAR2, NUMBER, DATE types
	for Input, Output, InputOutput, and ReturnValue and
	handle DBNull.Value for various situations.
	These parameter tests work on .net 2.0 but fail on mono 2.0.

svn path=/trunk/mcs/; revision=112488
2008-09-08 05:14:35 +00:00
Miguel de Icaza 0735cd1647 2008-09-07 Andy Hume <[email protected]>
* DateTimeOffset.cs: DateTimeOffset currently has no
	deserialization constructor, thus deserialization
	fails ("SerializationException: The constructor to deserialize an
	object of type System.DateTimeOffset was not found.")

	Patch attached, implements GetObjectData and that constructor.
	Also includes tests, which include round-tripping to/from MSFT.
	


svn path=/trunk/mcs/; revision=112483
2008-09-08 02:04:00 +00:00
Miguel de Icaza 4b77520058 Remove debugging message
svn path=/trunk/mcs/; revision=112482
2008-09-08 02:00:36 +00:00
Miguel de Icaza e79ce6b2e9 2008-09-07 Miguel de Icaza <[email protected]>
* console-io.c: Add support for tracking the window size if it
	changes.

	The setup is very simple: the TtySetup function will now return a
	pointer to a location in memory that tracks the current console
	size.  The managed code checks its current value every time its
	queried against the last value set, and updates accordingly.

	With this setup we can work with multiple consoles, and we do not
	require to poke into managed code from a signal handler.

	Additionally, the environment for COLUMNS and LINES is now handled
	in unmanaged code.

	(ves_icall_System_ConsoleDriver_GetTtySize): This is now gone.


svn path=/trunk/mono/; revision=112477
2008-09-07 22:43:15 +00:00
Miguel de Icaza de909e64e8 2008-08-27 Marek Safar <[email protected]>
* Makefile: Removed disabled global 649 warning.

svn path=/trunk/mcs/; revision=112476
2008-09-07 22:42:20 +00:00
Raja R Harinath 3bcf591c0f * DataSet.cs: Convert to a partial class and sequester NET_2_0
pieces into a separate part.

svn path=/trunk/mcs/; revision=112473
2008-09-07 18:29:11 +00:00
Raja R Harinath 615ae32ab0 Style nits
svn path=/trunk/mcs/; revision=112472
2008-09-07 18:27:55 +00:00
Raja R Harinath 1e1d3d1955 Re-arrange some code.
* DataRowView.cs: Convert to a partial class, and sequester
NET_2_0 parts into a separate part.  Use partial classes instead
of ugly #region directives.
(Item): Remove redundant attributes.  Cleanup slightly.

svn path=/trunk/mcs/; revision=112470
2008-09-07 18:00:45 +00:00
Raja R Harinath 948d8e7ad3 Style nits
svn path=/trunk/mcs/; revision=112469
2008-09-07 17:59:37 +00:00
Ivan Zlatev d4574047f8 2008-09-07 Ivan N. Zlatev <[email protected]>
* GridEntry.cs: Invalidate the child items cache when the property
	value changes.

svn path=/trunk/mcs/; revision=112466
2008-09-07 17:02:53 +00:00
Ivan Zlatev 68fcb30c49 2008-09-07 Ivan N. Zlatev <[email protected]>
* GridEntry.cs, PropertyGridView.cs:
	   - Update the ReadOnly detection and rendering to finally hopefully
	   match the one of MSFT.
	   - Niceify and move the debug CWLS.
	[Fixes bug #409028]

svn path=/trunk/mcs/; revision=112462
2008-09-07 16:51:26 +00:00
Zoltan Varga b6abfec9ce 2008-09-07 Zoltan Varga <[email protected]>
* mini-exceptions.c mini-mips.h mini-s390.h exceptions-mips.c: Kill
	the CUSTOM_EXCEPTION_HANDLING and CUSTOM_STACK_WALK defines.

svn path=/trunk/mono/; revision=112459
2008-09-07 14:32:35 +00:00
Zoltan Varga 10cbc30b04 2008-09-07 Zoltan Varga <[email protected]>
* CILCompiler.cs: Override ICompiler.EmitSet too so we set op_flags for 
	Bitmap opcodes too. Fixes #424073.

svn path=/trunk/mcs/; revision=112458
2008-09-07 14:28:19 +00:00
Zoltan Varga 6a01c8ee09 2008-09-07 Zoltan Varga <[email protected]>
* FieldInfoTest.cs: Add tests for #424077.

svn path=/trunk/mcs/; revision=112457
2008-09-07 14:11:28 +00:00
Zoltan Varga 9da1479827 2008-09-07 Zoltan Varga <[email protected]>
* MonoField.cs: Add check to GetValue/SetValue () to avoid crashes when it is
	called on fields of open types. Fixes #424077.

svn path=/trunk/mcs/; revision=112456
2008-09-07 14:10:39 +00:00
Mark Probst 80396a76c2 2008-09-07 Mark Probst <[email protected]>
* marshal.c (mono_type_native_stack_size): Treat
	MONO_TYPE_TYPEDBYREF like MONO_TYPE_VALUETYPE.

2008-09-07  Mark Probst  <[email protected]>

	* method-to-ir.c (mono_method_to_ir2): Disable tail calls for PPC
	until they're implemented properly.

	* exceptions-ppc.c: Use arch-independent exception-handling code
	instead of custom one.

	* exceptions-ppc.c, mini-ppc.c, mini-ppc.h: Bug fixes and changes
	for Linear IR.

	* tramp-ppc.c, mini-ppc.c: Fixed warnings.

	* decompose.c, aot-runtime.c, aot-compiler.c: PPC code also
	applies when __powerpc__ is defined.

2008-09-07  Mark Probst  <[email protected]>

	* libtest.c: Darwin structure alignment also applies to PPC.

2008-09-07  Mark Probst  <[email protected]>

	* ppc/ppc-codegen.h (ppc_load): Inserted cast to fix some
	warnings.

svn path=/trunk/mono/; revision=112455
2008-09-07 10:25:11 +00:00
Zoltan Varga 891eaef143 2008-09-06 Zoltan Varga <[email protected]>
* Regex.cs: Make the new regex interpreter+compiler the default.

svn path=/trunk/mcs/; revision=112437
2008-09-06 17:42:37 +00:00
Zoltan Varga 90fdb432bf 2008-09-06 Zoltan Varga <[email protected]>
* libtest.c pinvoke2.cs: Add float tests.

svn path=/trunk/mono/; revision=112424
2008-09-06 14:12:29 +00:00
Daniel Morgan 453b75177c 2008-09-06 Daniel Morgan <[email protected]>
* ProviderSectionHandler.cs
	* ProviderFactory.cs
	* ProviderCollection.cs
	* DataTools.cs
	* Provider.cs: for the NET_2_0 profile, 
	added Obsolete attribute
	to all classes in assembly Mono.Data because it
	has been superceded by DbProviderFactories in System.Data

svn path=/trunk/mcs/; revision=112420
2008-09-06 09:57:04 +00:00
Daniel Morgan 61c5bd311b 2008-09-06 Daniel Morgan <[email protected]>
* Test/TestOracleClient.cs: get oracle connected tests
	going again
	
	*  System.Data.OracleClient.Oci/OciDefineHandle.cs
	* System.Data.OracleClient/OracleDataReader.cs
	* System.Data.OracleClient/OracleCommand.cs: fix character
	field value for a reader that was retrieved from a REF CURSOR.
	It was failing due to OCI_INVALID_HANDLE - resolve the error
	by passing a connection object which has a valid environment
	handle.

	* System.Data.OracleClient.Oci/OciCalls.cs: correct 
	call to OCIDefineByPos

	* System.Data.OracleClient/OracleParameter.cs: better way to
	determine if the input value Is Null instead of using reflection.
	Flush - Re-arraning how variables are being bound.

	* System.Data.OracleClient/OciGlue.cs: add function
	to convert OCI Return / Error Status Code to a String Description
 
	* System.Data.OracleClient.Oci/OciErrorHandle.cs: better
	error handling

svn path=/trunk/mcs/; revision=112419
2008-09-06 09:45:42 +00:00
Daniel Morgan 25f7fa5236 2008-09-06 Daniel Morgan <[email protected]>
* machine.config: added Mono.Data.SybaseClient
	to DbProviderFactories section.

svn path=/trunk/mono/; revision=112418
2008-09-06 06:06:02 +00:00
Daniel Morgan c331a590af 2008-09-06 Daniel Morgan <[email protected]>
* Mono.Data.SybaseClient/SybaseClientFactory.cs:
	* Mono.Data.SybaseClient/SybaseConnectionStringBuilder.cs: add new files
	based on mono's System.Data.SqlClient implementation

	* Mono.Data.SybaseClient.dll.sources: add files
	to build: 
		Mono.Data.SybaseClient/SybaseClientFactory.cs
		Mono.Data.SybaseClient/SybaseConnectionStringBuilder.cs

	* Mono.Data.SybaseClient/SybaseDataAdapter.cs
	* Mono.Data.SybaseClient/SybaseCommand.cs
	* Mono.Data.SybaseClient/SybaseParameter.cs
	* Mono.Data.SybaseClient/SybaseType.cs
	* Mono.Data.SybaseClient/SybaseTransaction.cs
	* Mono.Data.SybaseClient/SybaseCommandBuilder.cs
	* Mono.Data.SybaseClient/SybaseDataReader.cs
	* Mono.Data.SybaseClient/SybaseParameterCollection.cs
	* Mono.Data.SybaseClient/SybaseConnection.cs: modified to
	support NET_2_0 profile based on the changes done in mono's 
	System.Data.SqlClient implementation.

	Do not forget about updating mono/data/net_2_0/machine.config 
	by adding Mono.Dataq.SybaseClient to DbProvidersFactory section.

svn path=/trunk/mcs/; revision=112416
2008-09-06 06:00:36 +00:00
Raja R Harinath 4cdb9d8bb1 update known-issues-smcs
svn path=/trunk/mcs/; revision=112414
2008-09-06 03:46:35 +00:00
Zoltan Varga 14bedce48a 2008-09-06 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_method): Add another cache mapping wrapper
	methods to their code to avoid computing the full name of wrappers and
	doing a lookup in a string hash table.

svn path=/trunk/mono/; revision=112413
2008-09-06 03:03:46 +00:00
Atsushi Eno 582b946eb0 2008-09-06 Atsushi Enomoto <[email protected]>
* Socket.cs : (SocketAsyncResult) release byte buffer early so that
	  it does not have to store extra data in pool. Fixed bug #397627.


svn path=/trunk/mcs/; revision=112408
2008-09-05 23:53:42 +00:00
Jonathan Pobst fdc31b58a6 fix mwf 1.1 tests build
svn path=/trunk/mcs/; revision=112397
2008-09-05 19:28:00 +00:00
Carlos Alberto Cortez 5daa6859ab 2008-09-05 Carlos Alberto Cortez <[email protected]>
* ListView.cs: Don't call Invalidate at all from SetItemLocation,
	since we are already calling Invalidate for the entire control when
	needed - and call Redraw() when size changes, since we need to paint
	there by ourselved and not anymore from the mentioned method. 
	This should improve the layout process. Also clean some not needed calls 
	here and there.


svn path=/trunk/mcs/; revision=112392
2008-09-05 18:44:08 +00:00
Raja R Harinath f41afeb137 Use the RowIDs to speed up _something_
* DataRowCollection.cs (RemoveInternal): Update RowIDs of rows
after the deleted row.
(IndexOf): Avoid loop to search for a row, since we already know
where a row is: its RowID.
(Remove): Use IndexOf rather than List.Contains.

svn path=/trunk/mcs/; revision=112391
2008-09-05 18:01:07 +00:00
Raja R Harinath 7b27e1fa29 Refactor DataRow.AttachRow
* DataRowCollection.cs (InsertRow): Delegate setting of RowId
to the row itself.  Use 'row.AttachAt' instead of 'row.AttachRow'.
(AddInternal): Likewise.  Also delegate handling of
ChangeCurrentAndOriginal to AttachAt.
* DataRow.cs (AttachAt): Rename from AttachRow.  Set rowId from
passed-in id.  Handle ChangeCurrentAndOriginal and ChangeOriginal
actions.

svn path=/trunk/mcs/; revision=112390
2008-09-05 17:27:15 +00:00
Raja R Harinath 7240965395 Remove redundant field
* DataRow.cs (_hasParentCollection): Remove.  Implied by _rowId >= 0.
(HasParentCollection): Remove.
* DataRowCollection.cs (AddInternal, InsertAt): Update to changes.

svn path=/trunk/mcs/; revision=112388
2008-09-05 16:45:27 +00:00
Raja R Harinath 703f8e2e28 * DataTable.cs (NewRowArray): Special case size == 0 to avoid
creating a lot of garbage.

svn path=/trunk/mcs/; revision=112387
2008-09-05 15:49:48 +00:00
Jonathan Pobst d53fbb5a65 2008-09-05 Jonathan Pobst <[email protected]>
* MenuAPI.cs: Add a null check to the Alt-F4 code.
	[Fixes bug #420309]

svn path=/trunk/mcs/; revision=112383
2008-09-05 15:00:34 +00:00
Raja R Harinath b52892a15d Refactor 'DetachRow'
* DataRow.cs (Detach): Rename from DetachRow.  Make private.
Simplify code to be more uniform.  Move common prefix code here ...
(AcceptChanges) [Deleted]: ... from here ...
(Delete) [Added]: ... and here ...
RejectChanges) [Added]: ... and here.

svn path=/trunk/mcs/; revision=112377
2008-09-05 14:36:37 +00:00
Raja R Harinath 1195b7f516 Style nits
svn path=/trunk/mcs/; revision=112376
2008-09-05 14:36:19 +00:00
Jonathan Pobst 4b2154f2b6 2008-09-05 Jonathan Pobst <[email protected]>
* ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
	[Fixes bug #423040]

svn path=/trunk/mcs/; revision=112375
2008-09-05 14:30:06 +00:00
Sebastien Pouliot bafa554120 2008-09-05 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorageFile.cs: Add calls to PreCheck inside EndRead
	and EndWrite methods.
	* MoonIsolatedStorageFileStream.cs: Throw an IsolatedStorageException
	when DeleteFile is called on an unexisting file.


svn path=/trunk/mcs/; revision=112374
2008-09-05 13:35:30 +00:00
Zoltan Varga 5cc50928f0 2008-09-05 Zoltan Varga <[email protected]>
* method-to-ir.c: Remove the CHECK_BBLOCK () stuff it is not needed since
	we identify bblocks before method_to_ir () is ran.

svn path=/trunk/mono/; revision=112373
2008-09-05 12:40:05 +00:00
Ivan Zlatev ca7c4f29b4 2008-09-04 Ivan N. Zlatev <[email protected]>
* GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
	PropertyGridView.sc: Implement lazy/delayed propertygrid population
	on item expansion. Improves performance and fixes bug #417955.
	[Fixes bug #417955]

svn path=/trunk/mcs/; revision=112368
2008-09-05 11:48:02 +00:00
Raja R Harinath b24f84250b Some more style nits
* DataContainer.cs (*.ZeroOut): Rename from the somewhat unclear
'SetDefaultValue'.
(IsNull): Use a more idiomatic form of the short-circuit.
(*.SetValue): Convert to one-liners.

svn path=/trunk/mcs/; revision=112367
2008-09-05 09:19:39 +00:00
Marek Safar 0a9078b0d9 2008-09-05 Marek Safar <[email protected]>
* System.Core.dll.sources: Add System.Threading


svn path=/trunk/mcs/; revision=112366
2008-09-05 09:12:35 +00:00
Marek Safar 5350b72e9a Bug in test.
svn path=/trunk/mcs/; revision=112365
2008-09-05 08:50:17 +00:00
Marek Safar beb5b92e69 2008-09-05 Marek Safar <[email protected]>
* cs-tokenizer.cs: Fixed swaped UTF-16 surrogates parsing.
	

svn path=/trunk/mcs/; revision=112364
2008-09-05 08:49:56 +00:00
Stephane Delcroix 89316f63cc fix the build
svn path=/trunk/mcs/; revision=112359
2008-09-05 07:01:23 +00:00
Miguel de Icaza edb200afaf Add workaround for old C# compilers
svn path=/trunk/mcs/; revision=112357
2008-09-05 05:23:34 +00:00
Zoltan Varga 73b09a5491 2008-09-05 Zoltan Varga <[email protected]>
* branch-opts.c (mono_optimize_branches): Avoid nullifying the exit bblock.
	Also avoid optimizing branches pointing to themselves.

	* mini.c (mini_method_compile): Ditto. Fixes #422947.

svn path=/trunk/mono/; revision=112355
2008-09-05 03:52:46 +00:00
Atsushi Eno 6f83b3926e 2008-09-05 Atsushi Enomoto <[email protected]>
* SmtpClient.cs : attachment stream consumption was insufficient.
	  Fix bug #347553, by David Ion.


svn path=/trunk/mcs/; revision=112349
2008-09-05 02:23:27 +00:00
Rodrigo Kumpera 9889275f7c In .:
2008-09-05  Rodrigo Kumpera  <[email protected]>

	* driver.c (mono_main): Enable the new verifier under core-clr and cas.


svn path=/trunk/mono/; revision=112339
2008-09-04 23:54:19 +00:00
Zoltan Varga 3fecc44cd9 2008-09-05 Zoltan Varga <[email protected]>
* tramp-arm.c (mono_arch_nullify_class_init_trampoline): Implement this.
	(mono_arch_patch_plt_entry): Fix the calculation of the jump_entry.
	(mono_arch_get_nullified_class_init_trampoline): Return 'code' instead of
	'buf'.

	* aot-compiler.c (emit_plt): Fix the arm plt entries, previously they all 
	jumped to the same entry in plt_jump_table.

svn path=/trunk/mono/; revision=112338
2008-09-04 23:49:39 +00:00
Miguel de Icaza 30c6501005 Add this one
svn path=/trunk/mono/; revision=112334
2008-09-04 21:35:46 +00:00
Miguel de Icaza 3e17728b54 Add Time; Enable debuggin productions for the class-level declarations
svn path=/trunk/mcs/; revision=112333
2008-09-04 21:35:34 +00:00
Jonathan Pobst 2616830fcd 2008-09-04 Jonathan Pobst <[email protected]>
* TextControl.cs: Add "_" to the list of valid characters in a URL.
	[Fixes bug #423408]

svn path=/trunk/mcs/; revision=112332
2008-09-04 21:32:58 +00:00
Jonathan Pobst 00085819bf 2008-09-04 Jonathan Pobst <[email protected]>
* Control.cs: If using OptimizedDoubleBuffer, ensure the clip 
	region gets set.
	[Fixes bug #414166]

svn path=/trunk/mcs/; revision=112331
2008-09-04 20:58:30 +00:00
Miguel de Icaza 2d38c97394 OneMore
svn path=/trunk/mono/; revision=112330
2008-09-04 20:52:44 +00:00
Jonathan Pobst f71365873a 2008-09-04 Jonathan Pobst <[email protected]>
* FontDialog.cs: When storing our font size from the starting font,
	use SizeInPoints instead of Size in case Size is a different unit
	from Points.
	[Fixes bug #416489]

svn path=/trunk/mcs/; revision=112329
2008-09-04 20:48:20 +00:00
Jonathan Pobst 48df7fafdd restore accidental ChangeLog entry deletion
svn path=/trunk/mcs/; revision=112328
2008-09-04 20:33:19 +00:00
Miguel de Icaza 54cd9363a6 Document new features; Fix typos
svn path=/trunk/mono/; revision=112327
2008-09-04 20:28:10 +00:00
Jonathan Pobst 64aaf71fca 2008-09-03 Jonathan Pobst <[email protected]>
* FileDialog.cs: When enter is pressed on a SaveFileDialog and we
	don't use it for anything else, check if a directory is highlighted.
	If it is, navigate into it.
	[Fixes bug #422087]

svn path=/trunk/mcs/; revision=112326
2008-09-04 20:16:35 +00:00
Jb Evain ea176b64aa 2008-09-04 Jb Evain <[email protected]>
* Mono.Cecil.Signatures/SignatureReader.cs: better read modifiers on
	return types and parameters.


svn path=/trunk/mcs/; revision=112322
2008-09-04 19:16:09 +00:00
Raja R Harinath 9465ee2256 * DataRow.cs (CheckChildRows) <1-arg variant>: Remove excessive indentation.
(CheckChildRows) <3-arg variant>: Likewise.  Move/split loop
inside a switch.
(EndEdit): Out-dent some code.
(IsNullColumns): Simplify slightly.

svn path=/trunk/mcs/; revision=112317
2008-09-04 18:36:09 +00:00
Raja R Harinath 0ba1f11400 style nits
svn path=/trunk/mcs/; revision=112316
2008-09-04 18:35:42 +00:00
Raja R Harinath 0d3768ee09 * DataRelationCollection.cs (CanRemove): Simplify slightly.
svn path=/trunk/mcs/; revision=112315
2008-09-04 18:35:24 +00:00
Raja R Harinath 284f1c8756 style nits
svn path=/trunk/mcs/; revision=112314
2008-09-04 18:35:06 +00:00
Jb Evain bae4b97913 2008-09-04 Jb Evain <[email protected]>
* repl.cs (PrettyPrint): pretty print everything that
	implements IDictionary, as well as IEnumerables. Also,
	add a quit helper property.


svn path=/trunk/mcs/; revision=112309
2008-09-04 17:39:54 +00:00
Jb Evain a525238a5a 2008-09-04 Jb Evain <[email protected]>
* TypeTest.cs: enable test as r112307 fixes it.


svn path=/trunk/mcs/; revision=112308
2008-09-04 17:29:24 +00:00
Jb Evain c91945cc8a 2008-09-04 Jb Evain <[email protected]>
* class.c (mono_class_is_assignable_from): fix assignability of nullables
	to nullables.

svn path=/trunk/mono/; revision=112307
2008-09-04 17:27:51 +00:00
Marek Safar 39ee0ba6e2 New test.
svn path=/trunk/mcs/; revision=112304
2008-09-04 16:30:34 +00:00
Marek Safar 0223742763 More tests.
svn path=/trunk/mcs/; revision=112303
2008-09-04 16:30:06 +00:00
Marek Safar d7a1374dde 2008-09-04 Marek Safar <[email protected]>
* constant.cs: Better error reporting for decimal literals.
	
	* class.cs, attribute.cs, typemanager.cs: Emit more fixed buffer
	field attributes.
	

svn path=/trunk/mcs/; revision=112302
2008-09-04 16:29:53 +00:00
Marek Safar 9b73dcc919 2008-09-04 Marek Safar <[email protected]>
* TypeBuilder.cs: Add mcs specific SetCharSet method.


svn path=/trunk/mcs/; revision=112300
2008-09-04 16:25:10 +00:00
Carlos Alberto Cortez d37b828159 * BindingTest.cs: New test for nested properties using a DataSet.
2008-09-04  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=112299
2008-09-04 16:24:22 +00:00
Jb Evain 5c5bf26f6c 2008-09-04 Jb Evain <[email protected]>
* TypeTest.cs: add test for IsInstanceOfType on arrays of nullables.


svn path=/trunk/mcs/; revision=112296
2008-09-04 15:47:17 +00:00
Marek Safar b06744d1f5 New test.
svn path=/trunk/mcs/; revision=112281
2008-09-04 13:08:59 +00:00
Marek Safar 97b67c3057 2008-09-04 Marek Safar <[email protected]>
Miguel de Icaza  <[email protected]>

	A fix for bug #422951
	* assign.cs (Assign.DoResolve): Perform the type conversions
	checks before we attempt to initialize `New' initializers. 
	

svn path=/trunk/mcs/; revision=112280
2008-09-04 13:08:25 +00:00
Carlos Alberto Cortez 2d848ecfb7 2008-09-04 Carlos Alberto Cortez <[email protected]>
* BindingTest.cs: New tests for multiple nested properties in the
	data source, by Andy Hume.


svn path=/trunk/mcs/; revision=112278
2008-09-04 13:01:00 +00:00
Carlos Alberto Cortez cbb89a19c2 2008-09-04 Carlos Alberto Cortez <[email protected]>
* Binding.cs: When acquiring a BindingManagerBase for the first time,
	check that the specified property actually exists in the data source,
	and throw an ArgumentException if that's not the case - this is only
	done for this scenario, since for later cases (such Position changes)
	we throw different exceptions (match .Net).


svn path=/trunk/mcs/; revision=112277
2008-09-04 12:59:14 +00:00
Marek Safar 06f75c9b40 Put back _ContextID
svn path=/trunk/mcs/; revision=112274
2008-09-04 12:39:43 +00:00
Marek Safar 2532747dcb 2008-09-04 Marek Safar <[email protected]>
A test for bug #422853


svn path=/trunk/mcs/; revision=112271
2008-09-04 12:33:56 +00:00
Marek Safar da15b7485b 2008-09-04 Marek Safar <[email protected]>
A fix for bug #422853
	* delegate.cs (DelegateCreation): Add special handling for
	EmptyExpression.Null instance expression which is just another
	hack for undecided member instance exression.


svn path=/trunk/mcs/; revision=112270
2008-09-04 12:33:25 +00:00
Marek Safar ebf9ddf53a New test + optimizations update
svn path=/trunk/mcs/; revision=112264
2008-09-04 10:54:05 +00:00
Marek Safar 00f76b712d 2008-09-04 Marek Safar <[email protected]>
* expression.cs, ecore.cs: Emit full expression tree for reduced
	binary expressions.


svn path=/trunk/mcs/; revision=112263
2008-09-04 10:53:11 +00:00
Raja R Harinath 4ab7237de2 * DataRelation.cs (CheckStateForProperty): Use the childColumn to
get the child table.

svn path=/trunk/mcs/; revision=112261
2008-09-04 09:46:00 +00:00
Raja R Harinath 34c3b9830e oops
svn path=/trunk/mcs/; revision=112260
2008-09-04 09:42:20 +00:00
Raja R Harinath 58019994a6 style nits
svn path=/trunk/mcs/; revision=112259
2008-09-04 09:42:03 +00:00
Raja R Harinath 1af6e6b566 Style nits
svn path=/trunk/mcs/; revision=112257
2008-09-04 09:24:29 +00:00
Marek Safar 0f9c60b1d8 New tests.
svn path=/trunk/mcs/; revision=112256
2008-09-04 09:08:32 +00:00
Marek Safar 062cbbe65e 2008-09-04 Marek Safar <[email protected]>
* expression.cs (This): Guard against multi-resolving.
	
	* ecore.cs, statement.cs (Throw): Simplified.
	
	* flowanalysis.cs: Also verify event fields.


svn path=/trunk/mcs/; revision=112255
2008-09-04 09:08:18 +00:00
Atsushi Eno f60a5a9b3d initial sys.web.routing checkin. Just stubs yet.
svn path=/trunk/mcs/; revision=112254
2008-09-04 08:32:22 +00:00
Atsushi Eno 40885d70e5 initial sys.web.abstractions checkin. Mostly stubs and wrappers.
svn path=/trunk/mcs/; revision=112253
2008-09-04 08:22:50 +00:00
Daniel Morgan 83a78ab159 2008-09-04 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleDataReader.cs: return true
	in NextResult if another result	

svn path=/trunk/mcs/; revision=112252
2008-09-04 07:51:04 +00:00
Miguel de Icaza a952c02ceb Small update
svn path=/trunk/mono/; revision=112251
2008-09-04 07:19:18 +00:00
Daniel Morgan f8b34b4a56 2008-09-04 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleCommand.cs: removed AssertNoDataReader
	because oracle allows multiple result sets and has since .NET 1.0,
	fix bug where REF CURSOR would not work for ExecuteReader or
	filling a DataSet via an OracleDataAdapter.  The REF CURSOR is used to
	populate the DataSet.

	* System.Data.OracleClient/OracleDataReader.cs: fix for getting
	next result set; implement NET_2_0 methods 
	GetProviderSpecificFieldType,
	GetProviderSpecificValuee, 
	GetProviderSpecificValue; and validate the reader is open
	before allowing a Read or NextResult, otherwise, throw
	an InvalidOperationException

	* System.Data.OracleClient/OracleParameter.cs: fix for
	getting one or more REF CURSOR out parameters if
	ExecuteReader was called. 

	* System.Data.OracleClient.Oci/OciErrorHandle.cs
	* System.Data.OracleClient.Oci/OciHandle.cs: add addiional method
	for getting error, such as, INVALID_HANDLE being passed to OCI

svn path=/trunk/mcs/; revision=112250
2008-09-04 07:12:49 +00:00
Miguel de Icaza e673c322b0 2008-09-04 Miguel de Icaza <[email protected]>
* repl.cs (PrettyPrint): Add Hashtable prettyprint

	* anonymous.cs (AnonymousTypeClass): On EvalMode make the class
	public. 

	* repl.cs: Update help.



svn path=/trunk/mcs/; revision=112249
2008-09-04 06:50:28 +00:00
Jb Evain bdc30b79be remove cwl
svn path=/trunk/mcs/; revision=112248
2008-09-04 06:40:31 +00:00
Miguel de Icaza e32adcb3d1 Update the mcs.1 man page, add csharp.1 man page
svn path=/trunk/mono/; revision=112247
2008-09-04 06:18:18 +00:00
Raja R Harinath 86d517e668 * DataColumn.cs (AllowDBNull.set): Rearrange code to be more readable.
(AutoIncrement.set): Likewise.
(Caption): Likewise.
(SetDefaultValue): Likewise.

svn path=/trunk/mcs/; revision=112246
2008-09-04 06:12:34 +00:00
Raja R Harinath 94e8dfde1d Style nits
svn path=/trunk/mcs/; revision=112245
2008-09-04 06:12:11 +00:00
Miguel de Icaza 31b343a527 2008-09-03 Miguel de Icaza <[email protected]>
* driver.cs (ProcessDefaultConfig): Now it encapsulates all the
	handling of the default config handling, including the special
	treatment of System.Core assembly. 

	Fixes the REPL processing for LINQ.

svn path=/trunk/mcs/; revision=112223
2008-09-04 00:33:04 +00:00
Rodrigo Kumpera 1c39271f84 In .:
2008-09-03 Rodrigo Kumpera  <[email protected]>

	* verify.c (verify_type_compatibility_full): Revert change
	to allow converting a native int to unmanaged pointer be verifiable
	under non-strict mode.
	It turns out that "(IntPtr)null" is indeed unverifiable, go figure.

	* verify.c: Added some TODOs.


svn path=/trunk/mono/; revision=112213
2008-09-03 21:18:19 +00:00
Mario Carrion c43cdd65fc * AssemblyInfo.cs: Added InternalsVisibleTo attribute to support
UIAutomationWinforms assembly.


svn path=/trunk/mcs/; revision=112203
2008-09-03 20:34:19 +00:00
Rodrigo Kumpera f552744749 In .:
2008-09-03 Rodrigo Kumpera <[email protected]>

	* strict_native_int_converts_to_unamanged_pointer.cs: It turns
	out that this test should generate unverifiable code. Big WTF
	for me as well. 


svn path=/trunk/mono/; revision=112202
2008-09-03 20:32:53 +00:00
Marek Safar baaefc4524 Fixed test
svn path=/trunk/mcs/; revision=112188
2008-09-03 17:09:22 +00:00
Marek Safar d76eb5a224 More tests.
svn path=/trunk/mcs/; revision=112186
2008-09-03 15:25:55 +00:00
Marek Safar d0458daae1 2008-09-03 Marek Safar <[email protected]>
A fix for bug #422507
	* expression.cs (UnboxCast): Add missing child expression mutator.


svn path=/trunk/mcs/; revision=112184
2008-09-03 15:24:49 +00:00
Sebastien Pouliot 139627fce1 2008-09-03 Sebastien Pouliot <[email protected]>
* GraphicsPathTest.cs: Add unit test to check for an open curve
	points.


svn path=/trunk/mcs/; revision=112178
2008-09-03 12:48:57 +00:00
Marek Safar bb22263778 2008-09-03 Marek Safar <[email protected]>
* driver.cs: Don't self reference System.Core assembly.


svn path=/trunk/mcs/; revision=112176
2008-09-03 12:44:08 +00:00
Ivan Zlatev 2e55856f3e 2008-09-03 Ivan N. Zlatev <[email protected]>
* ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
	  FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
	  PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
	  TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
	  ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
	  ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
	  properties.
	  [Fixes bug #418684]

svn path=/trunk/mcs/; revision=112174
2008-09-03 12:31:46 +00:00
Marek Safar 79db40a12a Updated.
svn path=/trunk/mcs/; revision=112173
2008-09-03 12:19:32 +00:00
Marek Safar 28b3861c57 New test.
svn path=/trunk/mcs/; revision=112172
2008-09-03 12:00:09 +00:00
Marek Safar 43a00f5cfb 2008-09-03 Marek Safar <[email protected]>
A fix for bug #422507
	* expression.cs (StringConcat): Add missing type mutator.


svn path=/trunk/mcs/; revision=112170
2008-09-03 11:58:40 +00:00
Marek Safar 20fbffa39e New test.
svn path=/trunk/mcs/; revision=112160
2008-09-03 09:55:39 +00:00
Marek Safar 072eb1c184 2008-09-03 Marek Safar <[email protected]>
* generic.cs (TypeInferenceContext): Follow equality rule for
	constructed type lower bound type inference.


svn path=/trunk/mcs/; revision=112159
2008-09-03 09:55:25 +00:00
Marek Safar 29228b8634 Update bug number.
svn path=/trunk/mcs/; revision=112155
2008-09-03 09:19:46 +00:00
Neville Gao 23dc6e8b0e Control enabled to support accessibility.
svn path=/trunk/mcs/; revision=112138
2008-09-03 03:58:17 +00:00
Rodrigo Kumpera 5bfe288623 In .:
2008-09-02 Rodrigo Kumpera  <[email protected]>

	* TypeBuilderTest.cs: New test for a field with initialized data
	that is referenced from another assembly.


svn path=/trunk/mcs/; revision=112126
2008-09-02 21:38:53 +00:00
Bill Holmes 079284c1f2 2008-09-02 Bill Holmes <[email protected]>
* marshal.c (ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi,
	  ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalUni) :
	  Changed to use GlobalAlloc for the memory returned on Windows platforms.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=112125
2008-09-02 21:38:03 +00:00
Sebastien Pouliot 8db83f99b4 2008-09-02 Sebastien Pouliot <[email protected]>
* GraphicsPathTest.cs: Add a bunch of unit tests to check when 
	points can be compressed (removed) when adding shapes to a path.


svn path=/trunk/mcs/; revision=112123
2008-09-02 21:30:56 +00:00
Miguel de Icaza 5b95da01b0 2008-09-02 Miguel de Icaza <[email protected]>
* getline.cs (CmdRefresh): Apply patch from Douglas S. Blank
	<[email protected]> which updates the cursor position on
	refresh.

svn path=/trunk/mcs/; revision=112113
2008-09-02 18:30:45 +00:00
Carlos Alberto Cortez 33dfe938c6 2008-09-02 Carlos Alberto Cortez <[email protected]>
* Binding.cs: When connecting the event handler for the "Changed"
	event for the property, only do it for PropertyManager, and not for
	CurrencyManager - this is exactly what does .Net, totally ignoring any
	change in the property of the elements of a list.
	Fixes the tests.


svn path=/trunk/mcs/; revision=112112
2008-09-02 18:20:49 +00:00
Jb Evain 533abce69e 2008-09-02 Jb Evain <[email protected]>
* Mono.Cecil.Metadata/UserStringsHeap.cs: fix reading of some unicode fu.


svn path=/trunk/mcs/; revision=112108
2008-09-02 17:45:45 +00:00
Jb Evain 2155efb0ee 2008-09-02 Jb Evain <[email protected]>
* object.c (mono_ldstr_metdata_sig): renamed to mono_ldstr_metadata_sig.


svn path=/trunk/mono/; revision=112107
2008-09-02 17:39:33 +00:00
Atsushi Eno dfa3a04f22 2008-09-02 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs
	  XmlSerializationWriterInterpreter.cs : fixed bug #419973.
	  Sometimes implicit operators could involve and it affects on
	  typecasting. It's simple for code generator, but very bad for
	  reflection.

	* XmlSerializerTestClasses.cs, XmlSerializerTests.cs:
	  added test for bug #419973.


svn path=/trunk/mcs/; revision=112103
2008-09-02 16:56:08 +00:00
Jb Evain 95143c9cd9 2008-09-02 Jb Evain <[email protected]>
* Mono.Cecil/MethodAttributes.cs: add CheckAccessOnOverride.
	* Mono.Cecil/MethodDefinition.cs: add IsCheckAccessOnOverride.


svn path=/trunk/mcs/; revision=112098
2008-09-02 16:11:10 +00:00
Jb Evain 26ccfe97a3 2008-09-02 Jb Evain <[email protected]>
* Mono.Cecil/GenericParameter.cs: fix Has*Constraint properties.


svn path=/trunk/mcs/; revision=112097
2008-09-02 16:06:49 +00:00
Jonathan Pobst c0a280dbcb 2008-09-02 Jonathan Pobst <[email protected]>
* XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
	to Windows when creating a window, as we fake MDI stuffs.
	[Fixes bug #421858]

svn path=/trunk/mcs/; revision=112095
2008-09-02 15:59:13 +00:00
Marek Safar 1d4d48d5f8 Removed finished tasks
svn path=/trunk/mcs/; revision=112090
2008-09-02 14:51:59 +00:00
Marek Safar 7d01ce7e4f New test.
svn path=/trunk/mcs/; revision=112088
2008-09-02 14:36:07 +00:00
Marek Safar 8523b3cb1b 2008-09-02 Marek Safar <[email protected]>
* driver.cs: Fixed import of extension methods when using -noconfig
	option.


svn path=/trunk/mcs/; revision=112087
2008-09-02 14:32:23 +00:00
Jb Evain 66ff433c24 2008-09-02 Jb Evain <[email protected]>
* Mono.Cecil/SecurityDeclarationReader.cs: fix reading
	multiple permissions. Patch by Carsten Keutmann.


svn path=/trunk/mcs/; revision=112085
2008-09-02 14:16:43 +00:00
Marek Safar 87c7f8c05a Updated
svn path=/trunk/mcs/; revision=112084
2008-09-02 14:01:50 +00:00
Marek Safar 2a7e046c35 2008-09-02 Marek Safar <[email protected]>
* iterator.cs: Don't emit GetEnumerator method twice but call a generic
	version from non-generic implementation instead.


svn path=/trunk/mcs/; revision=112083
2008-09-02 14:01:36 +00:00
Andrés G. Aragoneses 563b051542 Give more info in the changelog, this is affecting MD 1.9 branch
svn path=/trunk/mcs/; revision=112076
2008-09-02 11:47:18 +00:00
Atsushi Eno 6342943908 2008-09-02 Atsushi Enomoto <[email protected]>
* XmlSchemaValidatingReader.cs : call EndValidation() only once.
          Fixed a bug additionally reported to #324606 (but wrong to
          attach).


svn path=/trunk/mcs/; revision=112075
2008-09-02 11:40:07 +00:00
Atsushi Eno ed8c2e4d86 2008-09-02 Atsushi Enomoto <[email protected]>
* web.config: added System.Web.Extensions.dll to assemblies.


svn path=/trunk/mono/; revision=112073
2008-09-02 11:07:46 +00:00
Jb Evain 7119d6f741 simplify
svn path=/trunk/mcs/; revision=112057
2008-09-02 07:10:28 +00:00
Stephane Delcroix d13a0f2c10 replace the null colescent operator by a if-null mor mcs1. Fix the build
svn path=/trunk/mcs/; revision=112056
2008-09-02 06:44:42 +00:00
Rodrigo Kumpera 4dde4fbf77 In .:
2008-09-02  Rodrigo Kumpera  <[email protected]>

	* method-to-ir.c (initialize_array_data): Handle field with RVA from
	dynamic images.


svn path=/trunk/mono/; revision=112055
2008-09-02 04:09:40 +00:00
Rodrigo Kumpera 0edc35e2d1 In .:
2008-09-02 Rodrigo Kumpera  <[email protected]>

	reflection.c (typebuilder_setup_fields): Handle classes with
	explicit size.


svn path=/trunk/mono/; revision=112054
2008-09-02 04:08:05 +00:00
Rodrigo Kumpera 892f1f1e2f In Test/System.ComponentModel:
2008-09-01  Rodrigo Kumpera  <[email protected]>

	* PropertyDescriptorTest.cs: Tests for Get/Set Value of partial
	overrides of virtual properties.

In System.ComponentModel:
2008-09-01  Rodrigo Kumpera  <[email protected]>

	* ReflectionPropertyDescriptor.cs (SetValue, GetValue) : Lookup
	the MethodInfo for accessors in parent types in case of partial
	overrides of virtual properties.


svn path=/trunk/mcs/; revision=112052
2008-09-01 23:52:37 +00:00
Rodrigo Kumpera b84a8cb3ba In .:
2008-09-01 Rodrigo Kumpera  <[email protected]>

	class.c (mono_class_setup_events): Add memory barrier due to
	double checked locking.
	
	class.c (mono_class_setup_properties): Same.


svn path=/trunk/mono/; revision=112051
2008-09-01 22:13:48 +00:00
Marek Safar 3abf94a8c0 2008-09-01 Marek Safar <[email protected]>
A fix for bug #418908
	* class.cs: Use AddScopeStatement for field initializers.


svn path=/trunk/mcs/; revision=112045
2008-09-01 16:35:43 +00:00
Marek Safar 410cbf833d 2008-09-01 Marek Safar <[email protected]>
A fix for bug #418908
	* class.cs: Use AddScopeStatement for field initializers.


svn path=/trunk/mcs/; revision=112044
2008-09-01 16:35:11 +00:00
Marek Safar 23888738f8 Update
svn path=/trunk/mcs/; revision=112043
2008-09-01 16:30:33 +00:00
Ivan Zlatev fa9953f217 2008-09-01 Ivan N. Zlatev <[email protected]>
* TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
	change takes effect.
	[Fixes bug #417957]

svn path=/trunk/mcs/; revision=112041
2008-09-01 16:04:02 +00:00
Jb Evain 0b1b20f8a3 2008-09-01 Jb Evain <[email protected]>
* Mono.Linker/AssemblyResolver.cs: properly cache .exes.


svn path=/trunk/mcs/; revision=112039
2008-09-01 15:19:27 +00:00
Jb Evain 6bded02e3c 2008-09-01 Jb Evain <[email protected]>
* MemberBinding.cs: make .ctor protected instead of public.


svn path=/trunk/mcs/; revision=112034
2008-09-01 14:22:29 +00:00
Jb Evain 175a8f2430 2008-09-01 Jb Evain <[email protected]>
* Expression.cs: guard against null parameters passed to Lambda.


svn path=/trunk/mcs/; revision=112032
2008-09-01 14:12:25 +00:00
Jb Evain a415621dc2 add test for passing a null parameter to a lambda creation
svn path=/trunk/mcs/; revision=112031
2008-09-01 14:10:47 +00:00
Ivan Zlatev 86e2ab6d2b 2008-09-01 Ivan N. Zlatev <[email protected]>
* SettingsPropertyValue.cs: Explicitly use the Invariant culture
	instead of the current.
	[Fixes bug #374516]

svn path=/trunk/mcs/; revision=112027
2008-09-01 13:55:01 +00:00
Marek Safar d1cd73ce35 New test.
svn path=/trunk/mcs/; revision=112026
2008-09-01 13:48:17 +00:00
Marek Safar d41db7a0f2 2008-09-01 Marek Safar <[email protected]>
A fix for bug #415385
	* ecore.cs, convert.cs: Do method group conversion for equal group types.


svn path=/trunk/mcs/; revision=112025
2008-09-01 13:48:01 +00:00
Ivan Zlatev 52a36effe0 2008-09-01 Ivan N. Zlatev <[email protected]>
* ParentControlDesigner.cs: Be nice with Components that are no
	Controls in CreateToolCore.

svn path=/trunk/mcs/; revision=112023
2008-09-01 13:31:27 +00:00
Dick Porter 3ea724a977 2008-09-01 Dick Porter <[email protected]>
* InotifyWatcher.cs: Revert fix for bug 322330, as it is somehow
	breaking other stuff.


svn path=/trunk/mcs/; revision=112020
2008-09-01 13:03:29 +00:00
Jb Evain 1d87172ff4 2008-09-01 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionReader.cs: properly compose mod and byref types
	for parameters and return types.
	Based on a patch by Carlo Kok <[email protected]>


svn path=/trunk/mcs/; revision=112019
2008-09-01 12:53:45 +00:00
Jb Evain f497a7e13c 2008-09-01 Jb Evain <[email protected]>
* Mono.Cecil.Signatures/SignatureReader.cs: Avoid a crash
	when looking for an enumeration definition when the assembly
	could not be resolved. Patch by Carlo Kok <[email protected]>


svn path=/trunk/mcs/; revision=112018
2008-09-01 12:46:11 +00:00
Marek Safar 3f735020c8 Merge marker
svn path=/trunk/mcs/; revision=112017
2008-09-01 12:41:15 +00:00
Ivan Zlatev d6cdcce1a2 2008-08-24 Ivan N. Zlatev <[email protected]>
* XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
        [Fixes bug #419001]

svn path=/trunk/mcs/; revision=112015
2008-09-01 12:12:29 +00:00
Marek Safar 7ce20baf2f 2008-09-01 Marek Safar <[email protected]>
A fix for bug #421736
	* iterators.cs: Don't crash on unreachable iterators.


svn path=/trunk/mcs/; revision=112013
2008-09-01 11:41:52 +00:00
Marek Safar 5a8a658430 2008-09-01 Marek Safar <[email protected]>
A fix for bug #421736
	* iterators.cs: Don't crash on unreachable iterators.


svn path=/trunk/mcs/; revision=112012
2008-09-01 11:41:19 +00:00
Jb Evain 71f7d06406 2008-09-01 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionWriter.cs: fix for writing null string
	constants. Patch by Ewout Prangsma <[email protected]>.


svn path=/trunk/mcs/; revision=112011
2008-09-01 11:29:23 +00:00
Marek Safar bb6dd5cdcb New tests.
svn path=/trunk/mcs/; revision=112008
2008-09-01 10:23:11 +00:00
Marek Safar 8fcb8dc535 2008-09-01 Marek Safar <[email protected]>
A fix for bug #421628
	* parameter.cs, attribute.cs: Clone also parameter attributes.


svn path=/trunk/mcs/; revision=112007
2008-09-01 10:22:53 +00:00
Marek Habersack a34534b9c3 2008-09-01 Marek Habersack <[email protected]>
* ControlBuilder.cs:
	CreateSubBuilder compares tagid to tagName case-insensitively now.

svn path=/trunk/mcs/; revision=112005
2008-09-01 02:30:35 +00:00
Marek Habersack 6c416d1a76 2008-09-01 Marek Habersack <[email protected]>
* ControlBuilder.cs: CreatePropertyBuilder now correctly processes
	property names with prefixes (e.g. 'prefix:PropertyName'). 
	Original, parsed, tag name is stored to properly handle closing
	tags.

2008-09-01  Marek Habersack  <[email protected]>

	* AspGenerator.cs:
	CloseControl uses ControlBuilder's OriginalTagName property,
	should the property/tag name be prefixed with 'prefix:'

svn path=/trunk/mcs/; revision=112003
2008-09-01 01:33:27 +00:00
Marek Habersack 8301c20a94 2008-09-01 Marek Habersack <[email protected]>
* UpdatePanel.cs: if the writer passed to RenderChildren is not
	derived from ScriptManager.AlternativeHtmlTextWriter, check
	whether its InnerWriter derives from that type and, if yes, use
	it from that point onwards.

svn path=/trunk/mcs/; revision=112000
2008-09-01 00:17:51 +00:00
Marek Habersack d53ea4d4f6 2008-09-01 Marek Habersack <[email protected]>
* TemplateControl.cs: changed the way in which ParseControl is
	implemented for the 2.0+ profile. Still not quite there, but
	better and closer to .NET

2008-09-01  Marek Habersack  <[email protected]>

	* BaseCompiler.cs: AssignAppRelativeVirtualPath works with
	null/empty parser.InputFile now.

	* AspGenerator.cs: AddTypeToCache works checks whether inputFile
	is null or empty and does not assume the dependencies ArrayList is
	present.

	* CachingCompiler.cs: expect the dependencies ArrayList to be null
	or empty.



svn path=/trunk/mcs/; revision=111998
2008-08-31 23:30:52 +00:00
Zoltan Varga b3c31f5da1 2008-08-31 Zoltan Varga <[email protected]>
* BitArrayTest.cs: Add a test for #421803.

svn path=/trunk/mcs/; revision=111995
2008-08-31 19:45:12 +00:00
Zoltan Varga 13c7f7d4e8 2008-08-31 Zoltan Varga <[email protected]>
* BitArray.cs (CopyTo): Allow an index equal to the array length if
	the bit array has no elements. Fixes #421803.

svn path=/trunk/mcs/; revision=111994
2008-08-31 19:43:04 +00:00
Zoltan Varga f2e31526ea 2008-08-31 Zoltan Varga <[email protected]>
* method-to-ir.c (handle_isinst): Do the assignment at the beginning, so the
	other assignment can be if converted. Saves 1.5% on corlib size and fixes
	#421807.

svn path=/trunk/mono/; revision=111993
2008-08-31 19:35:10 +00:00
Geoff Norton d0a7804af0 This file is auto-generated
svn path=/trunk/mono/; revision=111992
2008-08-31 17:26:07 +00:00
Marek Habersack 90e612afe1 2008-08-31 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs:
	Templates are processed before anything else, so that children
	which may depend on parent's templates can get access to them.

2008-08-31  Marek Habersack  <[email protected]>

	* Control.cs: improved FillControlCache

	* ControlBuilder.cs:
	Added a cache for children of TemplateBuilder, used later in
	TemplateControlCompiler.

svn path=/trunk/mcs/; revision=111990
2008-08-31 17:05:28 +00:00
Zoltan Varga 01fe2ef4e7 2008-08-31 Zoltan Varga <[email protected]>
* RxInterpreter.cs: Port the Anchor+StartOfString optimization from the old
	interpreter. Add credits.

	* RxCompiler.cs (EmitString): Lowercase the string if ignore is true.

svn path=/trunk/mcs/; revision=111989
2008-08-31 15:21:36 +00:00
Zoltan Varga 027856b6d3 2008-08-31 Zoltan Varga <[email protected]>
* class.c (mono_class_is_assignable_from): Fix the build.

svn path=/trunk/mono/; revision=111987
2008-08-31 09:39:06 +00:00
Marek Habersack 27ece7a9b2 2008-08-31 Marek Habersack <[email protected]>
* TemplateParser.cs: added support for the LinePragmas directive
	attribute.

	* ControlBuilder.cs: if this instance is a TemplateBuilder do not
	call MyNamingContainer, so that our own ContainerType can be used
	as the binding container (if present).

2008-08-31  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: trust builder.BindingContainerType
	in the 2.0+ profile - do not use container properties to detect
	the type.
	Added a helper method, compiled only when DEBUG is defined, to
	generate Console.WriteLine CodeDOM calls.

	* BaseCompiler.cs: add line pragmas only if enabled for the
	current file.


svn path=/trunk/mcs/; revision=111983
2008-08-31 01:41:14 +00:00
Zoltan Varga 7f1ea4fafd 2008-08-31 Zoltan Varga <[email protected]>
* TypeBuilderTest.cs: Add a test for IsAssignableFrom and generic instances
	of dynamic types.

svn path=/trunk/mcs/; revision=111982
2008-08-30 23:25:10 +00:00
Zoltan Varga a16576c0c9 2008-08-31 Zoltan Varga <[email protected]>
* class.c (mono_class_is_assignable_from): Call mono_class_setup_vtable ()
	before accessing klass->interface_bitmap. Fixes #421744.

svn path=/trunk/mono/; revision=111980
2008-08-30 23:22:58 +00:00
Zoltan Varga 5723d06581 2008-08-31 Zoltan Varga <[email protected]>
* CILCompiler.cs: Fix the setting of the match position in the
	anchor+char optimization.

svn path=/trunk/mcs/; revision=111979
2008-08-30 23:08:02 +00:00
Zoltan Varga 5b21443a91 2008-08-31 Zoltan Varga <[email protected]>
* CILCompiler.cs: Implement FastRepeatLazy.

svn path=/trunk/mcs/; revision=111978
2008-08-30 22:38:57 +00:00
Zoltan Varga 37a5586691 2008-08-31 Zoltan Varga <[email protected]>
* CILCompiler.cs: Get rid of commented out code. Also get rid of
	frame.local_strpos_res, since the generated code already set Arg1 to
	the same value.

svn path=/trunk/mcs/; revision=111977
2008-08-30 22:14:03 +00:00
Miguel de Icaza 9e47982d14 Work to support typing compilation-unit level declarations in the shell.
There is a major problem with it though: Reflection keeps gettting data
confused if you are using any of the *Builder classes and ends up 
referencing other classes.     This seems like a real bug in Emit, not
really just an intended side effect.

So until all of those issues are fixed, the code path is disabled, but
at least declaring types works now.


svn path=/trunk/mcs/; revision=111974
2008-08-30 20:14:13 +00:00
Miguel de Icaza fbcf4f9f21 Fix moving over symbols, for example the equal sign
svn path=/trunk/mcs/; revision=111973
2008-08-30 16:36:13 +00:00
Miguel de Icaza 5f06b91d28 Various fixes to history handling
svn path=/trunk/mcs/; revision=111972
2008-08-30 16:33:45 +00:00
Zoltan Varga 929eec6210 2008-08-30 Zoltan Varga <[email protected]>
* CILCompiler.cs: Initialize all mi_ variables lazily.

svn path=/trunk/mcs/; revision=111971
2008-08-30 14:15:07 +00:00
Zoltan Varga 78fe9c179f 2008-08-30 Zoltan Varga <[email protected]>
* CILCompiler.cs: Implement FastRepeat.

svn path=/trunk/mcs/; revision=111970
2008-08-30 14:05:17 +00:00
Marek Safar e579a95c2c 2008-08-30 Marek Safar <[email protected]>
* MemberBinding.cs: Made MemberBinding ctor public


svn path=/trunk/mcs/; revision=111969
2008-08-30 12:55:47 +00:00
Miguel de Icaza 88cc118ee2 Small fix
svn path=/trunk/mcs/; revision=111967
2008-08-30 05:33:33 +00:00
Geoff Norton 19f6fe1ba6 2008-08-29 Geoff Norton <[email protected]>
* configure.in: Rollup our unrolled FreeBSD support so that we properly
        build and compile on FreeBSD6+.  (FreeBSD5 is 2004)

svn path=/trunk/mono/; revision=111966
2008-08-30 03:31:20 +00:00
Zoltan Varga b59989cd3a 2008-08-30 Zoltan Varga <[email protected]>
* RxInterpreter.cs: Add back SetStartOfMatch, make it protected so as to
	avoid a warning.

svn path=/trunk/mcs/; revision=111959
2008-08-29 23:29:35 +00:00
Zoltan Varga dc2b6bbb1f 2008-08-30 Zoltan Varga <[email protected]>
* CILCompiler.cs RxOp.cs: Merge lots of changes from RxInterpreter.cs,
	refactor the code.

svn path=/trunk/mcs/; revision=111958
2008-08-29 23:28:39 +00:00
Marek Habersack 0befa2bb02 2008-08-30 Marek Habersack <[email protected]>
* System.Web.Script.Serialization/JavaScriptSerializer.cs: if the
	target type is an IDictionary with value type of System.Object,
	make sure to NOT convert any values.
	Any values descendant from JavaScriptSerializer.LazyDictionary are
	converted to Dictionary <string, object>

svn path=/trunk/mcs/; revision=111956
2008-08-29 22:37:59 +00:00
Marek Habersack cc8bdf8225 2008-08-29 Marek Habersack <[email protected]>
* HttpApplication.cs: do not cache handlers which aren't
	reusable.

2008-08-29  Marek Habersack  <[email protected]>

	* HtmlHead.cs: call base.OnInit ()
	If Page is null, throw an exception.

svn path=/trunk/mcs/; revision=111939
2008-08-29 19:42:58 +00:00
Marek Safar b2aa668640 Updated
svn path=/trunk/mcs/; revision=111938
2008-08-29 19:00:38 +00:00
Geoff Norton 599ea24037 2008-08-29 Geoff Norton <[email protected]>
* aot-compiler.c: The Mach/ARM compiler doesn't understand the bss
        segment, and doesn't properly handle .space as .text.  Fixes
        AOT Mach/ARM

svn path=/trunk/mono/; revision=111932
2008-08-29 17:58:35 +00:00
Geoff Norton 3fc818ffe0 2008-08-29 Geoff Norton <[email protected]>
* mini.c: Disable the mach exception handler when running on
        ARM

svn path=/trunk/mono/; revision=111929
2008-08-29 15:34:06 +00:00
Marek Safar d2a10adbba 2008-08-29 Marek Safar <[email protected]>
* ecore.cs (SimpleName): Exclude indexers from simple name resolve.


svn path=/trunk/mcs/; revision=111927
2008-08-29 15:22:22 +00:00
Zoltan Varga 88fe42ba57 Remove some FIXMEs.
svn path=/trunk/mcs/; revision=111926
2008-08-29 14:45:43 +00:00
Zoltan Varga 01bc43a4e2 2008-08-29 Zoltan Varga <[email protected]>
* RxInterpreter.cs RxCompiler.cs RxOp.cs: Implement/fix this so all the
	regex tests now run. The Repeat code is taken from the old interpreter.

svn path=/trunk/mcs/; revision=111925
2008-08-29 14:44:15 +00:00
Geoff Norton 72bb61054d 2008-08-29 Geoff Norton <[email protected]>
* aot-compiler.c: Patch from Renaldas Zioma to properly register
        globals on Darwin/ARM

svn path=/trunk/mono/; revision=111924
2008-08-29 14:32:32 +00:00
Raja R Harinath ba8e94a13d * test-xml-052.cs: Fix unrelated warning.
svn path=/trunk/mcs/; revision=111922
2008-08-29 14:20:56 +00:00
Marek Safar 0035998a45 Message update
svn path=/trunk/mcs/; revision=111921
2008-08-29 13:25:34 +00:00
Marek Safar 913c4bd4ca 2008-08-29 Marek Safar <[email protected]>
* generic.cs, iterators.cs, codegen.cs: Removed unused variable.
	
	* typemanager.cs, statement.cs, ecore.cs, enum.cs: Don't reconstruct enum
	member name, it is too confusing
	
	* decl.cs, class.cs: Don't report unused fields with attached attribute.
	
	* rootcontext.cs: Finally default to warning level 4.


svn path=/trunk/mcs/; revision=111920
2008-08-29 13:25:19 +00:00
Marek Safar f3135f8bb6 New test
svn path=/trunk/mcs/; revision=111919
2008-08-29 13:14:04 +00:00
Marek Safar ca014ad2b1 Warnings cleanup
svn path=/trunk/mcs/; revision=111918
2008-08-29 13:13:01 +00:00
Marek Habersack 0a9b769f2c 2008-08-29 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: properly handle profile base class
	specifications which refer to full type names.

svn path=/trunk/mcs/; revision=111916
2008-08-29 13:07:49 +00:00
Marek Safar 52df2fce97 Warnings cleanup
svn path=/trunk/mcs/; revision=111915
2008-08-29 13:07:43 +00:00
Marek Safar cc96a40c48 Warnings cleanup
svn path=/trunk/mcs/; revision=111909
2008-08-29 12:02:25 +00:00
Marek Safar 2e6942f224 Warnings cleanup
svn path=/trunk/mcs/; revision=111908
2008-08-29 11:02:23 +00:00
Marek Safar e964c2733c Disabled 1591
svn path=/trunk/mcs/; revision=111906
2008-08-29 10:42:23 +00:00
Marek Safar f3f05c2055 Warnings cleanup
svn path=/trunk/mcs/; revision=111904
2008-08-29 09:48:05 +00:00
Marek Safar fa65d22e84 Warnings cleanup
svn path=/trunk/mcs/; revision=111903
2008-08-29 09:46:50 +00:00
Michael Hutchinson 93d4cac9ba Increase history size to 300
svn path=/trunk/mcs/; revision=111887
2008-08-29 00:12:57 +00:00
Miguel de Icaza 25853536c8 Easy one
svn path=/trunk/mcs/; revision=111883
2008-08-28 23:53:24 +00:00
Bill Holmes 6b92691652 2008-08-28 Bill Holmes <[email protected]>
* src/glib.h : Adding a c++ definition for G_BEGIN_DECLS.

	Contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=111875
2008-08-28 20:53:48 +00:00
Geoff Norton 1c48dcdfb2 2008-08-28 Geoff Norton <[email protected]>
* build-iphone.sh: iPhone lies about HAVE_MMAP as well.

2008-08-26  Geoff Norton  <[email protected]>

        * build-iphone.sh: Update build-iphone to not wget old inssel's, and build
        out of the box with teh current SDK.

svn path=/trunk/mono/; revision=111874
2008-08-28 20:46:32 +00:00
Geoff Norton 20c8607143 2008-08-28 Geoff Norton <[email protected]>
* darwin_stop_world.c:
        * include/private/gcconfig.h: Add support for Darwin/ARM

svn path=/trunk/mono/; revision=111873
2008-08-28 20:46:26 +00:00
Zoltan Varga 1a56620486 2008-08-28 Zoltan Varga <[email protected]>
* mini.c: Avoid not initializing the runtime when doing AOT compilation, 
	since too many things depend on it. Instead, call 
	mono_runtime_set_no_exec ().

svn path=/trunk/mono/; revision=111867
2008-08-28 20:20:58 +00:00
Zoltan Varga b31f57f855 2008-08-28 Zoltan Varga <[email protected]>
* appdomain.c (mono_runtime_set_no_exec): New internal function setting
	the runtime into no-exec mode, useful when running the AOT compiler.

	* appdomain.c gc.c object.c: Avoid executing managed code when running
	in no-exec mode.

svn path=/trunk/mono/; revision=111865
2008-08-28 20:16:59 +00:00
Miguel de Icaza 982cb05ada Make tabs not look as bad
svn path=/trunk/mcs/; revision=111864
2008-08-28 20:08:42 +00:00
Zoltan Varga e594dc8b38 Fix the revert.
svn path=/trunk/mcs/; revision=111863
2008-08-28 19:47:50 +00:00
Zoltan Varga a8f16fcd65 2008-08-28 Zoltan Varga <[email protected]>
* mono-profiler-logging.c (detect_fast_timer): Add missing return type.

svn path=/trunk/mono/; revision=111861
2008-08-28 19:39:27 +00:00
Zoltan Varga 087a56da42 2008-08-28 Zoltan Varga <[email protected]>
* libtest.c (mono_xr_as_handle): Initialize ref before returning it.

svn path=/trunk/mono/; revision=111859
2008-08-28 19:35:43 +00:00
Marek Safar 9d9833df67 Warnings cleanup
svn path=/trunk/mcs/; revision=111858
2008-08-28 19:21:49 +00:00
Marek Safar bd61e84c83 Warnings cleanup
svn path=/trunk/mcs/; revision=111857
2008-08-28 19:13:43 +00:00
Marek Safar 02e9af391d Warnings cleanup
svn path=/trunk/mcs/; revision=111855
2008-08-28 19:08:55 +00:00
Raja R Harinath dcd889fcb1 * rules.make (do-%): Revert change below. We need the recursion
to ensure ordering of %-local after %-recursive.  IOW, we
want to ensure strict linearity even with a 'make -j'.

svn path=/trunk/mcs/; revision=111854
2008-08-28 18:48:02 +00:00
Marek Safar e5115a09e3 Warnings cleanup
svn path=/trunk/mcs/; revision=111853
2008-08-28 17:58:52 +00:00
Marek Safar 3598363d75 Warnings cleanup
svn path=/trunk/mcs/; revision=111851
2008-08-28 17:53:39 +00:00
Marek Safar b2d5552461 Warnings cleanup
svn path=/trunk/mcs/; revision=111848
2008-08-28 17:45:48 +00:00
Miguel de Icaza 68834c514f Update
svn path=/trunk/mcs/; revision=111847
2008-08-28 17:45:34 +00:00
Marek Safar 3dccc58346 Warnings cleanup
svn path=/trunk/mcs/; revision=111846
2008-08-28 17:19:32 +00:00
Marek Safar 09dcbd8c52 2008-08-28 Marek Safar <[email protected]>
* class.cs (CheckBase): Ignore overloaded operators.


svn path=/trunk/mcs/; revision=111843
2008-08-28 17:13:27 +00:00
Marek Safar 2be4aa8ed9 Warnings cleanup
svn path=/trunk/mcs/; revision=111842
2008-08-28 17:11:51 +00:00
Marek Safar 95a6e77b85 Warnings cleanup
svn path=/trunk/mcs/; revision=111839
2008-08-28 16:53:31 +00:00
Zoltan Varga b676a86903 2008-08-28 Zoltan Varga <[email protected]>
* rules.make (Q_MCS): Use 5 spaces instead of -e '\\t'.

	* library.make: Make some command quiet.

svn path=/trunk/mcs/; revision=111830
2008-08-28 15:53:21 +00:00
Zoltan Varga 3141b54bc0 2008-08-28 Zoltan Varga <[email protected]>
* mini.c (mono_create_tls_get): Call mono_alloc_preg (cfg) when running with
	the new JIT.

svn path=/trunk/mono/; revision=111823
2008-08-28 15:43:52 +00:00
Marek Safar ab9bac6c13 New test.
svn path=/trunk/mcs/; revision=111818
2008-08-28 15:31:42 +00:00
Marek Safar d3e9ffef70 2008-08-28 Marek Safar <[email protected]>
A fix for bug #420830
	* expression.cs, cs-parser.jay: Put back InvocationOrCast expression.


svn path=/trunk/mcs/; revision=111817
2008-08-28 15:29:20 +00:00
Zoltan Varga 6d5ad8e6b6 2008-08-28 Zoltan Varga <[email protected]>
* rules.make: Avoid some needless recursive make invocations.

svn path=/trunk/mcs/; revision=111814
2008-08-28 14:30:14 +00:00
Zoltan Varga 64b6fd47af 2008-08-28 Zoltan Varga <[email protected]>
* rawbuffer.c (mono_raw_buffer_load_mmap): Disable this on the iphone.

svn path=/trunk/mono/; revision=111807
2008-08-28 13:52:00 +00:00
Marek Safar 96d6c14603 New test.
svn path=/trunk/mcs/; revision=111805
2008-08-28 13:33:32 +00:00
Marek Safar cf1a81c388 2008-08-28 Marek Safar <[email protected]>
A fix for bug #420832
	* anonymous.cs, iterators.cs: Also clone hoisted this iterator variable.


svn path=/trunk/mcs/; revision=111803
2008-08-28 13:32:31 +00:00
Marek Habersack 6c2057c3ca 2008-08-28 Marek Habersack <[email protected]>
* System.Web.Script.Services/LogicalTypeInfo.cs: Invoke does not
	convert context to System.Object.
	If context is descendant from JavaScriptSerializer.LazyDictionary
	it is converted to a regular Dictionary <string, object> before
	passing to the service method.

2008-08-28  Marek Habersack  <[email protected]>

	* JsonSerializer.cs: each value stored in an enumerable is treated
	as a top-level object.

svn path=/trunk/mcs/; revision=111801
2008-08-28 13:13:35 +00:00
Zoltan Varga ce671fa528 2008-08-28 Zoltan Varga <[email protected]>
* rules.make: Print the profile in the quiet commands.

svn path=/trunk/mcs/; revision=111800
2008-08-28 12:38:02 +00:00
Marek Safar 3501d67dba New test.
svn path=/trunk/mcs/; revision=111799
2008-08-28 11:09:29 +00:00
Marek Safar 80f437fedd 2008-08-28 Marek Safar <[email protected]>
A fix for bug #420386
	* nullables.cs: Fixed logic of nullable user comparison operators involving
	null values.


svn path=/trunk/mcs/; revision=111797
2008-08-28 11:06:24 +00:00
Marek Safar 18c2b0eaaa Warnings cleanup.
svn path=/trunk/mcs/; revision=111796
2008-08-28 10:14:05 +00:00
Marek Safar d087095a25 New test.
svn path=/trunk/mcs/; revision=111794
2008-08-28 10:09:54 +00:00
Marek Safar 2ea3cce8c3 2008-08-28 Marek Safar <[email protected]>
* attribute (IsClsCompliant): Use FALSE value for pointer types.


svn path=/trunk/mcs/; revision=111793
2008-08-28 10:09:31 +00:00
Atsushi Eno 631055245f 2008-08-28 Atsushi Enomoto <[email protected]>
* JsonReader.cs : a ReadChar() is missing in number parsing.


svn path=/trunk/mcs/; revision=111791
2008-08-28 09:24:52 +00:00
Marek Safar 225f1c9198 Warnings cleanup
svn path=/trunk/mcs/; revision=111790
2008-08-28 09:12:00 +00:00
Miguel de Icaza 3f6b27dea9 Fix another mcs warning
svn path=/trunk/mcs/; revision=111789
2008-08-28 05:13:11 +00:00
Miguel de Icaza 9afb612299 More changes to eliminate mcs warnings
svn path=/trunk/mcs/; revision=111788
2008-08-28 05:13:03 +00:00
Miguel de Icaza 60ed38d858 Expose EqualityComparer in 2.0
svn path=/trunk/mcs/; revision=111787
2008-08-28 05:05:29 +00:00
Miguel de Icaza 185f1dde04 Update README
svn path=/trunk/mcs/; revision=111786
2008-08-28 05:05:08 +00:00
Miguel de Icaza f6841069f5 Remove warnings
svn path=/trunk/mcs/; revision=111785
2008-08-28 05:00:50 +00:00
Miguel de Icaza 360c12b395 Fix the build for SL and 1.1
svn path=/trunk/mcs/; revision=111784
2008-08-28 04:40:56 +00:00
Daniel Morgan 2e88c7aa20 2008-08-27 Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleConnectionStringBuilder.cs: modified -
	add missing connection options, correct case of some connection options,
	added dictionary for mapping
	defaults, for Item this indexer needs to return a default
	for a valid keyword if it does not exist in the dictionary,
	must override the Keys and Values collection to return all keys
	and values whether or not they exist in the dictionary and if
	they do not then return a default value for Values

svn path=/trunk/mcs/; revision=111783
2008-08-28 03:33:19 +00:00
Daniel Morgan 30ab6a5809 2008-08-27 Daniel Morgan <[email protected]>
* SqlSharpCli.cs: fixes for using DbConnectionStringBuilder,
	do not allow changing of provider or opening when the
	connection is already open

svn path=/trunk/mcs/; revision=111782
2008-08-28 03:28:32 +00:00
Daniel Morgan 2066f021be 2008-08-27 Daniel Morgan <[email protected]>
* System.Data.SqlClient/SqlConnectionStringBuilder.cs: modified -
	add missing connection options, correct case of some connection options,
	added dictionary for mapping
	defaults, for Item this indexer needs to return a default
	for a valid keyword if it does not exist in the dictionary,
	must override the Keys and Values collection to return all keys
	and values whether or not they exist in the dictionary and if
	they do not then return a default value for Values

svn path=/trunk/mcs/; revision=111781
2008-08-28 02:27:59 +00:00
Miguel de Icaza 272c03555a 2008-08-27 Miguel de Icaza <[email protected]>
* repl.cs: Add support for aborting the running code with C-c. 

svn path=/trunk/mcs/; revision=111780
2008-08-28 02:20:50 +00:00
Miguel de Icaza 6fa8357891 Remove debugging output
svn path=/trunk/mcs/; revision=111777
2008-08-28 02:10:43 +00:00
Zoltan Varga 08a5cc0068 Rename the new option asmonly.
svn path=/trunk/mono/; revision=111774
2008-08-28 01:39:19 +00:00
Marek Habersack 0e1e0d5903 2008-08-28 Marek Habersack <[email protected]>
* System.Web.Script.Serialization/JavaScriptSerializer.cs:
	correctly handle members which have an interface as their return
	type - several known interfaces are converted to implementing
	types.

svn path=/trunk/mcs/; revision=111772
2008-08-28 01:35:55 +00:00
Zoltan Varga f1cfa5a3ea 2008-08-28 Zoltan Varga <[email protected]>
* aot-compiler.c: Add an 'asm-only' AOT option.

svn path=/trunk/mono/; revision=111770
2008-08-28 01:34:22 +00:00
Zoltan Varga f5e6dccac5 2008-08-28 Zoltan Varga <[email protected]>
* reflection.c (_mono_reflection_get_type_from_info): Handle the 
	special case when the mono_assembly_loaded () returns NULL because the 
	search hook is not installed.

svn path=/trunk/mono/; revision=111766
2008-08-28 01:17:47 +00:00
Zoltan Varga 8f7da560f3 2008-08-28 Zoltan Varga <[email protected]>
* mini.c: Avoid initializing the runtime when doing AOT compilation.

svn path=/trunk/mono/; revision=111765
2008-08-28 01:01:31 +00:00
Zoltan Varga 9e3ec3ed38 2008-08-28 Zoltan Varga <[email protected]>
* aot-compiler.c (compile_method): Disable gshared support for now as it
	doesn't yet work.

svn path=/trunk/mono/; revision=111764
2008-08-28 00:53:14 +00:00
Miguel de Icaza 893cdb5e5b 2008-08-27 Miguel de Icaza <[email protected]>
* cs-parser.jay (interactive_statement_list): A new set of rules
	for hosting statements that uses the "interactive_" prefix.   

	* repl.cs: Add support for parsing `using' as a statement or as a
	directive.  Deambiguating before passing this to the parser.

	We need to distinguish statement_expressions that occur at the
	toplevel vs those that occur embedded into expressions.



svn path=/trunk/mcs/; revision=111762
2008-08-28 00:42:57 +00:00
Zoltan Varga 79b9f02516 2008-08-28 Zoltan Varga <[email protected]>
* rules.make: Make the build process quiet similarly to the runtime build
	process. Use the V=1 argument to make to make it verbose again.

svn path=/trunk/mcs/; revision=111761
2008-08-28 00:29:36 +00:00
Zoltan Varga 6ed500dce1 2008-08-28 Zoltan Varga <[email protected]>
* machine.config: Fix syntax error.

svn path=/trunk/mono/; revision=111759
2008-08-28 00:03:54 +00:00
Zoltan Varga 68c81fe77f 2008-08-28 Zoltan Varga <[email protected]>
* Makefile (PROGRAM): Always install gacutil into the appropriate profile
	dir.

svn path=/trunk/mcs/; revision=111755
2008-08-27 23:34:24 +00:00
Zoltan Varga a0354f72fd 2008-08-28 Zoltan Varga <[email protected]>
* Makefile (net_2_0_SUBDIRS): Add gacutil.

svn path=/trunk/mcs/; revision=111754
2008-08-27 23:31:56 +00:00
Daniel Morgan 1abf1330f6 2008-08-27 Daniel Morgan <[email protected]>
* SqlSharpcli.cs: use foreach to get keys
	in DbConnectionStringBuilder

	* ChangeLog: fix previous entry of mine

svn path=/trunk/mcs/; revision=111753
2008-08-27 23:31:05 +00:00
9807 changed files with 1996357 additions and 39281 deletions

No files matched your search

+209 -1
View File
@@ -1,7 +1,215 @@
2008-10-18 Jonathan Pryor <[email protected]>
* configure.in: Generate data/monodoc.pc.
2008-10-18 Jonathan Pryor <[email protected]>
* data/Makefile.am: Add monodoc.pc to $(pkgconfig_DATA), $(DISTCLEANFILES).
2008-10-18 Jonathan Pryor <[email protected]>
* data/monodoc.pc.in: Fixup sourcesdir.
* data/Makefile.am (EXTRA_DIST): Add monodoc.pc.in.
2008-10-17 Jonathan Pryor <[email protected]>
* scripts/Makefile.am: Install scripts for mdoc-compat commands.
* scripts (svn:ignore): Ignore generated files.
* mdassembler, mdvalidater, monodocer, monodocs2html,
monodocs2slashdoc: Added; "compatibility" scripts, converting the
previous commands into mdoc commands.
2008-10-17 Jonathan Pryor <[email protected]>
* scripts/Makefile.am: Create scripts for mdoc sub-commands.
2008-10-17 Jonathan Pryor <[email protected]>
* scripts/Makefile.am: Add mod.
2008-10-16 Jonathan Pryor <[email protected]>
* scripts/Makefile.am: Move mono-shlib-cop to scripts_2_0.
2008-10-15 Jonathan Pryor <[email protected]>
* configure.in: Add checks for `struct flock`, `struct timespec`.
2008-10-14 Jonathan Pryor <[email protected]>
* data/mono-options.pcs.in: We're not installing Mono.Options.dll into
the GAC anymore, we're just concerned `pkg-config --variable=Source`
support.
2008-10-14 Jonathan Pryor <[email protected]>
* data/mono-options.pc.in: Add a Sources variable so that
`pkg-config --variable Sources mono-options` can be used to grab the
sources to Mono.Options (useful for embedding).
2008-10-13 Jonathan Pryor <[email protected]>
* configure.in: Generate data/mono-options.pc.
* data/Makefile.am: Support mono-options.pc.in and mono-options.pc.
* data/mono-options.pc.in: Added.
Mon Oct 13 11:26:19 CEST 2008 Paolo Molaro <[email protected]>
* configure.in: check for shm_open ().
2008-10-12 Zoltan Varga <[email protected]>
* configure.in: Only process Makefiles with patch-quiet.sh which have a
corresponding Makefile.in.
2008-10-11 Zoltan Varga <[email protected]>
* configure.in: Make --enable-minimal=reflection_emit turn on
--enable-minimal=reflection_emit_save too.
* README: Add docs for the option.
* configure.in: Add --enable-minimal=reflection_emit_save option.
2008-10-10 Atsushi Enomoto <[email protected]>
* data/net_2_0/web.config: add UrlRouting.axd handler (forbidden).
2008-10-08 Zoltan Varga <[email protected]>
* Makefile.am (dist-hook): Use 'net_1_1' instead of 'default'.
* runtime/Makefile.am: Rename 'default' profile to 'net_1_1'.
2008-10-07 Atsushi Enomoto <[email protected]>
* data/Makefile.am : there seems a couple more of required changes.
2008-10-07 Atsushi Enomoto <[email protected]>
* scripts/Makefile.am : one more dist fix is needed.
2008-10-07 Atsushi Enomoto <[email protected]>
* configure.in : fix missing change for previous change.
2008-10-07 Atsushi Enomoto <[email protected]>
* scripts/mono-nunit.pc.in, data/mono-nunit.pc.in:
move former to latter.
* scripts/Makefile.am : remove packaging info.
* data/Makefile.am : add mono-nunit.pc too.
2008-10-03 Rodrigo Kumpera <[email protected]>
* configure.in: Add simd intrinsics to the disable set.
2008-10-01 Jb Evain <[email protected]>
* scripts/Makefile.am: add mono-cil-strip.
2008-09-29 Zoltan Varga <[email protected]>
* scripts/patch-quiet.sh: Handle the ifs used by some versions of
automake.
2008-09-25 Luis Ortiz <[email protected]>
* configure.in: Big arrays are only supported on 64 bit systems.
Fixes #430022
2008-09-24 Zoltan Varga <[email protected]>
* configure.in: Add --enable-minimal=attach option.
2008-09-22 Raja R Harinath <[email protected]>
* scripts/patch-quiet.sh: Skip Makefiles that've already been
patched. Handle automake 1.10a.
2008-09-18 Mark Probst <[email protected]>
* docs/generic-sharing: More generic sharing porting
documentation.
2008-09-17 Raja R Harinath <[email protected]>
* Makefile.am (EXTRA_DIST): Update.
* nls.m4, progtest.m4: Really add from Gettext 0.17.
2008-09-15 Raja R Harinath <[email protected]>
* configure.in (AC_CONFIG_FILES): Put po/mcs/Makefile.in in its
own stanza.
(AC_OUTPUT): Don't list po/mcs/Makefile, it's automatically
handled by AM_PO_SUBDIRS.
2008-09-14 Miguel de Icaza <[email protected]>
* Added some infrastructure to start the translation of the
compiler error messages.
Currently the compiler does not yet use the infrastructure,
that needs a bit of work, but the PO infrastructure is in place.
2008-09-14 gettextize <[email protected]>
* Makefile.am (SUBDIRS): Add po/mcs.
(DIST_SUBDIRS): Add po/mcs.
(EXTRA_DIST): Add config.rpath.
* configure.in (AC_CONFIG_FILES): Add po/mcs/Makefile.in.
2008-09-14 gettextize <[email protected]>
* gettext.m4: New file, from gettext-0.17.
* iconv.m4: New file, from gettext-0.17.
* lib-ld.m4: New file, from gettext-0.17.
* lib-link.m4: New file, from gettext-0.17.
* lib-prefix.m4: New file, from gettext-0.17.
* nls.m4: New file, from gettext-0.17.
* po.m4: New file, from gettext-0.17.
* progtest.m4: New file, from gettext-0.17.
* Makefile.am (EXTRA_DIST): Add the new files.
2008-09-12 Zoltan Varga <[email protected]>
* scripts/patch-quiet.sh: Remove an obsolete comment. Change the Makefile so
this script is rerun if Makefile.am changes.
2008-09-11 Zoltan Varga <[email protected]>
* configure.in: Add a DISABLE_JIT automake conditional too.
* configure.in: Add a --enable-minimal=jit option to disable jit, only
allowing full-aot execution.
2008-09-10 Zoltan Varga <[email protected]>
* configure.in: Move the computation of export_ldflags after libtool has
been created.
2008-09-08 Massimiliano Mantione <[email protected]>
* configure.in: Added DISABLE_PROFILER automake conditional.
2008-08-29 Geoff Norton <[email protected]>
* configure.in: Rollup our unrolled FreeBSD support so that we properly
build and compile on FreeBSD6+. (FreeBSD5 is 2004)
2008-08-28 Geoff Norton <[email protected]>
* build-iphone.sh: iPhone lies about HAVE_MMAP as well.
2008-08-26 Geoff Norton <[email protected]>
* build-iphone.sh: Update build-iphone to not wget old inssel's, and build
out of the box with teh current SDK.
2008-08-28 Zoltan Varga <[email protected]>
* scripts/Makefile.am (scripts_2_0): Add gacutil2.
* scripts/gacutil2: New file.
2008-08-22 Jb Evain <[email protected]>
+4 -4
View File
@@ -1,20 +1,20 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
SUBDIRS = $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support docs data runtime scripts man samples web msvc
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support docs data runtime scripts man samples web msvc
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = libgc $(eglib_dir) mono ikvm-native support docs data runtime scripts man samples web tools msvc
DIST_SUBDIRS = po libgc $(eglib_dir) mono ikvm-native support docs data runtime scripts man samples web tools msvc
EXTRA_DIST= mono-uninstalled.pc.in dtrace-prelink.sh build-mingw32.sh LICENSE
EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in dtrace-prelink.sh build-mingw32.sh LICENSE mkinstalldirs
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
# Distribute the 'mcs' tree too
dist-hook:
test -d $(distdir)/mcs || mkdir $(distdir)/mcs
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=default distdir=$$d dist-recursive
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_1_1 distdir=$$d dist-recursive
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 distdir=$$d dist-recursive
pkgconfigdir = $(libdir)/pkgconfig
+42 -19
View File
@@ -67,6 +67,14 @@ This is Mono.
./autogen.sh --prefix=/usr/local
make
The Mono build system is silent for most compilation commands.
To enable a more verbose compile (for example, to pinpoint
problems in your makefiles or your system) pass the V=1 flag to make, like this:
make V=1
c. Building the software from SVN
---------------------------------
@@ -316,22 +324,25 @@ This is Mono.
Disables support for the Ahead of Time
compilation.
profiler:
Disables support for the default profiler.
decimal:
Disables support for System.Decimal.
pinvoke:
Support for Platform Invocation services,
disabling this will drop support for any
libraries using DllImport.
com:
Disables COM support.
debug:
Drop debugging support.
reflection_emit:
Drop System.Reflection.Emit support
decimal:
Disables support for System.Decimal.
generics:
Generics support. Disabling this will not
allow Mono to run any 2.0 libraries or
code that contains generics.
jit:
Removes the JIT engine from the build, this reduces
the executable size, and requires that all code
executed by the virtual machine be compiled with
Full AOT before execution.
large_code:
Disables support for large assemblies.
@@ -339,19 +350,31 @@ This is Mono.
logging:
Disables support for debug logging.
com:
Disables COM support.
pinvoke:
Support for Platform Invocation services,
disabling this will drop support for any
libraries using DllImport.
profiler:
Disables support for the default profiler.
reflection_emit:
Drop System.Reflection.Emit support
reflection_emit_save:
Drop support for saving dynamically created
assemblies (AssemblyBuilderAccess.Save) in
System.Reflection.Emit.
simd:
Disables support for the Mono.SIMD intrinsics
library.
ssa:
Disables compilation for the SSA optimization
framework, and the various SSA-based
optimizations.
generics:
Generics support. Disabling this will not
allow Mono to run any 2.0 libraries or
code that contains generics.
--enable-big-arrays
This enables the use arrays whose indexes are larger
+2 -2
View File
@@ -102,8 +102,8 @@ if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
fi
fi
echo "Running aclocal $ACLOCAL_FLAGS ..."
aclocal $ACLOCAL_FLAGS || {
echo "Running aclocal -I . $ACLOCAL_FLAGS ..."
aclocal -I . $ACLOCAL_FLAGS || {
echo
echo "**Error**: aclocal failed. This may mean that you have not"
echo "installed all of the packages you need, or you may need to"
+47 -10
View File
@@ -2,26 +2,63 @@
ASPEN_ROOT=/Developer/Platforms/iPhoneOS.platform/Developer
ASPEN_SDK=$ASPEN_ROOT/SDKs/iPhoneOS2.0.sdk/
export PATH=$ASPEN_ROOT/usr/bin:$PATH
ORIG_PATH=$PATH
GLIB_FLAGS=`pkg-config --cflags --libs glib-2.0`
export C_INCLUDE_PATH="$ASPEN_SDK/usr/lib/gcc/arm-apple-darwin9/4.0.1/include:$ASPEN_SDK/usr/include"
export CPLUS_INCLUDE_PATH="$ASPEN_SDK/usr/lib/gcc/arm-apple-darwin9/4.0.1/include:$ASPEN_SDK/usr/include"
export CC=arm-apple-darwin9-gcc-4.0.1
export CXX=arm-apple-darwin9-g++-4.0.1
export CPP="cpp-4.0 -nostdinc -U__powerpc__ -U__i386__ -D__arm__"
export CXXPP="cpp-4.0 -nostdinc -U__powerpc__ -U__i386__ -D__arm__"
export LD=$CC
export LDFLAGS=-Wl,-syslibroot,$ASPEN_SDK
if [ -z "$GLIB_FLAGS" ]; then
echo "pkg-config could not locate glib-2.0 needed for the monoburg step"
exit;
fi
setenv () {
export PATH=$ASPEN_ROOT/usr/bin:$PATH
export C_INCLUDE_PATH="$ASPEN_SDK/usr/lib/gcc/arm-apple-darwin9/4.0.1/include:$ASPEN_SDK/usr/include"
export CPLUS_INCLUDE_PATH="$ASPEN_SDK/usr/lib/gcc/arm-apple-darwin9/4.0.1/include:$ASPEN_SDK/usr/include"
export CC=arm-apple-darwin9-gcc-4.0.1
export CXX=arm-apple-darwin9-g++-4.0.1
export CPP="cpp-4.0 -nostdinc -U__powerpc__ -U__i386__ -D__arm__"
export CXXPP="cpp-4.0 -nostdinc -U__powerpc__ -U__i386__ -D__arm__"
export LD=$CC
export LDFLAGS="-liconv -Wl,-syslibroot,$ASPEN_SDK"
}
unsetenv () {
export PATH=$ORIG_PATH
unset C_INCLUDE_PATH
unset CPLUS_INCLUDE_PATH
unset CC
unset CXX
unset CPP
unset CXXPP
unset LD
unset LDFLAGS
}
export mono_cv_uscore=yes
export cv_mono_sizeof_sunpath=104
export ac_cv_func_posix_getpwuid_r=yes
export ac_cv_func_backtrace_symbols=no
setenv
pushd eglib
./autogen.sh --host=arm-apple-darwin9
popd
./autogen.sh --disable-mcs-build --host=arm-apple-darwin9 --disable-shared-handles --with-tls=pthread --with-sigaltstack=no --with-glib=embedded --with-gc=none $@
./autogen.sh --disable-mcs-build --host=arm-apple-darwin9 --disable-shared-handles --with-tls=pthread --with-sigaltstack=no --with-glib=embedded $@
perl -pi -e 's/MONO_SIZEOF_SUNPATH 0/MONO_SIZEOF_SUNPATH 104/' config.h
perl -pi -e 's/#define HAVE_FINITE 1//' config.h
perl -pi -e 's/#define HAVE_MMAP 1//' config.h
make
unsetenv
pushd mono/monoburg
/usr/bin/gcc -o monoburg ./monoburg.c parser.c -I../.. -pthread -lm $GLIB_FLAGS
make
popd
setenv
make
+53 -80
View File
@@ -49,8 +49,6 @@ libmono_cflags=""
libmono_ldflags=""
AC_SUBST(libmono_cflags)
AC_SUBST(libmono_ldflags)
export_ldflags=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
AC_SUBST(export_ldflags)
# Variable to have relocatable .pc files (lib, or lib64)
reloc_libdir=`basename ${libdir}`
@@ -100,33 +98,7 @@ case "$host" in
libgc_threads=pthreads
with_sigaltstack=no
;;
# these flags will work for all versions of -STABLE
#
*-*-*freebsd4*)
platform_win32=no
if test "x$PTHREAD_CFLAGS" = "x"; then
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS"
libmono_cflags="-D_THREAD_SAFE"
else
CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS -DGC_FREEBSD_THREADS"
libmono_cflags="$PTHREAD_CFLAGS"
fi
if test "x$PTHREAD_LIBS" = "x"; then
LDFLAGS="$LDFLAGS -pthread"
libmono_ldflags="-pthread"
else
LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
libmono_ldflags="$PTHREAD_LIBS"
fi
CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD -DPLATFORM_BSD4"
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID, 1, [pthread_t is a pointer])
libdl=
libgc_threads=pthreads
# TLS isn't implemented at all on 4-STABLE
with_tls=pthread
;;
*-*-*freebsd5*)
*-*-*freebsd*)
platform_win32=no
if test "x$PTHREAD_CFLAGS" = "x"; then
CPPFLAGS="$CPPFLAGS -DGC_FREEBSD_THREADS"
@@ -142,36 +114,9 @@ case "$host" in
LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
libmono_ldflags="$PTHREAD_LIBS"
fi
CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD -DPLATFORM_BSD5"
CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD"
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID)
libdl=
with_sigaltstack=yes
libgc_threads=pthreads
# TLS is only partially implemented on 5-STABLE (compiler support
# but NOT library support)
#
with_tls=pthread
;;
*-*-*freebsd6*)
platform_win32=no
if test "x$PTHREAD_CFLAGS" = "x"; then
CPPFLAGS="$CPPFLAGS -DGC_FREEBSD_THREADS"
libmono_cflags=
else
CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS -DGC_FREEBSD_THREADS"
libmono_cflags="$PTHREAD_CFLAGS"
fi
if test "x$PTHREAD_LIBS" = "x"; then
LDFLAGS="$LDFLAGS -pthread"
libmono_ldflags="-pthread"
else
LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
libmono_ldflags="$PTHREAD_LIBS"
fi
CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD -DPLATFORM_BSD6"
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID)
AC_DEFINE(PTHREAD_POINTER_ID, 1, [pthread is a pointer])
libdl=
libgc_threads=pthreads
with_sigaltstack=yes
@@ -307,6 +252,9 @@ AM_PROG_LIBTOOL
# Use dolt (http://dolt.freedesktop.org/) instead of libtool for building.
DOLT
export_ldflags=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
AC_SUBST(export_ldflags)
# Test whenever ld supports -version-script
AC_PROG_LD
AC_PROG_LD_GNU
@@ -352,17 +300,7 @@ AC_CHECK_HEADERS(syslog.h)
# for mono/dis
AC_CHECK_HEADERS(wchar.h)
case "$host" in
*-*-*freebsd6*)
AC_CHECK_HEADERS(ieeefp.h)
;;
*-*-*freebsd*)
/* Only freebsd6 has a working ieeefp.h */
;;
*)
AC_CHECK_HEADERS(ieeefp.h)
;;
esac
AC_CHECK_HEADERS(ieeefp.h)
AC_MSG_CHECKING(for isinf)
AC_TRY_LINK([#include <math.h>], [
int f = isinf (1);
@@ -447,6 +385,10 @@ if test -d $srcdir/$olivedir; then
olive_topdir='$(top_srcdir)/'$olivedir
fi
# gettext: prepare the translation directories.
# we do not configure the full gettext, as we consume it dynamically from C#
AM_PO_SUBDIRS
AC_ARG_WITH([libgdiplus],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to NO)],
[], [with_libgdiplus=installed])
@@ -598,7 +540,7 @@ DISABLED_FEATURES=none
AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems.
LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug,
reflection_emit, large_code, logging, com, ssa, generics.],
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd.],
[
for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do
eval "mono_feature_disable_$feature='yes'"
@@ -617,6 +559,7 @@ fi
if test "x$mono_feature_disable_profiler" = "xyes"; then
AC_DEFINE(DISABLE_PROFILER, 1, [Disable default profiler support])
fi
AM_CONDITIONAL(DISABLE_PROFILER, test x$mono_feature_disable_profiler = xyes)
if test "x$mono_feature_disable_decimal" = "xyes"; then
AC_DEFINE(DISABLE_DECIMAL, 1, [Disable System.Decimal support])
@@ -632,6 +575,11 @@ fi
if test "x$mono_feature_disable_reflection_emit" = "xyes"; then
AC_DEFINE(DISABLE_REFLECTION_EMIT, 1, [Disable reflection emit support])
mono_feature_disable_reflection_emit_save=yes
fi
if test "x$mono_feature_disable_reflection_emit_save" = "xyes"; then
AC_DEFINE(DISABLE_REFLECTION_EMIT_SAVE, 1, [Disable assembly saving support in reflection emit])
fi
if test "x$mono_feature_disable_large_code" = "xyes"; then
@@ -654,6 +602,20 @@ if test "x$mono_feature_disable_generics" = "xyes"; then
AC_DEFINE(DISABLE_GENERICS, 1, [Disable generics support])
fi
if test "x$mono_feature_disable_attach" = "xyes"; then
AC_DEFINE(DISABLE_ATTACH, 1, [Disable agent attach support])
fi
if test "x$mono_feature_disable_jit" = "xyes"; then
AC_DEFINE(DISABLE_JIT, 1, [Disable the JIT, only full-aot mode will be supported by the runtime.])
fi
AM_CONDITIONAL(DISABLE_JIT, test x$mono_feature_disable_jit = xyes)
if test "x$mono_feature_disable_simd" = "xyes"; then
AC_DEFINE(DISABLE_SIMD, 1, [Disable SIMD intrinsics related optimizations.])
fi
AC_MSG_CHECKING(for visibility __attribute__)
AC_TRY_COMPILE([], [
void __attribute__ ((visibility ("hidden"))) doit (void) {}
@@ -1127,13 +1089,7 @@ if test x$platform_win32 = xno; then
# and libpthread does not exist
#
case "${host}" in
*-*-*freebsd4*)
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -pthread")
;;
*-*-*freebsd5*)
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -pthread")
;;
*-*-*freebsd6*)
*-*-*freebsd*)
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -pthread")
;;
*)
@@ -1311,6 +1267,9 @@ if test x$platform_win32 = xno; then
# pthread (first!) on Linux
AC_SEARCH_LIBS(sem_init, pthread rt posix4)
AC_SEARCH_LIBS(shm_open, pthread rt posix4)
AC_CHECK_FUNCS(shm_open)
dnl ********************************
dnl *** Checks for timezone stuff **
dnl ********************************
@@ -1480,12 +1439,17 @@ if test x$platform_win32 = xno; then
#include <unistd.h>])
AC_CHECK_TYPES([suseconds_t], [AC_DEFINE(HAVE_SUSECONDS_T)], ,
[#include <sys/time.h>])
AC_CHECK_TYPES([struct flock], [AC_DEFINE(HAVE_STRUCT_FLOCK)], ,
[#include <unistd.h>
#include <fcntl.h>])
AC_CHECK_TYPES([struct pollfd], [AC_DEFINE(HAVE_STRUCT_POLLFD)], ,
[#include <sys/poll.h>])
AC_CHECK_TYPES([struct stat], [AC_DEFINE(HAVE_STRUCT_STAT)], ,
[#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>])
AC_CHECK_TYPES([struct timespec], [AC_DEFINE(HAVE_STRUCT_TIMESPEC)], ,
[#include <time.h>])
AC_CHECK_TYPES([struct timeval], [AC_DEFINE(HAVE_STRUCT_TIMEVAL)], ,
[#include <sys/time.h>
#include <sys/types.h>
@@ -1693,10 +1657,14 @@ AM_CONDITIONAL(ENABLE_NUNIT_TESTS, [test x$enable_nunit_tests = xyes])
AC_MSG_CHECKING([if big-arrays are to be enabled])
AC_ARG_ENABLE(big-arrays, [ --enable-big-arrays Enable the allocation and indexing of arrays greater than Int32.MaxValue], enable_big_arrays=$enableval, enable_big_arrays=no)
AC_MSG_RESULT($enable_big_arrays)
if test "x$enable_big_arrays" = "xyes" ; then
if test "x$ac_cv_sizeof_void_p" = "x8"; then
AC_DEFINE(MONO_BIG_ARRAYS,1,[Enable the allocation and indexing of arrays greater than Int32.MaxValue])
else
AC_MSG_ERROR([The allocation and indexing of arrays greater than Int32.MaxValue is not supported on this platform.])
fi
fi
AC_MSG_RESULT($enable_big_arrays)
dnl **************
dnl *** DTRACE ***
@@ -2207,6 +2175,8 @@ else
fi
AC_SUBST(mono_cfg_dir)
AC_CONFIG_FILES([po/mcs/Makefile.in])
AC_CONFIG_FILES([runtime/mono-wrapper],[chmod +x runtime/mono-wrapper])
AC_CONFIG_FILES([runtime/monodis-wrapper],[chmod +x runtime/monodis-wrapper])
@@ -2281,14 +2251,13 @@ AC_CONFIG_COMMANDS([runtime/etc/mono/2.0/Browsers/Compat.browser],
],[LN_S='$LN_S'])
if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet], [find mono libgc support -name Makefile -exec $shell $srcdir/scripts/patch-quiet.sh {} \;], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet], [for i in `find mono libgc support -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do $srcdir/scripts/patch-quiet.sh $i; done], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi
AC_OUTPUT([
Makefile
mono-uninstalled.pc
scripts/mono-nunit.pc
scripts/mono-find-provides
scripts/mono-find-requires
mono/Makefile
@@ -2337,6 +2306,9 @@ data/net_2_0/Browsers/Makefile
data/mint.pc
data/mono.pc
data/mono-cairo.pc
data/mono-nunit.pc
data/mono-options.pc
data/monodoc.pc
data/dotnet.pc
data/dotnet35.pc
data/wcf.pc
@@ -2349,6 +2321,7 @@ tools/Makefile
tools/locale-builder/Makefile
runtime/Makefile
msvc/Makefile
po/Makefile
])
if test x$platform_win32 = xyes; then
+6 -6
View File
@@ -5,22 +5,22 @@ monodir = $(sysconfdir)/mono
EXTRA_DIST = \
config.in \
browscap.ini mono.supp mono.d README \
mono.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in \
mono-cairo.pc.in cecil.pc.in smcs.pc.in
mono.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in smcs.pc.in
pkgconfigdir = $(libdir)/pkgconfig
if JIT_SUPPORTED
if INTERP_SUPPORTED
pkgconfig_DATA= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-cairo.pc cecil.pc smcs.pc
pkgconfig_DATA= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc
else
pkgconfig_DATA= mono.pc dotnet.pc dotnet35.pc wcf.pc mono-cairo.pc cecil.pc smcs.pc
pkgconfig_DATA= mono.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc
endif
else
pkgconfig_DATA= mint.pc mono-cairo.pc cecil.pc smcs.pc
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc
endif
DISTCLEANFILES= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-cairo.pc cecil.pc smcs.pc
DISTCLEANFILES= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc
mono_DATA = config \
browscap.ini
File renamed without changes.
+7
View File
@@ -0,0 +1,7 @@
prefix=${pcfiledir}/../..
assemblies_dir=${prefix}/lib/mono-options
Sources=${assemblies_dir}/Options.cs
Name: Mono.Options
Description: Command Line Parsing Library
Version: 0.2.1
+9
View File
@@ -0,0 +1,9 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@prefix@/lib
sourcesdir=${libdir}/monodoc/sources
Name: Monodoc
Description: Monodoc - Mono Documentation Tools
Version: @VERSION@
Libs: /r:${prefix}/lib/mono/monodoc/monodoc.dll
+36
View File
@@ -1,3 +1,39 @@
2008-10-09 Gonzalo Paniagua Javier <[email protected]>
* web.config: default values for httpRuntime are different in 2.0
2008-10-09 Marek Habersack <[email protected]>
* web.config: added the default monoSettings section which works around
an incompatibility between mcs and csc, mentioned in bug #433806
* machine.config: added definition of the monoSettings section to
the system.web group
2008-10-06 Marek Habersack <[email protected]>
* machine.config: added entries to ignore the mobileControls and
deviceFilters sections.
2008-09-02 Marek Habersack <[email protected]>
* web.config: removed System.Web.Extensions.dll from the assemblies
(reverting r112073) - it would break all the ASP.NET applications
which use System.Web.Extensions other than 3.5.0.0
2008-09-06 Daniel Morgan <[email protected]>
* machine.config: added Mono.Data.SybaseClient
to DbProviderFactories section.
2008-09-02 Atsushi Enomoto <[email protected]>
* web.config: added System.Web.Extensions.dll to assemblies.
2008-08-28 Zoltan Varga <[email protected]>
* machine.config: Fix syntax error.
2008-03-23 Dean Brettle <[email protected]>
* Makefile.am: added Browsers/Compat.browser
+7 -1
View File
@@ -22,7 +22,7 @@
<section name="anonymousIdentification" type="System.Web.Configuration.AnonymousIdentificationSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authentication" type="System.Web.Configuration.AuthenticationSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authorization" type="System.Web.Configuration.AuthorizationSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="browserCaps" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />/>
<section name="browserCaps" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="clientTarget" type="System.Web.Configuration.ClientTargetSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="compilation" type="System.Web.Configuration.CompilationSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="customErrors" type="System.Web.Configuration.CustomErrorsSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
@@ -37,6 +37,8 @@
<section name="identity" type="System.Web.Configuration.IdentitySection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="machineKey" type="System.Web.Configuration.MachineKeySection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="membership" type="System.Web.Configuration.MembershipSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mobileControls" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="deviceFilters" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="pages" type="System.Web.Configuration.PagesSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="processModel" type="System.Web.Configuration.ProcessModelSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" allowLocation="false" />
<section name="profile" type="System.Web.Configuration.ProfileSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
@@ -58,6 +60,7 @@
<section name="outputCacheSettings" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="sqlCacheDependency" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
<section name="monoSettings" type="System.Web.Configuration.MonoSettingsSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</sectionGroup>
<sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="authenticationModules" type="System.Net.Configuration.AuthenticationModulesSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
@@ -181,6 +184,9 @@
<add name="SqlClient Data Provider" invariant="System.Data.SqlClient"
description=".Net Framework Data Provider for SqlServer"
type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="Sybase Data Provider" invariant="Mono.Data.SybaseClient"
description=".Net Framework Data Provider for Sybase"
type="Mono.Data.SybaseClient.SybaseClientFactory, Mono.Data.SybaseClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
</DbProviderFactories>
</system.data>
+10 -2
View File
@@ -3,11 +3,19 @@
<configuration>
<system.web>
<monoSettings>
<compilersCompatibility>
<compiler language="c#;cs;csharp" extension=".cs" compilerOptions="/nowarn:0169"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilersCompatibility>
</monoSettings>
<authorization>
<allow users="*" />
</authorization>
<httpHandlers>
<add verb="*" path="Trace.axd" type="System.Web.Handlers.TraceHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
@@ -115,12 +123,12 @@
<add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" />
</buildProviders>
</compilation>
<httpRuntime executionTimeout="90"
<httpRuntime executionTimeout="110"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100" />
appRequestQueueLimit="5000" />
<clientTarget>
<add alias="ie5" userAgent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)" />
<add alias="ie4" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
+27
View File
@@ -0,0 +1,27 @@
Call Sites
Extracted from emails from Paolo Molaro
There are 3 basic different kinds of call sites:
1) normal calls:
call relative_displacement
2) virtual calls:
call *positive_offset(%register)
3) interface calls:
mov constant, %imt_register
call *negative_offset(%register)
The above is what happens on x86 and amd64, with different values of
%imt_register for each arch (this register is a constant, but it could
change with different mono builds, it should be likely one of
constants the runtime comunicates to the debugger). %register can
change depending on the callsite based on the register allocator
choices. Note that the constant for the interface calls won't
necessarily be a MonoMethod address: this could change in the future
to a simple number.
In all the 3 cases the JIT trampolines will need to inspect the call
site, but only in the first case the call site will be changed.
+45 -17
View File
@@ -9,15 +9,30 @@ Generic code sharing
The generic class init trampoline is very similar to the class init
trampoline, with the exception that the VTable of the class to be
inited is passed in a register, MONO_ARCH_VTABLE_REG. That can be the
same as the IMT register.
inited is passed in a register, MONO_ARCH_VTABLE_REG. That register
can be the same as the IMT register.
The call to the generic class init trampoline is never patched because
the VTable is not constant - it depends on the type arguments of the
class/method doing the call to the trampoline. For that reason, the
trampoline needs a fast path for the case that the class is already
inited. See tramp-x86.c for how to portably figure out the number of
the bit in the bit-field that needs to be checked.
inited, i.e. the trampoline needs to check the initialized bit of the
MonoVTable and immediately return if it is set. See tramp-x86.c for
how to portably figure out the number of the bit in the bit-field that
needs to be checked.
Since the MONO_ARCH_VTABLE_REG is needed by the generic class init
trampoline function (in mini-trampolines.c) it needs to be saved by
the generic trampoline code in the register save block which is passed
to the trampoline. This also applies to the RGCTX fetch trampoline
(see below).
Like the normal class init trampoline, the result of the generic class
init trampoline function is not a pointer to code that needs to be
jumped to. Instead, just like for the class init trampoline, the
generic trampoline code must return to the caller instead of jumping
to the returned value. The same applies for the RGCTX fetch
trampoline (see below).
** RGCTX register
@@ -47,13 +62,14 @@ ends in the callee prologue when it is either discarded or stored
into a local variable.
It's better to avoid registers used for argument passing for the RGCTX
as it would make the code dealing with calling conventions code a lot harder.
as it would make the code dealing with calling conventions code a lot
harder.
** Method prologue
Generic shared code that have a RGCTX receive it in RGCTX_REG. There must be
a check in mono_arch_emit_prolog for MonoCompile::rgctx_var and if set
store it. See mini-x86.c for reference.
Generic shared code that have a RGCTX receive it in RGCTX_REG. There
must be a check in mono_arch_emit_prolog for MonoCompile::rgctx_var
and if set store it. See mini-x86.c for reference.
** Dealing with types
@@ -88,14 +104,14 @@ the layout of a RGCTX:
.
.
For fetching a slot from a RGCTX the trampoline is passed a pointer to
the VTable. From there it has to fetch the pointer to the RGCTX,
which might be null. Then it has to traverse the correct number of
"next" links, each of which might be NULL. Arriving at the right
array it needs to fetch the slot, which might also be NULL. If any of
the NULL cases, the trampoline must transition to unmanaged code to
potentially setup the RGCTX and fill the slot. Here is pseudo-code
for fetching slot 11:
For fetching a slot from a RGCTX the trampoline is passed a pointer
(as a normal integer argument) to the VTable. From there it has to
fetch the pointer to the RGCTX, which might be null. Then it has to
traverse the correct number of "next" links, each of which might be
NULL. Arriving at the right array it needs to fetch the slot, which
might also be NULL. If any of the NULL cases, the trampoline must
transition to unmanaged code to potentially setup the RGCTX and fill
the slot. Here is pseudo-code for fetching slot 11:
; vtable ptr in r1
; fetch RGCTX array 0
@@ -142,6 +158,18 @@ a trampoline for an MRGCTX is needed, as opposed to one for a RGCTX.
Use MONO_RGCTX_SLOT_INDEX to get the index of the slot (like 2 for
"slot 2" as above).
The unmanaged fetch code is yet another trampoline created via
mono_arch_create_specific_trampoline(), of type
MONO_TRAMPOLINE_RGCTX_LAZY_FETCH. It's given the slot number as the
trampoline argument. In addition, the pointer to the VTable/MRGCTX is
passed in MONO_ARCH_VTABLE_REG (like the VTable to the generic class
init trampoline - see above).
Like the class init and generic class init trampolines, the RGCTX
fetch trampoline code doesn't return code that must be jumped to, so,
like for those trampolines (see above), the generic trampoline code
must do a normal return instead.
* Getting generics information about a stack frame
+56
View File
@@ -1,3 +1,59 @@
2008-10-17 Miguel de Icaza <[email protected]>
* Allow types to be defined on the eglib-config.h file, that could
be a platform specific generated type file.
* gtimer.c: split functionality in platforms.
2008-10-13 Bill Holmes <[email protected]>
* src/gdate-win32.c : Fix compiler errors for MSVC.
* src/gpath.c : Fix compiler errors for MSVC.
* src/gfile-posix.c : Adding declaration for mkstemp for the win 32
implementation in gfile-win32.c.
Contributed under MIT/X11 license.
2008-10-11 Miguel de Icaza <[email protected]>
* gtimer.c: Same process.
* src/glib.h: Move g_strdup here, to consolidate all allocations
in this header, will help for merging the allocation work later.
* src/gpattern.c (compile_pattern): From Unity, use -1 in the enum
for MatchType.
* src/gpath.c: Split this one as well.
* src/gmodule-win32.c, src/gmisc-unix.c, src/gmisc-win32.c,
src/gmodule-unix.c: split functionality in platforms.
* src/goutput.c (g_logv): On some platforms, before we abort we
want to flush the stdout/stderr.
2008-10-10 Miguel de Icaza <[email protected]>
* Split functionality that is operating system specific into
-win32.c, -unix.c and -posix.c
* Use g_malloc everywhere, and g_free, so that these can be easily
overwritten consistently.
2008-09-16 Bill Holmes <[email protected]>
* src/gunicode.c : Fix a warning.
Contributed under MIT/X11 license.
2008-08-28 Bill Holmes <[email protected]>
* src/glib.h : Adding a c++ definition for G_BEGIN_DECLS.
Contributed under MIT/X11 license.
2008-08-27 Bill Holmes <[email protected]>
* glib.h, gunicode.c : Fixing some compiler errors.
+19 -5
View File
@@ -18,17 +18,31 @@ no separate files, please try to follow the convetions in the source code
Please read the README in tests/
* Features
The source code is designed to allow for different operating
system builds of the eglib code.
Files in src that:
* Have a plain name: are cross platform, and should work on
every operating system.
* That end in -unix.c: These files contain Unix specific code.
* That end in -win32.c: These files contain Win32 specific code.
* That end in -posix.c: Will work on both Windows and Unix,
but should not be included for other operating systems.
* Plans: short and long term.
The short term plans for eglib is to allow Mono to optionally
build with it instead of using glib, gmodule and gthread, but
the default build will continue to be done against glib 2.0.
Our first target is to make this work with Linux, other
platforms will follow after that.
In the long-term (Mono 2.0) we are considering dropping glib
as a dependency, considering that Mono requires a modern Unix
In the long-term we are considering dropping glib as a
dependency, considering that Mono requires a modern Unix
system to run anyways (for its thread support) it would allow
us to fix some of the glib API limitations we have to live
with (explicit thread support for example), rework the API to
+1 -1
View File
@@ -2,7 +2,7 @@ AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(eglib,0.1)
AM_INIT_AUTOMAKE(eglib,0.2)
AM_MAINTAINER_MODE
AC_PROG_CC
+18 -6
View File
@@ -1,5 +1,19 @@
noinst_LTLIBRARIES = libeglib.la
win_files = \
gdate-win32.c gdir-win32.c gfile-win32.c gmisc-win32.c \
gmodule-win32.c gtimer-win32.c
unix_files = \
gdate-unix.c gdir-unix.c gfile-unix.c gmisc-unix.c \
gmodule-unix.c gtimer-unix.c
if PLATFORM_WIN32
os_files = $(win_files)
else
os_files = $(unix_files)
endif
libeglib_la_SOURCES = \
eglib-config.h \
sort.frag.h \
@@ -8,7 +22,6 @@ libeglib_la_SOURCES = \
gerror.c \
ghashtable.c \
gmem.c \
gmodule.c \
gmodule.h \
goutput.c \
gstr.c \
@@ -16,19 +29,18 @@ libeglib_la_SOURCES = \
gstring.c \
gptrarray.c \
glist.c \
gmisc.c \
gqueue.c \
gpath.c \
gshell.c \
gspawn.c \
gtimer.c \
gdate.c \
gfile.c \
gfile-posix.c \
gpattern.c \
gdir.c \
gmarkup.c \
gutf8.c \
gunicode.c
gunicode.c \
$(os_files)
libeglib_la_CFLAGS = -Wall -D_FORTIFY_SOURCE=2
@@ -42,4 +54,4 @@ endif
MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = eglib-config.h.in
EXTRA_DIST = eglib-config.h.in $(win_files) $(unix_files)
+1 -13
View File
@@ -1,5 +1,5 @@
/*
* Date and time utility functions.
* gdate-unix.c: Date and time utility functions.
*
* Author:
* Gonzalo Paniagua Javier ([email protected]
@@ -28,28 +28,16 @@
#include <stdio.h>
#include <glib.h>
#ifdef G_OS_WIN32
#include <winsock2.h>
#else
#include <sys/time.h>
#endif
void
g_get_current_time (GTimeVal *result)
{
#ifdef G_OS_WIN32
long int l = GetTickCount();
g_return_if_fail (result != NULL);
result->tv_sec = l / 1000;
result->tv_usec = (l % 1000) * 1000;
#else
struct timeval tv;
g_return_if_fail (result != NULL);
gettimeofday (&tv, NULL);
result->tv_sec = tv.tv_sec;
result->tv_usec = tv.tv_usec;
#endif
}
+44
View File
@@ -0,0 +1,44 @@
/*
* gdate-win32.c: Date and time utility functions.
*
* Author:
* Gonzalo Paniagua Javier ([email protected]
*
* (C) 2006 Novell, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <stdio.h>
#include <glib.h>
#include <winsock2.h>
void
g_get_current_time (GTimeVal *result)
{
long int l;
g_return_if_fail (result != NULL);
l = GetTickCount();
g_return_if_fail (result != NULL);
result->tv_sec = l / 1000;
result->tv_usec = (l % 1000) * 1000;
}
+94
View File
@@ -0,0 +1,94 @@
/*
* Directory utility functions.
*
* Author:
* Gonzalo Paniagua Javier ([email protected])
*
* (C) 2006 Novell, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
struct _GDir {
DIR *dir;
};
GDir *
g_dir_open (const gchar *path, guint flags, GError **error)
{
GDir *dir;
g_return_val_if_fail (path != NULL, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
(void) flags; /* this is not used */
dir = g_new (GDir, 1);
dir->dir = opendir (path);
if (dir->dir == NULL) {
if (error) {
gint err = errno;
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), strerror (err));
}
g_free (dir);
return NULL;
}
return dir;
}
const gchar *
g_dir_read_name (GDir *dir)
{
struct dirent *entry;
g_return_val_if_fail (dir != NULL && dir->dir != NULL, NULL);
do {
entry = readdir (dir->dir);
if (entry == NULL)
return NULL;
} while ((strcmp (entry->d_name, ".") == 0) || (strcmp (entry->d_name, "..") == 0));
return entry->d_name;
}
void
g_dir_rewind (GDir *dir)
{
g_return_if_fail (dir != NULL && dir->dir != NULL);
rewinddir (dir->dir);
}
void
g_dir_close (GDir *dir)
{
g_return_if_fail (dir != NULL && dir->dir != 0);
closedir (dir->dir);
dir->dir = NULL;
g_free (dir);
}
+147
View File
@@ -0,0 +1,147 @@
/*
* Directory utility functions.
*
* Author:
* Gonzalo Paniagua Javier ([email protected])
*
* (C) 2006 Novell, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <io.h>
#include <winsock2.h>
struct _GDir {
HANDLE handle;
gchar* current;
gchar* next;
};
GDir *
g_dir_open (const gchar *path, guint flags, GError **error)
{
GDir *dir;
gunichar2* path_utf16;
gunichar2* path_utf16_search;
WIN32_FIND_DATA find_data;
g_return_val_if_fail (path != NULL, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
dir = g_new0 (GDir, 1);
path_utf16 = u8to16 (path);
dir->handle = FindFirstFile (path_utf16, &find_data);
if (dir->handle == INVALID_HANDLE_VALUE) {
if (error) {
gint err = errno;
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), strerror (err));
}
g_free (dir);
g_free (path_utf16);
return NULL;
}
/* now get files */
FindClose (dir->handle);
path_utf16_search = g_malloc ((wcslen(path_utf16) + 3)*sizeof(gunichar2));
wcscpy (path_utf16_search, path_utf16);
wcscat (path_utf16_search, L"\\*");
dir->handle = FindFirstFile (path_utf16_search, &find_data);
g_free (path_utf16_search);
while ((wcscmp (find_data.cFileName, L".") == 0) || (wcscmp (find_data.cFileName, L"..") == 0)) {
if (!FindNextFile (dir->handle, &find_data)) {
if (error) {
gint err = errno;
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), strerror (err));
}
g_free (dir);
g_free (path_utf16);
return NULL;
}
}
dir->current = NULL;
dir->next = u16to8 (find_data.cFileName);
g_free (path_utf16);
return dir;
}
const gchar *
g_dir_read_name (GDir *dir)
{
WIN32_FIND_DATA find_data;
g_return_val_if_fail (dir != NULL && dir->handle != 0, NULL);
if (dir->current)
g_free (dir->current);
dir->current = NULL;
dir->current = dir->next;
if (!dir->current)
return NULL;
dir->next = NULL;
do {
if (!FindNextFile (dir->handle, &find_data)) {
dir->next = NULL;
return dir->current;
}
} while ((wcscmp (find_data.cFileName, L".") == 0) || (wcscmp (find_data.cFileName, L"..") == 0));
dir->next = u16to8 (find_data.cFileName);
return dir->current;
}
void
g_dir_rewind (GDir *dir)
{
}
void
g_dir_close (GDir *dir)
{
g_return_if_fail (dir != NULL && dir->handle != 0);
if (dir->current)
g_free (dir->current);
dir->current = NULL;
if (dir->next)
g_free (dir->next);
dir->next = NULL;
FindClose (dir->handle);
dir->handle = 0;
g_free (dir);
}
+146
View File
@@ -0,0 +1,146 @@
/*
* File utility functions.
*
* Author:
* Gonzalo Paniagua Javier ([email protected])
*
* (C) 2006 Novell, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#ifdef _MSC_VER
int mkstemp (char *tmp_template);
#endif
#ifndef O_LARGEFILE
#define OPEN_FLAGS (O_RDONLY)
#else
#define OPEN_FLAGS (O_RDONLY | O_LARGEFILE)
#endif
gboolean
g_file_get_contents (const gchar *filename, gchar **contents, gsize *length, GError **error)
{
gchar *str;
int fd;
struct stat st;
long offset;
int nread;
g_return_val_if_fail (filename != NULL, FALSE);
g_return_val_if_fail (contents != NULL, FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
*contents = NULL;
if (length)
*length = 0;
fd = open (filename, OPEN_FLAGS);
if (fd == -1) {
if (error != NULL) {
int err = errno;
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), "Error opening file");
}
return FALSE;
}
if (fstat (fd, &st) != 0) {
if (error != NULL) {
int err = errno;
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), "Error in fstat()");
}
close (fd);
return FALSE;
}
str = g_malloc (st.st_size + 1);
offset = 0;
do {
nread = read (fd, str + offset, st.st_size - offset);
if (nread > 0) {
offset += nread;
}
} while ((nread > 0 && offset < st.st_size) || (nread == -1 && errno == EINTR));
close (fd);
str [st.st_size] = '\0';
if (length) {
*length = st.st_size;
}
*contents = str;
return TRUE;
}
gint
g_file_open_tmp (const gchar *tmpl, gchar **name_used, GError **error)
{
const static gchar *default_tmpl = ".XXXXXX";
gchar *t;
gint fd;
size_t len;
g_return_val_if_fail (error == NULL || *error == NULL, -1);
if (tmpl == NULL)
tmpl = default_tmpl;
if (strchr (tmpl, G_DIR_SEPARATOR) != NULL) {
if (error) {
*error = g_error_new (G_LOG_DOMAIN, 24, "Template should not have any " G_DIR_SEPARATOR_S);
}
return -1;
}
len = strlen (tmpl);
if (len < 6 || strcmp (tmpl + len - 6, "XXXXXX")) {
if (error) {
*error = g_error_new (G_LOG_DOMAIN, 24, "Template should end with XXXXXX");
}
return -1;
}
t = g_build_filename (g_get_tmp_dir (), tmpl, NULL);
fd = mkstemp (t);
if (fd == -1) {
if (error) {
int err = errno;
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), "Error in mkstemp()");
}
g_free (t);
return -1;
}
if (name_used) {
*name_used = t;
} else {
g_free (t);
}
return fd;
}
+84
View File
@@ -0,0 +1,84 @@
/*
* File utility functions.
*
* Author:
* Gonzalo Paniagua Javier ([email protected])
*
* (C) 2006 Novell, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
gboolean
g_file_test (const gchar *filename, GFileTest test)
{
struct stat st;
gboolean have_stat;
if (filename == NULL || test == 0)
return FALSE;
have_stat = FALSE;
if ((test & G_FILE_TEST_EXISTS) != 0) {
if (access (filename, F_OK) == 0)
return TRUE;
}
if ((test & G_FILE_TEST_IS_EXECUTABLE) != 0) {
if (access (filename, X_OK) == 0)
return TRUE;
}
if ((test & G_FILE_TEST_IS_SYMLINK) != 0) {
have_stat = (lstat (filename, &st) == 0);
if (have_stat && S_ISLNK (st.st_mode))
return TRUE;
}
if ((test & G_FILE_TEST_IS_REGULAR) != 0) {
if (!have_stat)
have_stat = (stat (filename, &st) == 0);
if (have_stat && S_ISREG (st.st_mode))
return TRUE;
}
if ((test & G_FILE_TEST_IS_DIR) != 0) {
if (!have_stat)
have_stat = (stat (filename, &st) == 0);
if (have_stat && S_ISDIR (st.st_mode))
return TRUE;
}
return FALSE;
}
+113
View File
@@ -0,0 +1,113 @@
/*
* File utility functions.
*
* Author:
* Gonzalo Paniagua Javier ([email protected])
*
* (C) 2006 Novell, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef G_OS_WIN32
#include <io.h>
#define open _open
#define S_ISREG(x) ((x & _S_IFMT) == _S_IFREG)
#define S_ISDIR(x) ((x & _S_IFMT) == _S_IFDIR)
#endif
int mkstemp (char *tmp_template)
{
int fd;
gunichar2* utf16_template;
utf16_template = u8to16 (tmp_template);
fd = -1;
utf16_template = _wmktemp( utf16_template);
if (utf16_template && *utf16_template) {
/* FIXME: _O_TEMPORARY causes file to disappear on close causing a test to fail */
fd = _wopen( utf16_template, _O_BINARY | _O_CREAT /*| _O_TEMPORARY*/ | _O_EXCL, _S_IREAD | _S_IWRITE);
}
sprintf (tmp_template + strlen (tmp_template) - 6, "%S", utf16_template + wcslen (utf16_template) - 6);
g_free (utf16_template);
return fd;
}
#ifdef _MSC_VER
#pragma warning(disable:4701)
#endif
gboolean
g_file_test (const gchar *filename, GFileTest test)
{
struct _stat64 stat;
int ret = 0;
gunichar2* utf16_filename = NULL;
if (filename == NULL || test == 0)
return FALSE;
utf16_filename = u8to16 (filename);
ret = _wstati64 (utf16_filename, &stat);
g_free (utf16_filename);
if ((test & G_FILE_TEST_EXISTS) != 0) {
if (ret == 0)
return TRUE;
}
if (ret != 0)
return FALSE;
if ((test & G_FILE_TEST_IS_EXECUTABLE) != 0) {
if (stat.st_mode & _S_IEXEC)
return TRUE;
}
if ((test & G_FILE_TEST_IS_REGULAR) != 0) {
if (stat.st_mode & _S_IFREG)
return TRUE;
}
if ((test & G_FILE_TEST_IS_DIR) != 0) {
if (stat.st_mode & _S_IFDIR)
return TRUE;
}
/* make this last in case it is OR'd with something else */
if ((test & G_FILE_TEST_IS_SYMLINK) != 0) {
return FALSE;
}
return FALSE;
}
-232
View File
@@ -28,22 +28,7 @@
#include <config.h>
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifdef G_OS_WIN32
#include <io.h>
#define open _open
#define S_ISREG(x) ((x & _S_IFMT) == _S_IFREG)
#define S_ISDIR(x) ((x & _S_IFMT) == _S_IFDIR)
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
GFileError
g_file_error_from_errno (gint err_no)
@@ -106,221 +91,4 @@ g_file_error_from_errno (gint err_no)
}
}
#ifndef O_LARGEFILE
#define OPEN_FLAGS (O_RDONLY)
#else
#define OPEN_FLAGS (O_RDONLY | O_LARGEFILE)
#endif
gboolean
g_file_get_contents (const gchar *filename, gchar **contents, gsize *length, GError **error)
{
gchar *str;
int fd;
struct stat st;
long offset;
int nread;
g_return_val_if_fail (filename != NULL, FALSE);
g_return_val_if_fail (contents != NULL, FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
*contents = NULL;
if (length)
*length = 0;
fd = open (filename, OPEN_FLAGS);
if (fd == -1) {
if (error != NULL) {
int err = errno;
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), "Error opening file");
}
return FALSE;
}
if (fstat (fd, &st) != 0) {
if (error != NULL) {
int err = errno;
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), "Error in fstat()");
}
close (fd);
return FALSE;
}
str = g_malloc (st.st_size + 1);
offset = 0;
do {
nread = read (fd, str + offset, st.st_size - offset);
if (nread > 0) {
offset += nread;
}
} while ((nread > 0 && offset < st.st_size) || (nread == -1 && errno == EINTR));
close (fd);
str [st.st_size] = '\0';
if (length) {
*length = st.st_size;
}
*contents = str;
return TRUE;
}
#ifdef _MSC_VER
int mkstemp (char *tmp_template)
{
int fd;
gunichar2* utf16_template;
utf16_template = u8to16 (tmp_template);
fd = -1;
utf16_template = _wmktemp( utf16_template);
if (utf16_template && *utf16_template) {
/* FIXME: _O_TEMPORARY causes file to disappear on close causing a test to fail */
fd = _wopen( utf16_template, _O_BINARY | _O_CREAT /*| _O_TEMPORARY*/ | _O_EXCL, _S_IREAD | _S_IWRITE);
}
sprintf (tmp_template + strlen (tmp_template) - 6, "%S", utf16_template + wcslen (utf16_template) - 6);
g_free (utf16_template);
return fd;
}
#endif
gint
g_file_open_tmp (const gchar *tmpl, gchar **name_used, GError **error)
{
const static gchar *default_tmpl = ".XXXXXX";
gchar *t;
gint fd;
size_t len;
g_return_val_if_fail (error == NULL || *error == NULL, -1);
if (tmpl == NULL)
tmpl = default_tmpl;
if (strchr (tmpl, G_DIR_SEPARATOR) != NULL) {
if (error) {
*error = g_error_new (G_LOG_DOMAIN, 24, "Template should not have any " G_DIR_SEPARATOR_S);
}
return -1;
}
len = strlen (tmpl);
if (len < 6 || strcmp (tmpl + len - 6, "XXXXXX")) {
if (error) {
*error = g_error_new (G_LOG_DOMAIN, 24, "Template should end with XXXXXX");
}
return -1;
}
t = g_build_filename (g_get_tmp_dir (), tmpl, NULL);
fd = mkstemp (t);
if (fd == -1) {
if (error) {
int err = errno;
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), "Error in mkstemp()");
}
g_free (t);
return -1;
}
if (name_used) {
*name_used = t;
} else {
g_free (t);
}
return fd;
}
#ifdef _MSC_VER
#pragma warning(disable:4701)
#endif
gboolean
g_file_test (const gchar *filename, GFileTest test)
{
#ifdef G_OS_WIN32
struct _stat64 stat;
int ret = 0;
gunichar2* utf16_filename = NULL;
if (filename == NULL || test == 0)
return FALSE;
utf16_filename = u8to16 (filename);
ret = _wstati64 (utf16_filename, &stat);
g_free (utf16_filename);
if ((test & G_FILE_TEST_EXISTS) != 0) {
if (ret == 0)
return TRUE;
}
if (ret != 0)
return FALSE;
if ((test & G_FILE_TEST_IS_EXECUTABLE) != 0) {
if (stat.st_mode & _S_IEXEC)
return TRUE;
}
if ((test & G_FILE_TEST_IS_REGULAR) != 0) {
if (stat.st_mode & _S_IFREG)
return TRUE;
}
if ((test & G_FILE_TEST_IS_DIR) != 0) {
if (stat.st_mode & _S_IFDIR)
return TRUE;
}
/* make this last in case it is OR'd with something else */
if ((test & G_FILE_TEST_IS_SYMLINK) != 0) {
return FALSE;
}
return FALSE;
#else
struct stat st;
gboolean have_stat;
if (filename == NULL || test == 0)
return FALSE;
have_stat = FALSE;
if ((test & G_FILE_TEST_EXISTS) != 0) {
if (access (filename, F_OK) == 0)
return TRUE;
}
if ((test & G_FILE_TEST_IS_EXECUTABLE) != 0) {
if (access (filename, X_OK) == 0)
return TRUE;
}
if ((test & G_FILE_TEST_IS_SYMLINK) != 0) {
have_stat = (lstat (filename, &st) == 0);
if (have_stat && S_ISLNK (st.st_mode))
return TRUE;
}
if ((test & G_FILE_TEST_IS_REGULAR) != 0) {
if (!have_stat)
have_stat = (stat (filename, &st) == 0);
if (have_stat && S_ISREG (st.st_mode))
return TRUE;
}
if ((test & G_FILE_TEST_IS_DIR) != 0) {
if (!have_stat)
have_stat = (stat (filename, &st) == 0);
if (have_stat && S_ISDIR (st.st_mode))
return TRUE;
}
return FALSE;
#endif
}
+9 -1
View File
@@ -38,6 +38,7 @@ typedef const void * gconstpointer;
typedef char gchar;
typedef unsigned char guchar;
#if !G_TYPES_DEFINED
#ifdef _MSC_VER
typedef __int8 gint8;
typedef unsigned __int8 guint8;
@@ -64,6 +65,8 @@ typedef float gfloat;
typedef double gdouble;
typedef uint16_t gunichar2;
#endif
#endif
/*
* Macros
@@ -93,8 +96,13 @@ typedef uint16_t gunichar2;
#define EGLIB_TOSTRING(x) EGLIB_STRINGIFY(x)
#define G_STRLOC __FILE__ ":" EGLIB_TOSTRING(__LINE__) ":"
#ifdef __cplusplus
#define G_BEGIN_DECLS extern "C" {
#define G_END_DECLS }
#else
#define G_BEGIN_DECLS
#define G_END_DECLS
#endif
#define G_CONST_RETURN const
@@ -117,7 +125,7 @@ static inline gpointer g_malloc0 (gsize x) {if (x) return calloc(1,x); else retu
#define g_alloca(size) alloca (size)
gpointer g_memdup (gconstpointer mem, guint byte_size);
gchar *g_strdup (const gchar *str);
static inline gchar *g_strdup (const gchar *str) { if (str) {return strdup (str);} return NULL; }
typedef struct {
gpointer (*malloc) (gsize n_bytes);
+11 -11
View File
@@ -124,7 +124,7 @@ parse_value (const char *p, const char *end, char **value, GError **error)
return end;
l = (int)(p - start);
p++;
*value = malloc (l + 1);
*value = g_malloc (l + 1);
if (*value == NULL)
return end;
strncpy (*value, start, l);
@@ -144,7 +144,7 @@ parse_name (const char *p, const char *end, char **value)
return end;
l = (int)(p - start);
*value = malloc (l + 1);
*value = g_malloc (l + 1);
if (*value == NULL)
return end;
strncpy (*value, start, l);
@@ -183,24 +183,24 @@ parse_attributes (const char *p, const char *end, char ***names, char ***values,
p = skip_space (p, end);
if (p == end){
free (name);
g_free (name);
return p;
}
if (*p != '='){
set_error ("Expected an = after the attribute name `%s'", name);
free (name);
g_free (name);
return end;
}
p++;
p = skip_space (p, end);
if (p == end){
free (name);
g_free (name);
return end;
}
p = parse_value (p, end, &value, error);
if (p == end){
free (name);
g_free (name);
return p;
}
@@ -312,7 +312,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
goto fail;
}
l = (int)(element_end - element_start);
ename = malloc (l + 1);
ename = g_malloc (l + 1);
if (ename == NULL)
goto fail;
strncpy (ename, element_start, l);
@@ -331,7 +331,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
}
if (error != NULL && *error != NULL){
free (ename);
g_free (ename);
goto fail;
}
@@ -343,7 +343,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
goto fail;
}
}
free (ename);
g_free (ename);
} else {
context->level = g_slist_prepend (context->level, ename);
}
@@ -404,11 +404,11 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
if (context->parser.end_element != NULL){
context->parser.end_element (context, text, context->user_data, error);
if (error != NULL && *error != NULL){
free (text);
g_free (text);
goto fail;
}
}
free (text);
g_free (text);
while (p < end && *p != '>')
p++;
+140
View File
@@ -0,0 +1,140 @@
/*
* gmisc.c: Misc functions with no place to go (right now)
*
* Author:
* Aaron Bockover ([email protected])
*
* (C) 2006 Novell, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <stdlib.h>
#include <glib.h>
#include <pthread.h>
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
const gchar *
g_getenv(const gchar *variable)
{
return getenv(variable);
}
gboolean
g_setenv(const gchar *variable, const gchar *value, gboolean overwrite)
{
return setenv(variable, value, overwrite) == 0;
}
void
g_unsetenv(const gchar *variable)
{
unsetenv(variable);
}
gchar*
g_win32_getlocale(void)
{
return NULL;
}
gboolean
g_path_is_absolute (const char *filename)
{
g_return_val_if_fail (filename != NULL, FALSE);
return (*filename == '/');
}
static pthread_mutex_t home_lock = PTHREAD_MUTEX_INITIALIZER;
static const gchar *home_dir;
/* Give preference to /etc/passwd than HOME */
const gchar *
g_get_home_dir (void)
{
if (home_dir == NULL){
pthread_mutex_lock (&home_lock);
if (home_dir == NULL){
#ifdef HAVE_GETPWENT_R
struct passwd pwbuf, *track;
char buf [4096];
uid_t uid;
uid = getuid ();
setpwent ();
while (getpwent_r (&pwbuf, buf, sizeof (buf), &track) == 0){
if (pwbuf.pw_uid == uid){
home_dir = g_strdup (pwbuf.pw_dir);
break;
}
}
endpwent ();
#endif
if (home_dir == NULL)
home_dir = g_getenv ("HOME");
pthread_mutex_unlock (&home_lock);
}
}
return home_dir;
}
const char *
g_get_user_name (void)
{
const char *retName = g_getenv ("USER");
return retName;
}
static const char *tmp_dir;
static pthread_mutex_t tmp_lock = PTHREAD_MUTEX_INITIALIZER;
const gchar *
g_get_tmp_dir (void)
{
if (tmp_dir == NULL){
pthread_mutex_lock (&tmp_lock);
if (tmp_dir == NULL){
tmp_dir = g_getenv ("TMPDIR");
if (tmp_dir == NULL){
tmp_dir = g_getenv ("TMP");
if (tmp_dir == NULL){
tmp_dir = g_getenv ("TEMP");
if (tmp_dir == NULL)
tmp_dir = "/tmp";
}
}
}
pthread_mutex_unlock (&tmp_lock);
}
return tmp_dir;
}
+61 -18
View File
@@ -29,14 +29,13 @@
#include <stdlib.h>
#include <glib.h>
#ifdef G_OS_WIN32
#include <windows.h>
#endif
#include <direct.h>
#include <io.h>
const gchar *
g_getenv(const gchar *variable)
{
#ifdef G_OS_WIN32
gunichar2 *var, *buffer;
gchar* val = NULL;
gint32 buffer_size = 1024;
@@ -56,15 +55,11 @@ g_getenv(const gchar *variable)
g_free(var);
g_free(buffer);
return val;
#else
return getenv(variable);
#endif
}
gboolean
g_setenv(const gchar *variable, const gchar *value, gboolean overwrite)
{
#ifdef G_OS_WIN32
gunichar2 *var, *val;
gboolean result;
var = u8to16(variable);
@@ -73,35 +68,83 @@ g_setenv(const gchar *variable, const gchar *value, gboolean overwrite)
g_free(var);
g_free(val);
return result;
#else
return setenv(variable, value, overwrite) == 0;
#endif
}
void
g_unsetenv(const gchar *variable)
{
#ifdef G_OS_WIN32
gunichar2 *var;
var = u8to16(variable);
SetEnvironmentVariable(var, TEXT(""));
g_free(var);
#else
unsetenv(variable);
#endif
}
gchar*
g_win32_getlocale(void)
{
#ifdef G_OS_WIN32
/* FIXME: Use GetThreadLocale
* and convert LCID to standard
* string form, "en_US" */
return strdup ("en_US");
#else
return NULL;
#endif
}
gboolean
g_path_is_absolute (const char *filename)
{
g_return_val_if_fail (filename != NULL, FALSE);
if (filename[0] != '\0' && filename[1] != '\0' && filename[1] == ':' &&
filename[2] != '\0' && (filename[2] == '\\' || filename[2] == '/'))
return TRUE;
else
return FALSE;
}
const gchar *
g_get_home_dir (void)
{
/* FIXME */
const gchar *drive = g_getenv ("HOMEDRIVE");
const gchar *path = g_getenv ("HOMEPATH");
gchar *home_dir = NULL;
if (drive && path) {
home_dir = g_malloc(strlen(drive) + strlen(path) +1);
if (home_dir) {
sprintf(home_dir, "%s%s", drive, path);
}
}
return home_dir;
}
const char *
g_get_user_name (void)
{
const char * retName = g_getenv ("USER");
if (!retName)
retName = g_getenv ("USERNAME");
return retName;
}
static const char *tmp_dir;
const gchar *
g_get_tmp_dir (void)
{
if (tmp_dir == NULL){
if (tmp_dir == NULL){
tmp_dir = g_getenv ("TMPDIR");
if (tmp_dir == NULL){
tmp_dir = g_getenv ("TMP");
if (tmp_dir == NULL){
tmp_dir = g_getenv ("TEMP");
if (tmp_dir == NULL)
tmp_dir = "C:\\temp";
}
}
}
}
return tmp_dir;
}
@@ -285,3 +285,4 @@ g_module_build_path (const gchar *directory, const gchar *module_name)
}
return g_strdup_printf ("%s%s" LIBSUFFIX, lib_prefix, module_name);
}
+185
View File
@@ -0,0 +1,185 @@
/*
* gmodule.c: dl* functions, glib style
*
* Author:
* Gonzalo Paniagua Javier ([email protected])
* Jonathan Chambers ([email protected])
* Robert Jordan ([email protected])
*
* (C) 2006 Novell, Inc.
* (C) 2006 Jonathan Chambers
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <glib.h>
#include <gmodule.h>
#include <windows.h>
#include <psapi.h>
#define LIBSUFFIX ".dll"
#define LIBPREFIX ""
struct _GModule {
HMODULE handle;
int main_module;
};
GModule *
g_module_open (const gchar *file, GModuleFlags flags)
{
GModule *module;
module = g_malloc (sizeof (GModule));
if (module == NULL)
return NULL;
if (file != NULL) {
gunichar2 *file16;
file16 = u8to16(file);
module->main_module = FALSE;
module->handle = LoadLibrary (file16);
g_free(file16);
if (!module->handle) {
g_free (module);
return NULL;
}
} else {
module->main_module = TRUE;
module->handle = GetModuleHandle (NULL);
}
return module;
}
static gpointer
w32_find_symbol (const gchar *symbol_name)
{
HMODULE *modules;
DWORD buffer_size = sizeof (HMODULE) * 1024;
DWORD needed, i;
modules = (HMODULE *) g_malloc (buffer_size);
if (modules == NULL)
return NULL;
if (!EnumProcessModules (GetCurrentProcess (), modules,
buffer_size, &needed)) {
g_free (modules);
return NULL;
}
/* check whether the supplied buffer was too small, realloc, retry */
if (needed > buffer_size) {
g_free (modules);
buffer_size = needed;
modules = (HMODULE *) g_malloc (buffer_size);
if (modules == NULL)
return NULL;
if (!EnumProcessModules (GetCurrentProcess (), modules,
buffer_size, &needed)) {
g_free (modules);
return NULL;
}
}
for (i = 0; i < needed / sizeof (HANDLE); i++) {
gpointer proc = (gpointer)(intptr_t)GetProcAddress (modules [i], symbol_name);
if (proc != NULL) {
g_free (modules);
return proc;
}
}
g_free (modules);
return NULL;
}
gboolean
g_module_symbol (GModule *module, const gchar *symbol_name, gpointer *symbol)
{
if (module == NULL || symbol_name == NULL || symbol == NULL)
return FALSE;
if (module->main_module) {
*symbol = (gpointer)(intptr_t)GetProcAddress (module->handle, symbol_name);
if (*symbol != NULL)
return TRUE;
*symbol = w32_find_symbol (symbol_name);
return *symbol != NULL;
} else {
*symbol = (gpointer)(intptr_t)GetProcAddress (module->handle, symbol_name);
return *symbol != NULL;
}
}
const gchar *
g_module_error (void)
{
gchar* ret = NULL;
TCHAR* buf = NULL;
DWORD code = GetLastError ();
FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER, NULL,
code, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), buf, 0, NULL);
ret = u16to8 (buf);
LocalFree(buf);
return ret;
}
gboolean
g_module_close (GModule *module)
{
HMODULE handle;
int main_module;
if (module == NULL || module->handle == NULL)
return FALSE;
handle = module->handle;
main_module = module->main_module;
module->handle = NULL;
g_free (module);
return (main_module ? 1 : (0 == FreeLibrary (handle)));
}
gchar *
g_module_build_path (const gchar *directory, const gchar *module_name)
{
char *lib_prefix = "";
if (module_name == NULL)
return NULL;
if (strncmp (module_name, "lib", 3) != 0)
lib_prefix = LIBPREFIX;
if (directory && *directory){
return g_strdup_printf ("%s/%s%s" LIBSUFFIX, directory, lib_prefix, module_name);
}
return g_strdup_printf ("%s%s" LIBSUFFIX, lib_prefix, module_name);
}
+3
View File
@@ -27,4 +27,7 @@ const gchar *g_module_error (void);
gboolean g_module_close (GModule *module);
gchar * g_module_build_path (const gchar *directory, const gchar *module_name);
extern char *gmodule_libprefix;
extern char *gmodule_libsuffix;
#endif
+4 -1
View File
@@ -73,8 +73,11 @@ g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format,
log_domain != NULL ? ": " : "",
msg);
free (msg);
if (log_level & fatal)
if (log_level & fatal){
fflush (stdout);
fflush (stderr);
abort ();
}
}
void
+2 -143
View File
@@ -29,26 +29,15 @@
#include <stdio.h>
#include <glib.h>
#include <errno.h>
#include <sys/types.h>
#ifdef G_OS_UNIX
#include <pthread.h>
#endif
#ifdef HAVE_PWD_H
#include <pwd.h>
#ifdef G_OS_WIN32
#include <direct.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef G_OS_WIN32
#include <direct.h>
#include <io.h>
#endif
gchar *
g_build_path (const gchar *separator, const gchar *first_element, ...)
{
@@ -142,21 +131,6 @@ g_path_get_basename (const char *filename)
return g_strdup (&r[1]);
}
gboolean
g_path_is_absolute (const char *filename)
{
g_return_val_if_fail (filename != NULL, FALSE);
#ifdef G_OS_WIN32
if (filename[0] != '\0' && filename[1] != '\0' && filename[1] == ':' &&
filename[2] != '\0' && (filename[2] == '\\' || filename[2] == '/'))
return TRUE;
else
return FALSE;
#else
return (*filename == '/');
#endif
}
gchar *
g_find_program_in_path (const gchar *program)
{
@@ -208,121 +182,6 @@ g_get_current_dir (void)
return r;
}
#if defined (G_OS_UNIX)
static pthread_mutex_t home_lock = PTHREAD_MUTEX_INITIALIZER;
static const gchar *home_dir;
/* Give preference to /etc/passwd than HOME */
const gchar *
g_get_home_dir (void)
{
if (home_dir == NULL){
pthread_mutex_lock (&home_lock);
if (home_dir == NULL){
#ifdef HAVE_GETPWENT_R
struct passwd pwbuf, *track;
char buf [4096];
uid_t uid;
uid = getuid ();
setpwent ();
while (getpwent_r (&pwbuf, buf, sizeof (buf), &track) == 0){
if (pwbuf.pw_uid == uid){
home_dir = g_strdup (pwbuf.pw_dir);
break;
}
}
endpwent ();
#endif
if (home_dir == NULL)
home_dir = g_getenv ("HOME");
pthread_mutex_unlock (&home_lock);
}
}
return home_dir;
}
#elif defined (G_OS_WIN32)
#include <windows.h>
const gchar *
g_get_home_dir (void)
{
/* FIXME */
const gchar *drive = g_getenv ("HOMEDRIVE");
const gchar *path = g_getenv ("HOMEPATH");
gchar *home_dir = NULL;
if (drive && path) {
home_dir = malloc(strlen(drive) + strlen(path) +1);
if (home_dir) {
sprintf(home_dir, "%s%s", drive, path);
}
}
return home_dir;
}
#else
const gchar *
g_get_home_dir (void)
{
g_error ("%s", "g_get_home_dir not implemented on this platform");
return NULL;
}
#endif
static const char *tmp_dir;
#ifdef G_OS_UNIX
static pthread_mutex_t tmp_lock = PTHREAD_MUTEX_INITIALIZER;
#endif
const gchar *
g_get_tmp_dir (void)
{
if (tmp_dir == NULL){
#ifdef G_OS_UNIX
pthread_mutex_lock (&tmp_lock);
#endif
if (tmp_dir == NULL){
tmp_dir = g_getenv ("TMPDIR");
if (tmp_dir == NULL){
tmp_dir = g_getenv ("TMP");
if (tmp_dir == NULL){
tmp_dir = g_getenv ("TEMP");
if (tmp_dir == NULL)
#if defined (G_OS_WIN32)
tmp_dir = "C:\\temp";
#else
tmp_dir = "/tmp";
#endif
}
}
}
#ifdef G_OS_UNIX
pthread_mutex_unlock (&tmp_lock);
#endif
}
return tmp_dir;
}
const char *
g_get_user_name (void)
{
const char * retName = g_getenv ("USER");
#if defined (G_OS_WIN32)
if (!retName)
retName = g_getenv ("USERNAME");
#endif
return retName;
}
static char *name;
void
+3 -2
View File
@@ -37,7 +37,8 @@ typedef enum {
MATCH_LITERAL,
MATCH_ANYCHAR,
MATCH_ANYTHING,
MATCH_ANYTHING_END
MATCH_ANYTHING_END,
MATCH_INVALID = -1
} MatchType;
typedef struct {
@@ -56,7 +57,7 @@ compile_pattern (const gchar *pattern)
size_t i, len;
PData *data;
gchar c;
MatchType last = -1;
MatchType last = MATCH_INVALID;
GString *str;
gboolean free_str;
+1 -10
View File
@@ -40,7 +40,7 @@ g_strndup (const gchar *str, gsize n)
return strndup (str, n);
#else
if (str) {
char *retval = malloc(n+1);
char *retval = g_malloc(n+1);
if (retval) {
strncpy(retval, str, n)[n] = 0;
}
@@ -817,15 +817,6 @@ g_strescape (const gchar *source, const gchar *exceptions)
return result;
}
gchar *
g_strdup (const gchar *str)
{
if (str == NULL)
return NULL;
return strdup (str);
}
gint
g_ascii_xdigit_value (gchar c)
{
+1 -1
View File
@@ -159,7 +159,7 @@ g_string_append_printf (GString *string, const gchar *format, ...)
va_end (args);
g_string_append (string, ret);
free (ret);
g_free (ret);
}
void
@@ -26,20 +26,11 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <glib.h>
#ifdef _MSC_VER
#include <windows.h>
#else
#include <sys/time.h>
#endif
struct _GTimer {
#ifdef _MSC_VER
guint64 start;
guint64 stop;
#else
struct timeval start;
struct timeval stop;
#endif
};
GTimer *g_timer_new (void)
@@ -62,48 +53,20 @@ void
g_timer_start (GTimer *timer)
{
g_return_if_fail (timer != NULL);
#ifdef _MSC_VER
QueryPerformanceCounter ((LARGE_INTEGER*)&timer->start);
#else
gettimeofday (&timer->start, NULL);
memset (&timer->stop, 0, sizeof (struct timeval));
#endif
}
void
g_timer_stop (GTimer *timer)
{
g_return_if_fail (timer != NULL);
#ifdef _MSC_VER
QueryPerformanceCounter ((LARGE_INTEGER*)&timer->stop);
#else
gettimeofday (&timer->stop, NULL);
#endif
}
gdouble
g_timer_elapsed (GTimer *timer, gulong *microseconds)
{
#ifdef _MSC_VER
guint64 stop;
guint64 freq;
gdouble seconds;
if (timer->stop == 0) {
QueryPerformanceCounter ((LARGE_INTEGER*)&stop);
}
else {
stop = timer->stop;
}
QueryPerformanceFrequency ((LARGE_INTEGER*)&freq);
seconds = 1.0 * (stop - timer->start) / freq;
if (microseconds) {
*microseconds = (gulong)(1000000.0 * (stop - timer->start) / freq);
}
return seconds;
#else
struct timeval tv;
gulong seconds;
long usec;
@@ -128,7 +91,6 @@ g_timer_elapsed (GTimer *timer, gulong *microseconds)
}
result = seconds * 1000000 + usec;
return (result / 1000000);
#endif
}
+90
View File
@@ -0,0 +1,90 @@
/*
* Timer
*
* Author:
* Gonzalo Paniagua Javier ([email protected]
*
* (C) 2006 Novell, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <glib.h>
#include <windows.h>
struct _GTimer {
guint64 start;
guint64 stop;
};
GTimer *g_timer_new (void)
{
GTimer *timer;
timer = g_new0 (GTimer, 1);
g_timer_start (timer);
return timer;
}
void
g_timer_destroy (GTimer *timer)
{
g_return_if_fail (timer != NULL);
g_free (timer);
}
void
g_timer_start (GTimer *timer)
{
g_return_if_fail (timer != NULL);
QueryPerformanceCounter ((LARGE_INTEGER*)&timer->start);
}
void
g_timer_stop (GTimer *timer)
{
g_return_if_fail (timer != NULL);
QueryPerformanceCounter ((LARGE_INTEGER*)&timer->stop);
}
gdouble
g_timer_elapsed (GTimer *timer, gulong *microseconds)
{
guint64 stop;
guint64 freq;
gdouble seconds;
if (timer->stop == 0) {
QueryPerformanceCounter ((LARGE_INTEGER*)&stop);
}
else {
stop = timer->stop;
}
QueryPerformanceFrequency ((LARGE_INTEGER*)&freq);
seconds = 1.0 * (stop - timer->start) / freq;
if (microseconds) {
*microseconds = (gulong)(1000000.0 * (stop - timer->start) / freq);
}
return seconds;
}
+1 -1
View File
@@ -346,7 +346,7 @@ g_utf8_strlen (const gchar *str, gssize max)
else if (max < 0)
byteCount = max;
while (*ptr != 0 && byteCount <= max) {
guint cLen = g_trailingBytesForUTF8 [*ptr] + 1;
gssize cLen = g_trailingBytesForUTF8 [*ptr] + 1;
if (max > 0 && (byteCount + cLen) > max)
return length;
ptr += cLen;
+20 -20
View File
@@ -4,27 +4,27 @@
int vasprintf(char **ret, const char *fmt, va_list ap)
{
char *buf;
int len;
size_t buflen;
va_list ap2;
char *buf;
int len;
size_t buflen;
va_list ap2;
#ifdef _MSC_VER
ap2 = ap;
len = _vscprintf(fmt, ap2); // NOTE MS specific extension ( :-( )
ap2 = ap;
len = _vscprintf(fmt, ap2); // NOTE MS specific extension ( :-( )
#else
va_copy(ap2, ap);
len = vsnprintf(NULL, 0, fmt, ap2);
va_copy(ap2, ap);
len = vsnprintf(NULL, 0, fmt, ap2);
#endif
if (len > 0 && (buf = malloc((buflen = (size_t) (len + 1)))) != NULL) {
len = vsnprintf(buf, buflen, fmt, ap);
*ret = buf;
} else {
*ret = NULL;
len = -1;
}
va_end(ap2);
return len;
if (len > 0 && (buf = malloc((buflen = (size_t) (len + 1)))) != NULL) {
len = vsnprintf(buf, buflen, fmt, ap);
*ret = buf;
} else {
*ret = NULL;
len = -1;
}
va_end(ap2);
return len;
}
+10
View File
@@ -1,3 +1,13 @@
2008-09-29 Geoff Norton <[email protected]>
* include/private/gcconfig.h: Make Darwin/ARM use mmap() instead of
sbrk() for its allocator implementation.
2008-08-28 Geoff Norton <[email protected]>
* darwin_stop_world.c:
* include/private/gcconfig.h: Add support for Darwin/ARM
2008-08-12 Geoff Norton <[email protected]>
* pthread_support.c: GCC shipped with SLES9 ppc gets confused with our current
+2 -22
View File
@@ -112,29 +112,9 @@ case "$THREADS" in
AC_DEFINE(THREAD_LOCAL_ALLOC)
THREADDLLIBS="-lpthread -lrt"
;;
*-*-freebsd4*)
AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.")
*-*-freebsd*)
AC_DEFINE(GC_FREEBSD_THREADS)
if test "x$PTHREAD_CFLAGS" = "x"; then
INCLUDES="$INCLUDES -pthread"
else
INCLUDES="$INCLUDES $PTHREAD_CFLAGS"
fi
if test "x$PTHREAD_LIBS" = "x"; then
THREADDLLIBS=-pthread
else
THREADDLLIBS=$PTHREAD_LIBS
fi
;;
*-*-freebsd5*)
AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.")
AC_DEFINE(GC_FREEBSD_THREADS)
INCLUDES="$INCLUDES -pthread"
THREADDLLIBS=-pthread
;;
*-*-freebsd6*)
AC_DEFINE(GC_FREEBSD_THREADS)
if test "x$PTHREAD_CFLAGS" != "x"; then
if test "x$PTHREAD_CFLAGS" != "x"; then
INCLUDES="$INCLUDES $PTHREAD_CFLAGS"
fi
if test "x$PTHREAD_LIBS" = "x"; then
+52 -2
View File
@@ -79,6 +79,9 @@ void GC_push_all_stacks() {
#elif defined(I386)
i386_thread_state_t state;
mach_msg_type_number_t thread_state_count = i386_THREAD_STATE_COUNT;
#elif defined(ARM)
arm_thread_state_t state;
mach_msg_type_number_t thread_state_count = ARM_THREAD_STATE_COUNT;
#else
# error FIXME for non-x86 || ppc architectures
mach_msg_type_number_t thread_state_count = MACHINE_THREAD_STATE_COUNT;
@@ -193,6 +196,26 @@ void GC_push_all_stacks() {
GC_push_one(state.r30);
GC_push_one(state.r31);
#endif
#elif defined(ARM)
lo = (void*)state.__sp;
GC_push_one(state.__r[0]);
GC_push_one(state.__r[1]);
GC_push_one(state.__r[2]);
GC_push_one(state.__r[3]);
GC_push_one(state.__r[4]);
GC_push_one(state.__r[5]);
GC_push_one(state.__r[6]);
GC_push_one(state.__r[7]);
GC_push_one(state.__r[8]);
GC_push_one(state.__r[9]);
GC_push_one(state.__r[10]);
GC_push_one(state.__r[11]);
GC_push_one(state.__r[12]);
/* GC_push_one(state.__sp); */
GC_push_one(state.__lr);
GC_push_one(state.__pc);
GC_push_one(state.__cpsr);
#else
# error FIXME for non-x86 || ppc architectures
#endif
@@ -318,7 +341,7 @@ void GC_push_all_stacks() {
GC_push_one(info.r30);
GC_push_one(info.r31);
#endif
# else
# elif defined(I386) /* !POWERPC */
/* FIXME: Remove after testing: */
WARN("This is completely untested and likely will not work\n", 0);
i386_thread_state_t info;
@@ -366,7 +389,34 @@ void GC_push_all_stacks() {
GC_push_one(info.fs);
GC_push_one(info.gs);
#endif
# endif /* !POWERPC */
# elif defined(ARM) /* !I386 */
arm_thread_state_t info;
mach_msg_type_number_t outCount = THREAD_STATE_MAX;
r = thread_get_state(thread, GC_MACH_THREAD_STATE_FLAVOR,
(natural_t *)&info, &outCount);
if(r != KERN_SUCCESS) continue;
lo = (void*)info.__sp;
hi = (ptr_t)FindTopOfStack(info.__sp);
GC_push_one(info.__r[0]);
GC_push_one(info.__r[1]);
GC_push_one(info.__r[2]);
GC_push_one(info.__r[3]);
GC_push_one(info.__r[4]);
GC_push_one(info.__r[5]);
GC_push_one(info.__r[6]);
GC_push_one(info.__r[7]);
GC_push_one(info.__r[8]);
GC_push_one(info.__r[9]);
GC_push_one(info.__r[10]);
GC_push_one(info.__r[11]);
GC_push_one(info.__r[12]);
/* GC_push_one(info.__sp); */
GC_push_one(info.__lr);
GC_push_one(info.__pc);
GC_push_one(info.__cpsr);
# endif /* !ARM */
}
# if DEBUG_THREADS
GC_printf3("Darwin: Stack for thread 0x%lx = [%lx,%lx)\n",
+20 -3
View File
@@ -59,10 +59,15 @@
# define FREEBSD
# endif
/* And one for Darwin: */
# if defined(macosx) || (defined(__APPLE__) && defined(__MACH__))
# define DARWIN
# endif
/* Determine the machine type: */
# if defined(__arm__) || defined(__thumb__)
# define ARM32
# if !defined(LINUX) && !defined(NETBSD)
# if !defined(LINUX) && !defined(NETBSD) && !defined(DARWIN)
# define NOSYS
# define mach_type_known
# endif
@@ -297,8 +302,7 @@
# define MACOS
# define mach_type_known
# endif
# if defined(macosx) || (defined(__APPLE__) && defined(__MACH__))
# define DARWIN
# ifdef DARWIN
# if defined(__ppc__) || defined(__ppc64__)
# define POWERPC
# define mach_type_known
@@ -326,6 +330,10 @@
/* There seems to be some issues with trylock hanging on darwin. This
should be looked into some more */
# define NO_PTHREAD_TRYLOCK
# elif defined(__arm__)
# define ARM
# define mach_type_known
# define DARWIN_DONT_PARSE_STACK
# endif
# endif
# if defined(NeXT) && defined(mc68000)
@@ -1883,6 +1891,15 @@
# define OS_TYPE "MSWINCE"
# define DATAEND /* not needed */
# endif
# ifdef DARWIN
# define OS_TYPE "DARWIN"
# define DATASTART ((ptr_t) get_etext())
# define DATAEND ((ptr_t) get_end())
# define STACKBOTTOM ((ptr_t) 0x30000000)
# define USE_MMAP
# define USE_MMAP_ANON
# define USE_MUNMAP
# endif
# ifdef NOSYS
/* __data_start is usually defined in the target linker script. */
extern int __data_start[];
+34
View File
@@ -1,3 +1,37 @@
2008-10-18 Jonathan Pryor <[email protected]>
* Makefile.am (man_MANS): Remove unpackaged files.
2008-10-18 Jonathan Pryor <[email protected]>
* mdvalidator.1: Rename to mdvalidater.1.
* Makefile.am (man_MANS): Rename to mdvalidator.1 to mdvalidater.1.
2008-10-18 Jonathan Pryor <[email protected]>
* Makefile.am (man_MANS): Add mdoc.5 and mono-config.5.
2008-10-18 Mark Probst <[email protected]>
* mono.1: Documentation for "--no-x86-stack-align" option.
2008-10-17 Jonathan Pryor <[email protected]>
* Makefile: Add man pages added from monodoc/man...
2008-10-12 Atsushi Enomoto <[email protected]>
* mono.1 : svn.myrealbox -> anonsvn.mono-project .
2008-10-10 Massimiliano Mantione <[email protected]>
* mono.1: Document the new "sas" option.
2008-09-11 Daniel Morgan <[email protected]>
* sqlsharp.1: added commands
\bcs, \cs, \listproviders, \p
2008-08-27 Zoltan Varga <[email protected]>
* mono-config.5: Fix a typo.
+53 -5
View File
@@ -1,7 +1,55 @@
man_MANS = mcs.1 mono.1 monostyle.1 mono-config.5 sqlsharp.1 oldmono.1 ilasm.1 \
cert2spc.1 cilc.1 genxs.1 wsdl.1 disco.1 soapsuds.1 makecert.1 \
chktrust.1 setreg.1 sn.1 secutil.1 signcode.1 certmgr.1 monop.1 xsd.1 gacutil.1 \
macpack.1 mkbundle.1 dtd2xsd.1 permview.1 prj2make.1 mono-service.1 mono-shlib-cop.1 \
al.1 mozroots.1 mono-xmltool.1 sgen.1 httpcfg.1 vbnc.1 resgen.1 monolinker.1 mconfig.1
man_MANS = \
al.1 \
cert2spc.1 \
certmgr.1 \
chktrust.1 \
cilc.1 \
csharp.1 \
disco.1 \
dtd2xsd.1 \
gacutil.1 \
genxs.1 \
httpcfg.1 \
ilasm.1 \
macpack.1 \
makecert.1 \
mconfig.1 \
mcs.1 \
mdassembler.1 \
mdoc.1 \
mdoc.5 \
mdoc-assemble.1 \
mdoc-export-html.1 \
mdoc-export-msxdoc.1 \
mdoc-update.1 \
mdoc-validate.1 \
mdvalidater.1 \
mkbundle.1 \
mono.1 \
mono-cil-strip.1 \
mono-config.5 \
monodocer.1 \
monodocs2html.1 \
monolinker.1 \
monop.1 \
mono-service.1 \
mono-shlib-cop.1 \
monostyle.1 \
mono-xmltool.1 \
mozroots.1 \
oldmono.1 \
permview.1 \
prj2make.1 \
resgen.1 \
secutil.1 \
setreg.1 \
sgen.1 \
signcode.1 \
sn.1 \
soapsuds.1 \
sqlsharp.1 \
vbnc.1 \
wsdl.1 \
xsd.1
EXTRA_DIST = $(man_MANS)
+322
View File
@@ -0,0 +1,322 @@
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH csharp 1 "4 September 2008"
.SH NAME
csharp \- Interactive C# Shell
.SH SYNOPSIS
.B csharp
[options]
.SH DESCRIPTION
The
.I csharp
is an interactive C# shell that allows the user to enter and evaluate
C# statements and expressions from the command line.
.PP
This command is a shortcut to invoke the
.I gmcs
command with the
.I \-\- shell
command line option. All of the regular compiler options available
to gmcs are available in the interactive shell.
.SH OPERATION
Once you launch the csharp command, you will be greeted with the
interactive prompt:
.PP
.nf
$ csharp
Mono C# Shell, type "help;" for help
Enter statements below.
csharp>
.fi
.PP
A number of namespaces are pre-defined with C# these include System,
System.Linq, System.Collections and System.Collections.Generic.
Unlike the compiled mode, it is possible to add new using statements
as you type code, for example:
.PP
.nf
csharp> new XmlDocument ();
<interactive>(1,6): error CS0246: The type or namespace name `XmlDocument' could not be found. Are you missing a using directive or an assembly reference?
csharp> using System.Xml;
csharp> new XmlDocument ();
System.Xml.XmlDocument
.fi
.PP
Every time a command is typed, the scope of that command is one of a
class that derives from the class Mono.CSharp.InteractiveBase. This
class defines a number of static properties and methods. To display
a list of available commands access the `help' property:
.nf
csharp> help;
"Static methods:
LoadPackage (pkg); - Loads the given Package (like -pkg:FILE)
[...]
ShowVars (); - Shows defined local variables.
ShowUsing (); - Show active using decltions.
help;
"
csharp>
.fi
.PP
When expressions are entered, the C# shell will display the result of
executing the expression:
.PP
.nf
csharp> Math.Sin (Math.PI/4);
0.707106781186547
csharp> 1+1;
2
csharp> "Hello, world".IndexOf (',');
5
.fi
.PP
The C# shell uses the ToString() method on the returned object to
display the object, this sometimes can be limiting since objects that
do not override the ToString() method will get the default behavior
from System.Object which is merely to display their type name:
.PP
.nf
csharp> var a = new XmlDocument ();
csharp> a;
System.Xml.Document
csharp> csharp> a.Name;
"#document"
csharp>
.fi
.PP
A few datatypes are handled specially by the C# interactive shell like
arrays, System.Collections.Hashtable, objects that implement
System.Collections.IEnumerable and IDictionary and are rendered
specially instead of just using ToString ():
.PP
.nf
csharp> var pages = new Hashtable () {
> { "Mono", "http://www.mono-project.com/" },
> { "Linux", "http://kernel.org" } };
csharp> pages;
{{ "Mono", "http://www.mono-project.com/" }, { "Linux", "http://kernel.org" }}
.fi
.PP
It is possible to use LINQ directly in the C# interactive shell since
the System.Linq namespace has been imported at startup. The
following sample gets a list of all the files that have not been
accessed in a week from /tmp:
.PP
.nf
csharp> using System.IO;
csharp> var last_week = DateTime.Now - TimeSpan.FromDays (7);
csharp> var old_files = from f in Directory.GetFiles ("/tmp")
> let fi = new FileInfo (f)
> where fi.LastAccessTime < LastWeek select f;
csharp>
.fi
.PP
You can of course print the results in a single statement as well:
.PP
.nf
csharp> using System.IO;
csharp> var last_week = DateTime.Now - TimeSpan.FromDays (7);
csharp> from f in Directory.GetFiles ("/tmp")
> let fi = new FileInfo (f)
> where fi.LastAccessTime < last_week select f;
[...]
csharp>
.fi
.PP
LINQ and its functional foundation produce on-demand code for
IEnumerable return values. For instance, the return value from a
using `from' is an IEnumerable that is evaluated on demand. The
automatic rendering of IEnumerables on the command line will trigger
the IEnumerable pipeline to execute at that point instead of having
its execution delayed until a later point.
.PP
If you want to avoid having the IEnumerable rendered at this point,
simply assign the value to a variable.
.PP
Unlike compiled C#, the type of a variable can be changed if a new
declaration is entered, for example:
.PP
.nf
csharp> var a = 1;
csharp> a.GetType ();
System.Int32
csharp> var a = "Hello";
csharp> a.GetType ();
System.String
csharp> ShowVars ();
string a = "Hello"
.fi
.PP
In the case that an expression or a statement is not completed in a
single line, a continuation prompt is displayed, for example:
.PP
.nf
csharp> var protocols = new string [] {
> "ftp",
> "http",
> "gopher"
> };
csharp> protocols;
{ "ftp", "http", "gopher" }
.fi
.PP
Long running computations can be interrupted by using the Control-C
sequence:
.PP
.nf
csharp> var done = false;
csharp> while (!done) { }
Interrupted!
System.Threading.ThreadAbortException: Thread was being aborted
at Class1.Host (System.Object& $retval) [0x00000]
at Mono.CSharp.InteractiveShell.ExecuteBlock (Mono.CSharp.Class host, Mono.CSharp.Undo undo) [0x00000]
csharp>
.fi
.PP
.SH INTERACTIVE EDITING
The C# interactive shell contains a line-editor that provides a more
advanced command line editing functionality than the operating system
provides.
.PP
The command set is similar to many other applications (cursor keys)
and incorporates some of the Emacs commands for editing as well as a
history mechanism to
.PP
.PP
The following keyboard input is supported:
.TP
.I Home Key, Control-a
Goes to the beginning of the line.
.TP
.I End Key, Control-e
Goes to the end of the line.
.TP
.I Left Arrow Key, Control-b
Moves the cursor back one character.
.TP
.I Right Arrow Key, Control-f
Moves the cursor forward one character.
.TP
.I Up Arrow Key, Control-p
Goes back in the history, replaces the current line with the previous
line in the history.
.TP
.I Down Arrow Key, Control-n
Moves forward in the history, replaces the current line with the next
lien in the history.
.TP
.I Return
Executes the current line if the statement or expression is complete,
or waits for further input.
.TP
.I Control-C
Cancel the current line being edited. This will kill any currently
in-progress edits or partial editing and go back to a toplevel
definition.
.TP
.I Backspace Key
Deletes the character before the cursor
.TP
.I Delete Key, Control-d
Deletes the character at the current cursor position.
.TP
.I Control-k
Erases the contents of the line until the end of the line and places
the result in the cut and paste buffer.
.TP
.I Alt-D
Deletes the word starting at the cursor position and appends into the
cut and paste buffer. By pressing Alt-d repeatedly, multiple words
can be appended into the paste buffer.
.TP
.I Control-Y
Pastes the content of the kill buffer at the current cursor position.
.TP
.I Control-Q
This is the quote character. It allows the user to enter
control-characters that are otherwise taken by the command editing
facility. Press Control-Q followed by the character you want to
insert, and it will be inserted verbatim into the command line.
.TP
.I Control-D
Terminates the program. This terminates the input for the program.
.SH STATIC PROPERTIES AND METHODS
Since the methods and properties of the base class from where the
statements and expressions are executed are static, they can be
invoked directly from the shell. These are the available properties
and methods:
.TP
.I void LoadAssembly(string assembly)
Loads the given assembly. This is equivalent to passing the compiler
the -r: flag with the specified string.
.TP
.I void LoadPackage(string package)
Imports the package specified. This is equivalent to invoking the
compiler with the -pkg: flag with the specified string.
.TP
.I string Prompt { get; set }
The prompt used by the shell. It defaults to the value "csharp> ".
.I string ContinuationPrompt { get; set; }
The prompt used by the shell when further input is required to
complete the expression or statement.
.TP
.I void ShowVars()
Displays all the variables that have been defined so far and their
types. In the csharp shell declaring new variables will shadow
previous variable declarations, this is different than C# when
compiled.
.I void ShowUsing()
Displays all the using statements in effect.
.I TimeSpan Time (Action a)
Handy routine to time the time that some code takes to execute. The
parameter is an Action delegate, and the return value is a TimeSpan.
For example:
.PP
.nf
csharp> Time (() => { for (int i = 0; i < 5; i++) Console.WriteLine (i);});
0
1
2
3
4
00:00:00.0043230
csharp>
.fi
.PP
The return value is a TimeSpan, that you can store in a variable for
benchmarking purposes.
.SH STARTUP FILES
The C# shell will load all the C# script files and Mono assemblies
located in the ~/.config/csharp directory on Unix. C# script files
are files that have the extension .cs and they should only contain
statements and expressions, they can not contain full class
definitions (at least not as of Mono 2.0). Full class definitions
should be compiled into dlls and stored in that directory.
.SH AUTHORS
The Mono C# Compiler was written by Miguel de Icaza, Ravi Pratap,
Martin Baulig, Marek Safar and Raja Harinath. The development was
funded by Ximian, Novell and Marek Safar.
.SH LICENSE
The Mono Compiler Suite is released under the terms of the GNU GPL or
the MIT X11. Please read the accompanying `COPYING' file for details.
Alternative licensing for the compiler is available from Novell.
.SH SEE ALSO
gmcs(1), mcs(1), mdb(1), mono(1), pkg-config(1)
.SH BUGS
To report bugs in the compiler, you must file them on our bug tracking
system, at:
http://www.mono-project.com/Bugs
.SH MAILING LIST
The Mono Mailing lists are listed at http://www.mono-project.com/Mailing_Lists
.SH MORE INFORMATION
The Mono C# compiler was developed by Novell, Inc
(http://www.novell.com, http) and is based on the
ECMA C# language standard available here:
http://www.ecma.ch/ecma1/STAND/ecma-334.htm
.PP
The home page for the Mono C# compiler is at
http://www.mono-project.com/CSharp_Compiler information about the
interactive mode for C# is available in http://mono-project.com/CsharpRepl
+17 -23
View File
@@ -18,12 +18,13 @@ prepending the @ symbol to the response file name.
The
.I mcs
compiler is used to compile against the 1.x profile and implements
C# 1.0 and 2.0 with the exception of generics and nullable types.
C# 1.0 and parts of C# 2.0 and C# 3.0 specification which do not depend
on generics.
.PP
The
.I gmcs
compiler is used to compile against the 2.0 profile and implements
the complete C# 2.0 specification including generics.
the complete C# 3.0 specification.
.PP
The
.I smcs
@@ -32,8 +33,7 @@ This profile is designed to be used for creating Silverlight/Moonlight
applications that will run on a web browser. The API exposed by this
profile is a small subset of the 3.5 API (even if it is commonly
referred as the 2.1 API, this API is a small subset of 2.0 with a few
extensions), in addition this profile by default runs with
-langversion:linq which turns on the C# 3.0 language by default.
extensions).
.PP
See the section on packages for more information.
.PP
@@ -108,7 +108,7 @@ SYMBOL. This can be tested in the source code by the pre-processor,
or can be used by methods that have been tagged with the Conditional
attribute.
.TP
.I \-debug, \-debug+, \-g
.I \-debug, \-debug+
Generate debugging information. To obtain stack traces with debugging
information, you need to invoke the mono runtime with the `--debug'
flag. This debugging information is stored inside the assembly as a
@@ -136,10 +136,6 @@ precedence over the attributes.
Extracts the C#/XML documentation from the source code and stores in in
the given FILE.
.TP
.I \-\-expect-error X L
The compiler will expect the code to generate an error
named `X' in line `L'. This is only used by the test suite.
.TP
.I \-\-fatal
This is used for debugging the compiler. This makes the error emission
generate an exception that can be caught by a debugger.
@@ -169,7 +165,7 @@ The possible values are:
.TP
.I "Default"
Instruct compiler to use the latest version. Equivalent is to omit the
switch (this currently defaults to the C# 2.0 language specification).
switch (this currently defaults to the C# 3.0 language specification).
.TP
.I "ISO-1"
Restrict compiler to use only first ISO standardized features.
@@ -180,11 +176,6 @@ methods will lead to error.
Restrict compiler to use only the second ISO standardized features.
This allows the use of generics, static classes, iterators and
anonymous methods for example.
.TP
.I "linq"
This enables the C# 3.0 support. Only a few features of C# 3.0 have
been implemented in the Mono C# compiler, so not everything is
available.
.PP
Notice that this flag only controls the language features available to
the programmer, it does not control the kind of assemblies produced.
@@ -339,6 +330,12 @@ shell will perform globbing, so you might want to use it like this:
$ mcs -recurse:'*.cs'
.fi
.TP
.I \-\-shell
Starts up the compiler in interactive mode, providing a C# shell for
statements and expressions. A shortcut is to use the
.I csharp
command directly.
.TP
.I \-\-stacktrace
Generates a stack trace at the time the error is reported, useful for
debugging the compiler.
@@ -358,9 +355,6 @@ Enables compilation of unsafe code.
.I \-v
Debugging. Turns on verbose yacc parsing.
.TP
.I \-v2
Turns on C# 2.0 language features.
.TP
.I \-\-version
Shows the compiler version.
.TP
@@ -369,7 +363,7 @@ Treat warnings as errors.
.TP
.I \-warn:LEVEL
Sets the warning level. 0 is the lowest warning level, and 4 is the
highest. The default is 2.
highest. The default is 4.
.TP
.I \-win32res:FILE
Specifies a Win32 resource file (.res) to be bundled into the
@@ -505,12 +499,12 @@ Martin Baulig, Marek Safar and Raja Harinath. The development was
funded by Ximian, Novell and Marek Safar.
.PP
.SH LICENSE
The Mono Compiler Suite is released under the terms of the GNU GPL.
Please read the accompanying `COPYING' file for details. Alternative
licensing for the compiler is available from Novell.
The Mono Compiler Suite is released under the terms of the GNU GPL or
the MIT X11. Please read the accompanying `COPYING' file for details.
Alternative licensing for the compiler is available from Novell.
.PP
.SH SEE ALSO
mdb(1), mono(1), mopen(1), mint(1), sn(1)
csharp(1), mdb(1), mono(1), mopen(1), mint(1), pkg-config(1),sn(1)
.PP
.SH BUGS
To report bugs in the compiler, you must file them on our bug tracking
+259
View File
@@ -0,0 +1,259 @@
.\"
.\" mdassembler manual page.
.\" (C) 2006 Jonathan Pryor
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "mdassembler" 1
.SH NAME
mdassembler \- Compile documentation for use in monodoc browser
.SH SYNOPSIS
.B mdassembler
OPTIONS*
DIRS+
.SH DESCRIPTION
\fImdassembler\fR has been obsoleted by \fBmdoc\fR(1). See the
\fBmdoc-assemble\fR(1) man page.
.PP
.I mdassembler
is a program that creates
.I .tree
and
.I .zip
files for use in the
.B monodoc
documentation browser.
.PP
The
.I .tree
and
.I .zip
files are copied into monodoc's
.I sources
directory, and reside with a
.I .source
file which is used by
.B monodoc
to specify where the documentation should be displayed.
The
.I .source
file's
.I /monodoc/source/@basefile
attribute specifies the filename prefix for the documentation files. This
must be the same prefix as used with the
.B \-\-out
parameter.
.PP
.SH OPTIONS
.TP
.I \-\-ecma
The documentation found within
.I DIRS
is in the Mono ECMA documentation format.
See the
.B Mono ECMA Documentation Format
section below.
.TP
.I \-\-ecmaspec
The documentation found within
.I DIRS
is in the ECMA Specification documentation format.
See the
.B Mono ECMA Specification Documentation Format
section below.
.TP
.I \-\-error
The documentation found within
.I DIRS
is in "error" format.
See the
.B Error Documentation Format
section below.
.TP
.I \-\-help
Show program argument information.
.TP
.I \-\-man
The documentation found within
.I DIRS
is in man page format.
See the
.B Man Page Documentation Format
section below.
.TP
.I \-o, \-\-out PREFIX
Specify the output file prefix.
.B mdassembler
creates the files
.I PREFIX.zip
and
.I PREFIX.tree
\&.
.TP
.I \-\-simple
The documentation found within
.I DIRS
is in "simple" format.
See the
.B Simple Documentation Format
section below.
.TP
.I \-\-xhtml, \-\-hb
The documentation found within
.I DIRS
is in XHTML format.
See the
.B XHTML Documentation Format
section below.
.PP
.SH "FORMATS"
The following documentation formats are supported:
.SS Mono ECMA Documentation Format
An XML documentation format with one file per type.
.PP
See the \fBmdoc\fR(5) man page for more information.
.SS Mono ECMA Specification Documentation Format
This is not the format you're looking for.
.PP
This is the format used to represent the ECMA-334 (C#) standard within
\fBmonodoc\fR. It is not used to display class library documentation;
for class library
documentation, use the
.B \-\-ecma
format.
.SS Error Documentation Format
Used to present detailed error messages, and is used in
\fBmonodoc\fR's "C# Compiler Error Reference"
tree.
.I DIRS
is not a directory, but is instead a configuration file, containing the XML:
.nf
<ErrorProviderConfig>
<FilesPath>../../mcs/errors</FilesPath>
<Match>cs????*.cs</Match>
<ErrorNumSubstringStart>2</ErrorNumSubstringStart>
<ErrorNumSubstringLength>4</ErrorNumSubstringLength>
<FriendlyFormatString>CS{0:0###}</FriendlyFormatString>
</ErrorProviderConfig>
.fi
.I /ErrorProviderConfig/FilesPath
specifies where to look for files,
.I /ErrorProviderConfig/Match
specifies the filename pattern to look for within
\fI/ErrorProviderConfig/FilesPath\fR,
.I /ErrorProviderConfig/ErrorNumSubstringStart
and
.I /ErrorProviderConfig/ErrorNumSubstringLength
control which portion of the filename is used as the error number, and
.I /ErrorProviderConfig/FriendlyFormatString
controls how the formatting/display of the node in the
.B monodoc
tree.
.PP
For each file found, it is converted to HTML with C# syntax coloring applied.
.SS Simple Documentation Format
Converts text files into HTML by translating each newline into an HTML
.I <br>
element.
.SS Man Page Documentation Format
Converts man pages into HTML for display.
.SS XHTML Documentation Format
Copies the XHTML file as-is.
.SH EXAMPLES
To install your documenation for use with monodoc:
.TP
.I Create a PREFIX.source file
with the contents:
.nf
<?xml version="1.0"?>
<monodoc>
<source provider="FORMAT" basefile="PREFIX" path="PATH"/>
</monodoc>
.fi
where FORMAT is the documentation format contained within the
.I PREFIX.tree
file, e.g.
\fIecma\fR, or \fIsimple\fR.
.I PREFIX is the basename of the
.I .tree
and
.I .zip
files that
.B mdassembler
creates.
.I PATH
is the "path" in the monodoc tree that should contain the documentation.
See the
.I @prefix@/lib/monodoc/monodoc.xml
file for a list of PATH values
(the
.I //node/@name
values).
.sp
See also: http://www.mono-project.com/Generating_Documentation
.TP
.I Create your documentation
See also the
.BR monodocer (1)
man page, e.g.
.nf
monodocer -assembly:foo.dll -path:foo/en
.fi
.TP
.I Assemble the documentation
.nf
mdassembler --ecma foo/en PREFIX
.fi
Make sure that you use the same
.I PREFIX
here as you did above.
.TP
.I Install the documentation by using the command
.nf
cp PREFIX.source PREFIX.tree PREFIX.zip \\
`pkg-config monodoc --variable=sourcesdir`
.fi
(Note the backticks used in the
.B pkg-config
command!)
This copies the
.I .source
,
.I .tree
, and
.I .zip
files into the
.B monodoc
.I sources
directory, which will allow
.B monodoc
to display the documentation.
.SH SEE ALSO
\fBmdcs2ecma\fR(1),
\fBmdnormalizer\fR(1),
\fBmdoc\fR(1),
\fBmdoc-assemble\fR(1),
\fBmdvalidator\fR(1),
\fBmonodocer\fR(1),
\fBmonodocs2html\fR(1)
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
See also: http://www.mono-project.com
and
http://www.mono-project.com/Assembler
+41
View File
@@ -0,0 +1,41 @@
.\"
.\" mdcs2ecma manual page.
.\" (C) 2006 Jonathan Pryor
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "mdcs2ecma" 1
.SH NAME
mdcs2ecma \- Convert CSC /doc Documentation Into ECMA documentation.
.SH SYNOPSIS
.B mdcs2ecma
.I SLASHDOC-FILE
.I ASSEMBLY
.I OUTPUT
.I LIBRARY-TYPE
.SH DESCRIPTION
.I mdcs2ecma
is a program that converts
.I CSC /doc
generated XML documentation into single-file ECMA documentation.
.PP
Note that single-file ECMA documentation is the format used by the ECMA
standard,
.I NOT
the one-file-per-type ECMA format typically used by Mono.
.PP
This program is unmaintained. Use
.B monodocer -importslashdoc:SLASHDOC-FILE -assembly:ASSEMBLY -path:OUTPUT
instead.
.PP
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com for details
.SH SEE ALSO
.BR monodocer(1)
+37
View File
@@ -0,0 +1,37 @@
.\"
.\" mdnormalizer manual page.
.\" (C) 2006 Jonathan Pryor
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "mdnormalizer" 1
.SH NAME
mdnormalizer \- Normalize XML Documents
.SH SYNOPSIS
.B mdnormalizer
[FILES]+
.SH DESCRIPTION
.I mdnormalizer
is a program that normalizes the XML within the input documents.
.PP
.I Normalization
consists of ensuring that the XML is well-formed. It is equivalent to the
following C# fragment:
.nf
XmlDocument doc = new XmlDocument ();
doc.Load (filename);
StreamWriter file = new StreamWriter (filename, false,
new System.Text.UTF8Encoding (false));
doc.Save (writer);
writer.Close ();
.fi
.PP
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com for details
+190
View File
@@ -0,0 +1,190 @@
.\"
.\" mdoc assemble manual page.
.\" (C) 2008 Novell, Inc.
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "mdoc-assemble" 1
.SH NAME
mdoc assemble \- Compile documentation for use in \fBmonodoc\fR(1)
.SH SYNOPSIS
.B mdoc assemble
[OPTIONS]+
PATHS+
.SH DESCRIPTION
\fBmdoc assemble\fR creates \fI.tree\fR and \fI.zip\fR files from \fIPATHS\fR
for use in the \fBmonodoc\fR(1) documentation browser.
.PP
The input files must have a supported \fIformat\fR, specified with the
\fI--format\fR option.
.PP
The \fI.tree\fR and \fI.zip\fR files are copied into \fBmonodoc\fR's
\fIsources\fR directory, alongside a \fI.source\fR file which is used by
\fBmonodoc\fR(1) to specify where the documentation should be displayed.
.PP
The \fI.source\fR file has the following format:
.nf
<?xml version="1.0"?>
<monodoc>
<source provider="PROVIDER" basefile="BASEFILE" path="PATH" />
</monodoc>
.fi
The \fI/monodoc/source/@provider\fR attribute specifies which format provider
should be used when reading the \fI.tree\fR and \fI.zip\fR files; this
\fImust\fR correspond to one of the \fI--format\fR values.
.PP
The \fI/monodoc/source/@basefile\fR attribute specifies the filename prefix
for the documentation files. This must be the same prefix as used with the
\fI\-\-out\fR parameter. There should be \fIno\fR filename extension on this
value.
.PP
The \fI/monodoc/source/@path\fR attribute specifies the parent node in
\fBmonodoc\fR(1)'s tree view where the documentation will be inserted.
See the \fI$MONO_INSTALL_PREFIX/lib/monodoc/monodoc.xml\fR
file for a list of \fIPATH\fR values (the \fI//node/@name\fR values).
.PP
Once the \fIBASEFILE.source\fR has been written, the documentation can be
installed so that \fBmonodoc\fR(1) will display the documentation with the
command:
.nf
cp BASEFILE.source BASEFILE.tree BASEFILE.zip \\
`pkg-config monodoc --variable=sourcesdir`
.fi
.SH OPTIONS
.TP
\fB\-f\fR, \fB\-\-format\fR=\fIFORMAT\fR
Specifies the documentation format used within \fIPATHS\fR. Valid
\fIFORMAT\fR values include:
\fIecma\fR,
\fIecmaspec\fR,
\fIerror\fR,
\fIhb\fR,
\fIman\fR,
\fIsimple\fR, and
\fIxhtml\fR.
.Sp
See the \fIFORMATS\fR section below for more information about these formats.
.Sp
The default format (if none is specifed) is \fIecma\fR.
.Sp
The \fI\-\-format\fR option may be interleaved with \fIPATHS\fR to
change the format used for the remaining parameters (until the next
\fI\-\-format\fR option is seen), e.g.:
.nf
mdoc assemble -o PREFIX A B --format=man C D --format=xhtml E
.fi
will assemble directories \fIA\fR and \fIB\fR with the \fIecma\fR format,
files \fIC\fR and \fID\fR with the \fIman\fR formt, and directory
\fIE\fR with the \fIxhtml\fR format.
.TP
\fB\-o\fR, \fB\-\-out\fR=\fIPREFIX\fR
Specify the output file prefix. \fBmdoc assemble\fR creates the files
\fIPREFIX.zip\fR and \fIPREFIX.tree\fR.
.TP
\fB\-h\fR, \fB\-?\fR, \fB\-\-help\fR
Display a help message and exit.
.SH "FORMATS"
The following documentation formats are supported:
.SS ecma
The \fIMono ECMA Documentation Format\fR, an XML documentation format with one
file per type.
.PP
See the \fBmdoc\fR(5) man page for more information.
.SS ecmaspec
The \fIMono ECMA Specification Documentation Format\fR.
This is not the format you're looking for; it is the format used to represent
the ECMA-334 (C#) standard within \fBmonodoc\fR(1). It is not used to display
class library documentation; for class library documentation, use the
.B ecma
format.
.SS error
The \fIError Documentation Format\fR is used to present detailed error
messages, and is used in \fBmonodoc\fR(1)'s "C# Compiler Error Reference"
tree.
.PP
In this format, \fIPATHS\fR is a configuration file, containing the XML:
.nf
<ErrorProviderConfig>
<FilesPath>../../mcs/errors</FilesPath>
<Match>cs????*.cs</Match>
<ErrorNumSubstringStart>2</ErrorNumSubstringStart>
<ErrorNumSubstringLength>4</ErrorNumSubstringLength>
<FriendlyFormatString>CS{0:0###}</FriendlyFormatString>
</ErrorProviderConfig>
.fi
The elements mean:
.TP
.I /ErrorProviderConfig/FilesPath
Specifies where to look for files.
.TP
.I /ErrorProviderConfig/Match
Specifies the filename pattern to look for within the
\fI/ErrorProviderConfig/FilesPath\fR directory.
.TP
.I /ErrorProviderConfig/ErrorNumSubstringStart
Specifies where within the filename the error number starts.
.TP
.I /ErrorProviderConfig/ErrorNumSubstringLength
Specifies how many characters after
\fI/ErrorProviderConfig/ErrorNumSubstringStart\fR to use for the error number.
.TP
.I /ErrorProviderConfig/FriendlyFormatString
Specifies the formatting/display of the node in the \fBmonodoc\fR(1) tree.
.PP
For each file found, it is converted to HTML with C# syntax coloring applied.
.SS simple
The \fISimple Documentation Format\fR file format recursively adds all files
and directories underneath \fIPATHS\fR. When displayed, HTML files are
displayed as-is. Text files are converted into HTML by translating each
newline into an HTML \fI<br>\fR element. No other file type is supported.
.SS man
The \fIMan Page Documentation Format\fR displays groff man pages. (This is
\fInot\fR a full groff parser, and only handles the man page constructs used
within the mono man pages.)
.PP
\fIPATHS\fR is a set of XML files containing:
.nf
<?xml version="1.0"?>
<manpages>
<manpage name="NAME" page="FILE" />
</manpages>
.fi
There may be multiple \fI//manpage\fR elements within the root \fI/manpage\fR
element.
.PP
The \fI/manpages/manpage/@name\fR attribute contains the display name for the
tree view node, which is also the URL of the man page when using
\fBmonodoc\fR(1)'s \fILookup URL\fR command (before prefixing with a
\fIman:\fR prefix). Thus, if \fI/manpages/manpage/@name\fR contains
\fImono(1)\fR, then \fIman:mono(1)\fR can be used in the \fILookup URL\fR
command to view the \fImono(1)\fR man page.
.PP
The \fI/manpages/manpage/@page\fR attribute is the filename that contains the
man page. If this file does not exist, then \fI/manpages/manpage/@name\fR
will not be displayed within the tree view.
.SS xhtml
The XHTML provider interprets \fIPATHS\fR as a Windows Help file XHTML TOC
file and looks for referenced documents to create the help source.
.SH SEE ALSO
\fBmdoc\fR(1),
\fBmdoc\fR(5),
\fBmonodoc\fR(1)
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
See also: http://www.mono-project.com/mdoc
+122
View File
@@ -0,0 +1,122 @@
.\"
.\" mdoc-export-html manual page.
.\" (C) 2008 Novell, Inc.
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "mdoc-export-html" 1
.SH NAME
mdoc export-html \- Convert \fBmdoc\fR(5) XML to HTML.
.SH SYNOPSIS
\fBmdoc export-html\fR [OPTION]* DIRECTORIES
.SH DESCRIPTION
\fBmdoc export-html\fR creates HTML files from the \fBmdoc\fR(5)-formatted
documentation XML files within \fIDIRECTORIES\fR.
.SH OPTIONS
.TP
\fB\-\-ext\fR=\fIEXTENSION\fR
The file extension to use for created files.
.Sp
This defaults to \fIhtml\fR.
.TP
.B \-\-default\-template
Writes the default XSLT used to \fIstdout\fR.
.TP
\fB\-\-template\fR=\fIFILE\fR
An XSLT file to use to generate the created files.
.Sp
If not specified, uses the template produced by \fI\-\-dump\-template\fR.
.Sp
See the \fITEMPLATE FORMAT\fR section below for more information.
.TP
\fB\-o\fR, \fB\-\-out\fR=\fIDIRECTORY\fR
Write the created files within directory \fIDIRECTORY\fR.
.TP
\fB\-h\fR, \fB\-?\fR, \fB\-\-help\fR
Display a help message and exit.
.SH TEMPLATE FORMAT
The template file is an XSLT which needs to process the following input XML
document:
.nf
<Page>
<CollectionTitle>Collection Title</CollectionTitle>
<PageTitle>Page Title</PageTitle>
<Summary>Page Summary</Summary>
<Signature>Type Declaration</Signature>
<Remarks>Type Remarks</Remarks>
<Members>Type Members</Members>
<Copyright>Documentation Copyright</Copyright>
</Page>
.fi
The generated HTML also makes use of several CSS classes. You can either use
the \fIcreate-default-style\fR named template found within the
\fI\-\-default\-template\fR output to generate these classes, or explicitly
define the following CSS classes:
.RS
.ne 8
.TP
.I .CollectionTitle
.TP
.I .PageTitle
.TP
.I .Summary
.TP
.I .Signature
.TP
.I .Remarks
.TP
.I .Members
.TP
.I .Copyright
.TP
.I .Section
.TP
.I .SectionBox
.TP
.I .NamespaceName
.TP
.I .NamespaceSummary
.TP
.I .MemberName
.TP
.I .MemberSignature
.TP
.I .MemberBox
.TP
.I .Subsection
.TP
.I .SubsectionBox
.TP
.I .SignatureTable
.TP
.I .EnumerationsTable
.TP
.I .CodeExampleTable
.TP
.I .MembersListing
.TP
.I .TypesListing
.TP
.I .InnerSignatureTable
.TP
.I .TypePermissionsTable
.ne
.RE
.PP
.SH HTML LINKS
All members within the HTML file have an \fIid\fR
attribute to permit linking to a specific member. The value of the
\fIid\fR attribute is the String ID of the specified member.
.PP
See the \fICREF FORMAT\fR section of \fBmdoc\fR(5) for more information.
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com/mdoc for details
+37
View File
@@ -0,0 +1,37 @@
.\"
.\" mdoc-export-msxdoc manual page.
.\" (C) 2008 Novell, Inc.
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "mdoc-export-msxdoc" 1
.SH NAME
mdoc export-msxdoc \- Convert \fBmdoc\fR(5) XML to Microsoft XML Documentation
.SH SYNOPSIS
\fBmdoc export-msxdoc\fR [OPTION]* DIRECTORIES
.SH DESCRIPTION
\fBmdoc export-msxdoc\fR creates \fIMicrosoft XML Documentation\fR
(as produced by \fIcsc /doc\fR) from the
\fBmdoc\fR(5)-formatted documentation XML files within \fIDIRECTORIES\fR.
.SH OPTIONS
.TP
\fB\-o\fR, \fB\-\-out\fR=\fIFILE\fR
The XML file to generate.
.Sp
If not specified, a set of files matching the
\fI//AssemblyInfo/AssemblyName\fR values within the documentation will be
used.
.Sp
Use \fB-\fR to write to standard output.
.TP
\fB\-h\fR, \fB\-?\fR, \fB\-\-help\fR
Display a help message and exit.
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com/mdoc for details
+75
View File
@@ -0,0 +1,75 @@
.\"
.\" mdoc-update manual page.
.\" (C) 2008 Jonathan Pryor
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "mdoc-update" 1
.SH NAME
mdoc update \- \fBmdoc\fR(5) documentation format support
.SH SYNOPSIS
\fBmdoc update\fR [OPTIONS]* ASSEMBLIES
.SH DESCRIPTION
\fBmdoc update\fR is responsible for the following:
.TP
.B *
Creating documentation stubs based on \fIASSEMBLIES\fR. The stub-creation
process will create new \fBmdoc\fR(5) XML files for each type within
\fIASSEMBLIES\fR, and provide documentation stubs for each member of those
types.
.TP
.B *
Update documentation stubs based on \fIASSEMBLIES\fR. Existing \fBmdoc\fR(5)
documentation can be updated to reflect changes within \fIASSEMBLIES\fR, such
as added types and members, while preserving existing documentation.
.Sp
In some limited circumstances, renames will be tracked, minimizing the
documentation burden when e.g. a parameter is renamed.
circumstances,
creates stubs and updates documentation in the \fBmdoc\fR(5)
documentation format from \fIASSEMBLIES\fR.
.PP
\fBmdoc update\fR does not rely on documentation found within source code.
.PP
See \fBmdoc\fR(1) and \fBmdoc\fR(5) for more information.
.SH OPTIONS
.TP
.B \-\-delete
Allow \fBmdoc update\fR to delete members from documentation files.
The only members deleted are members which are no longer present within
\fIASSEMBLIES\fR and are not present in any other assembly versions.
.Sp
If a type is no longer present, the documentation file is \fInot\fR
deleted, but is instead \fIrenamed\fR to have a \fB.remove \fR extension.
.Sp
Version detection is done with the \fI//AssemblyVersion\fR elements; if there
are no \fI//AssemblyVersion\fR elements for a given \fI<Type>\fR or
\fI<Member/>\fR, then the \fI<Type>\fR will be renamed and/or the
\fI<Member/>\fR will be removed.
.TP
\fB\-i\fR, \fB\-\-import\fR=\fIFILE\fR
Import documentation found within \fIFILE\fR.
.Sp
\fIFILE\fR may contain either \fIcsc /doc\fR XML or \fIECMA-335\fR XML.
.TP
\fB\-o\fR, \fB\-\-out\fB=\fIDIRECTORY\fR
Place the generated stubs into \fIDIRECTORY\fR.
.Sp
When updating documentation, \fIDIRECTORY\fR is also the source directory.
.B \-h, \-?, \-\-help
Display a help message and exit.
.SH SEE ALSO
mdoc(1),
mdoc(5),
mdoc-assemble(1),
mdoc-export-html(1),
mdoc-validate(1),
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com for details
+54
View File
@@ -0,0 +1,54 @@
.\"
.\" mdoc validate manual page.
.\" (C) 2008 Novell, Inc.
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "mdoc-validate" 1
.SH NAME
mdoc validate \- Validate XML documents against a schema
.SH SYNOPSIS
.B mdoc validate
[OPTIONS]*
PATHS+
.SH DESCRIPTION
\fBmdoc validate\fR validates the specified \fIPATHS\fR against a specified
format schema.
.SH OPTIONS
.TP
\fB\-\-format\fR=\fIFORMAT\fR
The documentation format to validate \fIPATHS\fR against. Supported formats
include: \fIecma\fR.
.Sp
See the \fIFORMATS\fR section below for more information about these formats.
.Sp
The default format (if none is specified) is \fIecma\fR.
.TP
\fB\-h\fR, \fB\-?\fR, \fB\-\-help\fR
Display a help message and exit.
.SH FORMATS
The following documentation formats are supported:
.SS ecma
The \fIMono ECMA Documentation Format\fR validates all output generated by
\fBmdoc-update\fR(1) against an XML schema, including the \fIindex.xml\fR,
\fIns-*.xml\fR, and \fINamespaceName/TypeName.xml\fR files.
.PP
See \fBmdoc\fR(5) for details about this file format.
.SH EXAMPLES
To validate the \fBmdoc-update\fR(1) output stored within a directory (and all
documentation within that directory, recursively), use:
.nf
mdoc validate /path/to/ecma/docs
.fi
.PP
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com/mdoc for details
+198
View File
@@ -0,0 +1,198 @@
.\"
.\" mdoc manual page.
.\" (C) 2008 Jonathan Pryor
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "mdoc" 1
.SH NAME
mdoc \- Mono documentation management tool
.SH SYNOPSIS
.B mdoc
.I command
[\fIoptions\fR] [\fIargs\fR]
.SH OVERVIEW
\fImdoc\fR is an assembly-based documentation management system.
.PP
\fImdoc\fR permits creating and updating documentation \fIstubs\fR based on
the contents of an assembly. It does not rely on documentation found within
the source code.
.PP
The advantages are:
.TP
.B *
.B Code readability.
Good documentation is frequently (a) verbose, and (b)
filled with examples. (For comparison, compare Microsoft .NET Framework
documentation, which is often a page or more of docs for each member, to
JavaDoc documentation, which can often be a sentence for each member.)
.Sp
Inserting good documentation into the source code can frequently bloat the
source file, as the documentation can be longer than the actual method that is
being documented.
.TP
.B *
.B Localization.
In-source documentation formats (such as \fIcsc /doc\fR)
have no support for multiple human languages. If you need to support more
than one human language for documentation purposes, \fImdoc\fR
is useful as it permits each language's output to reside in its own directory,
and \fImdoc\fR can add types/members for each separate documentation directory.
.TP
.B *
.B Administration.
It's not unusual to have separate documentation and development teams. It's
also possible that the documentation team will have minimal experience with
the programming language being used. In such circumstances, inline
documentation is not desirable as the documentation team could inadvertantly
insert an error into the source code while updating the documentation.
Alternatively, you may not want the documentation team to have access to the
source code for security reasons. \fImdoc\fR allows the documentation to be
kept \fIcompletely\fR separate and distinct from the source code used to
create the assembly.
.PP
Documentation can be generated using the \fBmdoc update\fR command:
.nf
mdoc update -o docs/en ProjectName.dll
.fi
Once the documentation stubs have been generated (and hopefully later filled
in with actual documentation), there are three ways to view the documentation:
.TP
.B *
To generate a simple directory of HTML pages (one HTML file per type), use
\fBmdoc export-html\fR:
.nf
mdoc export-html -o /srv/www/htdocs/ProjectName docs/en
.fi
.TP
.B *
To use an ASP.NET webapp to display the sources, see:
\fIhttp://anonsvn.mono-project.com/source/trunk/monodoc/engine/web/\fR.
.Sp
From a \fImonodoc\fR source checkout, you can do this:
.nf
cd engine
make web
.fi
This will use \fBxsp\fR(1) to serve the ASP.NET webapp;
Visit \fIhttp://localhost:8080/\fR to view the documentation.
.TP
.B *
To use the \fBmonodoc\fR(1) documentation browser, you must first
\fIassemble\fR the documentation:
.nf
mdoc assemble -o ProjectName docs/en
.fi
The above command creates the files \fIProjectName.tree\fR and
\fIProjectName.zip\fR. An additional \fIProjectName.sources\fR file
must be provided which describes where in the help system the documentation
should be hooked up; it is a very simple XML file, like this:
.nf
<?xml version="1.0"?>
<monodoc>
<source provider="ecma" basefile="ProjectName"
path="various" />
</monodoc>
.fi
The above configuration file describes that the documentation is in
ECMA format, that the base file name is \fIProjectName\fR and that it
should be hooked up in the \fI"various"\fR part of the documentation tree.
If you want to look at the various nodes defined in the
documentation, you can look at the \fImonodoc.xml\fR file which is typically
installed in \fI/usr/lib/monodoc/monodoc.xml\fR.
.Sp
Once you have all of the required files (.zip, .tree and .sources) you can
install them into the system with the following command:
.nf
cp ProjectName.tree ProjectName.zip ProjectName.source \\
`pkg-config monodoc --variable sourcesdir`
.fi
The above will copy the files into the directory that Monodoc has
registered; you might need root permissions to do this. The actual
directory is returned by the \fIpkg-config\fR invocation.
.SH MDOC COMMANDS
.PP
\fBmdoc assemble\fR
.RS 4
Compiles documentation for use within the \fBmonodoc\fR(1) browser.
.PP
See the \fBmdoc-assemble\fR(1) man page for details.
.RE
.PP
\fBmdoc export-html\fR
.RS 4
Exports documentation into a directory structure of HTML files.
.PP
See the \fBmdoc-export-html\fR(1) man page for details.
.RE
.PP
\fBmdoc export-msxdoc\fR
.RS 4
Exports documentation into the single-file
\fIMicrosoft XML Documentation\fR format.
.PP
See the \fBmdoc-export-msxdoc\fR(1) man page for details.
.RE
.PP
\fBmdoc help\fR
.RS 4
View internal help for a given command.
.nf
mdoc help assemble
.fi
is equivalent to:
.nf
mdoc assemble --help
.fi
Multiple sub-commands may be listed at once:
.nf
mdoc help assemble export-html update validate
.fi
.RE
.PP
\fBmdoc update\fR
.RS 4
Updates documentation, adding and removing members based upon a reference
assembly.
.PP
See the \fBmdoc-update\fR(1) man page for details.
.RE
.PP
\fBmdoc validate\fR
.RS 4
Validates the documentation against the Mono documentation schema.
.PP
See the \fBmdoc-validate\fR(1) man page for details.
.RE
.SH SEE ALSO
mdoc(5),
mdoc-assemble(1),
mdoc-export-html(1),
mdoc-update(1),
mdoc-validate(1)
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com/mdoc for details
+794
View File
@@ -0,0 +1,794 @@
.\"
.\" mdoc(5) manual page.
.\" (C) 2008 Jonathan Pryor
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "mdoc" 5
.SH NAME
mdoc \- Mono Documentation XML Format
.SH DESCRIPTION
The assorted Mono documentation programs generate or manipulate XML files
following the mono documentation schema:
.TP
.I mdoc update
Creates or updates mono documentation XML for a set of assemblies.
.TP
.I mdoc validate
Validates the mono documentation XML against the mono documentation XML
schema.
.TP
.I mdoc assemble
Converts the mono documentation XML within a directory structure into a set
of files for use with \fBmonodoc\fR(1).
.TP
.I mdoc export-html
Converts the mono documentation XML within a directory structure into a set
of HTML files that can be viewed with a web browser.
.PP
All of these tools (and more) use the common XML schema described in this man
page.
.SH FILE/DIRECTORY STRUCTURE
There are three sets of Mono documentation XML files:
.TP
.B *
.B index.xml:
contains a list of all assemblies within the containing directory, and all
types and namespaces within those assemblies.
.TP
.B *
.B ns\-*.xml:
There is one ns-*.xml file for each namespace within the assembly; these
files are siblings to
.I index.xml
\&.
.Sp
Examples of
.I ns\-*.xml
files include: \fIns-System.xml\fR, \fIns-System.Collections.xml\fR, and
\fIns-.xml\fR (for the root namespace, though it is recommended to NOT place
types into the root namespace, as \fBmonodoc\fR(1) doesn't display them).
.Sp
The
.I ns\-*.xml
files contain per-namespace documentation.
.TP
.B *
.B NamespaceName/TypeName.xml:
These files are within a dotted
.I NamespaceName
directory, and
.I TypeName
is the name of the type.
.Sp
Examples include:
.I RootType.xml
(if the type has no namespace),
\fISystem/String.xml\fR,
\fISystem.Collections/IEnumerable.xml\fR, and
\fISystem.Collections.Generic/List`1+Enumerator.xml\fR
(the
.I `1
is the number of generic type parameters the type accepts, and everything
after the
.I +
is a nested type).
.PP
Thus, typical directory contents would resemble:
.nf
index.xml
ns-System.xml
ns-System.Collections.Generic.xml
System/String.xml
System.Collections.Generic/List`1.xml
.fi
.SH DOCUMENTATION FORMAT
.SS "\fBindex.xml File Format\fR"
.PP
The
.I index.xml
file contains a list of the assemblies nested under the directory containing
.I index.xml
and all namespaces and types within those assemblies. It looks something like
this:
.nf
<Overview>
<Assemblies>
<Assembly Name="mscorlib" Version="2.0.0.0" />
<!-- other <Assembly/> elements... -->
</Assemblies>
<Remarks>To be added.</Remarks>
<Copyright>To be added.</Copyright>
<Types>
<Namespace Name="System">
<Type Name="String" />
<!-- Other <Type/> elements -->
</Namespace>
<Namespace Name="System.Collections.Generic">
<Type Name="List`1" DisplayName="List&lt;T&gt;" />
<!-- Other <Type/> elements -->
</Namespace>
<!-- other <Namespace/> elements -->
</Types>
<Title>DocTest</Title>
</Overview>
.fi
Most of this is maintained automatically, in particular the
.I /Overview/Assemblies
and
.I /Overview/Types
elements.
.PP
The
.I //Namespace/@Name
attribute corresponds to a directory which contains files named
\fI//Type/@Name\fR.xml, while the \fI//Type/@DisplayName\fR attribute contains
a C# type name (if \fI//Type/@DisplayName\fR isn't found, then
\fI//Type/@Name\fR is used as the display name). There should also be a
\fIns-[//Namespace/@Name].xml\fR file.
.PP
There are three elements of interest to authors:
\fI/Overview/Remarks\fR, \fI/Overview/Copyright\fR, and
\fI/Overview/Title\fR, which contain assembly-level documentation.
These elements can contain any of the following XML elements (documented in
the \fBDocumentation XML Elements\fR section):
\fIblock\fR,
\fIcode\fR,
\fIexample\fR,
\fIlist\fR,
\fIpara\fR,
\fIparamref\fR,
\fItypeparamref\fR,
\fIsee\fR, and
\fIul\fR.
.SS "\fBns-*.xml File Format\fR"
The \fIns-*.xml\fR files contain namespace documentation:
.nf
<Namespace Name="System">
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Namespace>
.fi
The \fI/Namespace/Docs/summary\fR and \fI/Namespace/Docs/remarks\fR elements
should contain namespace documentation.
.PP
The \fIremarks\fR and \fIsummary\fR elements are documented in the
\fBDocumentation XML Elements\fR section.
.SS "\fBNamespaceName/TypeName.xml File Format\fR"
The
.I mono documentation format
is similar to the Ecma documentation format, as described
in ECMA-335 3rd Edition, Partition IV, Chapter 7.
The principal difference from the ECMA format is that each type gets its own
file, within a directory identical to the namespace of the type. There is a
lot of information that is maintained automatically by \fBmdoc\fR(1);
Most of the information within the documentation should
.I not
be edited. This includes the type name (\fI/Type/@FullName\fR), implemented
interfaces (\fI/Type/Interfaces\fR), member information
(\fI/Type/Members/Member/@MemberName\fR,
\fI/Type/Members/Member/MemberSignature\fR,
\fI/Type/Members/Member/MemberType\fR,
\fI/Type/Members/Member/Parameters\fR, etc.).
.nf
<Type Name="DocAttribute" FullName="Mono.DocTest.DocAttribute">
<TypeSignature Language="C#" Value="public class DocAttribute : Attribute" />
<AssemblyInfo>
<AssemblyName>DocTest</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Attribute</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName>System.AttributeUsage(System.AttributeTargets.All)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DocAttribute (string docs);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="docs" Type="System.String" />
</Parameters>
<Docs>
<param name="docs">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>
.fi
The only elements that normally need to be edited are children of the
\fI//Docs\fR elements, which usually contain the text
.I To be added.
The \fI/Type/Docs\fR element contains type-level documentation, while the
\fI/Type/Members/Member/Docs\fR element contains per-member documentation.
.PP
The \fI//Docs\fR elements can contain the following elements:
\fIaltcompliant\fR,
\fIaltmember\fR,
\fIexample\fR,
\fIexception\fR,
\fIparam\fR,
\fIpermission\fR,
\fIremarks\fR,
\fIreturns\fR,
\fIsince\fR,
\fIsummary\fR,
\fIthreadsafe\fR,
\fItypeparam\fR, and
\fIvalue\fR.
.PP
Nested types are not members; they are types, and are documented in their own
file. Consequently, the \fINamespaceName/TypeName.xml\fR files are not
recursive; you do not store a \fI<Type/>\fR element within a \fI<Type/>\fR
element.
.SS "\fBDocumentation XML Elements\fR"
The contents of the \fIDocs\fR element is \fIidentical\fR
in semantics and structure to the inline C# documentation format, consisting
of these elements (listed in ECMA-334 3rd Edition, Annex E, Section 2). The
following are used within the element descriptions:
.TP
.I CREF
Refers to a class (or member) reference, and is a string in the format
described below in the \fBCREF FORMAT\fR section.
.TP
.I TEXT
Non-XML text, and XML should not be nested.
.I
.TP
.I XML
Only XML elements should be nested (which indirectly may contain text), but
non-whitespace text should not be an immediate child node.
.TP
.I XML_TEXT
Free-form text and XML, so that other XML elements may be nested.
.PP
The following elements are used in documentation:
.TP
.I <altmember cref="CREF" />
.I <altmember/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
Allows an entry to be generated for the \fISee Also\fR section. Use
\fI<see/>\fR to specify a link from within text.
.nf
<altmember cref="P:System.Exception.Message" />
.fi
.TP
.I <block subset="SUBSET" type="TYPE">XML_TEXT</block>
Create a block of text, similar in concept to a paragraph, but is used to
create divisions within the text. To some extent, a <block/> is equivalent to
the HTML <h2/> tag.
.Sp
.I SUBSET
should always be the value \fI"none"\fR.
.Sp
.I TYPE
specifies the heading and formatting to use. Recognized types are:
.Sp
.I behaviors
Creates a section with the heading \fIOperation\fR.
.Sp
.I note
Creates a section with the heading \fINote:\fR.
.Sp
.I overrides
Creates a section with the heading \fINote to Inheritors\fR.
.Sp
.I usage
Creates a section with the heading \fIUsage\fR.
.Sp
The \fIblock\fR element can contain the following elements:
\fIblock\fR,
\fIc\fR,
\fIcode\fR,
\fIlist\fR,
\fIpara\fR,
\fIparamref\fR,
\fIsee\fR,
\fIsubscript\fR,
\fIsup\fR, and
\fItypeparamref\fR.
.TP
.I <c>XML_TEXT</c>
Set text in a code-like font (similar to the HTML <tt/> element).
.Sp
The \fIc\fR element can contain the following elements:
\fIcode\fR,
\fIpara\fR,
\fIparamref\fR,
\fIsee\fR, and
\fItypeparamref\fR.
.TP
.I <code lang="LANGUAGE">TEXT</code>
Display multiple lines of text in a code-like font (similar to the HTML <pre/>
element).
.I LANGUAGE
is the language this code block is for. For example, if \fILANGUAGE\fR is
\fBC#\fR, then \fITEXT\fR will get syntax highlighting for the C# language
within the Mono Documentation Browser.
.TP
.I <example>XML_TEXT</example>
Indicates an example that should be displayed specially. For example:
.nf
<example>
<para>An introductory paragraph.</para>
<code lang="C#">
class Example {
public static void Main ()
{
System.Console.WriteLine ("Hello, World!");
}
}
</code>
</example>
.fi
The \fIexample\fR element can contain the following elements:
\fIc\fR,
\fIcode\fR,
\fIlist\fR,
\fIpara\fR, and
\fIsee\fR.
.TP
.I <exception cref="CREF">XML_TEXT</exception>
Identifies an exception that can be thrown by the documented member.
.Sp
.I <exception/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
.I CREF
is the exception type that is thrown, while
.I XML_TEXT
contains the circumstances that would cause
.I CREF
to be thrown.
.nf
<exception cref="T:System.ArgumentNullException">
<paramref name="foo" /> was <see langword="null" />.
</exception>
.fi
The \fIexception\fR element can contain the following elements:
\fIblock\fR,
\fIpara\fR,
\fIparamref\fR,
\fIsee\fR, and
\fItypeparamref\fR.
.TP
.I <list>XML</list>
Create a list or table of items.
.I <list/>
makes use of nested \fI<item>XML</item>\fR, \fI<listheader>XML</listheader>\fR,
\fI<term>XML_TEXT</term>\fR, and \fI<description>XML_TEXT</description>\fR
elements.
.Sp
\fILists\fR have the syntax:
.nf
<list type="bullet"> <!-- or type="number" -->
<item><term>Bullet 1</term></item>
<item><term>Bullet 2</term></item>
<item><term>Bullet 3</term></item>
</list>
.fi
.Sp
.I Tables
have the syntax:
.nf
<list type="table">
<listheader> <!-- listheader bolds this row -->
<term>Column 1</term>
<description>Column 2</description>
<description>Column 3</description>
</listheader>
<item>
<term>Item 1-A</term>
<description>Item 1-B</description>
<description>Item 1-C</description>
</item>
<item>
<term>Item 2-A</term>
<description>Item 2-B</description>
<description>Item 2-C</description>
</item>
</list>
.fi
The \fIitem\fR and \fIdescription\fR elements can each contain text and
the following elements:
\fIblock\fR,
\fIc\fR,
\fIpara\fR,
\fIparamref\fR,
\fIsee\fR,
\fIsup\fR, and
\fItypeparamref\fR.
.TP
.I <para>XML_TEXT</para>
Insert a paragraph of \fIXML_TEXT\fR.
For example,
.nf
<para>
This is a paragraph of text.
</para>
.fi
The \fIpara\fR element can contain the following elements:
\fIblock\fR,
\fIc\fR,
\fIexample\fR,
\fIlink\fR,
\fIlist\fR,
\fIonequarter\fR,
\fIparamref\fR,
\fIsee\fR,
\fIsub\fR,
\fIsup\fR,
\fItypeparamref\fR, and
\fIul\fR.
.TP
.I <param name="NAME">XML_TEXT</param>
.I <param/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
Describes the parameter \fINAME\fR of the current constructor, method, or
property:
.nf
<param name="count">
A <see cref="T:System.Int32" /> containing the number
of widgets to process.
</param>
.fi
The \fIparam\fR element can contain the following elements:
\fIblock\fR,
\fIc\fR,
\fIexample\fR,
\fIpara\fR,
\fIparamref\fR,
\fIsee\fR, and
\fItypeparamref\fR.
.TP
.I <paramref name="NAME" />
Indicates that \fINAME\fR is a parameter.
.Sp
This usually renders \fINAME\fR as italic text, so it is frequently
(ab)used as an equivalent to the HTML <i/> element. See the
\fI<exception/>\fR documentation (above) for an example.
.Sp
.TP
.I <permission cref="CREF">XML_TEXT</permission>
Documents the security accessibility requirements of the current member.
.Sp
.I <permission/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
\fICREF\fR is a type reference to the security permission required, while
\fIXML_TEXT\fR is a description of why the permission is required.
.nf
<permission cref="T:System.Security.Permissions.FileIOPermission">
Requires permission for reading and writing files. See
<see cref="F:System.Security.Permissions.FileIOPermissionAccess.Read" />,
<see cref="F:System.Security.Permissions.FileIOPermissionAccess.Write" />.
</permission>
.fi
The \fIpermission\fR element can contain the following elements:
\fIblock\fR,
\fIpara\fR,
\fIparamref\fR,
\fIsee\fR, and
\fItypeparamref\fR.
.TP
.I <remarks>XML_TEXT</remarks>
Contains detailed information about a member.
.Sp
.I <remarks/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.nf
<remarks>
Insert detailed information here.
</remarks>
.fi
The \fIremarks\fR element can contain the following elements:
\fIblock\fR,
\fIc\fR,
\fIcode\fR,
\fIexample\fR,
\fIlist\fR,
\fIpara\fR,
\fIparamref\fR,
\fIsee\fR, and
\fItypeparamref\fR.
.TP
.I <returns>XML_TEXT</returns>
.Sp
.I <returns/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
Describes the return value of a method:
.nf
<returns>
A <see cref="T:System.Boolean" /> specifying whether
or not the process can access
<see cref="P:Mono.Unix.UnixFileSystemInfo.FullName" />.
</returns>
.fi
The \fIreturns\fR element can contain the following elements:
\fIlist\fR,
\fIpara\fR,
\fIparamref\fR,
\fIsee\fR, and
\fItypeparamref\fR.
.TP
\fI<see cref="CREF" />\fR, \fI<see langword="LANGWORD" />\fR
Creates a link to the specified member within the current text:
.nf
<see cref="M:Some.Namespace.With.Type.Method" />
.fi
or specifies that \fILANGWORD\fR is a language keyword:
.nf
<see langword="null" />
.fi
.TP
.I <seealso cref="CREF" />
Do not use \fIseealso\fR, use \fIaltmember\fR.
.TP
.I <since version="VERSION" />
.Sp
.I <since/>
is a top-level element, and should be nested directly under the
\fI<Docs/>\fR element.
.Sp
Permits specification of which version introduced the specified type or
member.
.nf
<since version="Gtk# 2.4" />
.fi
This generally isn't required, as the \fI//AssemblyInfo/AssemblyVersion\fR
elements track which assembly versions contain type or member.
.TP
.I <summary>XML_TEXT</summary>
.Sp
.I <summary/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
Provides a (brief!) overview about a type or type member.
.Sp
This is usually displayed as part of a class declaration, and should be a
reasonably short description of the type/member. Use
.I <remarks/>
for more detailed information.
.Sp
The \fIsummary\fR element can contain the following elements:
\fIblock\fR,
\fIlist\fR,
\fIpara\fR,
\fIparamref\fR,
\fIsee\fR, and
\fItypeparamref\fR.
.TP
.I <typeparam name="NAME">XML_TEXT</typeparam>
.I <typeparam/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
This is used to document a type parameter for a generic type or generic method.
.Sp
.I NAME
is the name of the type parameter, while
.I XML_TEXT
contains a description of the parameter (what it's used for, what restrictions
it must meet, etc.).
.nf
<typeparam name="T">
The type of the underlying collection
</typeparam>
.fi
The \fItypeparam\fR element can contain the following elements:
\fIblock\fR,
\fIc\fR,
\fIpara\fR,
\fIparamref\fR,
\fIsee\fR, and
\fItypeparamref\fR.
.TP
.I <typeparamref name="NAME">
Used to indicate that \fINAME\fR is a type parameter.
.TP
.I <value>XML_TEXT</value>
.I <value/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
Allows a property to be described.
.nf
<value>
A <see cref="T:System.String" /> containing a widget name.
</value>
.fi
The \fIvalue\fR element can contain the following elements:
\fIblock\fR,
\fIc\fR,
\fIexample\fR,
\fIlist\fR,
\fIpara\fR,
\fIparamref\fR,
\fIsee\fR, and
\fItypeparamref\fR.
.PP
.SH CREF FORMAT
String IDs (\fICREF\fRs) are used to refer to a type or member of a type.
String IDs are documented in ECMA-334 3rd Edition, Annex E.3.1. They consist
of a \fImember type prefix\fR, the full type name (namespace + name, separated
by \fI.\fR), possibly followed by the member name and other information.
.PP
Member type prefixes:
.TP
.I "C:"
The CREF refers to a constructor. The (optional) parameter list is
enclosed in parenthesis and follows the type name:
\fIC:System.String(System.Char,System.Int32)\fR.
.TP
.I "E:"
The CREF refers to an event. The event name follows the type name:
\fIE:System.AppDomain.AssemblyLoad\fR.
.TP
.I "F:"
The CREF refers to a field. The field name follows the type name:
\fIF:System.Runtime.InteropServices.DllImportAttribute.SetLastError\fR.
.TP
.I "M:"
Refers to a constructor or method. Constructors may append
.I .ctor
to the type name (instead of using the above
.I C:
constructor format), while methods append the method name and an (optional)
count of the number of generic parameters. Both constructors and methods
may append the method parameter list enclosed in parenthesis.
.Sp
Examples:
\fIM:System.Object..ctor\fR,
\fIM:System.String..ctor(System.Char[])\fR,
\fIM:System.String.Concat(System.Object)\fR,
\fIM:System.Array.Sort``1(``0[])\fR,
\fIM:System.Collections.Generic.List`1..ctor\fR,
\fIM:System.Collections.Generic.List`1.Add(`0)\fR.
.TP
.I "N:"
Refers to a namespace, e.g. \fIN:System\fR.
.TP
.I "P:"
Refers to a property. If the property is an indexer or takes parameters,
the parameter types are appended to the property name and enclosed with
paranthesis:
\fIP:System.String.Length\fR,
\fIP:System.String.Chars(System.Int32)\fR.
.TP
.I "T:"
The CREF refers to a type, with the number of generic types appended:
\fIT:System.String\fR,
\fIT:System.Collections.Generic.List`1\fR,
\fIT:System.Collections.Generic.List`1.Enumerator\fR.
.PP
To make matters more interesting, generic types & members have two
representations: the "unbound" representation (shown in examples above), in
which class names have the count of generic parameters appended to their name.
There is also a "bound" representation, in which the binding of generic
parameters is listed within '{' and '}' or '<' and '>'.
(Use of '<' and '>' is less common, as within an XML document their escaped
character entities must instead be used, leading to '&lt;' and '&gt;'.)
.PP
.B Unbound:
.TP
.B *
.I T:System.Collections.Generic.List`1
.TP
.B *
.I T:System.Collections.Generic.Dictionary`2
.PP
.B Bound:
.TP
.B *
.I T:System.Collections.Generic.List{System.Int32}
.TP
.B *
.I T:System.Collections.Generic.List<System.Int32>
.TP
.B *
.I T:System.Collections.Generic.List&lt;System.Int32&gt;
.TP
.B *
.I T:System.Predicate{System.Action{System.String}}
.PP
As you can see, bound variants can be arbitrarily complex (just like
generics).
.PP
Furthermore, if a generic parameter is bound to the generic parameter of a
type or method, the "index" of the type/method's generic parameter is used
as the binding, so given
.nf
class FooType {
public static void Foo<T> (System.Predicate<T> predicate)
{
}
}
.fi
The CREF for this method is
\fIM:FooType.Foo``1(System.Predicate{``0})\fR,
.I ``0
is the 0th generic parameter index which is bound to
\fISystem.Predicate<T>\fR.
.SH SEE ALSO
mdoc(1), monodocer(1)
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com for details
+56
View File
@@ -0,0 +1,56 @@
.\"
.\" mdvalidator manual page.
.\" (C) 2006 Jonathan Pryor
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "mdvalidator" 1
.SH NAME
mdvalidator \- Validate XML Documents against the ECMA Documentation Schema
.SH SYNOPSIS
.B mdvalidator
PROVIDER
[FILES]+
.SH DESCRIPTION
\fImdvalidator\fR has been obsoleted by \fBmdoc\fR(1). See the
\fBmdoc-validate\fR(1) man page.
.PP
.I mdvalidator
is a program that validates the specified
.I FILES
against the ECMA Documentation Schema.
.PP
The Schema also supports the
.I index.xml
and
.I namespace-name.xml
files generated by
.I monodocer
, so all output produced by
.I monodocer
can be validated.
.PP
.SH PROVIDER
The following providers are supported:
.TP
.I ecma
Validate the input files against the ECMA Documentation Schema.
.PP
.SH EXAMPLES
To validate the
.I monodocer
output stored within a directory (and all ECMA documentation within all
sub-directories, recursively), use:
.nf
mdvalidator ecma /path/to/ecma/docs
.fi
.PP
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com for details
+19
View File
@@ -0,0 +1,19 @@
.TH "mono-cil-strip" 1
.SH NAME
Mono CIL strip
.SH SYNOPSIS
.B mono-cil-strip assembly [output-assembly]
.SH DESCRIPTION
mono-cil-strip is a tool which takes an assembly, and empty its method bodies.
This is useful to reduce an assembly size when an assembly has already been
compiled using Mono's Ahead Of Time compiler (AOT), where the CIL code is no
longer necessary, but the metadata still is.
.SH COPYRIGHT
Copyright (C) 2008 Novell, Inc (http://www.novell.com)
.SH MAILING LISTS
Mailing lists are listed at http://www.mono-project.com/Mailing_Lists
.SH LICENSE
mono-cil-strip is licensed under the MIT/X11 license. Please read the accompayning
MIT.X11 file for details.
.SH SEE ALSO
.BR monolinker(1),mkbundle(1),mono(1),mcs(1).
+6 -1
View File
@@ -81,7 +81,12 @@ Allowed values are: linux, osx, solaris, freebsd, openbsd, netbsd, windows, aix,
.TP
.I cpu
This is the name of the architecture for which the mapping should be applied.
Allowed values are: x86, x86-64, sparc, ppc, s390, s390x, arm, mips, alpha, hppa, ia64.
Allowed values are: x86, x86-64, sparc, ppc, s390, s390x, arm, mips,
alpha, hppa, ia64.
.TP
.I wordsize
This is the size of registers on the target architecture, it can be
either 32 or 64.
.PP
The attribute value for both attributes can be a comma-separated list of the allowed
values. Additionally, the first character may be a
+58 -10
View File
@@ -5,7 +5,7 @@
.\" Author:
.\" Miguel de Icaza ([email protected])
.\"
.TH Mono "Mono 1.0"
.TH Mono "Mono 2.2"
.SH NAME
mono \- Mono's ECMA-CLI native code generator (Just-in-Time and Ahead-of-Time)
.SH SYNOPSIS
@@ -116,14 +116,20 @@ be registered with the embedded runtime using the mono_aot_register_module funct
which takes as its argument the mono_aot_module_<ASSEMBLY NAME>_info global symbol
from the object file:
.nf
extern void *mono_aot_module_hello_info;
mono_aot_register_module (mono_aot_module_hello_info);
.fi
.ne
.RE
.Sp
.PP
For more information about AOT, see: http://www.mono-project.com/AOT
.RE
.TP
\fB--attach=[options]\fR
Currently the only option supported by this command line argument is
\fBdisable\fR which disables the attach functionality.
.TP
\fB--full-aot\fR
This is an experimental flag that instructs the Mono runtime to not
@@ -244,7 +250,7 @@ Unsafe code is not allowed but P/Invoke is. This mode should
not allow managed code to crash mono. The verification is not as
strict as ECMA 335 standard in order to stay compatible with the MS
runtime.
.TP
.PP
The security system acts on user code: code contained in mscorlib or
the global assembly cache is always trusted.
.ne
@@ -285,7 +291,9 @@ much larger and slower code at runtime.
The following options are supported:
.TP
.I casts
Produces a detailed error when throwing a InvalidCastException.
Produces a detailed error when throwing a InvalidCastException. This
option needs to be enabled as this generates more verbose code at
execution time.
.TP
.I mdb-optimizations
Disable some JIT optimizations which are usually only disabled when
@@ -354,6 +362,13 @@ Finally, namespaces can be specified using the N: prefix:
mono --trace=N:System.Xml
.fi
.TP
\fB--no-x86-stack-align\fR
Don't align stack frames on the x86 architecture. By default, Mono
aligns stack frames to 16 bytes on x86, so that local floating point
and SIMD variables can be properly aligned. This option turns off the
alignment, which usually saves one intruction per call, but might
result in significantly lower floating point and SIMD performance.
.SH JIT MAINTAINER OPTIONS
The maintainer options are only used by those developing the runtime
itself, and not typically of interest to runtime users or developers.
@@ -414,6 +429,22 @@ hps will list the currently used handles.
Increases the verbosity level, each time it is listed, increases the
verbosity level to include more information (including, for example,
a disassembly of the native code produced, code selector info etc.).
.SH ATTACH SUPPORT
The Mono runtime allows external processes to attach to a running
process and load assemblies into the running program. To attach to
the process, a special protocol is implemented in the Mono.Management
assembly.
.PP
With this support it is possible to load assemblies that have an entry
point (they are created with -target:exe or -target:winexe) to be
loaded and executed in the Mono process.
.PP
The code is loaded into the root domain, and it starts execution on
the special runtime attach thread. The attached program should
create its own threads and return after invocation.
.PP
This support allows for example debugging applications by having the
csharp shell attach to running processes.
.SH PROFILING
The mono runtime includes a profiler that can be used to explore
various performance related problems in your application. The
@@ -593,6 +624,15 @@ performed during JIT time).
These information are also available when combining the "a" and "c" options,
but since "c" is much more intrusive "ts" should be preferred.
.TP
\fIsave-allocation-stack\fR, \fIsas\fR
Save the execution stack at each allocation. While the "ts" option saves the
direct caller, this one records the whole stack trace. Note that for technical
reasons the decoder will correctly ignore wrapper methods only using the data
saved by the "ts" option (the stack traces still contain all the wrappers).
Anyway the "ts" and "sas" options can be combined, and the decoder will
attribute the allocation to the correct method even if the wrapper is at the
top of the stack trace.
.TP
\fIallocations-summary\fR or \fIas\fR
At each collection dump a summary
of the heap contents (for each class, the number and collective size of all
@@ -722,7 +762,7 @@ profiler.
To install you must download the profiler
from Mono's SVN:
.nf
svn co svn://svn.myrealbox.com/source/trunk/heap-shot
svn co svn://anonsvn.mono-project.com/source/trunk/heap-shot
cd heap-shot
./autogen
make
@@ -735,7 +775,7 @@ The Live Type profiler shows at every GC iteration all of the live
objects of a given type. To install you must download the profiler
from Mono's SVN:
.nf
svn co svn://svn.myrealbox.com/source/trunk/heap-prof
svn co svn://anonsvn.mono-project.com/source/trunk/heap-prof
cd heap-prof
./autogen
make
@@ -852,7 +892,11 @@ The offsets displayed are IL offsets.
.PP
A more powerful coverage tool is available in the module `monocov'.
See the monocov(1) man page for details.
.SH DEBUGGING
.SH DEBUGGING AIDS
To debug managed applications, you can use the
.B mdb
command, a command line debugger.
.PP
It is possible to obtain a stack trace of all the active threads in
Mono by sending the QUIT signal to Mono, you can do this from the
command line, like this:
@@ -872,6 +916,10 @@ integrity of the runtime after sending this signal is not guaranteed
and the application might crash or terminate at any given point
afterwards.
.PP
The \fB--debug=casts\FR option can be used to get more detailed
information for Invalid Cast operations, it will provide information
about the types involved.
.PP
You can use the MONO_LOG_LEVEL and MONO_LOG_MASK environment variables
to get verbose debugging output about the execution of your
application within Mono.
@@ -1407,7 +1455,7 @@ http://www.mono-project.com/Mailing_Lists
http://www.mono-project.com
.SH SEE ALSO
.PP
certmgr(1), mcs(1), monocov(1), monodis(1), mono-config(5), mozroots(1), xsp(1).
certmgr(1), csharp(1), mcs(1), mdb(1), monocov(1), monodis(1), mono-config(5), mozroots(1), xsp(1).
.PP
For more information on AOT:
http://www.mono-project.com/AOT
+692
View File
@@ -0,0 +1,692 @@
.\"
.\" monodocer manual page.
.\" (C) 2006 Jonathan Pryor
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "monodocer" 1
.SH NAME
monodocer \- ECMA Documentation Format Support
.SH SYNOPSIS
.B monodocer
[OPTIONS]*
.SH OPTIONS
.TP
.I \-assembly:ASSEMBLY
.I ASSEMBLY
is a .NET assembly to generate documentation stubs for.
.Sp
Specify a file path or the name of a GAC'd assembly.
.TP
.I \-delete
Allow monodocer to delete members from documentation files.
The only members deleted are for members which are no longer present within
the assembly.
.Sp
If a type is no longer present, the documentation file is
.I not
deleted, but is instead
.I renamed
to have a
.B .remove
extension.
.TP
.I \-?, \-help
Show program argument information.
.TP
.I \-ignoremembers
Do not update members.
.Sp
This will add documentation stubs for added types, but will
.I not
add or remove documentation for any members of any type (including any added
types).
.TP
.I \-importslashdoc:FILE
.I FILE
is an XML file generated with the
.B /doc:FILE
C# compiler flag (e.g.
.I mcs -doc:foo.xml foo.cs
). Import the member documentation contained within
.I FILE
into the documentation format used by monodoc.
.TP
.I \-name:NAME
.I NAME
is the name of the project this documentation is for.
.Sp
This sets the
.I /Overview/Title
element within the
.I index.xml
file created at the directory specified by
.I -path
\&.
This is used by some programs for title information (e.g.
.I monodocs2html
).
.TP
.I \-namespace:NAMESPACE
Only update the types within the namespace
.I NAMESPACE
\&.
.TP
.I \-overrides
Include overridden methods in documentation.
.Sp
This normally isn't necessary, as the Mono Documentation Browser will provide a
link to the base type members anyway, as will
.I monodocs2html
if the base type is within the same assembly.
.TP
.I \-path:OUTPUT_DIR
.I OUTPUT_DIR
is the directory which will contain the new/updated documentation stubs.
.TP
.I \-pretty
Indent the XML files nicely.
.TP
.I \-since:SINCE
Create a <since/> element for added types and members with the value
.I SINCE
\&.
.Sp
For example, when given
.I -since:"Gtk# 2.4"
an element will be inserted into the
.I Docs
element for all added types and type members:
.nf
<since version="Gtk# 2.4" />
.fi
The Mono Documentation Browser and
.I monodocs2html
will use this element to specify in which version a member was added.
.TP
.I \-type:TYPE
Only create/update documentation for the type
.I TYPE
\&.
.TP
.I \-updateto:PATH
When updating documentation, write the updated documentation files into the
directory
.I PATH
\&.
.TP
.I \-V, \-version
Display version and licensing information.
.PP
.SH DESCRIPTION
\fBmonodocer\fR has been obsoleted by \fBmdoc\fR(1). See the
\fBmdoc-update\fR(1) man page.
.PP
.I monodocer
is a program that creates XML documentation stubs in the ECMA Documentation
Format. It does not rely on documentation found within the source code.
.PP
The advantages are:
.TP
.I *
.B Code readability.
Good documentation is frequently (a) verbose, and (b)
filled with examples. (For comparison, compare Microsoft .NET Framework
documentation, which is often a page or more of docs for each member, to
JavaDoc documentation, which can often be a sentence for each member.)
.Sp
Inserting good documentation into the source code can frequently bloat the
source file, as the documentation can be longer than the actual method that is
being documented.
.TP
.I *
.B Localization.
In-source documentation formats (such as
.B /doc
) have no support for multiple human languages. If you need to support more
than one human language for documentation purposes,
.I monodocer
is useful as it permits each language to get its own directory, and
.I monodocer
can add types/members for each separate documentation directory.
.TP
.I *
.B Administration.
It's not unusual to have separate documentation and development teams. It's
also possible that the documentation team will have minimal experience with
the programming language being used. In such circumstances, inline
documentation is not desirable as the documentation team could inadvertantly
insert an error into the source code while updating the documentation.
Alternatively, you may not want the documentation team to have access to the
source code for security reasons.
.I monodocer
allows the documentation to be kept
.I completely
separate and distinct from the source code used to create the assembly.
.PP
To turn the
.I monodocer
documentation into something that can be consumed by the Mono
Documentation Browser (the desktop help browser, or the web interface
for it) it is necessary to compile the documentation into a packed
format. This is done with the mdassembler tool, for example, you
could use this toolchain like this:
.nf
$ monodocer -assembly:MyWidgets -path:generated_docs
$ mdassembler --ecma generated_docs -out:MyWidgets
.fi
The above would generate a MyWidgets.zip and a MyWidgets.tree that can
then be installed in the system. In addition to the two files (.zip
and .tree) you must provide a .sources file which describes where in
the help system the documentation should be hooked up, it is a very
simple XML file, like this:
.nf
<?xml version="1.0"?>
<monodoc>
<source provider="ecma" basefile="MyWidgets" path="classlib-gnome"/>
</monodoc>
.fi
The above configuration file describes that the documentation is in
ECMA format (the compiled version) that the base file name is
MyWidgets and that it should be hooked up in the "classlib-gnome" part
of the tree. If you want to look at the various nodes defined in the
documentation, you can look at monodoc.xml file which is typically
installed in /usr/lib/monodoc/monodoc.xml.
.PP
Once you have all of your files (.zip, .tree and .sources) you can
install them into the system with the following command:
.nf
$ cp MyWidgets.tree MyWidgets.zip MyWidgets.source `pkg-config monodoc --variable sourcesdir`
.fi
The above will copy the files into the directory that Monodoc has
registered (you might need root permissions to do this). The actual
directory is returned by the
.I pkg-config
invocation.
.SH STRING ID FORMAT
String IDs are used to refer to a type or member of a type. String IDs are
documented in ECMA-334 3rd Edition, Annex E.3.1. They consist of a
.I member type prefix
, the full type name (namespace + name, separated by '.'), possibly followed
by the member name and other information.
.PP
Member type prefixes:
.TP
.I "E:"
The String ID refers to an event. The event name follows the type name:
.I E:System.AppDomain.AssemblyLoad
.TP
.I "F:"
The String ID refers to a field. The field name follows the type name:
.I F:System.Runtime.InteropServices.DllImportAttribute.SetLastError
.TP
.I "M:"
Refers to a constructor or method. Constructors append
.I .ctor
to the type name, while methods append the method name (with an optional count
of the number of generic parameters).
.Sp
If the constructor or method take arguments, these are listed within
paranthesis after the constructor/method name:
.Sp
.I M:System.Object..ctor
,
.I M:System.String..ctor(System.Char[])
,
.I M:System.String.Concat(System.Object)
,
.I M:System.Array.Sort``1(``0[])
,
.I M:System.Collections.Generic.List`1..ctor
,
.I M:System.Collections.Generic.List`1.Add(`0)
\&.
.TP
.I "N:"
Refers to a namespace, e.g.
.I N:System
.TP
.I "P:"
Refers to a property. If the property is an indexer or takes parameters,
the parameter types are appended to the property name and enclosed with
paranthesis:
.I P:System.String.Length
,
.I P:System.String.Chars(System.Int32)
\&.
.TP
.I "T:"
The String ID refers to a type, with the number of generic types appended:
.I T:System.String
,
.I T:System.Collections.Generic.List`1
.PP
To make matters more interesting, generic types & members have two
representations: the "unbound" representation (shown in examples above), in
which class names have the count of generic parameters appended to their name.
There is also a "bound" representation, in which the binding of generic
parameters is listed within '{' and '}'.
.PP
.B Unbound:
.I T:System.Collections.Generic.List`1
,
.I T:System.Collections.Generic.Dictionary`2
\&.
.PP
.B Bound:
.I T:System.Collections.Generic.List{System.Int32}
.I T:System.Collections.Generic.Dictionary{System.String,System.Collections.Generic.List{System.Predicate{System.String}}}
\&.
.PP
As you can see, bound variants can be arbitrarily complex (just like
generics).
.PP
Furthermore, if a generic parameter is bound to the generic parameter of a
type or method, the "index" of the type/method's generic parameter is used
as the binding, so given
.nf
class FooType {
public static void Foo<T> (System.Predicate<T> predicate) {}
}
.fi
The String ID for this method is
.I M:FooType.Foo``1(System.Predicate{``0})
, as
.I ``0
is the 0th generic parameter index which is bound to
.I System.Predicate<T>
\&.
.SH DOCUMENTATION FORMAT
.I monodocer
generates documentation similar to the Ecma documentation format, as described
in ECMA-335 3rd Edition, Partition IV, Chapter 7.
.PP
The principal difference from the ECMA format is that each type gets its own
file, within a directory identical to the namespace of the type.
.PP
Most of the information within the documentation should
.I not
be edited. This includes the type name (
.I /Type/@FullName
), implemented interfaces (
.I /Type/Interfaces
), member information (
.I /Type/Members/Member/@MemberName
,
.I /Type/Members/Member/MemberSignature
,
.I /Type/Members/Member/MemberType
,
.I /Type/Members/Member/Parameters
, etc.).
.PP
What
.I should
be modified are all elements with the text
.I To be added.
, which are present under the
.I //Docs
elements (e.g.
.I /Type/Docs
,
.I /Type/Members/Member/Docs
). The contents of the
.I Docs
element is
.I identical
in semantics and structure to the inline C# documentation format, consisting
of these elements (listed in ECMA-334 3rd Edition, Annex E, Section 2). The
following are used within the element descriptions:
.TP
.I CREF
Refers to a class (or member) reference, and is a string in the format
described above in the
.I STRING ID FORMAT
section.
.TP
.I TEXT
Non-XML text, and XML should not be nested.
.I
.TP
.I XML
Only XML elements should be nested (which indirectly may contain text), but
non-whitespace text should not be an immediate child node.
.TP
.I XML_TEXT
Free-form text and XML, so that other XML elements may be nested.
.PP
The following elements are used in documentation:
.TP
.I <block subset="SUBSET" type="TYPE">XML_TEXT</block>
Create a block of text, similar in concept to a paragraph, but is used to
create divisions within the text. To some extent, a <block/> is equivalent to
the HTML <h2/> tag.
.Sp
.I SUBSET
should always be the value
.I "none"
\&.
.Sp
.I TYPE
specifies the heading and formatting to use. Recognized types are:
.Sp
.I behaviors
Creates a section with the heading
.I Operation
\&.
.Sp
.I note
Creates a section with the heading
.I Note:
\&.
.Sp
.I overrides
Creates a section with the heading
.I Note to Inheritors
\&.
.Sp
.I usage
Creates a section with the heading
.I Usage
\&.
.TP
.I <c>XML_TEXT</c>
Set text in a code-like font (similar to the HTML <tt/> element).
.TP
.I <code lang="LANGUAGE">TEXT</code>
Display multiple lines of text in a code-like font (similar to the HTML <pre/>
element).
.I LANGUAGE
is the language this code block is for. For example, if
.I LANGUAGE
is
.B C#
, then
.I TEXT
will get syntax highlighting for the C# language within the Mono Documentation
Browser.
.TP
.I <example>XML_TEXT</example>
Indicates an example that should be displayed specially. For example:
.nf
<example>
<para>An introductory paragraph.</para>
<code lang="C#">
class Example {
public static void Main ()
{
System.Console.WriteLine ("Hello, World!");
}
}
</code>
</example>
.fi
.TP
.I <exception cref="CREF">XML_TEXT</exception>
Identifies an exception that can be thrown by the documented member.
.Sp
.I <exception/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
.I CREF
is the exception type that is thrown, while
.I XML_TEXT
contains the circumstances that would cause
.I CREF
to be thrown.
.nf
<exception cref="T:System.ArgumentNullException">
<paramref name="foo" /> was <see langword="null" />.
</exception>
.fi
.TP
.I <list>XML</list>
Create a list or table of items.
.I <list/>
makes use of nested
.I <item>XML</item>
,
.I <listheader>XML</listheader>
,
.I <term>XML_TEXT</term>
, and
.I <description>XML_TEXT</description>
elements.
.Sp
.I Lists
have the syntax:
.nf
<list type="bullet"> <!-- or type="number" -->
<item><term>Bullet 1</term></item>
<item><term>Bullet 2</term></item>
<item><term>Bullet 3</term></item>
</list>
.fi
.Sp
.I Tables
have the syntax:
.nf
<list type="table">
<listheader> <!-- listheader bolds this row -->
<term>Column 1</term>
<description>Column 2</description>
<description>Column 3</description>
</listheader>
<item>
<term>Item 1-A</term>
<description>Item 1-B</description>
<description>Item 1-C</description>
</item>
<item>
<term>Item 2-A</term>
<description>Item 2-B</description>
<description>Item 2-C</description>
</item>
</list>
.fi
.TP
.I <para>XML_TEXT</para>
Insert a paragraph of
.I XML_TEXT
.
This is for use within other tags, such as
.I <example/>
,
.I <remarks/>
,
.I <returns/>
,
.I <term/>
and
.I <description/>
(see
.I <list/>
, above), and most other elements.
.Sp
For example,
.nf
<para>This is a paragraph of text.</para>
.fi
.TP
.I <param name="NAME">XML_TEXT</param>
.I <param/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
Describes the parameter
.I NAME
of the current constructor, method, or property:
.nf
<param name="count">
A <see cref="T:System.Int32" /> containing the number
of widgets to process.
</param>
.fi
.TP
.I <paramref name="NAME" />
Indicates that
.I NAME
is a parameter.
.Sp
This usually renders
.I NAME
as italic text, so it is frequently (ab)used as an equivalent to the
HTML <i/> element. See the
.I <exception/>
documentation (above) for an example.
.TP
.I <permission cref="CREF">XML_TEXT</permission>
Documentes the security accessibility requirements of the current member.
.Sp
.I <permission/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
.I CREF
is a type reference to the security permission required, while
.I XML_TEXT
is a description of why the permission is required.
.nf
<permission cref="T:System.Security.Permissions.FileIOPermission">
Requires permission for reading and writing files. See
<see cref="F:System.Security.Permissions.FileIOPermissionAccess.Read" />,
<see cref="F:System.Security.Permissions.FileIOPermissionAccess.Write" />.
</permission>
.fi
.TP
.I <remarks>XML_TEXT</remarks>
Contains detailed information about a member.
.Sp
.I <remarks/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.nf
<remarks>Insert detailed information here.</remarks>
.fi
.TP
.I <returns>XML_TEXT</returns>
.Sp
.I <remarks/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
Describes the return value of a method:
.nf
<returns>
A <see cref="T:System.Boolean" /> specifying whether
or not the process can access
<see cref="P:Mono.Unix.UnixFileSystemInfo.FullName" />.
</returns>
.fi
.TP
.I <see cref="CREF" />
Creates a link to the specified member within the current text:
.nf
<see cref="M:Some.Namespace.With.Type.Method" />
.fi
.TP
.I <seealso cref="CREF" />
.Sp
.I <seealso/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
Allows an entry to be generated for the
.I See Also
subclause. Use
.I <see/>
to specify a link from within text.
.nf
<seealso cref="P:System.Exception.Message" />
.fi
.TP
.I <since version="VERSION" />
.Sp
.I <since/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
Permits specification of which version introduced the specified type or
member.
.nf
<since version="Gtk# 2.4" />
.fi
.TP
.I <summary>DESCRIPTION</summary>
.Sp
.I <summary/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
Provides a (brief!) overview about a type or type member.
.Sp
This is usually displayed as part of a class declaration, and should be a
reasonably short description of the type/member. Use
.I <remarks/>
for more detailed information.
.TP
.I <typeparam name="NAME">DESCRPITION</typeparam>
.I <typeparam/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
This is used to describe type parameter for a generic type or generic method.
.Sp
.I NAME
is the name of the type parameter, while
.I DESCRIPTION
contains a description of the parameter (what it's used for, what restrictions
it must meet, etc.).
.nf
<typeparam name="T">The type of the underlying collection</typeparam>
.fi
.TP
.I <typeparamref>
Used to indicate that a word is a type parameter, for use within other text
blocks (e.g. within
.I <para/>
).
.nf
<para>If <typeparamref name="T" /> is a struct, then...</para>
.fi
.TP
.I <value>DESCRIPTION</value>
.I <value/>
is a top-level element, and should be nested directly under the
.I <Docs/>
element.
.Sp
Allows a property to be described.
.nf
<value>
A <see cref="T:System.String" /> containing a widget name.
</value>
.fi
.PP
.SH SEE ALSO
mdassembler(1), mdcs2ecma(1), mdnormalizer(1), mdvalidator(1), monodocs2html(1)
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com for details
+156
View File
@@ -0,0 +1,156 @@
.\"
.\" monodocs2html manual page.
.\" (C) 2006 Jonathan Pryor
.\" Author:
.\" Jonathan Pryor ([email protected])
.\"
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.TH "monodocs2html" 1
.SH NAME
monodocs2html \- Translate Monodoc XML to HTML
.SH SYNOPSIS
.B monodocs2html
\-source:SOURCE_DIR \-dest:DEST_DIR
[OPTIONS]*
.SH DESCRIPTION
\fImonodocs2html\fR has been obsoleted by \fBmdoc\fR(1). See the
\fBmdoc-export-html\fR(1) man page.
.PP
.I monodocs2html
is a program that creates HTML documentation from the Monodoc documentation
XML files.
.SH OPTIONS
.TP
.I \-dest:DEST_DIR
Write the HTML files into the directory
.I DEST_DIR
\&.
.TP
.I \-dumptemplate
Dump the default page template to standard output so that you can use it as a
base for a new template for use with the
.I \-template
option.
.TP
.I \-ext:FILE_EXTENSION
.I FILE_EXTENSION
is the file extension for generated files.
.Sp
This defaults to
.I html
\&.
.TP
.I \-?, \-help
Show program argument information.
.TP
.I \-onlytype:TYPE
Only generate HTML for the type
.I TYPE
\&.
.TP
.I \-source:SOURCE_DIR
.I SOURCE_DIR
is the base directory containing the Monodoc XML documentation.
.Sp
This directory should contain an
.I index.xml
file, the
.I namespace-name.xml
files (one for each namespace), and
.I namespace-name
directories (one for each namespace), which will contain the
.I type.xml
files holding the monodoc documentation.
.TP
.I \-template:TEMPLATE
Generate HTML using the page template
.I TEMPLATE
\&.
.TP
.I \-V, \-version
Display version and licensing information.
.SH TEMPLATE FORMAT
The template file is an XSLT which needs to process the following input XML
document:
.nf
<Page>
<CollectionTitle>Collection Title</CollectionTitle>
<PageTitle>Page Title</PageTitle>
<Summary>Page Summary</Summary>
<Signature>Type Declaration</Signature>
<Remarks>Type Remarks</Remarks>
<Members>Type Members</Members>
<Copyright>Documentation Copyright</Copyright>
</Page>
.fi
The generated HTML also makes use of the following CSS classes, which should
be defined so that output is nicely formatted:
.RS
.ne 8
.TP
.I .CollectionTitle
.TP
.I .PageTitle
.TP
.I .Summary
.TP
.I .Signature
.TP
.I .Remarks
.TP
.I .Members
.TP
.I .Copyright
.TP
.I .Section
.TP
.I .SectionBox
.TP
.I .NamespaceName
.TP
.I .NamespaceSummary
.TP
.I .MemberName
.TP
.I .MemberSignature
.TP
.I .MemberBox
.TP
.I .Subsection
.TP
.I .SubsectionBox
.TP
.I .SignatureTable
.TP
.I .EnumerationsTable
.TP
.I .CodeExampleTable
.TP
.I .MembersListing
.TP
.I .TypesListing
.TP
.I .InnerSignatureTable
.TP
.I .TypePermissionsTable
.ne
.RE
.SH HTML LINKS
All members within the HTML file have a
.I id
attribute to permit linking to a specific member. The value of the
.I id
attribute is the String ID of the specified member.
See the
.B STRING ID FORMAT
section of the
.B monodocer
man page for more information.
.SH MAILING LISTS
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com for details
+9 -2
View File
@@ -46,6 +46,13 @@ Specify the output directory, default is 'output'.
If you specify the directory `.', please ensure that you won't write over
important assemblies of yours.
.TP
.I "-b true | false"
Specify whether to generate debug symbols or not, default is false.
.TP
.I "-g true | false"
Specify whether to generate a new guid for each linked module or reuse the
existing one, default is true.
.TP
.I "-l i18n_assemblies"
Specify what to do with the region specific assemblies
.Sp
@@ -86,8 +93,8 @@ their size.
.ne
.RE
.Sp
.TP "-p action assembly"
.I
.TP
.I "-p action assembly"
Specify per assembly which action to apply.
.TP
.I "-x descriptor"
+91 -28
View File
@@ -1,4 +1,4 @@
.TH sqlsharp 1 "25 December 2005"
.TH sqlsharp 1 "9 September 2008"
.SH NAME
sqlsharp \- Mono SQL Query command-line tool
.SH SYNOPSIS
@@ -69,6 +69,8 @@ Sets the Connection String
Example:
SQL# \\ConnectionString Database=testdb
or
SQL# \\cs Database=testdb
For more examples, see section CONNECTION STRING EXAMPLES.
@@ -80,10 +82,58 @@ Sets the Provider of the Data Source. For list of Providers, see section PROVID
Example: to set the provider for MySQL:
SQL# \\provider mysql
or
SQL# \\p mysql
Note: if you need to load an external provider in SQL#,
see the SQL# command \\loadextprovider
.fi
.TP
.I "ListProviders"
List ADO.NET 2.0 Providers available
.nf
Example:
SQL# \\ListProviders
or
SQL# \\listp
.fi
.TP
.I "BCS"
Prompts you for building each connection parameter and builds the connection string
and also allows you to enter a password wich does not echo.
.nf
Example:
SQL# \\bcs
ConnectionString Option: Data Source [] SQL# blazer
ConnectionString Option: Persist Security Info [False] SQL#
ConnectionString Option: Integrated Security [False] SQL#
ConnectionString Option: User ID [] SQL# scott
Password: *****
ConnectionString Option: Enlist [False] SQL#
ConnectionString Option: Pooling [True] SQL#
ConnectionString Option: Min Pool Size [0] SQL#
ConnectionString Option: Max Pool Size [100] SQL#
ConnectionString Option: Unicode [False] SQL#
ConnectionString Option: Load Balance Timeout [0] SQL#
ConnectionString Option: Omit Oracle Connection Name [False] SQL#
ConnectionString is set.
.fi
.TP
.I "LoadExtProvider"
@@ -344,32 +394,30 @@ ption defaulting to true.
PROVIDER NAME NAMESPACE ASSEMBLY
oracle Oracle 8i System.Data.OracleClient System.Data.OracleClient
oracle Oracle 8i-11g System.Data.OracleClient System.Data.OracleClient
postgresql NetPostgreSQL Npgsql Npgsql
bytefx ByteFX MySQL ByteFX.Data.MySqlClient ByteFX.Data
sqlclient MS SQL 7/2000 System.Data.SqlClient System.Data
sqlclient MS SQL 7-2008 System.Data.SqlClient System.Data
odbc ODBC System.Data.Odbc System.Data
sqlite SQL Lite Mono.Data.SqliteClient Mono.Data.SqliteClient
sybase Sybase Mono.Data.SybaseClient Mono.Data.SybaseClient
olebb OLE DB System.Data.OleDb System.Data
tds TDS Generic Mono.Data.TdsClient Mono.Data.TdsClient
msodbc MS ODBC Microsoft.Data.Odbc Microsoft.Data.Odbc
firebird Firebird SQL FirebirdSql.Data.FirebirdSql FirebirdSql.Data.Firebird
mysql MySQL AB MySql.Data.MySqlClient MySql.Data
NOTES:
npgsql maps to postgresql above.
mysqlnet maps to mysql above.
odbc is treated as an external provider for .NET 1.1 and above.
msodbc is an external provider for compatibility with .NET 1.0
Ngsql is the .Net Data Provider for PosgreSQL. The
latest verison can be downloaded from
http://npgsql.projects.postgresql.org/
MySql.Data has replaced the mysql provider. If you still need to use ByteFX.Data, then
use bytefx.
MySql.Data is the MySQL Connector/Net for connecting to MySql databases.
For MySQL, it is strongly recommend to use MySql.Data instead of the old
ByteFX.Data provider. Unfortunately, MySql.Data is not included with Mono.
You can download the latest MySQL Connector/Net from MySQL AB at
http://dev.mysql.com/downloads/
MySql.Data is not included with Mono. You need to
download the MySQL Connector/Net from MySQL AB at
http://dev.mysql.com/downloads/connector/net/1.0.html
FirebirdSql.Data.Firebird can be downloaded from here:
http://www.firebirdsql.org/index.php?op=files&id=netprovider
.fi
.SH CONNECTION STRING SAMPLES
@@ -385,10 +433,17 @@ Connection String examples:
Microsoft SQL Server via System.Data.SqlClient
or Mono.Data.TdsClient provider:
Server=DANPC;Database=pubs;User ID=saPassword=
Server=DANPC;Database=pubs;User ID=saPassword=;
For Integrated Security, bear in mind that Mono is not
integrated with Windows, SQL Server client nor server, nor
Windows Server. Therefore, you must provide the Windows Domain
name and domain user name and password for this user.
Server=DANPC;Database=pubs;User ID=DOMAIN\user;Password=pass;Integrated Security=SSPI
For a server locally, you can use localhost.
ODBC via System.Data.Odbc provider using
a DSN named "MSSQLDSN" I set up
@@ -397,6 +452,8 @@ which connects to Microsoft SQL Server 2000:
DSN=MSSQLDSN;UID=danmorg;PWD=freetds
To use ODBC ON Unix, consider unixODBC from http://www.unixodbc.org/
or use iODBC from http://www.iodbc.org/
SQL Lite via Mono.Data.SqliteClient
provider which connects to the
@@ -405,17 +462,21 @@ the file is created:
URI=file:SqliteTest.db
OLE DB via System.Data.OleDb provider
which connects to a PostgreSQL database:
Provider=PostgreSQL;Addr=127.0.0.1;Database=rodrigo
Oracle via System.Data.OracleClient
Data Source=testdb;User ID=scott;Password=tiger
If you prefer to not use a tnsnames.ora file, you can
use a connection string which allows a
TNS network description that is parentheses delimited
like the following which has the host, port, and
service name. For host, you can specify an IP address
instead of a hostname.
User ID=SCOTT;
Password=TIGER;
Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.101)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TESTDB)))
Npgsql (.NET PostgreSQL) from
http://gborg.postgresql.org/project/npgsql/projdisplay.php
@@ -425,15 +486,17 @@ http://gborg.postgresql.org/project/npgsql/projdisplay.php
ByteFX (ByteFX MySQL) from
Please use MySql.Data instead.
Server=localhost;Database=test;User ID=mysql;Password=
FirebirdSql via FirebirdSql.Data.Firebird (not included with Mono)
FirebirdSql via FirebirdSql.Data.Firebird (download latest form FirebirdSql.org)
Database=C:\\FIREBIRD\\EXAMPLES\\EMPLOYEE.FDB;User=SYSDBA;Password=masterkey;Dialect=3;Server=localhost
MySQL (MySQL AB) from http://www.mysql.com/
MySQL via (MySql.Data) MySQL Connector/Net from http://www.mysql.com/
Server=localhost;Database=test;User ID=mysql;Password=mypass;Pooling=false
@@ -444,7 +507,7 @@ No support for tracing right now.
.SH AUTHORS
The Mono SQL Query Tool was written
.nf
by Daniel Morgan <[email protected]>
by Daniel Morgan <[email protected]>
.fi
.PP
.SH LICENSE
@@ -470,5 +533,5 @@ http://www.mono-project.com
.fi
.PP
.SH SEE ALSO
mono(1), mint(1)
mono(1)
+31
View File
@@ -1,3 +1,34 @@
2008-10-18 Jonathan Pryor <[email protected]>
* docs/Makefile (MONODOC_INSTALL_DIR): Prefix path with $(DESTDIR) so
that it installs properly under the buildbot.
2008-10-18 Raja R Harinath <[email protected]>
* docs/Makefile (DISTFILES): Don't use 'find' to list files.
2008-10-18 Raja R Harinath <[email protected]>
* Makefile (net_2_0_SUBDIRS): Add 'docs'.
* docs/Makefile: Build documentation only in the net_2_0 profile.
2008-10-17 Jonathan Pryor <[email protected]>
* docs/Makefile: Add install/uninstall support.
2008-10-17 Jonathan Pryor <[email protected]>
* docs/Makefile: Assemble documentation.
* docs/cs-errors.config: Update to refer to correct directory.
* docs/mono-tools.config: Man pages are in mono/man now...
2008-10-08 Zoltan Varga <[email protected]>
* README: Update after the profile changes.
* Makefile */Makefile build/profiles/*.make: Rename the 'default'
profile to 'net_1_1'.
2008-05-14 Marek Safar <[email protected]>
* Makefile: Enabled more tests.
+6 -6
View File
@@ -5,7 +5,7 @@ SUBDIRS := build jay mcs class nunit20 ilasm tools tests errors docs
basic_SUBDIRS := build jay mcs class
net_1_1_bootstrap_SUBDIRS := build jay mcs class ilasm tools
net_2_0_bootstrap_SUBDIRS := build jay mcs class ilasm tools
net_2_0_SUBDIRS := build jay mcs class nunit20 ilasm tools tests errors
net_2_0_SUBDIRS := build jay mcs class nunit20 ilasm tools tests errors docs
net_2_1_bootstrap_SUBDIRS := build mcs class
net_2_1_raw_SUBDIRS := build mcs class tools
net_2_1_SUBDIRS := tools tests errors
@@ -49,7 +49,7 @@ net_2_0_centum_tests := \
class/Microsoft.Build.Utilities \
class/Microsoft.Build.Engine \
class/Mono.C5
# class/System.Web.Extensions
# class/Microsoft.Build.Tasks
@@ -78,7 +78,7 @@ dir-check:
# fun specialty targets
PROFILES = default net_2_0 net_3_5
PROFILES = net_1_1 net_2_0 net_3_5
.PHONY: all-profiles $(STD_TARGETS:=-profiles)
all-profiles $(STD_TARGETS:=-profiles): %-profiles: profiles-do--%
@@ -102,8 +102,8 @@ $(_boot_:%=profile-do--net_2_1--%): profile-do--net_2_1--%:
$(_boot_:%=profile-do--net_2_1_raw--%): profile-do--net_2_1_raw--%: profile-do--net_2_1_bootstrap--%
$(_boot_:%=profile-do--net_2_1_bootstrap--%): profile-do--net_2_1_bootstrap--%: profile-do--net_2_0--%
$(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--net_2_0_bootstrap--%
$(_boot_:%=profile-do--net_2_0_bootstrap--%): profile-do--net_2_0_bootstrap--%: profile-do--default--%
$(_boot_:%=profile-do--default--%): profile-do--default--%: profile-do--net_1_1_bootstrap--%
$(_boot_:%=profile-do--net_2_0_bootstrap--%): profile-do--net_2_0_bootstrap--%: profile-do--net_1_1--%
$(_boot_:%=profile-do--net_1_1--%): profile-do--net_1_1--%: profile-do--net_1_1_bootstrap--%
$(_boot_:%=profile-do--net_1_1_bootstrap--%): profile-do--net_1_1_bootstrap--%: profile-do--basic--%
testcorlib:
@@ -113,7 +113,7 @@ compiler-tests:
$(MAKE) TEST_SUBDIRS="tests errors" run-test-profiles
test-installed-compiler:
$(MAKE) TEST_SUBDIRS="tests errors" PROFILE=default TEST_RUNTIME=mono MCS=mcs run-test
$(MAKE) TEST_SUBDIRS="tests errors" PROFILE=net_1_1 TEST_RUNTIME=mono MCS=mcs run-test
$(MAKE) TEST_SUBDIRS="tests errors" PROFILE=net_2_0 TEST_RUNTIME=mono MCS=gmcs run-test
package := mcs-$(VERSION)
+11 -6
View File
@@ -56,23 +56,28 @@ package module which drives the compilation of this directory.
You can build individual components in the hierarchy by running the command
"make", and to install it use "make install".
If you need to build a given component on the 2.x profile, you must use
the following command:
By default, the 2.x profile is built, if you want to build the net 1.1 profile,
use the following command:
make PROFILE=net_2_0
make PROFILE=net_1_1
And to install:
make PROFILE=net_2_0 install
make PROFILE=net_1_1 install
To turn on verbose mode in the build (for example to diagnose a
problem), you can use the V=1 flag, like this:
make V=1
* Running Unit tests
====================
You can run unit tests in individual components by running the command
"make run-test". If you want to run tests for a different profile (say
'net_2_0')
'net_1_1')
make run-test PROFILE=net_2_0
make run-test PROFILE=net_1_1
If you want to only run the tests in a single fixture (say
'MonoTests.System.TypeTest'), you can use
+50
View File
@@ -1,3 +1,53 @@
2008-10-18 Jonathan Pryor <[email protected]>
* rules.make (dist-default): Distribute the Documentation directory,
if present.
2008-10-18 Jonathan Pryor <[email protected]>
* rules.make (MDOC): MONO_PATH needs to include net_1_1 so monodoc.dll
can be found.
2008-10-17 Jonathan Pryor <[email protected]>
* README.makefiles: Add documentation about the new doc-update target.
2008-10-18 Raja R Harinath <[email protected]>
* rules.make (MDOC): Pass a proper MONO_PATH.
2008-10-17 Jonathan Pryor <[email protected]>
* build.rules: doc-update is now a standard target; provide a $(MDOC)
variable to simplify running the `mdoc` updater program.
* executable.make: Add doc-update target support (does nothing).
* library.make: Add doc-update target support; runs `mdoc update` on
the assembly, updating the documentation within Documentation/en.
* Makefile: Add doc-update target support.
2008-09-14 Zoltan Varga <[email protected]>
* library.make: Allow FIXTURE make variable to be passed to nunit.
2008-08-29 Raja R Harinath <[email protected]>
* rules.make (do-%): Revert change below. We need the recursion
to ensure ordering of %-local after %-recursive. IOW, we
want to ensure strict linearity even with a 'make -j'.
2008-08-28 Zoltan Varga <[email protected]>
* rules.make (Q_MCS): Use 5 spaces instead of -e '\\t'.
* library.make: Make some command quiet.
* rules.make: Avoid some needless recursive make invocations.
* rules.make: Print the profile in the quiet commands.
* rules.make: Make the build process quiet similarly to the runtime build
process. Use the V=1 argument to make to make it verbose again.
2008-08-04 Zoltan Varga <[email protected]>
* rules.make (PROFILE): If no profile is passed on the command line, make
+2 -2
View File
@@ -4,7 +4,7 @@ include ../build/rules.make
BUILT_FILES = common/Consts.cs
all-local install-local test-local run-test-local run-test-ondotnet-local uninstall-local: $(BUILT_FILES)
all-local install-local test-local run-test-local run-test-ondotnet-local uninstall-local doc-update-local: $(BUILT_FILES)
@:
clean-local:
@@ -18,7 +18,7 @@ PLATFORMS = linux win32
PROFILES = \
basic \
net_1_1_bootstrap \
default \
net_1_1 \
net_2_0_bootstrap \
net_2_0 \
net_2_1_bootstrap \
+34 -3
View File
@@ -11,6 +11,7 @@ build system needs to let us do, specifically:
* Make distributions easily
* Provide a framework for testing
* Build platform-independently whenever possible
* Generate, update, and build monodoc documentation.
@@ -47,20 +48,22 @@ DISTFILES = myfile.txt my_test_source.cs
dist-local: dist-default
doc-update-local:
my_test_program.exe: my_test_source.cs
$(CSCOMPILE) /target:exe /out:$@ $<
========================================
Each makefile follows the same pattern: it does some setup, includes
the standard make rules, and provides rules for seven standard targets:
all, install, test, run-test, clean, and dist.
the standard make rules, and provides rules for eight standard targets:
all, install, test, run-test, clean, dist, and doc-update.
"Some setup" is defining two variables: $(thisdir) and
$(SUBDIRS). $(thisdir) is the directory that the makefile lives in,
relative to the top directory (ie, class/corlib) and $(SUBDIRS)
defines the subdirectories that should be built in.
The seven targets do the following:
The eight targets do the following:
* all-local builds whatever someone would expect to be built
when they just type 'make'. Most likely Foo.dll or Foo.exe
@@ -88,6 +91,11 @@ true that all files that go into a tarball need to be left after a make clean.)
given by the variable $(distdir). dist-local always depends on the
target 'dist-default'. See ** 'make dist' below.
* doc-update-local should generate or update monodoc documentation,
if appropriate. This is usually only appropriate for libraries. It's
defined as a standard target so that it can easily be run recursively
across all libraries within the module.
@@ -365,6 +373,14 @@ If you're building a library, library.make is highly recommended; the
only DLL that doesn't use it is corlib, because building corlib is a
fair bit more complicated than it should be. Oh well.
library.make also automatically supports generating and updating
monodoc documentation. Documentation is stored within the
Documentation directory (a sibling to the Test directory), and is
generated/updated whenever the doc-update target is executed.
Assembling of the documentation so that the monodoc browser can
display the documentation is handled separately within the mcs/docs
all-local target; see mcs/docs/Makefile for details.
@@ -408,6 +424,21 @@ variable $(CFLAGS) will automatically be included on the command line.
* Documentation-related needs? Use $(MDOC)
$(MDOC) is a front-end to the monodoc documentation system, supporting
documentation generation, updating, importing from Microsoft XML
Documentation and ECMA documentation formats, assembling documentation
for use within the monodoc documentation browser, and exporting
documentation to various other output formats such as static HTML.
It is currently only used for library.make's doc-update-local target
and for assembling documentation within $topdir/docs.
* Installing files? Use $(MKINSTALLDIRS), $(INSTALL_DATA) or
$(INSTALL_BIN), $(prefix), and $(DESTDIR).
+4
View File
@@ -120,3 +120,7 @@ ifneq ($(response),$(sourcefile))
$(response): $(topdir)/build/executable.make $(depsdir)/.stamp
endif
$(makefrag): $(topdir)/build/executable.make $(depsdir)/.stamp
doc-update-local:
@:
+28 -5
View File
@@ -94,7 +94,7 @@ ifdef NO_SIGN_ASSEMBLY
SN = :
else
sn = $(topdir)/class/lib/net_1_1_bootstrap/sn.exe
SN = MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(sn)
SN = $(Q) MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(sn)
SNFLAGS = -q -R
endif
@@ -210,10 +210,14 @@ TEST_HARNESS_POSTPROC = (echo ''; cat TestResult-$(PROFILE).log) | sed '1,/^Test
TEST_HARNESS_POSTPROC_ONDOTNET = (echo ''; cat TestResult-ondotnet-$(PROFILE).log) | sed '1,/^Tests run: /d'
endif
ifdef FIXTURE
FIXTURE_ARG = /fixture:MonoTests.$(FIXTURE)
endif
## FIXME: i18n problem in the 'sed' command below
run-test-lib: test-local
ok=:; \
MONO_REGISTRY_PATH="$(HOME)/.mono/registry" $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(TEST_HARNESS) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) $(TEST_HARNESS_EXCLUDES) $(TEST_HARNESS_OUTPUT) /xml:TestResult-$(PROFILE).xml $(test_assemblies) || ok=false; \
MONO_REGISTRY_PATH="$(HOME)/.mono/registry" $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(TEST_HARNESS) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) $(TEST_HARNESS_EXCLUDES) $(TEST_HARNESS_OUTPUT) /xml:TestResult-$(PROFILE).xml $(test_assemblies) $(FIXTURE_ARG) || ok=false; \
$(TEST_HARNESS_POSTPROC) ; $$ok
run-test-ondotnet-lib: test-local
@@ -297,9 +301,9 @@ $(build_lib): $(response) $(sn) $(BUILT_SOURCES) $(build_libdir:=/.stamp)
ifdef LIBRARY_USE_INTERMEDIATE_FILE
$(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) -target:library -out:$(LIBRARY_NAME) $(BUILT_SOURCES_cmdline) @$(response)
$(SN) $(SNFLAGS) $(LIBRARY_NAME) $(LIBRARY_SNK)
mv $(LIBRARY_NAME) $@
test ! -f $(LIBRARY_NAME).mdb || mv $(LIBRARY_NAME).mdb [email protected]
test ! -f $(LIBRARY_NAME:.dll=.pdb) || mv $(LIBRARY_NAME:.dll=.pdb) $(dir $@)$(LIBRARY_NAME:.dll=.pdb)
$(Q) mv $(LIBRARY_NAME) $@
$(Q) test ! -f $(LIBRARY_NAME).mdb || mv $(LIBRARY_NAME).mdb [email protected]
$(Q) test ! -f $(LIBRARY_NAME:.dll=.pdb) || mv $(LIBRARY_NAME:.dll=.pdb) $(dir $@)$(LIBRARY_NAME:.dll=.pdb)
else
$(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) -target:library -out:$@ $(BUILT_SOURCES_cmdline) @$(response)
$(SN) $(SNFLAGS) $@ $(LIBRARY_SNK)
@@ -362,3 +366,22 @@ ifneq ($(response),$(sourcefile))
$(response): $(topdir)/build/library.make $(depsdir)/.stamp
endif
$(makefrag) $(test_response) $(test_makefrag) $(btest_response) $(btest_makefrag): $(topdir)/build/library.make $(depsdir)/.stamp
## Documentation stuff
Q_MDOC_UP=$(if $(V),,@echo "MDOC-UP [$(PROFILE)] $(notdir $(@))";)
MDOC_UP =$(Q_MDOC_UP) \
if `echo $(PROFILE) | grep ^net_1_ > /dev/null 2>/dev/null` ; then \
$(RUNTIME) $(topdir)/tools/mdoc/monodocer1.exe \
-path:Documentation/en -assembly:$(the_lib) ; \
else \
$(RUNTIME) $(topdir)/tools/mdoc/mdoc.exe update --delete \
-o Documentation/en $(the_lib) ; \
fi
doc-update-local: $(the_libdir)/.doc-stamp
$(the_libdir)/.doc-stamp: $(the_lib)
$(MDOC_UP)
@echo "doc-stamp" > $@
+5
View File
@@ -22,6 +22,11 @@ NO_TEST = yes
NO_INSTALL = yes
FRAMEWORK_VERSION = 1.0
#
# Copy from rules.make because I don't know how to unset MCS_FLAGS
#
USE_MCS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS)
.PHONY: profile-check do-profile-check
profile-check:
@:
+28
View File
@@ -0,0 +1,28 @@
# -*- makefile -*-
#
# The default 'bootstrap' profile -- builds so that we link against
# the libraries as we build them.
#
# We use the platform's native C# runtime and compiler if possible.
# Note that we have sort of confusing terminology here; BOOTSTRAP_MCS
# is what allows us to bootstrap ourselves, but when we are bootstrapping,
# we use INTERNAL_MCS.
# When bootstrapping, compile against our new assemblies.
# (MONO_PATH doesn't just affect what assemblies are loaded to
# run the compiler; /r: flags are by default loaded from whatever's
# in the MONO_PATH too).
BOOTSTRAP_PROFILE = net_1_1_bootstrap
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/mcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS)
MBAS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MBAS)
# nuttzing!
profile-check:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:ONLY_1_1
PROFILE_MBAS_FLAGS = -d:NET_1_1 -d:ONLY_1_1
FRAMEWORK_VERSION = 1.0
@@ -8,6 +8,11 @@ NO_SIGN_ASSEMBLY = yes
NO_TEST = yes
NO_INSTALL = yes
#
# Copy from rules.make because I don't know how to unset MCS_FLAGS
#
USE_MCS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS)
profile-check:
@:
+2 -1
View File
@@ -4,7 +4,8 @@
# Note that we're using the .NET 1.1 MCS but MONO_PATH points to the net_2_0_bootstrap directory.
# We do it this way to get assembly version references right.
#
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/default$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/default/mcs.exe
BOOTSTRAP_PROFILE = net_1_1
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/mcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/gmcs.exe
profile-check:
+18 -3
View File
@@ -15,13 +15,17 @@ topdir := $(dots)
VERSION = 0.93
Q=$(if $(V),,@)
# echo -e "\\t" does not work on some systems, so use 5 spaces
Q_MCS=$(if $(V),,@echo "MCS [$(PROFILE)] $(notdir $(@))";)
USE_MCS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS) $(MCS_FLAGS)
USE_MBAS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MBAS_FLAGS) $(PLATFORM_MBAS_FLAGS) $(PROFILE_MBAS_FLAGS) $(MBAS_FLAGS)
USE_CFLAGS = $(LOCAL_CFLAGS) $(CFLAGS)
CSCOMPILE = $(MCS) $(USE_MCS_FLAGS)
CSCOMPILE = $(Q_MCS) $(MCS) $(USE_MCS_FLAGS)
BASCOMPILE = $(MBAS) $(USE_MBAS_FLAGS)
CCOMPILE = $(CC) $(USE_CFLAGS)
BOOT_COMPILE = $(BOOTSTRAP_MCS) $(USE_MCS_FLAGS)
BOOT_COMPILE = $(Q_MCS) $(BOOTSTRAP_MCS) $(USE_MCS_FLAGS)
INSTALL = $(SHELL) $(topdir)/../mono/install-sh
INSTALL_DATA = $(INSTALL) -c -m 644
INSTALL_BIN = $(INSTALL) -c -m 755
@@ -108,7 +112,7 @@ gacutil = $(topdir)/class/lib/net_1_1_bootstrap/gacutil.exe
GACUTIL = MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(gacutil)
endif
STD_TARGETS = test run-test run-test-ondotnet clean install uninstall
STD_TARGETS = test run-test run-test-ondotnet clean install uninstall doc-update
$(STD_TARGETS): %: do-%
@@ -168,6 +172,11 @@ dist-default:
dest=`dirname $(distdir)/$$f` ; \
$(MKINSTALLDIRS) $$dest && cp -p $$f $$dest || exit 1 ; \
done
if test -d Documentation ; then \
find . -name '*.xml' > .files ; \
tar cTf .files - | (cd $(distdir); tar xf -) ; \
rm .files ; \
fi
%/.stamp:
$(MKINSTALLDIRS) $(@D)
@@ -177,3 +186,9 @@ dist-default:
withmcs:
$(MAKE) MCS='$(INTERNAL_MCS)' BOOTSTRAP_MCS='$(INTERNAL_MCS)' all
## Documentation stuff
Q_MDOC =$(if $(V),,@echo "MDOC [$(PROFILE)] $(notdir $(@))";)
MDOC =$(Q_MDOC) MONO_PATH="$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_1_1$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(topdir)/tools/mdoc/mdoc.exe
+54
View File
@@ -1,3 +1,57 @@
2008-10-17 Jonathan Pryor <[email protected]>
* I18N/Makefile: Add doc-update target support.
2008-10-13 Jonathan Pryor <[email protected]>
* Makefile (net_2_0_dirs): Add Mono.Options.
2008-10-09 Atsushi Enomoto <[email protected]>
* Makefile: add System.Web.Abstractions and System.Web.Routing.
2008-10-07 Atsushi Enomoto <[email protected]>
* Makefile : changed some net_2_0_dirs orders; Sys.Web.Extensions
will depend on Sys.Data.Linq (LinqDataSource).
2008-10-07 Zoltan Varga <[email protected]>
* Makefile (net_2_0_dirs): Add Mono.Simd.
2008-09-30 Marek Habersack <[email protected]>
* Makefile (net_2_0_dirs): added System.Web.Extensions_1.0 and
System.Web.Extensions.Design_1.0
(net_3_5_dirs): removed System.Web.Extensions, the 3.5 version is
now built in the 2.0 profile.
2008-09-24 Zoltan Varga <[email protected]>
* Makefile (net_2_0_dirs): Add Mono.Management.
2008-09-23 Marek Safar <[email protected]>
* Makefile: Build Mono.CompilerServices.SymbolWriter before it's
used.
2008-09-23 Jb Evain <[email protected]>
* Makefile: compile the SymbolWriter during net_2_1_raw.
2008-09-12 Jb Evain <[email protected]>
* Makefile: add System.ServiceModel.Web to the net_2_1_raw build.
2008-09-12 Jb Evain <[email protected]>
* Makefile: add System.ServiceModel to the net_2_1_raw build.
2008-09-09 Jb Evain <[email protected]>
* Makefile: build System.Runtime.Serialization
during the net_2_1_raw profile.
2008-08-21 Jb Evain <[email protected]>
* Makefile: add wcf and cardspace to the build.
@@ -0,0 +1,50 @@
<Type Name="Nvdl" FullName="Commons.Xml.Nvdl.Nvdl">
<TypeSignature Language="C#" Value="public class Nvdl" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName="Namespace">
<MemberSignature Language="C#" Value="public const string Namespace;" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents the namespace URI for NVDL grammar.</summary>
<remarks>The value is http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0 .</remarks>
</Docs>
</Member>
<Member MemberName="BuiltInValidationNamespace">
<MemberSignature Language="C#" Value="public const string BuiltInValidationNamespace;" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents the namespace URI for built-in NVDL validation.</summary>
<remarks>The value is http://purl.oclc.org/dsdl/nvdl/ns/predefinedSchema/1.0 .</remarks>
</Docs>
</Member>
<Member MemberName="InstanceNamespace">
<MemberSignature Language="C#" Value="public const string InstanceNamespace;" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents the namespace URI for NVDL instance.</summary>
<remarks>The value is http://purl.oclc.org/dsdl/nvdl/ns/instance/1.0 .</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>Holds constants for several NVDL related namespace URIs.</summary>
<remarks>To be added.</remarks>
</Docs>
</Type>
@@ -0,0 +1,26 @@
<Type Name="NvdlAction" FullName="Commons.Xml.Nvdl.NvdlAction">
<TypeSignature Language="C#" Value="public abstract class NvdlAction : Commons.Xml.Nvdl.NvdlAttributable" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Commons.Xml.Nvdl.NvdlAttributable</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected NvdlAction ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>Default constructor for NVDL "action" element.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>Represents "action" element of NVDL grammar object model.</summary>
<remarks>This class represents NVDL "action" element. For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
</Docs>
</Type>
@@ -0,0 +1,77 @@
<Type Name="NvdlActionList" FullName="Commons.Xml.Nvdl.NvdlActionList">
<TypeSignature Language="C#" Value="public class NvdlActionList : System.Collections.CollectionBase" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Collections.CollectionBase</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName>System.Reflection.DefaultMember(MemberName="Item")</AttributeName>
</Attribute>
</Attributes>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlActionList ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>The default constructor.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Add">
<MemberSignature Language="C#" Value="public void Add (Commons.Xml.Nvdl.NvdlAction item);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="item" Type="Commons.Xml.Nvdl.NvdlAction" />
</Parameters>
<Docs>
<param name="item">NVDL "action" element to add.</param>
<summary>Adds an "action" to this collection.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Remove">
<MemberSignature Language="C#" Value="public void Remove (Commons.Xml.Nvdl.NvdlAction item);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="item" Type="Commons.Xml.Nvdl.NvdlAction" />
</Parameters>
<Docs>
<param name="item">Target NVDL "action" item to remove.</param>
<summary>Removes an NVDL "action" from this collection.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Item">
<MemberSignature Language="C#" Value="public Commons.Xml.Nvdl.NvdlAction Item[int i] { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Commons.Xml.Nvdl.NvdlAction</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="i" Type="System.Int32" />
</Parameters>
<Docs>
<param name="i">Index to the target "action".</param>
<summary>Gets or sets the target "action" element.</summary>
<value>The target "action" element.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>Typed collection for <see cref="T:Commons.Xml.Nvdl.NvdlAction" />.</summary>
<remarks>This class is a collection for <see cref="T:Commons.Xml.Nvdl.NvdlAction" />.</remarks>
</Docs>
</Type>
@@ -0,0 +1,26 @@
<Type Name="NvdlAllow" FullName="Commons.Xml.Nvdl.NvdlAllow">
<TypeSignature Language="C#" Value="public class NvdlAllow : Commons.Xml.Nvdl.NvdlNoResultAction" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Commons.Xml.Nvdl.NvdlNoResultAction</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlAllow ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>The default constructor.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>Represents an NVDL "allow" element.</summary>
<remarks>This class represents NVDL "allow" element. For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
</Docs>
</Type>
@@ -0,0 +1,26 @@
<Type Name="NvdlAnyNamespace" FullName="Commons.Xml.Nvdl.NvdlAnyNamespace">
<TypeSignature Language="C#" Value="public class NvdlAnyNamespace : Commons.Xml.Nvdl.NvdlRule" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Commons.Xml.Nvdl.NvdlRule</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlAnyNamespace ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>The default constructor.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>Represents an NVDL "anyNamespace" element.</summary>
<remarks>This class represents NVDL "allow" element. For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
</Docs>
</Type>
@@ -0,0 +1,26 @@
<Type Name="NvdlAttach" FullName="Commons.Xml.Nvdl.NvdlAttach">
<TypeSignature Language="C#" Value="public class NvdlAttach : Commons.Xml.Nvdl.NvdlResultAction" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Commons.Xml.Nvdl.NvdlResultAction</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlAttach ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>The default constructor.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>Represents an NVDL "attach" element.</summary>
<remarks>This class represents NVDL "attach" element. For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
</Docs>
</Type>
@@ -0,0 +1,26 @@
<Type Name="NvdlAttachPlaceHolder" FullName="Commons.Xml.Nvdl.NvdlAttachPlaceHolder">
<TypeSignature Language="C#" Value="public class NvdlAttachPlaceHolder : Commons.Xml.Nvdl.NvdlResultAction" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Commons.Xml.Nvdl.NvdlResultAction</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlAttachPlaceHolder ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>The default constructor.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>Represents an NVDL "attachPlaceHolder" element.</summary>
<remarks>This class represents NVDL "attachPlaceHolder" element. For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
</Docs>
</Type>
@@ -0,0 +1,38 @@
<Type Name="NvdlAttributable" FullName="Commons.Xml.Nvdl.NvdlAttributable">
<TypeSignature Language="C#" Value="public class NvdlAttributable : Commons.Xml.Nvdl.NvdlElementBase" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Commons.Xml.Nvdl.NvdlElementBase</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlAttributable ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>The default constructor.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Foreign">
<MemberSignature Language="C#" Value="public System.Collections.ArrayList Foreign { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Collections.ArrayList</ReturnType>
</ReturnValue>
<Docs>
<summary>Holds the all foreign attributes.</summary>
<value>A list that holds the entire foreign attributes.</value>
<remarks>This list holds the entire foreign attributes. Here "foreign" means those attributes whose namespace URI is neither empty nor NVDL structure namespace (see <see cref="F:Commons.Xml.Nvdl.Nvdl.NvdlNamespace" />). </remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>Represents an abstract NVDL element that can hold foreign attribute.</summary>
<remarks>This class represents an abstract NVDL element that can hold foreign attribute. Here "foreign" means those attributes whose namespace URI is neither empty nor NVDL structure namespace (see <see cref="F:Commons.Xml.Nvdl.Nvdl.NvdlNamespace" />). For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
</Docs>
</Type>
@@ -0,0 +1,26 @@
<Type Name="NvdlBuiltInValidationProvider" FullName="Commons.Xml.Nvdl.NvdlBuiltInValidationProvider">
<TypeSignature Language="C#" Value="public class NvdlBuiltInValidationProvider : Commons.Xml.Nvdl.NvdlValidationProvider" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Commons.Xml.Nvdl.NvdlValidationProvider</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlBuiltInValidationProvider ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>The default constructor.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>Validator implementation for built-in NVDL namespace.</summary>
<remarks>This validation provider implements a validation feature for built-in NVDL namespace. In this namespace, the rule is simple; any of input XML instances are either allowed or rejected.</remarks>
</Docs>
</Type>
@@ -0,0 +1,26 @@
<Type Name="NvdlCancelAction" FullName="Commons.Xml.Nvdl.NvdlCancelAction">
<TypeSignature Language="C#" Value="public class NvdlCancelAction : Commons.Xml.Nvdl.NvdlAction" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Commons.Xml.Nvdl.NvdlAction</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlCancelAction ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>The default constructor.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>Represents an NVDL "cancelNestedAction" element.</summary>
<remarks>This class represents NVDL "cancelNestedAction" element. For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
</Docs>
</Type>
@@ -0,0 +1,47 @@
<Type Name="NvdlCompileException" FullName="Commons.Xml.Nvdl.NvdlCompileException">
<TypeSignature Language="C#" Value="public class NvdlCompileException : Commons.Xml.Nvdl.NvdlException" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Commons.Xml.Nvdl.NvdlException</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlCompileException (string message, System.Xml.IXmlLineInfo source);" />
<MemberType>Constructor</MemberType>
<Parameters>
<Parameter Name="message" Type="System.String" />
<Parameter Name="source" Type="System.Xml.IXmlLineInfo" />
</Parameters>
<Docs>
<param name="message">To be added.</param>
<param name="source">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlCompileException (string message, Exception inner, System.Xml.IXmlLineInfo source);" />
<MemberType>Constructor</MemberType>
<Parameters>
<Parameter Name="message" Type="System.String" />
<Parameter Name="inner" Type="System.Exception" />
<Parameter Name="source" Type="System.Xml.IXmlLineInfo" />
</Parameters>
<Docs>
<param name="message">To be added.</param>
<param name="inner">To be added.</param>
<param name="source">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Type>
@@ -0,0 +1,71 @@
<Type Name="NvdlConfig" FullName="Commons.Xml.Nvdl.NvdlConfig">
<TypeSignature Language="C#" Value="public class NvdlConfig" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlConfig ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="AddProvider">
<MemberSignature Language="C#" Value="public void AddProvider (Commons.Xml.Nvdl.NvdlValidationProvider provider);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="Commons.Xml.Nvdl.NvdlValidationProvider" />
</Parameters>
<Docs>
<param name="provider">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetGenerator">
<MemberSignature Language="C#" Value="public Commons.Xml.Nvdl.NvdlValidatorGenerator GetGenerator (Commons.Xml.Nvdl.NvdlValidate validate, string inheritSchemaType);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>Commons.Xml.Nvdl.NvdlValidatorGenerator</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="validate" Type="Commons.Xml.Nvdl.NvdlValidate" />
<Parameter Name="inheritSchemaType" Type="System.String" />
</Parameters>
<Docs>
<param name="validate">To be added.</param>
<param name="inheritSchemaType">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="XmlResolver">
<MemberSignature Language="C#" Value="public System.Xml.XmlResolver XmlResolver { set; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Xml.XmlResolver</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Type>
@@ -0,0 +1,62 @@
<Type Name="NvdlContext" FullName="Commons.Xml.Nvdl.NvdlContext">
<TypeSignature Language="C#" Value="public class NvdlContext : Commons.Xml.Nvdl.NvdlAttributable" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Commons.Xml.Nvdl.NvdlAttributable</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlContext ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Path">
<MemberSignature Language="C#" Value="public string Path { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="UseMode">
<MemberSignature Language="C#" Value="public string UseMode { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="NestedMode">
<MemberSignature Language="C#" Value="public Commons.Xml.Nvdl.NvdlNestedMode NestedMode { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Commons.Xml.Nvdl.NvdlNestedMode</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Type>
@@ -0,0 +1,77 @@
<Type Name="NvdlContextList" FullName="Commons.Xml.Nvdl.NvdlContextList">
<TypeSignature Language="C#" Value="public class NvdlContextList : System.Collections.CollectionBase" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Collections.CollectionBase</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName>System.Reflection.DefaultMember(MemberName="Item")</AttributeName>
</Attribute>
</Attributes>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlContextList ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Add">
<MemberSignature Language="C#" Value="public void Add (Commons.Xml.Nvdl.NvdlContext item);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="item" Type="Commons.Xml.Nvdl.NvdlContext" />
</Parameters>
<Docs>
<param name="item">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Remove">
<MemberSignature Language="C#" Value="public void Remove (Commons.Xml.Nvdl.NvdlContext item);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="item" Type="Commons.Xml.Nvdl.NvdlContext" />
</Parameters>
<Docs>
<param name="item">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Item">
<MemberSignature Language="C#" Value="public Commons.Xml.Nvdl.NvdlContext Item[int i] { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Commons.Xml.Nvdl.NvdlContext</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="i" Type="System.Int32" />
</Parameters>
<Docs>
<param name="i">To be added.</param>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Type>
@@ -0,0 +1,79 @@
<Type Name="NvdlElementBase" FullName="Commons.Xml.Nvdl.NvdlElementBase">
<TypeSignature Language="C#" Value="public class NvdlElementBase : System.Xml.IXmlLineInfo" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.Xml.IXmlLineInfo</InterfaceName>
</Interface>
</Interfaces>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlElementBase ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="HasLineInfo">
<MemberSignature Language="C#" Value="public bool HasLineInfo ();" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="LineNumber">
<MemberSignature Language="C#" Value="public int LineNumber { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="LinePosition">
<MemberSignature Language="C#" Value="public int LinePosition { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SourceUri">
<MemberSignature Language="C#" Value="public string SourceUri { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Type>
@@ -0,0 +1,43 @@
<Type Name="NvdlException" FullName="Commons.Xml.Nvdl.NvdlException">
<TypeSignature Language="C#" Value="public class NvdlException : System.Exception" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Exception</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlException (string message);" />
<MemberType>Constructor</MemberType>
<Parameters>
<Parameter Name="message" Type="System.String" />
</Parameters>
<Docs>
<param name="message">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlException (string message, Exception inner);" />
<MemberType>Constructor</MemberType>
<Parameters>
<Parameter Name="message" Type="System.String" />
<Parameter Name="inner" Type="System.Exception" />
</Parameters>
<Docs>
<param name="message">To be added.</param>
<param name="inner">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Type>
@@ -0,0 +1,38 @@
<Type Name="NvdlIncludedMode" FullName="Commons.Xml.Nvdl.NvdlIncludedMode">
<TypeSignature Language="C#" Value="public class NvdlIncludedMode : Commons.Xml.Nvdl.NvdlModeBase" />
<AssemblyInfo>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Commons.Xml.Nvdl.NvdlModeBase</BaseTypeName>
</Base>
<Interfaces />
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public NvdlIncludedMode ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Name">
<MemberSignature Language="C#" Value="public string Name { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Type>
Loaded 100 of 9807 files, more files were not shown because too many files have changed in this diff. Show more