mono.git
18 years agoIn ilasm/codegen:
Ankit Jain [Sun, 19 Feb 2006 10:40:06 +0000 (10:40 -0000)]
In ilasm/codegen:
* CodeGen.cs (CodeGen.ThisModule): New.
(CodeGen.Write): Set module name if not set by '.module' directive.
* Module.cs: Inherit from ExternRef.

In class/PEAPI:
* Metadata.cs (Module): Implment IExternRef to allow reference to types
in 'this' module.

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

18 years ago* metadata.c (mono_type_create_from_typespec): Rename from
Raja R Harinath [Sun, 19 Feb 2006 07:31:38 +0000 (07:31 -0000)]
* metadata.c (mono_type_create_from_typespec): Rename from
mono_type_create_from_typespec_full.  Remove MonoGenericContainer*
argument and caching of types in the generic container.
(unwrap_arrays, find_generic_param): Remove.
* metadata-internals.h: Update.
* class-internals.h (_MonoGenericContainer): Remove 'types' field.

The last in the series of cleanups to typespec handling.  The caching
of types in the generic container was buggy wrt byref types, and the
only call-site of this function is prepared to handle owner-less
generic params/insts.

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

18 years ago2006-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 18 Feb 2006 22:04:32 +0000 (22:04 -0000)]
2006-02-18  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_get_exception_for_failure): Fix a warning.

* marshal.c (mono_marshal_emit_native_wrapper): Handle FNPTR args and
return values. Fixes #77581.

* class.c (mono_fnptr_class_get): Switch name and name_space.

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

18 years ago2006-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 18 Feb 2006 20:36:41 +0000 (20:36 -0000)]
2006-02-18  Zoltan Varga  <vargaz@gmail.com>

* libtest.c pinvoke2.cs: Add tests for asany marshalling and directional
attributes.

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

18 years ago2006-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 18 Feb 2006 20:36:03 +0000 (20:36 -0000)]
2006-02-18  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_asany): Fix marshalling of blittable formatted
classes and add support for [In, Out] attributes.
(mono_marshal_free_asany): Ditto. Fixes #77524.

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

18 years ago2006-02-18 Duncan Mak <duncan@novell.com>
Duncan Mak [Sat, 18 Feb 2006 19:35:35 +0000 (19:35 -0000)]
2006-02-18  Duncan Mak  <duncan@novell.com>

* Graphics.cs (DrawBeziers): Patch from Alexander Olk to fix
possible IndexOutOfRangeException.

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

18 years ago* Uri.cs (InternalEquals): New helper.
Raja R Harinath [Sat, 18 Feb 2006 19:01:42 +0000 (19:01 -0000)]
* Uri.cs (InternalEquals): New helper.
(Equals, operator ==): Use it.
(operator !=): Likewise.  Fix to actually compare operands.

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

18 years agoDisable Mono.C5 in 'make check'.
Raja R Harinath [Sat, 18 Feb 2006 18:35:41 +0000 (18:35 -0000)]
Disable Mono.C5 in 'make check'.

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

18 years ago* DbConnectionStringBuilder.cs (ICollection.CopyTo): Use
Raja R Harinath [Sat, 18 Feb 2006 18:23:45 +0000 (18:23 -0000)]
* DbConnectionStringBuilder.cs (ICollection.CopyTo): Use
_dictionary, not 'this' in cast.

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

18 years ago* DbConnectionStringBuilderTest.cs
Raja R Harinath [Sat, 18 Feb 2006 17:56:59 +0000 (17:56 -0000)]
* DbConnectionStringBuilderTest.cs
(ICollectionCopyToTest, NegICollectionCopyToTest): Enable.
(IDictionaryCopyToTest, NegIDictionaryCopyToTest): Delete.

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

18 years ago2006-02-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 18 Feb 2006 16:40:11 +0000 (16:40 -0000)]
2006-02-18  Atsushi Enomoto  <atsushi@ximian.com>

* CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
  outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
  ReadOnly properties. This fixes bug #77576.

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

