mono.git
15 years agoWarnings cleanup
Marek Safar [Wed, 27 Aug 2008 18:28:16 +0000 (18:28 -0000)]
Warnings cleanup

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

15 years ago2008-08-27 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 27 Aug 2008 18:01:26 +0000 (18:01 -0000)]
2008-08-27  Miguel de Icaza  <miguel@novell.com>

* getline.cs: Applied patch from Stuart Carnie <stuart.carnie@gmail.com>
that fixes the cursor key handling, and a history bug.

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

15 years agoBetter system to name hidden variables
Miguel de Icaza [Wed, 27 Aug 2008 17:58:12 +0000 (17:58 -0000)]
Better system to name hidden variables

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

15 years agoFix small mistake
Miguel de Icaza [Wed, 27 Aug 2008 17:54:08 +0000 (17:54 -0000)]
Fix small mistake

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

15 years ago2008-08-27 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Wed, 27 Aug 2008 17:29:00 +0000 (17:29 -0000)]
2008-08-27  Bill Holmes  <billholmes54@gmail.com>

* mini-amd64.h : Fix a compiler warning.

* exceptions-amd64.c (mono_arch_unwindinfo_install_unwind_info) :
  Changed to use a callback function to retrieve the unwind info.
  This avoids problems observed when code blocks were removed by
  unloading an app domain.

* mini-amd64.c (mono_arch_cpu_optimizazions) : Removing the peephole
  and branch excludes for Winx64.  The fix in exceptions-amd64.c allows them
  to work properly.

Contributed under MIT/X11 license.

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

15 years ago2008-08-27 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Wed, 27 Aug 2008 17:20:21 +0000 (17:20 -0000)]
2008-08-27  Bill Holmes  <billholmes54@gmail.com>

* mini-amd64.c (mono_arch_output_basic_block) : Fix the OP_X86_PUSH_OBJ
  case to keep the stack aligned to 8.

Contributed under MIT/X11 license.

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

15 years ago* ScrollBar.cs: Control enabled to support accessibility.
Mario Carrion [Wed, 27 Aug 2008 17:17:53 +0000 (17:17 -0000)]
* ScrollBar.cs: Control enabled to support accessibility.
  [Fixes bug #416759]

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

15 years ago* ComboBox.cs: Control enabled to support accessibility.
Mario Carrion [Wed, 27 Aug 2008 17:12:30 +0000 (17:12 -0000)]
* ComboBox.cs: Control enabled to support accessibility.
  [Fixes bug #416663]

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

15 years ago* ListBox.cs: Control enabled to support accessibility.
Mario Carrion [Wed, 27 Aug 2008 17:07:56 +0000 (17:07 -0000)]
* ListBox.cs: Control enabled to support accessibility.
  [Fixes bug #416640]

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

15 years agoFix crasher, as reported in comments
Miguel de Icaza [Wed, 27 Aug 2008 17:05:04 +0000 (17:05 -0000)]
Fix crasher, as reported in comments

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

15 years ago2008-08-27 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 27 Aug 2008 16:15:40 +0000 (16:15 -0000)]
2008-08-27  Jonathan Pobst  <monkey@jpobst.com>

* ComboBox.cs: Don't suppress the TextChanged event when changing
the SelectedIndex.
* ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
and re-raise it.
[Fixes bug #420673]

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

15 years agoWarnings cleanup
Marek Safar [Wed, 27 Aug 2008 15:40:13 +0000 (15:40 -0000)]
Warnings cleanup

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

15 years agoMove 414 out of 2.0 profile
Marek Safar [Wed, 27 Aug 2008 15:37:00 +0000 (15:37 -0000)]
Move 414 out of 2.0 profile

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

15 years ago2008-08-27 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Wed, 27 Aug 2008 15:20:39 +0000 (15:20 -0000)]
2008-08-27  Bill Holmes  <billholmes54@gmail.com>

* glib.h, gunicode.c : Fixing some compiler errors.

* strenc.c : Fixing some waringings and compiler errors when using
  eglib.

Contributed under MIT/X11 license.

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

15 years agoremove changelog obsoleted by merge
Raja R Harinath [Wed, 27 Aug 2008 12:58:20 +0000 (12:58 -0000)]
remove changelog obsoleted by merge

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

15 years ago* Makefile (DIST_ONLY_SUBDIRS): Add 'sqlsharp'.
Raja R Harinath [Wed, 27 Aug 2008 12:55:28 +0000 (12:55 -0000)]
* Makefile (DIST_ONLY_SUBDIRS): Add 'sqlsharp'.

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

15 years agostyle nits
Raja R Harinath [Wed, 27 Aug 2008 12:54:48 +0000 (12:54 -0000)]
style nits

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

15 years agowhitespace cleanups
Raja R Harinath [Wed, 27 Aug 2008 12:53:58 +0000 (12:53 -0000)]
whitespace cleanups

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

15 years agoBuild fix
Marek Safar [Wed, 27 Aug 2008 12:34:23 +0000 (12:34 -0000)]
Build fix

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

15 years ago* ConstraintCollection.cs (Item) <string variant>: Don't incur
Raja R Harinath [Wed, 27 Aug 2008 12:21:41 +0000 (12:21 -0000)]
* ConstraintCollection.cs (Item) <string variant>: Don't incur
additional check for index that's returned by 'IndexOf'.
(_createNewConstraintName): Improve readability of code.
(_isDuplicateConstraintName): Perform cheaper test first.

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

15 years agostyle nits
Raja R Harinath [Wed, 27 Aug 2008 12:21:19 +0000 (12:21 -0000)]
style nits

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

15 years agocleanup whitespace
Raja R Harinath [Wed, 27 Aug 2008 12:20:57 +0000 (12:20 -0000)]
cleanup whitespace

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

15 years ago* ConstraintCollection.cs: Reduce some #ifdef by using partial
Raja R Harinath [Wed, 27 Aug 2008 12:20:34 +0000 (12:20 -0000)]
* ConstraintCollection.cs: Reduce some #ifdef by using partial
classes.  Move 'sealed' and '[Serializable]' to appropriate
partial class declarations.
* DataRowCollection.cs: Likewise.

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

15 years ago2008-08-27 Daniel Morgan <monodanmorg@yahoo.com>
Daniel Morgan [Wed, 27 Aug 2008 04:12:39 +0000 (04:12 -0000)]
2008-08-27  Daniel Morgan <monodanmorg@yahoo.com>

* Makefile: move sqlsharp from SUBDIRS to net_2_0_SUBDIRS
        so sqlsharp can build using gmcs and the NET_2_0 profile.

See ChangeLog in sqlsharp.

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

15 years ago2008-08-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 27 Aug 2008 03:27:55 +0000 (03:27 -0000)]
2008-08-27  Zoltan Varga  <vargaz@gmail.com>

* mono-config.5: Fix a typo.

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

15 years agoI hate this name, but it is what it is
Miguel de Icaza [Tue, 26 Aug 2008 23:32:09 +0000 (23:32 -0000)]
I hate this name, but it is what it is

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

15 years ago2008-08-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 26 Aug 2008 23:31:56 +0000 (23:31 -0000)]
2008-08-27  Zoltan Varga  <vargaz@gmail.com>

* RxCompiler.cs: Use Array.Copy since Buffer.BlockCopy operates on bytes.

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

15 years agoRemove debugginf info, add welcome message
Miguel de Icaza [Tue, 26 Aug 2008 22:50:30 +0000 (22:50 -0000)]
Remove debugginf info, add welcome message

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

15 years ago2008-08-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 26 Aug 2008 22:41:04 +0000 (22:41 -0000)]
2008-08-26  Miguel de Icaza  <miguel@novell.com>

* Makefile: Drop BOOTSTRAP_COMPILER as that was masking the
limitations in Console, instead the 2.0 bootstrap libraries now
include the Console bits.

Also, remove the use of Nullables from getline.cs

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

15 years agoRemove junk
Miguel de Icaza [Tue, 26 Aug 2008 22:40:00 +0000 (22:40 -0000)]
Remove junk

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

15 years ago2008-08-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 26 Aug 2008 22:39:45 +0000 (22:39 -0000)]
2008-08-26  Miguel de Icaza  <miguel@novell.com>