18 years ago* get.c (get_typespec): Don't use mono_type_create_from_typespec_full().
Raja R Harinath [Sat, 18 Feb 2006 16:35:17 +0000 (16:35 -0000)]
* get.c (get_typespec): Don't use mono_type_create_from_typespec_full().
Use get_type() instead.
(get_type): Add 'is_def' parameter.
(get_field_signature, get_ret_type, get_param): Update.
* dump.c (dump_table_property): Likewise.
* get.h (get_type): Update prototype.

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

18 years ago* class.c (mono_class_from_generic_parameter): Make more robust to
Raja R Harinath [Sat, 18 Feb 2006 16:24:57 +0000 (16:24 -0000)]
* class.c (mono_class_from_generic_parameter): Make more robust to
incomplete MonoGenericContainers from monodis.

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

18 years ago* TypeTest.cs (ByrefType): New.
Raja R Harinath [Sat, 18 Feb 2006 06:01:34 +0000 (06:01 -0000)]
* TypeTest.cs (ByrefType): New.

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

18 years ago2006-02-18 Alp Toker <alp@atoker.com>
Alp Toker [Sat, 18 Feb 2006 03:33:01 +0000 (03:33 -0000)]
2006-02-18  Alp Toker  <alp@atoker.com>

* UnixEndPoint.cs: Avoid truncation of last two bytes of SocketAddress
string

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

18 years agoIn System.Data.OleDb:
Chris Toshok [Fri, 17 Feb 2006 20:34:22 +0000 (20:34 -0000)]
In System.Data.OleDb:
* OleDbDataAdapter.cs, OleDbCommand.cs, OleDbParameter.cs,
OleDbCommandBuilder.cs, OleDbConnection.cs: remove
DataSysDescriptions for >= 2.0.

2006-02-17  Chris Toshok  <toshok@ximian.com>

In System.Data.SqlClient:
* SqlCommand.cs, SqlCommandBuilder.cs, SqlConnection.cs,
SqlDataAdapter.cs: remove DataSysDescription attributes for >= 2.0

2006-02-17  Chris Toshok  <toshok@ximian.com>

In System.Data:
* System.Data/DataSet.cs, System.Data/DataView.cs,
System.Data/ForeignKeyConstraint.cs,
System.Data/DataViewManager.cs, System.Data/DataRow.cs,
System.Data/DataSysDescriptionAttribute.cs,
System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
System.Data/DataRelation.cs: lots of attribute work, removing
DataSysDescription atributes (and marking the class obsolete) for
2.0.