* New console features are used by gmcs.exe, but since we only
build gmcs.exe with the bootstrap corlib, we need to ensure all
the new stuff is included in BOOTSTRAP_NET_2_0

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

15 years agoImprove JAY: now we support EOF detection
Miguel de Icaza [Tue, 26 Aug 2008 22:01:41 +0000 (22:01 -0000)]
Improve JAY: now we support EOF detection

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

15 years ago2008-08-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 26 Aug 2008 21:51:00 +0000 (21:51 -0000)]
2008-08-26  Miguel de Icaza  <miguel@novell.com>

Interactive support for the C# compiler.   Use gmcs --shell to
enter a read-eval-print loop shell.

Docs: http://www.mono-project.com/CsharpRepl

* sources: include repl.cs here and getline.cs for gmcs.exe,
everything else is getline.cs impaired.

* Makefile: when bootstrapping pass a special flag
BOOTSTRAP_COMPILER which we use to prevent failures in compilation
as we use NET_2_0 define to pull 2.0 APIs from System.Console.
This distinguishes those two cases.

* repl.cs: Support for a read-eval-print loop.   Will be soon
refactored into eval support and then REPL on top of it.

* ecore.cs: If a simplename lookup fails, before erroring out,
if we are in EvalMode to resolve the name to a declaration in the
Eval-land.

This means that variable declarations that happened in previous
classes (as repl puts every statement in a separate class) are
made visible in this way.

* cs-parser.jay: UnexpectedEOF, a new flag that is set if we
triggered an error due to the end of file being reached.   This is
used to do multi-line input, and notify the caller that the user
needs to provide more text before a successful parse.

Add new grammar rules after the INTERACTIVE_PARSER token is seen
to drive the evaluation with a custom wrapper.

* driver.cs: Add support for --shell, and refactor some code to be
reused from repl.cs

* namespace.cs: Add support for serializing the contents of the
namespaces and reloading them.

* getline.cs: A managed implementation of ReadLine under
X11/Apache2 license terms.  Easy to embed in other applications as
well.

* namespace.cs: Add some functions to save and restore the
namespace state.

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

15 years agoAdd my notes on missing stuff
Miguel de Icaza [Tue, 26 Aug 2008 21:36:57 +0000 (21:36 -0000)]
Add my notes on missing stuff

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

15 years agoFix
Miguel de Icaza [Tue, 26 Aug 2008 21:24:49 +0000 (21:24 -0000)]
Fix

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

15 years agoAdd getline.cs
Miguel de Icaza [Tue, 26 Aug 2008 20:17:38 +0000 (20:17 -0000)]
Add getline.cs

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

15 years ago2008-08-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 26 Aug 2008 19:55:46 +0000 (19:55 -0000)]
2008-08-26  Zoltan Varga  <vargaz@gmail.com>

* generics-sharing.2.cs: Fix invalid generic construct permitted by older
versions of gmcs.

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

15 years ago2008-08-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 26 Aug 2008 19:49:59 +0000 (19:49 -0000)]
2008-08-26  Miguel de Icaza  <miguel@novell.com>

* rootcontext.cs: New public field.

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

15 years ago2008-08-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 26 Aug 2008 19:49:54 +0000 (19:49 -0000)]
2008-08-26  Miguel de Icaza  <miguel@novell.com>

* rootcontext.cs: New public field.

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

15 years ago2008-08-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 26 Aug 2008 19:48:01 +0000 (19:48 -0000)]
2008-08-26  Miguel de Icaza  <miguel@novell.com>

* cs-tokenizer.cs: Add support for one of the possible characters
we introduce into the token stream.

This patch does not affect the regular tokenization process, the
only performance hit would happen if there is an invalid character
on the input string.

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

15 years ago2008-08-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 26 Aug 2008 19:45:30 +0000 (19:45 -0000)]
2008-08-26  Miguel de Icaza  <miguel@novell.com>

* support.cs: Move isatty helper routine here.

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

15 years ago2008-08-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 26 Aug 2008 19:42:24 +0000 (19:42 -0000)]
2008-08-26  Miguel de Icaza  <miguel@novell.com>

* codegen.cs: Small cleanup, and add a mechanism to initialize the
code generator for in-memory assemblies.

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

15 years ago2008-08-26 Robert Jordan <robertj@gmx.net>
Robert Jordan [Tue, 26 Aug 2008 19:40:56 +0000 (19:40 -0000)]
2008-08-26  Robert Jordan  <robertj@gmx.net>

* AppDomain.cs (get_Evidence): Fix endless recursion exposed
by the test case of bug #420197.

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

15 years agoDon't call GetSchemaTable() from the constructor, just fetch the column
Veerapuram Varadhan [Tue, 26 Aug 2008 19:39:27 +0000 (19:39 -0000)]
Don't call GetSchemaTable() from the constructor, just fetch the column
information.

Patch provided by Ernesto.

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

15 years agoTest for binary type handling
Veerapuram Varadhan [Tue, 26 Aug 2008 19:26:36 +0000 (19:26 -0000)]
Test for binary type handling

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

15 years agoRemove a FIXME.
Zoltan Varga [Tue, 26 Aug 2008 19:12:52 +0000 (19:12 -0000)]
Remove a FIXME.

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

15 years ago2008-08-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 26 Aug 2008 19:10:26 +0000 (19:10 -0000)]
2008-08-26  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (mono_aot_get_method): Add a cache for wrapper names to
avoid repeated linear searches.

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

15 years agoHandle Binary type as well. Patch provided by Ernesto
Veerapuram Varadhan [Tue, 26 Aug 2008 19:07:02 +0000 (19:07 -0000)]
Handle Binary type as well.  Patch provided by Ernesto
<equistango@gmail.com>

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

15 years ago2008-08-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 26 Aug 2008 18:43:49 +0000 (18:43 -0000)]
2008-08-26  Zoltan Varga  <vargaz@gmail.com>

* Descriptors/mscorlib.xml: Add EntryPointNotFoundException.

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

15 years ago2008-08-26 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 26 Aug 2008 16:34:04 +0000 (16:34 -0000)]
2008-08-26  Jonathan Pobst  <monkey@jpobst.com>

* ErrorProvider.cs: Fix a regression NRE when setting properties
for a control before it has a parent.
[Fixes bug #420305]

2008-08-26  Jonathan Pobst  <monkey@jpobst.com>

* ErrorProviderTest.cs: Add test for bug #420305.

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

15 years agoNew tests.
Marek Safar [Tue, 26 Aug 2008 13:12:35 +0000 (13:12 -0000)]
New tests.

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

15 years ago2008-08-26 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 26 Aug 2008 13:12:11 +0000 (13:12 -0000)]
2008-08-26  Marek Safar  <marek.safar@gmail.com>

* generic.cs, ecore.cs, delegate.cs, cs-parser.jay, expression.cs: A type
parameter cannot be always used as a type.

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

15 years ago2008-08-26 Daniel Morgan <monodanmorg@yahoo.com>
Daniel Morgan [Tue, 26 Aug 2008 06:33:55 +0000 (06:33 -0000)]
2008-08-26  Daniel Morgan <monodanmorg@yahoo.com>

* System.Data.OracleClient/OracleParameter.cs
* System.Data.OracleClient.Oci/OciStatementHandle.cs
* System.Data.OracleClient.Oci/OciDefineHandle.cs: fix bug
for GetOracleLob in OracleDataReader that was created
via a REF CURSOR.  Bug occurred because the cursor when created
did not have a ServiceContext - this was solved by passing
the connection in which did.  Fixes bug#350408.  In OracleParameter, also
show the data type that is not implemented.

* Test/testblob.cs
* Test/TestOracleClient.cs: updated tests

* Test/refcursortest.cs: added ref cursor test with blob

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

15 years agoFixed bug 417833 which allowed for the creation of illegal
Scott Thomas [Tue, 26 Aug 2008 01:51:50 +0000 (01:51 -0000)]
Fixed bug 417833 which allowed for the creation of illegal
BitVector32.Sections. Also added a unit test for the bug.

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

15 years ago2008-08-26 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 26 Aug 2008 00:58:27 +0000 (00:58 -0000)]
2008-08-26  Marek Habersack  <mhabersack@novell.com>