2006-02-17  Chris Toshok  <toshok@ximian.com>

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 20:11:29 +0000 (20:11 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DbDataAdapter.cs: more 2.0 cleanup.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 19:49:17 +0000 (19:49 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DataAdapter.cs, DataColumnMappingCollection.cs,
DataColumnMapping.cs, DataTableMappingCollection.cs,
DataTableMapping.cs, DbCommandBuilder.cs,
DbConnectionStringBuilder.cs, DbParameterCollection.cs,
DbParameter.cs: pretty major attribute work.

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

18 years agoUpdates.
Paolo Molaro [Fri, 17 Feb 2006 19:09:05 +0000 (19:09 -0000)]
Updates.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 19:03:46 +0000 (19:03 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* XmlElement.cs : NextSibling could be effectively computed using
  LastLinkedChild, beyond previous XmlLinkedNode optimization.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:52:44 +0000 (18:52 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DataAdapterException.cs: remove this file.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:52:33 +0000 (18:52 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* System.Data.dll.sources: remove
System.Data/DataAdapterException.cs, and add
System.Data.Common/SupportedJoinOperators.cs.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:50:48 +0000 (18:50 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DbProviderFactory.cs: remove two methods.  and mark the
DbProviderSupportedClasses ctor as internal since it's not part of
the public api.

* DbTable.cs: remove this class from 2.0 build.. leave it for the
JVM build, I guess?

* RowUpdatingEventArgs.cs: this class isn't abstract in 2.0.

* RowUpdatedEventArgs.cs: this class isn't abstract in 2.0.

* SupportedJoinOperators.cs: new 2.0 enum.

* CatalogLocation.cs: fix enum values.

* GroupByBehavior.cs: same.

* IdentifierCase.cs: same.

* SchemaTableColumn.cs: class is static, not sealed.  and add
missing elements.

* SchemaTableOptionalColumn.cs: same.

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

18 years agoFri Feb 17 19:47:29 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 17 Feb 2006 18:48:13 +0000 (18:48 -0000)]
Fri Feb 17 19:47:29 CET 2006 Paolo Molaro <lupus@ximian.com>

* mini.c: added a few more verification checks.

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

18 years agoFri Feb 17 16:10:34 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 17 Feb 2006 18:46:56 +0000 (18:46 -0000)]
Fri Feb 17 16:10:34 CET 2006 Paolo Molaro <lupus@ximian.com>

* class-internals.h: added some more exception types.
* class.c, metadata.c: added a few checks to handle missing
types.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 18:37:58 +0000 (18:37 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* XmlLinkedNode.cs : In NextSibling, use LastChild directly.
  It improves NextSibling performance in bulky document.

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

18 years agoFix compilation.
Paolo Molaro [Fri, 17 Feb 2006 18:29:29 +0000 (18:29 -0000)]
Fix compilation.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:21:25 +0000 (18:21 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DataTableReader.cs: Switch to the (bool) form of Dispose to
override, as the no-arg form isn't virtual.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:20:46 +0000 (18:20 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DbDataReaderBase.cs: Switch to the (bool) form of Dispose to
override, as the no-arg form isn't virtual.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:20:02 +0000 (18:20 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DbDataReader.cs: oops, add back in VisibleFieldCount (i missed
it in the corcompare output), add EditorBrowsable attributes all
over the place, and fix some method signatures.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 18:19:23 +0000 (18:19 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* XmlNodeReaderImpl.cs : do not compute ownerLinkedNode, just store
  it in Read(). Simply use state field in EOF. They result in 20%
  perf. boost. Expanding EOF also improved performance by 2-3%
  (mono --optimize=inline might work in the later stage).

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:18:55 +0000 (18:18 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* Constraint.cs: #ifdef out more DataSysDescriptions.

* ConstraintException.cs: add ..ctor (string, Exception) for 2.0.

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

18 years ago2006-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 17 Feb 2006 18:17:56 +0000 (18:17 -0000)]
2006-02-17  Zoltan Varga  <vargaz@gmail.com>

* DynamicMethod.cs: Implement DefineParameter ().

* ParameterBuilder.cs: Add support for DynamicMethod parents.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 17:47:13 +0000 (17:47 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* DTDValidatingReader2.cs : more refactoring. Split ReadContent()
  into some methods. Reduced some extra MoveToElement().

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:20:53 +0000 (17:20 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.

* AdapterMappingException.cs: nuke this file.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:20:26 +0000 (17:20 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* System.Data.dll.sources: remove
System.Data/AdapterMappingException.cs.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:12:20 +0000 (17:12 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
remove these 2.0 files.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:12:06 +0000 (17:12 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DbDataUpdatableRecord.cs: remove this 2.0 file.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:10:41 +0000 (17:10 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* System.Data.dll.sources: remove IDbAsyncConnection.cs,
IDbAsyncCommand.cs, IGetTypedData.cs, ISetTypedData.cs,
IDataReader2.cs, IDataSources.cs, IDbExecutionContext.cs,
IDataRecord2.cs, IDataUpdatableRecord.cs, and
DbDataUpdatableRecord.cs from the build.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:06:24 +0000 (17:06 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* InvalidUdtException.cs: fix namespace typo, and mark all ctors
as internal (since none are public in corcompare.)

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

18 years ago* mini-s390x.c, mini-s390x.h: Check for presence of long displacement
Neale Ferguson [Fri, 17 Feb 2006 17:05:52 +0000 (17:05 -0000)]
* mini-s390x.c, mini-s390x.h: Check for presence of long displacement
facility on the processor and use it if available.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 17:03:36 +0000 (17:03 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* DTDValidatingReader2.cs : more refactoring. Removed and simplified
  some error check. String += would be enough for entity-reference-
  mixed attributes which rarely happen, so simplify the code.
  Added comments on how the fields are used.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:01:44 +0000 (17:01 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* OleDbCommand.cs: remove extra using System.Data.  fixes warning.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 16:57:38 +0000 (16:57 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* StorageState.cs: correct namespace, and remove "Delayed"
element.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 16:57:19 +0000 (16:57 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* SqlNotificationRequest.cs: class is sealed, and s/id/userData
and s/service/options.

* SqlDataSourceEnumerator.cs: ctor is private (for use with
Instance property, which is currently not implemented.)  Also,
remove set_Instance.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 16:46:03 +0000 (16:46 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* ConstraintCollection.cs: in 2.0, class is not serializable and
is sealed.  make all the "virtuals" #if !NET_2_0 as well.

* Constraint.cs: not serializable in 2.0.

* DataColumnCollection.cs: in 2.0, class is not serializable and
is sealed.  make all the "virtuals" #if !NET_2_0 as well.

* DataRelationCollection.cs: not serializable in 2.0.

* DataRelation.cs: not serializable in 2.0.

* DataRowBuilder.cs: class is sealed in 2.0.

* DataRowCollection.cs: in 2.0, class is not serialized and is
sealed.  Also, Add isn't virtual in 2.0 (as the class is sealed).

* DataRow.cs: not serializable in 2.0.

* DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
and s/GetDataReader/CreateDataReader.

* DataTableCollection.cs: in 2.0, class is not serializable and is
sealed.  make all the "virtuals" #if !NET_2_0 as well.

* DataTableReader.cs: remove VisibleFieldCount property.

* DataViewSettingCollection.cs: not serializable in 2.0.

* DataViewSetting.cs: not serializable in 2.0.

* ForeignKeyConstraint.cs: serializable in 2.0.

* OperationAbortedException.cs: class is sealed and serializable.

* PropertyCollection.cs: serializable in 2.0.

* StatementCompletedEventArgs.cs: class is sealed.

* UniqueConstraint.cs: not serializable in 2.0.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 16:45:44 +0000 (16:45 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DbDataReader.cs: remove VisibleFieldCount attribute, and remove
IDataReader2 and IDataRecord2 interfaces.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 16:45:25 +0000 (16:45 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* SqlDataReader.cs: remove VisibleFieldCount property.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 16:45:10 +0000 (16:45 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* OdbcDataReader.cs: remove VisibleFieldCount property.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 16:07:12 +0000 (16:07 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* DTDValidatingReader2.cs : attribute node simplification. It now
  stores attribute node slots, including default attributes for
  further refactoring.

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

18 years ago2006-02-17 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 17 Feb 2006 15:51:28 +0000 (15:51 -0000)]
2006-02-17  Dick Porter  <dick@ximian.com>

        * handles-private.h:
        * handles.c: Check handle values passed to array lookups.  Fixes
        bug 77572.

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

18 years ago2006-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 17 Feb 2006 15:42:27 +0000 (15:42 -0000)]
2006-02-17  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am: Avoid installing mint.pc if mint is not compiled.

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

18 years agoFri Feb 17 16:12:52 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 17 Feb 2006 15:29:17 +0000 (15:29 -0000)]
Fri Feb 17 16:12:52 CET 2006 Paolo Molaro <lupus@ximian.com>

* driver.c, aot.c, mini.c: throw exception if the IL code is
invalid or unverifiable.

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

18 years agoFri Feb 17 16:10:34 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 17 Feb 2006 15:11:32 +0000 (15:11 -0000)]
Fri Feb 17 16:10:34 CET 2006 Paolo Molaro <lupus@ximian.com>

* class-internals.h: added some more exception types.

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

18 years agoUse owner-less generic-params some more.
Raja R Harinath [Fri, 17 Feb 2006 15:05:29 +0000 (15:05 -0000)]
Use owner-less generic-params some more.
* class.c (my_mono_class_from_generic_parameter): Remove.
(mono_class_from_generic_parameter): Handle null image,
param->name and param->owner.
(mono_class_from_mono_type): Update.
(mono_class_create_from_typespec): Remove 'container' parameter.
If that parameter is non-null, the result is always inflated by
'mono_class_get_full' anyway.
(mono_class_get): Rename from _mono_class_get.  Remove 'container'
parameter.
(mono_class_get_full): Update.

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

18 years agoComplete entries
Raja R Harinath [Fri, 17 Feb 2006 14:26:28 +0000 (14:26 -0000)]
Complete entries

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

18 years ago* class.c (inflate_generic_type) [GENERICINST]: If the generic
Raja R Harinath [Fri, 17 Feb 2006 13:33:58 +0000 (13:33 -0000)]
* class.c (inflate_generic_type) [GENERICINST]: If the generic
instance is not open, don't bother inflating.
(mono_class_setup_fields): Hoist some loop-invariants.  Don't
parse metadata for inflated classes.
(mono_class_create_from_typespec): Change GenericContext*
parameter to GenericContainer*.  Implement trivially.  All the
cases are handled in mono_class_from_mono_type.  Don't inflate
returned class.

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

18 years ago* generics.2.cs (test_0_ldfld_stfld_mro): Use m.struct_field, not
Raja R Harinath [Fri, 17 Feb 2006 13:19:58 +0000 (13:19 -0000)]
* generics.2.cs (test_0_ldfld_stfld_mro): Use m.struct_field, not
m.StructField.

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

18 years ago* TypeTest.cs: Rename one of the instances of Foo<T> to ComFoo<T>.
Raja R Harinath [Fri, 17 Feb 2006 11:45:43 +0000 (11:45 -0000)]
* TypeTest.cs: Rename one of the instances of Foo<T> to ComFoo<T>.

Strange that this got through.  I couldn't create a small testcase for this.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 08:47:38 +0000 (08:47 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* DTDValidatingReader2.cs, EntityResolvingXmlReader.cs :
  new files for refactoring DTD validating reader. As the first stage,
  it splits entity handling process from DTD validation step.

  (DTDValidatingReader.cs will be removed at some stage).

* System.Xml.dll.sources : removed DTDValidatingReader and added
  DTDValidatingReader2.cs and EntityResolvingXmlReader.cs.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 05:20:27 +0000 (05:20 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* DTDObjectModel.cs : entity resolution method will be used in
  the next DTD validating reader in 1.x.

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

18 years ago * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
Jackson Harper [Thu, 16 Feb 2006 21:38:21 +0000 (21:38 -0000)]
    * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
        is a real MDI window

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

18 years ago2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 16 Feb 2006 20:45:20 +0000 (20:45 -0000)]
2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* AssemblyBuilder.cs:
* BuildManager.cs: compile the assembly from AssemblyBuilder and use
GetGeneratedType() on the BuildProvider instead of loading the assembly
and trying a wild guess at the type name.

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

18 years ago2006-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 16 Feb 2006 19:20:04 +0000 (19:20 -0000)]
2006-02-02  Atsushi Enomoto  <atsushi@ximian.com>

* xmltool.cs : Optional 3rd. argument to --transform is now output
  filename.

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

18 years ago2006-02-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 16 Feb 2006 18:51:24 +0000 (18:51 -0000)]
2006-02-16  Zoltan Varga  <vargaz@gmail.com>

* generics.2.cs: Add some tests for generics ldfld/stfld wrappers.

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

18 years ago* TypeData.cs: Fixed the following issues when dealing with Array
Gert Driesen [Thu, 16 Feb 2006 18:46:54 +0000 (18:46 -0000)]
* TypeData.cs: Fixed the following issues when dealing with Array
SchemaType:
- if a type implements IDictionary, throw a NotSupportedException
- if a type implements ICollection, then an Add method must exist
  which takes a single argument of a type to which the listitem type
  is assignable (meaning a base type or an interface that it
  implements). If such a method does not exist, then throw an
  InvalidOperationException.
- if a type implements IEnumerable, then the listitem type is
  determined by the type of the Current property of the (IEnumerator)
  type returned by the GetEnumerator() method or the private
  implementation of IEnumerable.GetEnumerator(). If there's no
  public Current property on the IEnumerator, then System.Object
  is assumed as listitem type. Similar as for types implementing
  ICollection, an Add method must exist which takes a single argument
  of a type to which the listitem type is assignable (meaning a base
  type or an interface that it implements). If such a method does not
  exist, then throw an InvalidOperationException.
* XmlReflectionImporter.cs: Enabled few tests for bug #77531.
* SoapReflectionImporter.cs: Enabled few tests for bug #77531.

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

18 years ago2006-02-16 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 16 Feb 2006 18:07:53 +0000 (18:07 -0000)]
2006-02-16  Dick Porter  <dick@ximian.com>

        * IPEndPoint.cs: The SocketAddress AddressFamily takes up the
        first two bytes, not just one.  Check the size of the
        SocketAddress buffer for IPv6 as well.

        * Dns.cs: Cope when GetHostByName_internal or
        GetHostByAddr_internal returns fewer items in the array than it
        intended to (maybe due to conversion errors.)

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

18 years ago2006-02-16 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 16 Feb 2006 18:07:28 +0000 (18:07 -0000)]
2006-02-16  Dick Porter  <dick@ximian.com>

        * socket-io.c (create_object_from_sockaddr): Fix typo.
        (create_sockaddr_from_object): Check array lengths before
        potentially accessing items off the end.
        (ves_icall_System_Net_Sockets_Socket_Receive_internal)
        (ves_icall_System_Net_Sockets_Socket_RecvFrom_internal)
        (ves_icall_System_Net_Sockets_Socket_Send_internal)
        (ves_icall_System_Net_Sockets_Socket_SendTo_internal): Fix buffer
        length checks to avoid wraparound overflows.
        (ves_icall_System_Net_Sockets_Socket_Select_internal): Check the
        contents of the array of sockets
        (hostent_to_IPHostEntry2)
        (addrinfo_to_IPHostEntry): IPv6 printed addresses can be 48 bytes.
        Check return value of inet_ntop ().
        (addrinfo_to_IPHostEntry): Fix typo

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

18 years ago2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 16 Feb 2006 17:33:06 +0000 (17:33 -0000)]
2006-02-16  Atsushi Enomoto <atsushi@ximian.com>

* DTMXPathDocument2.cs, DTMXPathNavigator2.cs :
  Do not store mutable XPathDocument fields in every navigators.
  It saves memory a lot.

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

18 years ago2006-02-16 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 16 Feb 2006 17:01:50 +0000 (17:01 -0000)]
2006-02-16  Lluis Sanchez Gual  <lluis@novell.com>

* XmlSchemaImporterTests.cs: Added test for bug #76848.

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

18 years ago2006-02-16 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 16 Feb 2006 17:00:08 +0000 (17:00 -0000)]
2006-02-16  Lluis Sanchez Gual  <lluis@novell.com>

* XmlSchemaImporter.cs: Support importing complex types with
  simple content based on enums. Fixes bug #76848.

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

18 years ago2006-01-16 Senganal T <tsenganal@novell.com>
Senganal T [Thu, 16 Feb 2006 16:04:19 +0000 (16:04 -0000)]
2006-01-16  Senganal T <tsenganal@novell.com>

* Test/System.Data/schemas/test015.xsd, test016.xsd : added
- test ForeignKeyConstraint and annotated DataRelation
relating multiple columns
* Test/System.Data/DataSetTest2.cs :
- WriteXmlSchema_ForeignKeyConstraint : testcase for bug #77557
- WriteXmlSchema_RelationAnnotation :
- WriteXmlSchema_Relations_ForeignKeys :
ensure Relations and ForeignKeyConstraints are written and read correctly.
* Test/System.Data/DataSetReadXmlSchema.cs :
- ReadConstraints :
verify reading a foreignkeyconstraint doesent create a relation.
- ReadAnnotatedRelations_MultipleColumns :
verify multiple columns are read correctly if part of annotated relation.
* System.Data/XmlSchemaWriter :
WriteDataSetElement : Add an annotation element if exists.
WriteDataRelationAnnotation : New. Write a DataRelation as an annotation.
WriteConstraints : Write ForeignKeyConstraint even when not associated with
a DataRelation and add a "ConstraintOnly=true" attribute for such constraints.
* System.Data/XmlConstants.cs : Add a new constant - ConstraintOnly
* System.Data/XmlSchemaImporter.cs :
- ConstraintStructure : Add field ,IsConstraintOnly, to distinguish if a foreignkeyconstraint
is related to relation or not.
- GenerateRelation : Handle the case when parentkey and childkey contain multiple columnnames.

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

18 years ago2006-02-03 Sebastien Robitaille <sebastien.robitaille@croesus.com>
Lluis Sanchez [Thu, 16 Feb 2006 15:52:25 +0000 (15:52 -0000)]
2006-02-03  Sebastien Robitaille <sebastien.robitaille@croesus.com>

* BitArray.cs: Renamed members for interoperability with MS.

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

18 years ago2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 16 Feb 2006 15:46:11 +0000 (15:46 -0000)]
2006-02-16  Atsushi Enomoto <atsushi@ximian.com>

* IHasXmlChildNode.cs :
  New internal interface to hold LastLinkedChild.
* XmlNodeListChildren.cs XmlEntity.cs XmlElement.cs XmlAttribute.cs
  XmlLinkedNode.cs XmlEntityReference.cs XmlNode.cs
  XmlDocumentFragment.cs XmlDocument.cs : use it. It minimizes memory
  consumption in XmlText, XmlWhitespace, XmlComment etc.

* System.Xml.dll.sources : added IHasXmlChildNode.cs.

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

18 years agoIn metadata:
Raja R Harinath [Thu, 16 Feb 2006 15:41:32 +0000 (15:41 -0000)]
In metadata:
Type metadata parsing doesn't use generic-instantiation information.
* metadata.c (mono_metadata_parse_array_full): Change
MonoGenericContext* parameter to MonoGenericContainer*.
(mono_metadata_parse_type_full): Likewise.
(mono_type_create_from_typespec_full): Likewise.
(mono_metadata_parse_mh_full): Likewise.
(mono_metadata_parse_generic_inst): Likewise.
(do_mono_metadata_parse_generic_class): Likewise.
(do_mono_metadata_parse_type): Likewise.
* metadata-internals.h: Update to changes.
* class.c (mono_class_find_enum_basetype): Likewise.
(mono_class_setup_fields): Likewise.
(mono_class_create_from_typespec): Likewise.
* loader.c (method_from_methodspec): Likewise.
(mono_get_method_from_token): Likewise.
(mono_method_get_header): Likewise.

In dis:
* get.c (get_typespec): Pass MonoGenericContainer to
mono_type_create_from_typespec_full.
(get_type): Likewise.
* main.c (dis_code): Likewise.
(dis_property_signature): Likewise.

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

18 years ago2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 16 Feb 2006 15:40:51 +0000 (15:40 -0000)]
2006-02-16  Atsushi Enomoto <atsushi@ximian.com>

* XmlChar.cs : added IndexOfNonWhitespace() and IndexOfInvalid() (not
  in use yet).
* NewLineHandling.cs : prepared to be used internally in 1.x.

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

18 years agoThu Feb 16 15:42:13 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 16 Feb 2006 14:44:21 +0000 (14:44 -0000)]
Thu Feb 16 15:42:13 CET 2006 Paolo Molaro <lupus@ximian.com>

* marshal.c: handle additional GENERICINST case (patch from
Thong Nguyen <tum@veridicus.com>).
Fix a few cases where LDIND_I/STIND_I was used for references.

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

18 years agoAdd the '#if NET_2_0' conditional everywhere.
Martin Baulig [Thu, 16 Feb 2006 14:41:33 +0000 (14:41 -0000)]
Add the '#if NET_2_0' conditional everywhere.

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

18 years ago2006-02-16 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 16 Feb 2006 14:23:40 +0000 (14:23 -0000)]
2006-02-16  Martin Baulig  <martin@ximian.com>

Importing version 1.0 of C5, http://www.itu.dk/research/c5/.

* C5/trees/RedBlackTreeBag.cs: Added autogenerated file.
* C5/linkedlists/HashedLinkedList.cs: Likewise.
* C5/arrays/HashedArrayList.cs: Likewise.

* PreProcess/: Removed; we keep the autogenerated files in SVN.

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

18 years agoTemporarily take Mono.C5 out of the build until it is working again.
Martin Baulig [Thu, 16 Feb 2006 14:07:18 +0000 (14:07 -0000)]
Temporarily take Mono.C5 out of the build until it is working again.

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

18 years agoBringing C5 1.0 into the main branch.
Martin Baulig [Thu, 16 Feb 2006 14:02:48 +0000 (14:02 -0000)]
Bringing C5 1.0 into the main branch.

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

18 years agoBringing C5 1.0 into the main branch.
Martin Baulig [Thu, 16 Feb 2006 14:02:35 +0000 (14:02 -0000)]
Bringing C5 1.0 into the main branch.

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

18 years agoBringing C5 1.0 into the main branch.
Martin Baulig [Thu, 16 Feb 2006 14:02:24 +0000 (14:02 -0000)]
Bringing C5 1.0 into the main branch.

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

18 years agoRemoving old stuff.
Martin Baulig [Thu, 16 Feb 2006 14:02:17 +0000 (14:02 -0000)]
Removing old stuff.

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

18 years agoBringing C5 1.0 into the main branch.
Martin Baulig [Thu, 16 Feb 2006 14:01:41 +0000 (14:01 -0000)]
Bringing C5 1.0 into the main branch.

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

18 years agoBringing C5 1.0 into the main branch.
Martin Baulig [Thu, 16 Feb 2006 14:01:28 +0000 (14:01 -0000)]
Bringing C5 1.0 into the main branch.

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

18 years agoBringing C5 1.0 into the main branch.
Martin Baulig [Thu, 16 Feb 2006 14:01:14 +0000 (14:01 -0000)]
Bringing C5 1.0 into the main branch.

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

18 years agoBringing C5 1.0 into the main branch.
Martin Baulig [Thu, 16 Feb 2006 14:00:18 +0000 (14:00 -0000)]
Bringing C5 1.0 into the main branch.

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

18 years agoRenaming C5 -> C5.old in preparation for a clean import.
Martin Baulig [Thu, 16 Feb 2006 14:00:05 +0000 (14:00 -0000)]
Renaming C5 -> C5.old in preparation for a clean import.

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

18 years agoOk, so this stupid documentation is broken :-(
Martin Baulig [Thu, 16 Feb 2006 13:48:00 +0000 (13:48 -0000)]
Ok, so this stupid documentation is broken :-(

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

18 years agoBringing C5 1.0 into the main branch.
Martin Baulig [Thu, 16 Feb 2006 13:47:31 +0000 (13:47 -0000)]
Bringing C5 1.0 into the main branch.

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

18 years agoOk, so this stupid documentation is broken :-(
Martin Baulig [Thu, 16 Feb 2006 13:46:03 +0000 (13:46 -0000)]
Ok, so this stupid documentation is broken :-(

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

18 years agoBringing C5 1.0 into the main branch.
Martin Baulig [Thu, 16 Feb 2006 13:44:46 +0000 (13:44 -0000)]
Bringing C5 1.0 into the main branch.

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

18 years agoOoops - sorry for being an idiot.
Martin Baulig [Thu, 16 Feb 2006 13:44:12 +0000 (13:44 -0000)]
Ooops - sorry for being an idiot.

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

18 years agoBringing C5 1.0 into the main branch.
Martin Baulig [Thu, 16 Feb 2006 13:41:52 +0000 (13:41 -0000)]
Bringing C5 1.0 into the main branch.

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

18 years ago* reflection.c (mono_reflection_get_token): Remove unused variable.
Raja R Harinath [Thu, 16 Feb 2006 13:33:42 +0000 (13:33 -0000)]
* reflection.c (mono_reflection_get_token): Remove unused variable.

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

18 years ago2006-02-16 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 16 Feb 2006 13:26:41 +0000 (13:26 -0000)]
2006-02-16  Martin Baulig  <martin@ximian.com>

* C5/: New directory containing all the source code.

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

18 years agoforgot changelog.
Atsushi Eno [Thu, 16 Feb 2006 11:53:34 +0000 (11:53 -0000)]
forgot changelog.

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

18 years ago2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 16 Feb 2006 10:30:13 +0000 (10:30 -0000)]
2006-02-16  Atsushi Enomoto <atsushi@ximian.com>

* XmlDocument.cs XmlTextReader.cs : in ReadNode(), we can avoid
  extraneous whitespace node creation for XmlTextReader by setting
  WhitespaceHandling.Significant when PreserveWhitespace is false.

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

18 years ago2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 16 Feb 2006 09:27:47 +0000 (09:27 -0000)]
2006-02-16  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextReader.cs : atomize whitespace values. It effectively saves
  memory consumption when an input XML is indented.

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