* TemplateControlParser.cs: added support for the VirtualPath
attribute of the Reference directive.
In the 2.0 profile, all the references are compiled using
BuildManager.GetCompiledType now.

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

15 years ago2008-08-26 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 26 Aug 2008 00:14:14 +0000 (00:14 -0000)]
2008-08-26  Marek Habersack  <mhabersack@novell.com>

* BuildManager.cs: use VirtualPathUtility.Combine in
GetAbsoluteVirtualPath for non-rooted paths.

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

15 years ago2008-08-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 25 Aug 2008 21:31:50 +0000 (21:31 -0000)]
2008-08-25  Zoltan Varga  <vargaz@gmail.com>

* marshal.c: Applied patch from tom hindle (tom_hindle@sil.org) to fix
crashes in bstr marshalling on linux.

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

15 years ago2008-08-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 25 Aug 2008 20:39:29 +0000 (20:39 -0000)]
2008-08-25  Marek Habersack  <mhabersack@novell.com>

* DataBoundControl.cs:
Do not reconnect to the data source if we already have a valid one

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

15 years ago2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 25 Aug 2008 20:12:54 +0000 (20:12 -0000)]
2008-08-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* Binding.cs: Use the BindingManagerBase.Current value to obtain
connect the property "Changed" event, instead of using the data
sources - this is useful when the property specifies actually a
multiple objects path.
Fixes part of #417973.

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

15 years agoApply patch from Atsushi Enomoto to fix #397627
Miguel de Icaza [Mon, 25 Aug 2008 19:45:39 +0000 (19:45 -0000)]
Apply patch from Atsushi Enomoto to fix #397627

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

15 years ago2008-08-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 25 Aug 2008 17:48:42 +0000 (17:48 -0000)]
2008-08-25  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_wrappers): Avoid calling get_runtime_invoke with
methods it can't handle.

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

15 years ago2008-08-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 25 Aug 2008 17:28:24 +0000 (17:28 -0000)]
2008-08-25  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_method): Avoid adding a method twice.
(add_wrappers): Add runtime invoke wrappers for all methods.

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

15 years agoCompared against .NET
Miguel de Icaza [Mon, 25 Aug 2008 15:59:34 +0000 (15:59 -0000)]
Compared against .NET

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

15 years ago2008-08-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 25 Aug 2008 14:55:21 +0000 (14:55 -0000)]
2008-08-25  Atsushi Enomoto <atsushi@ximian.com>

* RelaxngPattern.cs : unlike "include" element, "external" element
  was always resolved as XML syntax, and hence blocked use of
  external element in compact syntax.

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

15 years ago2008-08-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 25 Aug 2008 10:48:28 +0000 (10:48 -0000)]
2008-08-25  Marek Habersack  <mhabersack@novell.com>

* DataBoundControl.cs: set RequiresDataBinding to true in
Initialize only if not in a postback, if not data bound and if the
view state is enabled. Fixes bug #398318
UpdateViewData removes the OnDataSourceViewChanged handler before
connecting to the datasource and restores it before returning to
the caller.
OnLoad gets the data source before initialization, to avoid
premature OnDataSourceViewChanged triggers. Fixes bug #398318

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

15 years ago2008-08-25 Daniel Morgan <monodanmorg@yahoo.com>
Daniel Morgan [Mon, 25 Aug 2008 04:56:38 +0000 (04:56 -0000)]
2008-08-25  Daniel Morgan <monodanmorg@yahoo.com>

* System.Data.OracleClient/OracleCommand.cs
* System.Data.OracleClient.Oci/OciHandle.cs
* System.Data.OracleClient.Oci/OciRowIdDescriptor.cs: fix
bug 378470 by fixing method ExecuteOracleNonQuery
        by getting the Universal ROWID and
returning it as an output parameter OracleString.
        This will only work for Oracle 9i clients and above.

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

15 years agoAnother missing feature, handle Alt-Backspace
Miguel de Icaza [Mon, 25 Aug 2008 03:48:12 +0000 (03:48 -0000)]
Another missing feature, handle Alt-Backspace

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

15 years ago2008-08-24 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 25 Aug 2008 03:30:06 +0000 (03:30 -0000)]
2008-08-24  Miguel de Icaza  <miguel@novell.com>

* TermInfoDriver.cs (GetKeyFromBuffer): Add support for reporting
Alt-LETTER sequences.   They were ignored previously.

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

15 years ago2008-08-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 25 Aug 2008 00:34:26 +0000 (00:34 -0000)]
2008-08-25  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline_full): New
function to create an aot-compatible version of this trampoline.

* aot-compiler.c aot-runtime.c: Add support for AOT rgctx fetch trampolines.

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

15 years ago2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 24 Aug 2008 23:14:26 +0000 (23:14 -0000)]
2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListControlTest.cs: Add a container for a mock item, to test
multiple nested properties.
* BindingContextTest.cs: New test for the overload of the indexer
taking a data source with a data member (including nested properties,
or multiple objects, as msdnstates).

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

15 years ago2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 24 Aug 2008 23:10:43 +0000 (23:10 -0000)]
2008-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* RelatedPropertyManager.cs: PropertyManager instances associated to a
nested properties should return not the properties of the data source
itself, but the properties of the type of a specific property in the
data source - match .net.

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

15 years ago2008-08-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 24 Aug 2008 20:07:42 +0000 (20:07 -0000)]
2008-08-24  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (compile_method): Skip wrappers of generic icalls.

* method-to-ir.c (mono_method_to_ir2): Replace an assert in UNBOX_ANY
with a generic sharing failure.

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

15 years ago2008-08-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 24 Aug 2008 19:49:00 +0000 (19:49 -0000)]
2008-08-24  Zoltan Varga  <vargaz@gmail.com>

* debug-helpers.c (mono_type_get_desc): Fix priting of generic instances
with more than one parameter.

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

15 years agoFix my last commit; I was testing C-q char, and got the wrong result
Miguel de Icaza [Sun, 24 Aug 2008 18:07:22 +0000 (18:07 -0000)]
Fix my last commit;  I was testing C-q char, and got the wrong result

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

15 years ago* ListBoxTest.cs: Added tests for SetItemsCore. Added and improved tests
Gert Driesen [Sun, 24 Aug 2008 17:15:35 +0000 (17:15 -0000)]
* ListBoxTest.cs: Added tests for SetItemsCore. Added and improved tests
for ObjectCollection. Added tests for IntegerCollection.
* ListBox.cs (IntegerCollection): To avoid duplication, moved code for
AddRange overloads into AddItems method, and added missing NULL check.
Added extra argument check to RemoveAt for compatibility with MS.
Modified IList implementation of Add, Contains, IndexOf and Remove to
throw an ArgumentException if item is not an int. Modified IList.Insert
to throw a NotSupportException instead of an Exception. Implemented
ICollection.
(ObjectCollection): To avoid duplication, use AddItems method from
AddRange overloads. On 1.0 profile, first perform NULL check on items
in AddItems.

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

15 years ago2008-08-24 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 24 Aug 2008 17:14:21 +0000 (17:14 -0000)]
2008-08-24  Miguel de Icaza  <miguel@novell.com>

* console-io.c (ves_icall_System_ConsoleDriver_TtySetup): Disable
start/stop flow control as well when turning off ICANON (allows
C-s and C-q to be read by Console.ReadKey).

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

15 years ago* ResXFileRefTest.cs: Fixed/added attributes on SetUp and TearDown
Gert Driesen [Sun, 24 Aug 2008 16:29:30 +0000 (16:29 -0000)]
* ResXFileRefTest.cs: Fixed/added attributes on SetUp and TearDown
methods.

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

15 years ago2008-08-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 24 Aug 2008 14:38:22 +0000 (14:38 -0000)]
2008-08-24  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_klass_info): Call mono_class_get_nested_types ().

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

15 years ago2008-08-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 24 Aug 2008 14:37:51 +0000 (14:37 -0000)]
2008-08-24  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_init): Move the initialization of nested classes
into mono_class_get_nested_types (). Fixes #418433.

* class-internals.h (struct _MonoClass): Add a new 'nested_classes_inited'
flag.

* class.c reflection.c icall.c: Use mono_class_get_nested_types () for
iterating tough the nested classes of a class.

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

15 years ago2008-08-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 24 Aug 2008 12:32:42 +0000 (12:32 -0000)]
2008-08-24  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir2): Rethrow the correct exception in
CEE_RETHROW. Fixes #419634.

* mini.c (mono_method_to_ir): Ditto.

* exceptions.cs: Add a new test.

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

15 years ago2008-08-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 24 Aug 2008 12:05:27 +0000 (12:05 -0000)]
2008-08-24  Zoltan Varga  <vargaz@gmail.com>

* generic-sharing.c (mini_type_stack_size): Always pass TRUE as allow_open
to mono_type_stack_size_internal () since some callers might not pass in
an rgctx.

* mini-x86.c (mono_arch_emit_prolog): Store the rgctx before calling
instrument_prolog. Fixes #419878.

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

15 years ago2008-08-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 24 Aug 2008 11:16:44 +0000 (11:16 -0000)]
2008-08-24  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_compile_create_var_for_vreg): Make the lvars representing
doubles in soft float mode volatile.

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

15 years ago2008-08-23 Daniel Morgan <monodanmorg@yahoo.com>
Daniel Morgan [Sat, 23 Aug 2008 19:32:07 +0000 (19:32 -0000)]
2008-08-23  Daniel Morgan <monodanmorg@yahoo.com>

* System.Data.OracleClient.dll.sources: added
files to build:
           OracleClientFactory.cs
           OracleConnectionStringBuilder.cs

* System.Data.OracleClient/OracleClientFactory.cs: added
method to file: DbConnectionStringBuilder and modified
CreateDataSourceEnumerator to return a null

* System.Data.OracleClient/OracleConnectionStringBuilder.cs: add
new file

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

15 years ago2008-08-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 23 Aug 2008 18:39:55 +0000 (18:39 -0000)]
2008-08-23  Zoltan Varga  <vargaz@gmail.com>

* ir-emit.h (NEW_ARGSTORE): Use cfg->args and cfg->arg_types to fix the build.

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

15 years ago2008-08-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 23 Aug 2008 14:43:51 +0000 (14:43 -0000)]
2008-08-23  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_generic_sharing_enabled): Enable generic sharing
on arm.

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

15 years ago2008-08-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 23 Aug 2008 14:22:36 +0000 (14:22 -0000)]
2008-08-23  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_save_args): Use ARGSTORE instead of TEMPSTORE
to handle soft float correctly.

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

15 years ago* Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
Gert Driesen [Sat, 23 Aug 2008 13:27:39 +0000 (13:27 -0000)]
* Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
#419087.
* ControlTest.cs: Added .ctor tests.

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

15 years ago2008-08-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 23 Aug 2008 13:20:17 +0000 (13:20 -0000)]
2008-08-23  Zoltan Varga  <vargaz@gmail.com>

* tramp-arm.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Implement
the fast path.

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

15 years ago2008-08-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 23 Aug 2008 01:43:05 +0000 (01:43 -0000)]
2008-08-23  Zoltan Varga  <vargaz@gmail.com>

* WebConnectionStream.cs (WriteRequest): Fix the copying in the
previous patch, when bytes.Length != length.

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

15 years ago2008-08-22 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 23 Aug 2008 00:42:18 +0000 (00:42 -0000)]
2008-08-22  Miguel de Icaza  <miguel@novell.com>

* console-io.c (sigcont_handler): Support signal chaining for
SIGCONT.

(console_set_signal_handlers): Use best practices with sigaction,
clear the structure before using it.

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

15 years ago2008-08-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 22 Aug 2008 23:31:09 +0000 (23:31 -0000)]
2008-08-23  Zoltan Varga  <vargaz@gmail.com>

* mini.h (struct MonoCallInst): Add dynamic_imt_arg boolean field.

* exceptions-arm.c (mono_arch_find_jit_info): Set ctx->regs [ARMREG_R11]
to sp, since the generics catch code requires it.

* mini-arm.h (MONO_ARCH_VTABLE_REG): Use R0 for this to avoid needless
copying.

* method-to-ir.c (emit_imt_argument): Pass imt_arg to
mono_arch_emit_imt_argument ().

* mini-<ARCH>.c (mono_arch_emit_imt_argument): Add an 'imt_arg' argument.

* mini-arm.c tramp-arm.c: Generic sharing updates.

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

15 years ago2008-08-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 22 Aug 2008 23:27:56 +0000 (23:27 -0000)]
2008-08-23  Zoltan Varga  <vargaz@gmail.com>

* mini.h (struct MonoCallInst): Add dynamic_imt_arg boolean field.

* exceptions-arm.c (mono_arch_find_jit_info): Set ctx->regs [ARMREG_R11]
to sp, since the generics catch code requires it.

* mini-arm.h (MONO_ARCH_VTABLE_REG): Use R0 for this to avoid needless
copying.

* method-to-ir.c (emit_imt_argument): Pass imt_arg to
mono_arch_emit_imt_argument ().

* mini-<ARCH>.c (mono_arch_emit_imt_argument): Add an 'imt_arg' argument.

* mini-arm.c tramp-arm.c: Generic sharing updates.

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

15 years ago2008-08-22 Zoltan Varga <vargaz@gmail.com>
Miguel de Icaza [Fri, 22 Aug 2008 21:30:31 +0000 (21:30 -0000)]
2008-08-22  Zoltan Varga  <vargaz@gmail.com>

* WebConnectionStream.cs (WriteRequest): For small requests,
cluster together the header + body in a single write call, avoids
the latency problems observed in an TLS application that makes
many web service calls.

2008-08-22  Geoff Norton  <gnorton@novell.com>

* WebConnection.cs: Set NoDelay

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

15 years ago2008-08-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 22 Aug 2008 20:51:45 +0000 (20:51 -0000)]
2008-08-22  Marek Habersack  <mhabersack@novell.com>

* JsonSerializer.cs: do not perform deep object serialization - it
results in all kinds of problems (including too big size of the
resulting string, recursion errors when two or more objects in the
hierarchy hold a reference to some object) and is not what .NET
code does.
Property name is written only after it is determined if we're
serializing the property or not.
Entire object is serialized only if it's the object requested for
serialization by calling code.

2008-08-22  Marek Habersack  <mhabersack@novell.com>

* Test/System.Web.Script.Serialization/JavaScriptSerializerTest.cs:
marked several of the JavaScriptSerializer tests as not
working. Experiments show that the tests are invalid as they relay
on behavior which is different to .NET's.

* System.Web.Script.Serialization/JavaScriptSerializer.cs:
GetConverter now checks whether the requested type is descendant
from the type supported by teh converter.

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

15 years ago2008-08-20 Mike Voorhees <vernish13@gmail.com>
Miguel de Icaza [Fri, 22 Aug 2008 20:44:05 +0000 (20:44 -0000)]
2008-08-20  Mike Voorhees  <vernish13@gmail.com>

* strenc.h : Adding declaration for mono_utf8_validate_and_len.

* strenc.c : Adding implementation for mono_utf8_validate_and_len.

Contributed under MIT/X11 license.

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

15 years agoUpdate
Miguel de Icaza [Fri, 22 Aug 2008 20:42:45 +0000 (20:42 -0000)]
Update

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

15 years ago2008-08-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 22 Aug 2008 20:30:14 +0000 (20:30 -0000)]
2008-08-22  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c: Fix the arm build.

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

15 years agoFix a warning.
Zoltan Varga [Fri, 22 Aug 2008 20:06:39 +0000 (20:06 -0000)]
Fix a warning.

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

15 years ago2008-08-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 22 Aug 2008 20:03:33 +0000 (20:03 -0000)]
2008-08-22  Zoltan Varga  <vargaz@gmail.com>

* generic-sharing.c (mini_type_get_underlying_type): New helper function
handling enums, generic instances and generic sharing.
(mini_type_stack_size_full): Ditto.

* mini-amd64.c mini-x86.c mini-arm.c: Use the new functions.

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

15 years ago2008-08-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 22 Aug 2008 18:54:38 +0000 (18:54 -0000)]
2008-08-22  Sebastien Pouliot  <sebastien@ximian.com>

* corlib_test.dll.sources: Add unit tests for ObsoleteAttribute

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