a hashtable from which one element has been deleted. The Object instance
used as a removed marker is not detected as a such, since the
serializer creates a different instace.
svn path=/trunk/mcs/; revision=15641
* DateTime.cs: Fixed _DoParse() so it correctly applies the utc offset
to the resulting date. Also fixed _ToString so now correctly formates the
UTC offset.
svn path=/trunk/mcs/; revision=15640
* XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
as non-empty, and XmlElement's IsEmpty is designed as such.
Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
doctype node.
* XmlNode.cs : Fixed XPathNodeType. It should throw an exception
instead of returning undefined enum value.
Modified some code comments.
* XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
when XmlReader's node is not at empty element or at EndElement.
Fixed XmlDeclaration's standalone check.
svn path=/trunk/mcs/; revision=15632
* threadpool.c (mono_thread_pool_add): Don't set up a finaliser
for the async object, the WaitHandle object will close the handle.
Fixes bug 45321.
svn path=/trunk/mono/; revision=15630
* class.c: in mono_array_class_get (), lookup from the hash with the
same type we insert: this works around a bug in
mono_metadata_type_hash() with SZARRAY and fixes a leak reported by
lluis. The real fix will have to wait for after the release.
svn path=/trunk/mono/; revision=15629
* mini.c, mini.h, mini.x86.c, mini-ppc.c: added facility so that
arch code can setup the cpu for CLR execution, if needed.
We use it on x86 to set the precision of FP operations.
svn path=/trunk/mono/; revision=15622
* cs-parser.jay: Applied patch from Jackson that adds support for
extern and unsafe modifiers to destructor declarations.
svn path=/trunk/mcs/; revision=15616
before asyncWrite.SetCompleted, to make sure that the waiting thread
does not start to send more information before SendRequestHeaders has
finished.
svn path=/trunk/mcs/; revision=15612
* XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
array if the namespace is not specified in XmlArrayItemAttribute.
svn path=/trunk/mcs/; revision=15611
* class.cs (TypeContainer.Emit): Only call EmitFieldInitializers
if we do not have a ": this ()" constructor initializer. Fixes 45149
svn path=/trunk/mcs/; revision=15599
* class.c: handle field offset correctly when class size
is set (bug# 45182, partially from a patch by [email protected] (Jerome Laban)).
svn path=/trunk/mono/; revision=15570
* namespace.cs: Add some information to reduce FAQs.
2003-06-13 Miguel de Icaza <[email protected]>
* cfold.cs (BinaryFold): BitwiseAnd, BitwiseOr: handle other
underlying enumeration types. Fixes#43915.
* expression.cs: Treat ushort/short as legal values to be used in
bitwise operations.
svn path=/trunk/mcs/; revision=15569
* System.ComponentModel/IExtenderProvider.cs: mono-stylized.
* System.ComponentModel/IComNativeDescriptorHandler.cs:
* System.ComponentModel/SyntaxCheck.cs: new files from Andreas Nahr.
svn path=/trunk/mcs/; revision=15567
* ResourceReaderTest.cs: Put it back the way it was, doesn't work on
.NET, and it works fine on both if you cd to the proper dir before
running these tests.
svn path=/trunk/mcs/; revision=15564
* DecimalTest.cs: Make pass on .NET 1.1
* MarshalByRefObjectTest.cs: Avoid port conflict with other tests.
* SingleFormatterTest.cs: Ignore user overridden settings.
svn path=/trunk/mcs/; revision=15563
* DateTimeTest.cs (TestOA): Compare DateTime values instead of strings
to avoid "culture shock". Made a new AssertEquals() that is more
DateTime-friedly.
svn path=/trunk/mcs/; revision=15561
* NameTable.cs: Now uses a custom hashtable to implement. As a
result, when Get (char[], int, int) is called, a string is only
allocated if it is actually a new entry.
(StrEqArray) Compares a string and a char[]
(AddEntry) Adds a new entry to the hashtable
(Entry) Represents a hashtable entry.
svn path=/trunk/mcs/; revision=15551
* HttpWebClientProtocol.cs: handle cookies if the request is a
HttpWebRequest. It gets the cookies set in the response and sends them
on subsequent requests.
* SoapHttpClientProtocol.cs:
(GetWebRequest): just calls the base method.
(SendRequest): set the method here.
(Invoke): call GetWebResponse instead of request.GetResponse.
* WebClientProtocol.cs:
(GetWebRequest): set some properties of the request.
(GetWebResponse): if we get a WebException containing a response, return
that as the response and ignore the exception.
(GetWebResponse (req, async)): only call EndGetResponse.
svn path=/trunk/mcs/; revision=15536
* ThreadPool.cs: correctly create a TimeSpan with provided the number of
milliseconds.
* WaitHandle.cs: fixes for WaitAny/All and TimeSpan.
svn path=/trunk/mcs/; revision=15535
HttpServerChannel.cs, HttpThread.cs: added new implementation of the HttpChannel
by Ahmad Tantawy, Ahmad Kadry and Hussein Mehanna.
svn path=/trunk/mcs/; revision=15533
* XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
svn path=/trunk/mcs/; revision=15530
* mono-debug.h (MONO_DEBUG_VAR_ADDRESS_MODE_STACK): Removed. We
just distinguish between variables in registers and variables at
an offset relative to a register.
svn path=/trunk/mono/; revision=15509
* RemotingServicesTest.cs: Lazy fix/workaround for "can't reuse
channel" errors. Tests now pass.
* RemotingConfigurationTest.cs: Don't rely on test order, and wrap some
.NET 1.1 stuff.
svn path=/trunk/mcs/; revision=15490
* FileSystemInfoTest.cs: Works on .NET 1.1 now. If these values are
different on 1.0 then we need to wrap with a #if NET_1_1.
svn path=/trunk/mcs/; revision=15469
* XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
is not specified in the xsi attribute.
* XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
* XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
svn path=/trunk/mcs/; revision=15459
* io.c (SetFileAttributes): Implement the ReadOnly attribute, and
ignore the unsupported ones ("fixes" bug 44977).
2003-06-17 Dick Porter <[email protected]>
* file-io.h:
* file-io.c: File attributes need to be tweaked slightly when
passed from the managed to the w32 world.
svn path=/trunk/mono/; revision=15458
* profiler.h profiler-private.h profiler.c: Added infrastructure for
instruction level coverage data collection.
* profiler.h profiler.c (: Added new callback function which can be
used by the profiler to limit which functions should have coverage
instrumentation.
* profiler.c (mono_profiler_load): Call g_module_build_path to
generate the file name of the profiler library.
svn path=/trunk/mono/; revision=15448
* OptionDetails.cs :
- Now handles correctly options specifiying maxOccurs != 1 (that was preventing mbas from being useable)
- Now indicates if option parsing consumed a parameter or not (also checks if it is available first)
- Now multivalued options can either be given as many pairs option/parameter and also as a pair option/comma-separated-list, and both
Example: -r System.Data -r System.Xml or /r System.Data,System.Xml
- Now it is more lax in the form matching: -r /r -reference --reference /reference are valid for a ('r',"reference") option
* Options.cs : new BreakSingleDashManyLettersIntoManyOptions field to make more GNUish parsing of single letter options.
Makes -zxf become -z -x -f if set to true
svn path=/trunk/mcs/; revision=15443
* XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
this method set current node null.
* XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
String.Empty instead of null (expected value).
* XmlTextReader.cs,
XmlUrlResolver.cs,
XmlInputStream.cs : fixed BaseURI problem (bug #44231).
svn path=/trunk/mcs/; revision=15440
* driver.c, mini-ppc.c, mini-x86.c, mini.c, mini.h: the coverage stuff
is now implemented in the profiling API. Get rid of a couple of
unnecessary global variables.
svn path=/trunk/mono/; revision=15438
* System.Data.Common/DbDataAdapter.cs:
Add the DataTable to the result set even if it contains
no rows. Based on report by Krieg Andreas.
svn path=/trunk/mcs/; revision=15436
* RSAManaged.cs: Now includes CRT (Chinese Remainder Theorem)
optimization when using the private key (DecryptValue). This
cut more than 5 seconds of nunit on my system (out of 14 sec
for complete asymmetric tests). Thanks to Ben Maurer for help!
svn path=/trunk/mcs/; revision=15431
* added XmlCharTests.cs(separated XmlChar tests from XmlTextReaderTests)
* XmlTextReaderTests.cs : added ExternalDocument() which will result
in BaseURI test and DTD parameter entity test.
svn path=/trunk/mcs/; revision=15427
* XmlNodeReader.cs : this [name] and this [name, ns] (and
GetAttribute() methods in turn) returns null instead of String.Empty.
* XmlTextWriter.cs : WriteStartAttribute() should try to use specified
prefix before auto-generating prefixes.
Implemented WriteBase64().
svn path=/trunk/mcs/; revision=15412
* .cvsignore: Ignore generated files (remove with make clean).
* CertificateFormatter.cs: Commented 2 lines as it didn't compile
with MCS (but did compile with CSC).
* gcertview.cs: Change app.ico (non-existing) to mono.bmp (16x16).
* gcertview.exe.config: New. Configuration file for gcertview (same
as certview.exe.config except it reference gcertview.exe instead of
certview.exe).
* makefile: Updated for linux by Ben Maurer.
svn path=/trunk/mcs/; revision=15410
in TypeStubInfo so serializers for headers they can be shared by several methods.
* SoapClientMessage.cs: Headers added in the constructor.
* SoapMessage.cs: Added header list initialization.
* SoapHttpClientProtocol.cs: Added support soap headers.
svn path=/trunk/mcs/; revision=15382
* threads.c (start_wrapper): Remove the reference to the thread
object in the TLS data, so the thread object can be finalized.
This won't be reached if the thread threw an uncaught exception,
so those thread handles will stay referenced :-( (This is due to
missing support for scanning thread-specific data in the Boehm GC
- the io-layer keeps a GC-visible hash of pointers to TLS data.)
svn path=/trunk/mono/; revision=15381
* HttpWebRequest.cs: if CookieContainer has not been set, make HttpWebResponse ignore
Set-Cookie* headers.
* HttpWebResponse.cs: Set-Cookie and Set-Cookie headers removed if CookieContainer have
been provided to the request.
svn path=/trunk/mcs/; revision=15379
* reflection.c: ensure streams and tables are first allocated with
ALLOC_ATOMIC (GC_realloc uses plain GC_malloc otherwise).
svn path=/trunk/mono/; revision=15378
2003-06-13 Herve Poussineau <[email protected]>
* SortedList.cs: Can enumerate on DictionaryEntries, not only on
keys on values. Enumerate by default on DictionaryEntries.
2003-06-14 Duncan Mak <[email protected]>
* SortedListTest.cs
(TestIndexer):
(TestEnumerator): Incorporated these two tests from Philippe
Lavoie <[email protected]>.
svn path=/trunk/mcs/; revision=15376
* reflection.c (mono_reflection_create_runtime_class): Add support for
properties to dynamically created classes.
* reflection.c: Fix a few places where non-MonoObjects were inserted
into the tokens hashtable.
svn path=/trunk/mono/; revision=15371
* XmlNodeReader.cs : LookupNamespace () has refered invalid current
node for attributes. Modified to use private "document" property.
svn path=/trunk/mcs/; revision=15370
* System.Net/AuthenticationManager.cs: get the list of authentication
modules from the configuration files. Added Clear and fixed Unregister.
* System.Net/BasicClient.cs: fully implemented.
* System.Net/HttpWebRequest.cs: added support for Basic authentication
when credentials are set.
* System.Net/NetworkCredential.cs: fixed GetCredential.
* System.Net.Configuration/NetAuthenticationModuleHandler.cs: register
the modules using AuthenticationManager.
svn path=/trunk/mcs/; revision=15367
* HttpWebRequest.cs: *really* take care of requestSent to prevent
sending the same request twice.
* WebAsyncResult.cs: don't close the handle. Just Reset.
* WebConnectionStream.cs: removed unneeded line.
svn path=/trunk/mcs/; revision=15354
* HttpWebRequest.cs: use InternalClose when we are not going to send the
rest of the request stream because of an error after sending the
headers.
* WebConnection.cs: check for completion after setting the response.
Enable reading in NextRead.
* WebConnectionStream.cs: re-fixed the count for partially buffered
reads. If the network stream returns 0 bytes, we're done.
svn path=/trunk/mcs/; revision=15351
* object.h, object.c: more portability stuff from Bernie Solomon.
Unexport mono_object_allocate(). Added mono_object_unbox ().
Set exitcode when an unhandled exception is thrown.
svn path=/trunk/mono/; revision=15338
* FileStream.cs: Fix errors in previous checkins:
(Write): Only take the shortcut route if the data is longer than the
buffer length.
(Write): Flush the buffer before writing out the new data
(Write): Flush the buffer after writing out a segment since otherwise
we will go into an infinite loop.
(FlushBuffer): Remove my last change since it was clearly wrong.
(Seek): Run FlushBuffer () after the in-buffer seek optimization.
(Seek): Only use the in-buffer optimization if the buffer is not
empty.
(Length): Call FlushBuffer () since buffer data might change the size
of the stream.
svn path=/trunk/mcs/; revision=15336
* CommandTests.cs: Changed code to use parameter names starting with ':'. Added test for empty query.
* DataReaderTests.cs: Added test for parameter names overlap. Added test for nonexistent parameter name.
svn path=/trunk/mcs/; revision=15333
* NpgsqlCommand.cs: Fixed parameter replace bug when parameter names overlap. Thanks Ishpal Singh. Cleaned up the code.
* NpgsqlDataReader.cs: Fixed NPE bug when handling queries which doesn't return anything.
* NpgsqlParameter.cs: Added code to format parameter names to start with ':'.
* NpgsqlParameterCollection.cs: Added code to format parameter names to start with ':'.
svn path=/trunk/mcs/; revision=15332
* DSACryptoServiceProvider.cs: Refactored from orginal by splitting
much core functionalities into DSAManaged.
* RSACryptoServiceProvider.cs: Refactored from orginal by splitting
much core functionalities into RSAManaged.
* RSAPKCS1SignatureDeformatter.cs: Updated to use the new PKCS#1 API.
Now works with any hash algorithm (which OID is defined in machine.config)
* RSAPKCS1SignatureFormatter.cs: Updated to use the new PKCS#1 API.
Now works with any hash algorithm (which OID is defined in machine.config)
svn path=/trunk/mcs/; revision=15330
* DSAManaged.cs: Refactored from DSACryptoServiceProvider.cs. Cannot
be reused outside [ms]corlib because DSA constructor is internal :-(
* PKCS1.cs: Now support any hash algorithm when encoding PKCS 1.5
(i.e. not limited to pre-calculated values for known hashes). Some
other API changes to ease the use of other hash algorithms.
* RSAManaged.cs: Refactored from RSACryptoServiceProvider.cs. This
class is required for custom PKCS#1 padding in SSL (which is not
possible using RSACryptoServiceProvider).
svn path=/trunk/mcs/; revision=15328
* BigInteger.cs: Added Clear to zeroize big integers and code to allow
compares with null (because operators == and != are re-defined). Note:
The class may still leak some private info in temp arrays (thanks Ben).
svn path=/trunk/mcs/; revision=15327
Added support for DefaultValueAttribute.
* XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
the value of an enum.
* XmlTypeMapMember.cs: Added DefaultValue attribute.
* XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
integer values.
svn path=/trunk/mcs/; revision=15326
* SybaseConnection.cs:
Make connection parameter parsing "more correct"
and throw appropriate exceptions, similar to MS SqlClient
* SybaseBinary.cs:
* SybaseBoolean.cs:
* SybaseByte.cs:
* SybaseDateTime.cs:
* SybaseDecimal.cs:
* SybaseDouble.cs:
* SybaseMoney.cs:
* SybaseString.cs:
Mass import of code from SqlClient to make this behave
better.
svn path=/trunk/mcs/; revision=15324
* MonoType.cs: don't throw nullref when the return type for a property
is specified and the property doesn't have a get accessor.
svn path=/trunk/mcs/; revision=15293
* XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
* XmlCustomFormatter.cs: small fixes.
* XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
* XmlSerializationWriter.cs: Implemented TopLevelElement().
WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
* XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
root elements.
svn path=/trunk/mcs/; revision=15288
generated, and a namespace declaration must be added.
* XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
svn path=/trunk/mcs/; revision=15287
* acconfig.h:
* configure.in: Check for struct ip_mreq if struct ip_mreqn isn't
available.
2003-06-10 Dick Porter <[email protected]>
* socket-io.c: Don't assume that one of struct ip_mreqn or struct
ip_mreq is available
2003-06-10 Dick Porter <[email protected]>
* atomic.c: Delete the useless compile warning
svn path=/trunk/mono/; revision=15284
* Added Paolo's comments about CVS commits and changing code.
Also reorganized it a bit. Hopefully this is a more logical ordering.
svn path=/trunk/mono/; revision=15283
* configure.in: Make the libgc stuff actually work; we now create
a shared libmonogc.so when using the included libgc.
svn path=/trunk/mono/; revision=15264
* XmlDocumentNavigator.cs (GetNode): Make it implement
IHasXmlNode.
Hopefully I fixed the space/tab thing. Let's just all use
spaces, it's just easier....
svn path=/trunk/mcs/; revision=15262
* WebConnectionStream.cs: when the read is partially filled from the
initial buffer, add those bytes too. Thanks to Lluis for debugging this.
svn path=/trunk/mcs/; revision=15256
* CryptoConfig.cs: Now support OID in machine.config.
* DSACryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
* KeySizes.cs: Changed USE_VERSION_1_0 for NET_1_0.
* MD5CryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
* RNGCryptoServiceProvider.cs: Changed USE_VERSION_
svn path=/trunk/mcs/; revision=15255
* HttpWebRequest.cs: added ExpectContinue property.
* WebConnection.cs: allow 100 Continue to be delayed after waiting for
it.
svn path=/trunk/mcs/; revision=15252
* class.c: ensure instance size always includes the parent's size
even whem class size is set explicitly (fixes bug#44294).
svn path=/trunk/mono/; revision=15248
* Makefile.am, mini-x86.c: rename cpu description array to
pentium_desc, since some compilers define the 'pentium' preprocessor
symbol.
svn path=/trunk/mono/; revision=15247
* daemon.c: Lookup env as a string array. Fixes bug 44289. Also
make setting the process handle value in the environment actually
work.
* processes.c: Pretty up the process name, if it happens to be
"mono" such as when another mono process forks "mono foo.exe"
svn path=/trunk/mono/; revision=15246
* Array.cs: Revert the last revert. I fixed it.
Here's a lesson: only commit the patches that you're absolutely
sure about. See, I committed 3 changes below, the Sort change
being the last one, and I was the least confident with it. But I
committed them all anyway. Big mistake.
So here we go again:
(Sort): Put a try-catch block around qsort, and wrap whatever
Exception we get into a InvalidOperationException.
svn path=/trunk/mcs/; revision=15228
* Array.cs: Throw more exceptions. This fixes the errors we see
from the Rotor testsuite.
(CreateInstance): Throw ArgumentNullException when the input are
null. Throw ArgumentOutOfRangeException when bounds + length is
greater than Int32.MaxValue.
(LastIndexOf): Throw ArgumentOutOfRangeException if index is outside
the valid range of indices of array.
(Sort): Throw InvalidOperationException when comparer is null and
none of the elements in keys implements IComparable.
svn path=/trunk/mcs/; revision=15209
* StringCollection.cs: Rewrote. Now uses ArrayList. Fixes up quite
a few Rotor bugs.
* ArrayList.cs, Hashtable.cs, SortedList.cs: Enumerator fixes, error
checking
We are now passing 37% of the System.Collections.* tests that were failing!
svn path=/trunk/mcs/; revision=15207
* FeatureAttr.cs: New file - Attributes for features (events and
properties)
* MethodRef.cs: Only resolve methods once.
* TypeDef.cs: Allow Events to be added to types. Also add
functionality to add generic type parameters to types. The
actually emission of these type parameters is commented out untill
I commit my patches to PEAPI and work out the syntax of constraints.
svn path=/trunk/mcs/; revision=15202
* libgc/: Integrate the libgc module here.
[Note: A simple `cvs update' won't work this time; you either need
to re-checkout the `mono' module or manually move the `libgc'
module here.]
* configure.in (--with-gc): Added `included' option to use the
included libgc. This is now also the default.
(LIBGC_CFLAGS, LIBGC_LIBS): Put the libgc stuff here and AC_SUBST it.
(INCLUDED_LIBGC): New automake conditional.
(USE_INCLUDED_LIBGC): #define this if appropriate.
* autogen.sh: Run libgc/autogen.sh.
* Makefile.am (SUBDIRS): Added libgc.
svn path=/trunk/mono/; revision=15185
Length of the input array 'lengths' is greater than 255 so that we
won't see the g_assert that is in mono_array_class_get in class.c.
svn path=/trunk/mcs/; revision=15183
* HttpWebRequest.cs: don't send "Expect: 100-continue" is the server
is known not to respond to that.
* ServicePoint.cs: added SendContinue property.
* WebConnection.cs: only wait 2 seconds for a continue reply. If it
timeouts, set SendContinue to false and proceeed sending data.
* WebConnectionStream.cs: if 100-continue is not received and instead we
get a 417 or anything else, don't send the data.
* WebClient.cs: implemented all missing properties and methods except
UploadFile.
svn path=/trunk/mcs/; revision=15180
* Stack.cs: Contains (null) works correctly. We never have the
array sized less than 16, so that the doubling logic works no
matter what. The enumerator is IClonable, like in ms. The
Enumerator correctly throws an exception if Current is called
before the enumerator is started. We now pass all the Rotor tests
for this file!
svn path=/trunk/mcs/; revision=15179
- Throw was added
- Multi-line statements partly implemented (still choking on some constructs)
- Fixed line continuation character ('_')
- Fixed Mod operator
- New runtime conversion (String -> CharArray) supported
- Array declaration code was completely rewritten to allow for expressions
to be used in a declaration
- Many sparse grammar fixes
- Started work to make the resolver case-insensitive (partially working)
svn path=/trunk/mcs/; revision=15176
* list.unix: added files.
* System.Net/FileWebRequestCreator.cs: splitted from WebRequest.
* System.Net/HttpRequestCreator.cs: splitted fromWebRequest.
* System.Net/WebRequest.cs: added methods that are used by the new
configuration handler to set prefix/type name requests creators.
* System.Net.Configuration/WebRequestModuleHandler.cs: handles
system.net/webRequestModules configuration section.
svn path=/trunk/mcs/; revision=15160
* mini.c (mini_select_instructions): add explicit branch if the
following block is not the false target of a conditional branch -
we need this with any optimization that reorder or remove bblocks
* mini.c (optimize_branches): bug fixes
svn path=/trunk/mono/; revision=15159
* driver.c: Set the glib log levels to not abort if g_message
recurses.
g_set_prgname() has to happen before mini_init() so that the
process handle gets the info.
svn path=/trunk/mono/; revision=15139
* processes.c (process_set_current): Don't do an expensive handle
search at application startup, check the environment to see if the
process handle has already been created.
* io.c: Don't do an expensive handle search when creating stdin,
stdout and stderr handles, just create them all the first time one
is requested.
* wapi-private.h:
* shared.c:
* shared.h:
* handles.c:
* handles-private.h:
* daemon-messages.h:
* daemon-private.h:
* daemon.c: Support for "unlimited" number of handles and scratch
data.
Speed up application startup by passing process handle in the
environment, rather than let the app scan all handles (which gets
really slow when there are more than a few thousand to check.)
Initialise some structs passed to syscalls, noticed by valgrind.
svn path=/trunk/mono/; revision=15137
* TypeTranslator.cs: added IsPrimitive() method
* TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
used by that one. Also added Format property, that can be literal or encoded.
* XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
* XmlReflectionMember.cs: added constructor that accepts SoapAttributes
* XmlSerializationReader.cs: implemented many methods needed to support encoded format.
* XmlSerializationReaderInterpreter.cs: added support for encoded format.
* XmlSerializationWriter.cs: added support for encoded format.
* XmlSerializationWriterInterpreter.cs: added support for encoded format.
* XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
* XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
and a map is needed for them).
* XmlTypeMapMemberElement.cs: small fixes.
* XmlTypeMapping.cs: added some properties and methods needed to support encoded format
* ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
svn path=/trunk/mcs/; revision=15130
* profiler.h, profiler.c: made the simple profiler thread-safe,
get more accurate timing info. Allow the loading of an
externally-developed profiler module.
svn path=/trunk/mono/; revision=15128
* delegate.cs: transfer custom attributes for paramenters from
the delegate declaration to Invoke and BeginInvoke.
svn path=/trunk/mcs/; revision=15099
* ArrayList.cs: nullify the array in Clear ().
* Queue.cs: nullify the array in Dequeue ().
* Stack.cs: nullify the array in Pop ().
svn path=/trunk/mcs/; revision=15094
* RandomTest.cs: Added a test to compare Mono's random streams with
MS implementation (framework and Rotor). Converted to NUnit2 format.
svn path=/trunk/mcs/; revision=15078
* KeyInfoRetrievalMethodTest.cs: Changed RetrievalElement to
RetrievalMethod to match W3C specification and framework 1.1.
svn path=/trunk/mcs/; revision=15075
* Queue.cs: Added argument checking in constructors according to
specs. Also changed default size to 32 as required by the specs.
svn path=/trunk/mcs/; revision=15074
* mini.c (mono_find_block_region): bug fix in region code
(mini_method_compile): enable removing unreachable code again, but
only in methods without exception clauses.
svn path=/trunk/mono/; revision=15068
* DoubleFormatterTest.cs: added the last changes from the author of
this test (Patrick Kalkman <[email protected]>).
* SingleFormatterTest.cs: added the first release of this test from
the same author: Patrick Kalkman <[email protected]>.
svn path=/trunk/mcs/; revision=15063
form [assembly]name first check if the assembly is this
assembly. Implement scope_blocks, and implement scope block form
exception handling.
svn path=/trunk/mcs/; revision=15045
* HandlerBlock.cs: Make label fields public so they can be
accessed in a TryBlocks constructor.
* MethodDef.cs: Allow random labels to be inserted at the current
position. These are use for scope blocks.
* TryBlock.cs: New constructor takes from and to labels as a HandlerBlock
svn path=/trunk/mcs/; revision=15044
but my response serializer still can not cope with the <return> feature of the RPC
model.
2003-06-01 Miguel de Icaza <[email protected]>
* Methods.cs (MethodStubInfo): If creating an RPC call, pass an
optional XmlElementAttribute with the namespace set to null; Use
this on each element of the request and response serializers.
(MakeRequestSerializer, MakeResponseSerializer): Use the empty
element for the return values.
* SoapRpcMethodAttribute.cs: Drop the default name on the
SoapRpcMethodAttribute, it was incorrectly given a default name.
svn path=/trunk/mcs/; revision=15043
* BitArray.cs: Rewrote, as it was failing most of the Rotor
tests. It now passes them 100%. Also fixes bug #43667.
svn path=/trunk/mcs/; revision=15036
is actually a primitive object type (System.String,
System.Object). Add custom attributes to types. Handle the il
keyword the exact same way as cil. Add ellipsises to param and sig
lists. Add an optional name to typelists, this is just parsed it
is not implemented properly. Add custom attributes to
methods. Implement custom types (just methodrefs to ctors).
svn path=/trunk/mcs/; revision=15027
* InstrTable.cs: Add stelem.r4 and stelem.r8 instructions. Add
. tail to unaligned modifier.
* LdtokenInstr.cs: Add type tokens.
* MethodDef.cs: Fix IsVararg, add method to add custom attributes,
emitting custom attributes when writing code, allow for Ellipsises
in param lists, add coma between args in signatures.
* ParamDef.cs: Add the Ellipsis pseudo param
* PrimitiveTypeRef.cs: System.String and System.Object can be
referenced without an [mscorlib] assembly prefix.
* TypeDef.cs: Add Custom attributes.
svn path=/trunk/mcs/; revision=15025
attributes. Attributes can now be added to ClassDefs and
MethodDefs. Still need to implement for other metadata elements.
Added the stele.r4 and stelem.r8 instructions, this should also
shift the stelem.ref instruction to the proper value (0xA2)
svn path=/trunk/mcs/; revision=15020
* RegisteredWaitHandle.cs: check that the callback is not null before
invoking.
* ThreadPool.cs: fixed timeout -> TimeSpan conversions (closes bug
#43963). Queue the item before setting the handle. If there's a timeout,
avoid trying to Dequeue, getting the exception et al, just continue the
loop.
svn path=/trunk/mcs/; revision=15016
not the parameters. So still confused. Only needed for Google
2003-05-30 Miguel de Icaza <[email protected]>
* Methods.cs (MethodStubInfo): Start support for RPC style as well
as Literal style. Take an object instead of a
SoapDocumentMethodAttribute, and allow the value to be also a
SoapRpcMethodAttribute. Pull data from both.
Kill SoapBindingUse, we only use this during validation.
Turn out Google uses RPC/Literal, and its a good demo.
svn path=/trunk/mcs/; revision=15014
* Methods.cs (MakeResponseSerializer): OneWay is not the only
condition to catch; Also void return types are not required to
have a response.
(MakeRequestSerializer): InParameters *might* be ref parameters,
deal with that here too.
Add some debugging code for tracking down missing implementation
details in serialization creation.
svn path=/trunk/mcs/; revision=15013
* Methods.cs (MakeResponseSerializer): DUH. Use the
ResponseName/ResponseNamespace for the member import, not the
RequestName and RequestNamespace. The bugs of cut-and-paste.
svn path=/trunk/mcs/; revision=15011
* mini.c, mini-ops.h, cpu-pentium.md, inssel.brg, mini-x86.c, mini.h:
Implemented arglist opcode and handling of TypedReference type.
Fixed x86 call convention when a structure is returned.
Minimal support for calling static vararg methods.
svn path=/trunk/mono/; revision=15009
* class.c, domain.c, icall.c, metadata.h, object.h: support for
handling TypedReference and ArgIterator.
* loader.c, loader.h: added function to get signature at call site.
svn path=/trunk/mono/; revision=15005
* mini.c (mini_method_compile): always remove unreachable code,
because the code in them may be inconsistent (access to dead
variables for example).
svn path=/trunk/mono/; revision=15004
a Soap invocation.
The result is still not handled though.
2003-05-29 Miguel de Icaza <[email protected]>
* SoapHttpClientProtocol.cs (CreateMessage): Kill. Move
functionality to Invoke.
(Invoke): Use new TypeStubInfo/MethodStubInfo instead.
* SoapClientMessage.cs: Drop old mechanism, use MethodStubInfo instead.
* Methods.cs: New file. Contains the managed for TypeStubs and
MethodInfoStubs.
A MethodInfoStub contains the serializers we use for the SOAP
request.
* SoapClientMessage.cs: Drop parameters from the clientmessage, it
does not belong here. Drop oneway, we canextract that from the
SoapDocumentMethodAttribute class that we pass.
svn path=/trunk/mcs/; revision=15003
* HttpWebRequest.cs (Close): Move the code that accumulates the
output to Close from Flush. Flush could have been called in the
middle of the processing, and would have generated invalid results
(which it did).
svn path=/trunk/mcs/; revision=15000
* PKCS1MaskGenerationMethodTest.cs: Added [Ignore] to vector test
(as it's result isn't valid on both framework 1.0 and 1.1).
* RSAPKCS1SignatureDeformatter.cs: Splitting the test for NUnit2
cloned the previous error into many more tests. Hopefully fixed.
svn path=/trunk/mcs/; revision=14999
* XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
* XmlMapping.cs: Added internal property.
* XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
* XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
* XmlReflectionMember.cs: XmlAttributes are now created by default
* XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
* XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
Implemented support for XmlMembersMapping.
* XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
svn path=/trunk/mcs/; revision=14997
* metadata.c, metadata.h, private.h, tokentype.h, loader.c: make more
data readonly. Buglets and warning fixes. Some MethodSpec support.
svn path=/trunk/mono/; revision=14987
* Array.cs: Added better argument checking to Array.Sort () (approved by Gonzalo)
* DBNull.cs: Made the conversions throw like they do in MS.
svn path=/trunk/mcs/; revision=14983
* RSAPKCS1SignatureDeformatter.cs: Fixed (well I hope so) a test
which doesn't throw the same exception under 1.1. Also converted
the tests to NUnit2 format.
svn path=/trunk/mcs/; revision=14982
from xml type to clr type.
* XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
* XmlReflectionMember.cs: Added default constructor.
* XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
* XmlSerializationWriter.cs: Several fixes.
* XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
Added support for enums. Added support for XmlElement and XmlNode.
Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
svn path=/trunk/mcs/; revision=14977
position, since MoveToNextAttribute may be called after it.
SetProperties(): attributes do not "inherit" the namespace.
* XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
svn path=/trunk/mcs/; revision=14975
* XslTransform.cs: fixed NullReferenceExceptions after the last
change (which, btw, should have included a ChangeLog entry).
svn path=/trunk/mcs/; revision=14970
* XslTransform.cs: Initial support for extension objects.
Known issues:
Extension method signatures must match exactly to the
types of parameters that the method is called with from the stylesheet.
Node set parameters are converted to an ArrayList of strings.
* makefule.gnu: Added -unsafe flag, required by the above stuff.
* System.XML.build: Added /unsafe flag. Hope this is the right place.
svn path=/trunk/mcs/; revision=14951
* expression.cs (ArrayAccess.GetStoreOpCode): For System.IntPtr,
we use the stobj opcode.
(ArrayCreation.EmitDynamicInitializers): Revert Miguel's patch
since it wasn't the correct fix.
It still is puzzling that we are required to use stobj for IntPtr
which seems to be a ValueType.
svn path=/trunk/mcs/; revision=14944
* test-45.cs : Enable code which tests IntPtr array
initialization. This automatically serves as a test case for bug
#36030.
Improve test.
svn path=/trunk/mcs/; revision=14943
* mini.c: thread-static fields are registered in mono_class_vtable(),
so ensure the function is called before checking for them.
svn path=/trunk/mono/; revision=14937
* NativeWindow.cs : don't use CS_VREDRAW and CS_HREDRAW flags
* ImageList.cs
* ImageListStreamer.cs : small fixes
* TabControl.cs
* TabPage.cs : image list support was added
svn path=/trunk/mcs/; revision=14931
* ecore.cs (SimpleName.SimpleNameResolve): Consider using aliases
during regtular simple name resolution. Now, the trick is that
instead of returning for processing the simplename, we do a
TypeManager.LookupType (ie, a rooted lookup as opposed to a
contextual lookup type). If a match is found, return that, if
not, return for further composition.
This fixes long-standing 30485.
svn path=/trunk/mcs/; revision=14916
* X509CertificateTest.cs: Commented some tests in Certificate13 (the
DSA certificate without any key parameters) because MS implementation
cannot use the X509Certificate(X509Certificate) to instance it.
svn path=/trunk/mcs/; revision=14914
2003-05-26 Miguel de Icaza <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): For now, do not
free the string, until we get a chance to fix Gtk#
svn path=/trunk/mono/; revision=14909
* basic-long.cs: add regression test for (long)int * (long)int
* cpu-pentium.md: add op_bigmul specification
* inssel-long32.brg: add OP_BIGMUL rule
* mini-ops.h: add OP_BIGMUL
* mini-x86.c: register allocator: handle case where src1 needs to be
in EAX.
* mini.c: substitute special BIGMUL opcode in the tree for
(long)int * (long)int
svn path=/trunk/mono/; revision=14907
* DataViewTest.cs: Added new test from
Patrick Kalkman
* data_linux_test.args: Updated for new test in System.Data
svn path=/trunk/mcs/; revision=14902
* expression.cs (IndexerAccess.Emit, IndexerAccess.EmitAssign):
Pass `is_base_indexer' to Invocation.EmitCall instead of false.
Because if we are a BaseIndexerAccess that value will be true.
Fixes 43643.
svn path=/trunk/mcs/; revision=14897
* expression.cs (PointerArithmetic.Emit): If our operand is a
long, convert our constants to match the operand before
multiplying. Convert to I type before adding. Fixes 43670.
svn path=/trunk/mcs/; revision=14895
* NameTable.cs : Add() sets the given name string interned.
* XmlParserContext.cs : added internal PushScope() and PopScope() to
hold stacks of xml:base, xml:lang and xml:space.
* XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
property for stacked attributes). Renamed Initialize() to Initialize-
Context(). Modified to use XmlParserContext.PushScope()/PopScope().
svn path=/trunk/mcs/; revision=14891
* win32functions.cs : added some prototypes required for ImageList impl.
* win32strcuts.cs : added new structs, switched to CharSet.Ansi for TCITEM struct
* win32Enums.cs : use ansi messages for tab control
svn path=/trunk/mcs/; revision=14888
* mini.h, mini.c: ensure correct initialization order for types that
require it. Prepare for lazy compilation of jit icall wrappers.
Provide a name for opcode emulation to reduce unneeded mallocing.
svn path=/trunk/mono/; revision=14880
* XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
to match framework 1.1 (this was a bug in framework 1.0).
svn path=/trunk/mcs/; revision=14876
* ExternMethodRef.cs: Resolve vararg methods
* GlobalMethodRef.cs: Set calling conventions, add vararg methods
* MethodDef.cs: Set calling conventions, add vararg methods
* MethodRef.cs: Set calling conventions, add vararg methods
* TypeDef.cs: Resolve vararg methods
* TypeRef.cs: Add Ellipsis pseudo type, this should never really
be used as a type, but is stored in arrays with other types. Pass
call convs to methodref constructor.
svn path=/trunk/mcs/; revision=14869
from labels.
* FaultBlock.cs: Remove typo causing to labels to be the same as
from labels.
* FilterBlock.cs: Remove typo causing to labels to be the same as
from labels.
* MethodDef.cs: Allow for multiple labels to point to the same
line. ie:
END_BLOCK:
PASS:
do stuff
svn path=/trunk/mcs/; revision=14853
block
* FaultBlock.cs: New file - Initial implementation of a fault
block
* FilterBlock.cs: New file - Initial implementation of a filter
block
* FinallyBlock.cs: New file - Initial implementation of a finally
block
* HandlerBlock.cs: New file - A handler block is the block
assosciated with a SEH clause
* ISehClause: New file - Interface that structured exception
handling clauses must implement.
* TryBlock.cs: New file - Initial implementation only supports
label form SEH. This TryBlock is added to a method as an
instruction out of convenience, tryblock is not an instruction.
svn path=/trunk/mcs/; revision=14826
referenced in the grammar. need to check if these keywords work on
MS ilasm.
* NumberHelper.cs: Parse numbers as Unsigned then cast to long
otherwise an overflow exception is thrown. (is this a classlib bug?)
svn path=/trunk/mcs/; revision=14822
only INT_I8 instruction is ldc.i8 so this new code does more
checks then needed but is written in anticipation of some new long
instructions being found. Implement signature instructions, token
instructions, and signatures. Convert INT32s masquerading as
INT64s to Int64.
svn path=/trunk/mcs/; revision=14789
* Ldtoken.cs: New file - The ldtoken instruction
* InstrTable.cs: ldc.i8 is a TOKEN_I8 and should be given the
MiscToken.ldc_i8 value.
svn path=/trunk/mcs/; revision=14787
* enum.cs (ImplicitConversionExists) : Rename to
ImplicitEnumConversionExists to remove ambiguity.
* ecore.cs (NullCast): New type of cast expression class which
basically is very similar to EmptyCast with the difference being
it still is a constant since it is used only to cast a null to
something else
(eg. (string) null)
* convert.cs (ImplicitReferenceConversion): When casting a null
literal, we return a NullCast.
* literal.cs (NullLiteralTyped): Remove - I don't see why this
should be around anymore.
The renaming (reported was slightly wrong). Corrections:
ConvertImplicitStandard -> ImplicitConversionStandard
ConvertExplicitStandard -> ExplicitConversionStandard
* expression.cs (StaticCallExpr.MakeSimpleCall): Resolve arguments
before passing them in !
* convert.cs (ImplicitConversionStandard): When comparing for
equal expr and target types, ensure that expr is not a
NullLiteral.
In general, we must not be checking (expr_type ==
target_type) in the top level conversion methods
(ImplicitConversion, ExplicitConversion etc). This checking is
done in the methods that they delegate to.
svn path=/trunk/mcs/; revision=14773
* mini-x86.c (mono_arch_get_allocatable_int_vars): dont allocate
I1 to registers because there is no simply way to sign extend 8bit
quantities in caller saved registers on x86.
* inssel-float.brg: set costs of some rules to 2 so
that monobure always select the arch. specific ones if supplied,
regardless of the order we pass the files to monoburg.
svn path=/trunk/mono/; revision=14757
* icall.c (ves_icall_System_Reflection_Module_GetGlobalType): New icall
to return the invisible global type for a module.
* reflection.c (mono_image_build_metadata): Emit global fields too.
svn path=/trunk/mono/; revision=14755
* ModuleBuilder.cs:
- Implement DefineInitializedData in terms of DefineUninitializedData
- Name the types of global fields $ArrayType$<len> to cut back on the
number of types created
- Add argument checking
svn path=/trunk/mcs/; revision=14752
* FloatingPointFormatter.cs: Take care with the explicit precision
and round the number to that precision.
* DoubleFormatter.cs: Adapt to the two level precision (15 - 17).
* SingleFormatter.cs: Adapt to the two level precision (7 - 8).
svn path=/trunk/mcs/; revision=14742
* main.c (print_skel_dir): New function called when jay is
passed '-p'; prints the directory where the default skeleton
files are installed ($(prefix)/share/jay).
* makefile (CFLAGS): Add a -DSKEL_DIRECTORY to support
print_skel_dir.
* jay.1: Document the -p parameter.
svn path=/trunk/mcs/; revision=14732
* win32Enums.cs : added some error codes for common dialogs
* win32functions.cs : added prototype for CommDlgExtendedError
svn path=/trunk/mcs/; revision=14727
* reflection.c (mono_reflection_lookup_dynamic_token): Intern dynamic
literal strings.
* appdomain.c (set_domain_search_path): Recalculate search path when
AppDomainSetup.PrivateBinPath changes.
* object.c (mono_class_compute_gc_descriptor): It turns out some
parts of the class libs (like System.Thread) holds pointers to
GC_MALLOC()-d memory in IntPtrs, which is wrong. The workaround is
to treat native int a pointer type here.
svn path=/trunk/mono/; revision=14726
* mini.c, mini-x86.c: since the magic trampoline for jumps
can't patch the code directly, we do it as soon as the
method gets compiled.
svn path=/trunk/mono/; revision=14725
* mini-x86.c, mini.h: introduce a new patching method
to support CEE_JMP and tail calls.
* mini.c: obey tail.call. Don't precompile methods target
of CEE_JMP.
* tramp-x86.c: new trampoline code to handle methods
reached through a jump.
svn path=/trunk/mono/; revision=14722
* Assembly.cs (GetManifestResourceStream): Moved handling of
linked resources into managed code using the newly implemented
GetManifestResourceInfo () method.
svn path=/trunk/mcs/; revision=14717
* FileTest.cs:
* StreamReaderTest.cs:
* StreamWriterTest.cs: Workaround for process holding on to directory
that prevented cleanup and deletion.
svn path=/trunk/mcs/; revision=14715
* ConstructorBuilder.cs MethodBuilder.cs: Remove unnecessary MonoTODO
attributes.
* TypeBuilder.cs: "Implement" various methods not supported under
MS.NET.
* AssemblyBuilder.cs: Implement GetDynamicModule. "Implement" various
methods not supported under MS.NET.
svn path=/trunk/mcs/; revision=14706
* threads.c: Set the new thread's stack size to 2M. Fix needed
for BSD, reported by Martin Dvorak <[email protected]>
svn path=/trunk/mono/; revision=14699
* reflection.h reflection.c icall.c: Added new icalls
GetManifestResourceInfoInternal, GetModulesInternal and support
infrastructure.
svn path=/trunk/mono/; revision=14696
* FileStream.cs (FlushBuffer): After a flush, the buffer should be
advanced by buf_offset bytes, not buf_length bytes.
svn path=/trunk/mcs/; revision=14693
* statement.cs (TypeInfo.StructInfo): Made this type protected.
(TypeInfo): Added support for structs having structs as fields.
* ecore.cs (FieldExpr): Implement IVariable.
(FieldExpr.DoResolve): Call VariableInfo.GetSubStruct() to get the
VariableInfo for the field.
svn path=/trunk/mcs/; revision=14686
methods using array methods if owners are arrays, resolve methods
named <init> as .ctor.
* ExternTable.cs: Add method to get value classes.
* ExternTypeRef.cs: Add AsClassRef method, GetMethodRef now takes
calling conventions.
* IClassRef.cs: GetMethodRef now takes calling conventions
* ITypeRef.cs: Add IsArray IsRef and AsClassRef methods
* MethodRef.cs: Change <init> to .ctor
* PeapiTypeRef.cs: This class is no longer an ITypeRef because it
cannot be converted to a IClassRef. Add IsArray and IsRef, use new
Class::GetArray* methods to convert to arrays.
* PrimitiveTypeRef.cs: Add method to convert to an IClassRef
* TypeRef.cs: Add IsArray and IsRef, add method to convert to
IClassRef. GetMethodRef now takes calling conventions
svn path=/trunk/mcs/; revision=14682
* test-154.cs: Added the contents of test-189.cs as a new testcase
to this test.
* test-189.cs: Removed, let's keep the flow analysis tests in one
single test file.
svn path=/trunk/mcs/; revision=14678
* test-154.cs: Added the contents of test-189.cs as a new testcase
to this test.
* test-189.cs: Removed, let's keep the flow analysis tests in one
single test file.
svn path=/trunk/mcs/; revision=14674
* expression.cs (This.ResolveBase): New public function.
(This.DoResolve): Check for CS0188.
* codegen.cs (EmitContext.This): Just call This.ResolveBase(), not
This.Resolve().
* ecore.cs (MethodGroupExpr.DoResolve): Set the
`instance_expression' to null if we don't have any non-static
methods.
svn path=/trunk/mcs/; revision=14671
* RdpPattern.cs : Some method name capitalization.
Fixed RdpInterleave.StartTagOpenDeriv() which is logically incorrect.
svn path=/trunk/mcs/; revision=14666
Reworked the way how local variables and parameters are handled by
the flow analysis code.
* statement.cs (TypeInfo, VariableMap): New public classes.
(VariableInfo): New public class. This is now responsible for
checking whether a variable has been assigned. It is used for
parameters and local variables.
(Block.EmitMeta): Take the InternalParameters as argument; compute
the layout of the flow vectors here.
(Block.LocalMap, Block.ParameterMap): New public properties.
(FlowBranching): The .ctor doesn't get the InternalParameters
anymore since Block.EmitMeta() now computes the layout of the flow
vector.
(MyStructInfo): This class is now known as `StructInfo' and nested
in `TypeInfo'; we don't access this directly anymore.
* ecore.cs (IVariable): Added `VariableInfo VariableInfo'
property and removed IsAssigned(), IsFieldAssigned(),
SetAssigned() and SetFieldAssigned(); we now call them on the
VariableInfo so we don't need to duplicate this code everywhere.
* expression.cs (ParameterReference): Added `Block block' argument
to the .ctor.
(LocalVariableReference, ParameterReference, This): The new
VariableInfo class is now responsible for all the definite
assignment stuff.
* codegen.cs (EmitContext.IsVariableAssigned, SetVariableAssigned,
IsParameterAssigned, SetParameterAssigned): Removed.
svn path=/trunk/mcs/; revision=14661
* XmlSerializerTests.cs : fixed some AssertEquals() argument orders.
and replaced some Assert() with AssertEquals().
Applied USE_VERSION_1_1 to TestConstructor().
svn path=/trunk/mcs/; revision=14660
* AssemblyBuilder.cs (corlib_void_type): New internal field.
(SetCorlibTypeBuilders): Added overloaded version which takes 4
arguments to set the `corlib_void_type'.
* TypeBuilder.cs: Use `pmodule.assemblyb.corlib_void_type' instead
of `typeof (void)' to make this work when compiling corlib.
svn path=/trunk/mcs/; revision=14659
* typemanager.cs (InitCoreTypes): Try calling
SetCorlibTypeBuilders() with 4 args; if that fails, fall back to
the 3-args-version. Corlib now also needs our `void_type'.
(GetMethod): Added overloaded version which takes an optional
`bool report_errors' to allow lookups of optional methods.
svn path=/trunk/mcs/; revision=14658
* XmlTextWriterTests.cs : added FlushDoesnTCloseTag() and
WriteWhitespaceCloseTag() (patch by Jonathan Hogg).
added more tests to AttributeWriteAttributeString().
* XmlAttributeTests.cs : SetInnerTextAndXml() rewrite.
svn path=/trunk/mcs/; revision=14657
* XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
any open attributes or elements. WriteWhitespace() checks state and
closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
when it is called inside attribute value.
* XmlException.cs : added .NET 1.1 .ctor.
* added XmlSecureResolver.cs (only stubbing).
* XmlAttribute.cs : set_InnerXml() should remove children.
* XmlAttribute.cs,
XmlElement.cs,
XmlDocumentFragment.cs,
XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
* XmlNode.cs : RemoveAll() should also remove all attributes.
* XmlTextRader.cs : .ctor() for attribute value reader should add
quotations at initialization, since it requires quote chars.
* XmlWriter.cs : WriteAttributeString() more correct xmlns check.
svn path=/trunk/mcs/; revision=14655
* Array.cs Fixed SyncRoot to behave like MS (return this). Removed
MonoTODO from SyncRoot (because fixed) and IsSynchronized (it was
behaving correctly).
svn path=/trunk/mcs/; revision=14652
* X509CertificateTest.cs: Added DSA certificate without any key
parameters (shared group is available in the issuer certificate).
svn path=/trunk/mcs/; revision=14642
* debug-mini.c (mono_init_debugger): New function to initialize
the debugger. This is not in the debugger since it needs to
access some of mini's internals.
svn path=/trunk/mono/; revision=14637
* makefile (install): Call the install in makefile.gnu
* makefile.gnu (install): Actually install jay and its skeleton
files. (and docs, and manpage...)
svn path=/trunk/mcs/; revision=14635
* UnixEndPoint.cs: New property to get and set the filename, like
the IPEndPoint has for the IP address. Also implement ToString().
svn path=/trunk/mcs/; revision=14626
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added
svn path=/trunk/mcs/; revision=14614
* changed XPathNodeType modifier to internal *protected* override.
* XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
* XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
* XmlAttributeCollection.cs : removed some incorrect TODO attributes.
* XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
when the argument is "xmlns".
* XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
* XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
* XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
* XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
not to set error state for non-started XmlNodeReader.
* XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
BaseURI support. Fixed Initialize() to handle Attribute correctly.
SetProperty for attribute auto-completes xmlns NSURI.
Attribute and whitespace handling became more correct.
Don't parse external DTD if XmlResolver is null.
* XmlTextWriter.cs : implemented WriteEntityRef().
WriteStartAttribute() checks if ns does not equal to that of xmlns.
* XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
svn path=/trunk/mcs/; revision=14613
* XmlSerializerTests.cs : fixed some argument orders and fixed
timezone dependent part of TestSerializeDateTime().
svn path=/trunk/mcs/; revision=14612
* XmlAttributeTests.cs : added NamespaceAttributes() and WriteTo().
* XmlDocumentTests.cs : fixed invalid xml of DocumentWithDoctypeDecl()
and not well-formed xml of OuterXmlWithDefaultXmlns().
* XmlElementTests.cs : added IsEmpty(). fixed not well-formed xml of
WriteToWithDefaultNamespace().
* XmlNodeReaderTests.cs : fixed incorrect result expectation of
ReadInnerXmlWrongInit().
* XmlNodeTets.cs : applied USE_VERSION_1_1 for InsertBefore()/-After().
* XmlReaderCommonTests.cs,
XmlTextReaderTests.cs : moved EntityReference() and EntityReference-
InsideText() to XmlTextReaderTests.cs, since XmlNodeReader is expected
to resolve these entity references.
* XmlTextWriterTests.cs : removed English-dependent error message check.
fixed incorrect state-check ignorant blocks of WriteAttributes ().
* XmlWriterTests.cs : modified WriteNodeFullDocument() and WriteNode-
XmlDecl() as MS.NET results in.
svn path=/trunk/mcs/; revision=14610
* MethodBuilder.cs: off by one in CreateMethodBody().
* TypeBuilder.cs: if the return type for a method is null, use void.
svn path=/trunk/mcs/; revision=14609
* mini-ops.h, mini.c, inssel.brg: optimize access to 2D arrays.
* jit-icalls.c, exceptions.cs: fixed index out of range checks, added
test case.
svn path=/trunk/mono/; revision=14598
Wed May 14 12:40:31 CEST 2003 Paolo Molaro <[email protected]>
* inssel-x86.brg: fixed thinko in int to double conversions.
svn path=/trunk/mono/; revision=14595
* DirectoryInfo.cs: fixed bug #42991.
* Path.cs:
(CanonicalizePath): store the value of the trimmed input string. Make it
work with paths such as "/home/xxx/.".
svn path=/trunk/mcs/; revision=14585
* System.Web.UI/BaseParser.cs: fixed MapPath for non-rooted files.
* System.Web.UI/PageParser.cs: don't pass a non-virtual file around.
* System.Web.UI/TemplateControlParser.cs: InputFile uses MapPath now.
Take care of the exception teh may be throw by MapPath on an invalid
path.
* System.Web.UI/TemplateParser.cs: removed unused method.
* System.Web.UI/UserControlParser.cs: modified inputfile. The result is
the same, but this one is better.
* System.Web.Util/UrlUtils.cs: fixed Combine and reworked Reduce.
svn path=/trunk/mcs/; revision=14566
deserialized object and the headers.
* MessageFormatter.cs: The result of the call to the HeaderHandler delegate is
now interpreted as the uri of the target object. This seems to be MS.NET
behavior.
* BinaryFormatter.cs: Deserialize now calls the HeaderHandler delegate,
if provided.
svn path=/trunk/mcs/; revision=14559
* PKCS1MaskGenerationMethodTest.cs: Uncommented PKCS#1 v.2.1 vector
unit test (will work on Mono but fails with MS implementation).
* RSAOAEPKeyExchangeDeformatterTest.cs: Updated tests vectors for
both Mono and MS (under Windows XP) generated OAEP results.
* RSAOAEPKeyExchangeFormatterTest.cs: Update exception handling.
svn path=/trunk/mcs/; revision=14524
* PKCS1MaskGenerationMethod.cs: Added comment to justify why
the class is no more compatible with MS implementation (the bug
was preventing OAEP to work properly).
svn path=/trunk/mcs/; revision=14523
* gc.c: Don't run finalizers when the finalizer thread is
finishing up, because the default domain has already been
destroyed.
svn path=/trunk/mono/; revision=14518
2003-05-12 Miguel de Icaza <[email protected]>
* support.cs (InternalParameters.ParameterType): Return the
ExternalType of the parameter.
* parameter.cs (Parameter.ExternalType): drop the two arguments,
they were unused.
svn path=/trunk/mcs/; revision=14509
* class.cs (MethodData.Define): Do not set the `newslot' on
interface members, if they are also flagged as "override".
* expression.cs (UnaryMutator.EmitCode): Simple workaround to emit
better code for ++i and i++. This only works for static fields
and local variables.
svn path=/trunk/mcs/; revision=14506
* string-icalls.c (ves_icall_System_String_ctor_chara_int_int): if
value is null, we should throw an exception. This is slightly
different than the other conventions used for the constructor.
svn path=/trunk/mono/; revision=14505
positions. Add method to get named local variables slot
number. Make sure param_lists aren't null when defining them. Add
specialname and rtspecialname attributes if the method being
defined is named '.ctor' or '.cctor'. Add new method for creating
signatures using a list of typerefs.
* GlobalMethodRef.cs: Use new CreateSignature method that takes an
array of typerefs.
* MethodRef.cs: Use new CreateSignature method
* InstrTable.cs: Use INSTR_LOCAL and INSTR_PARAM tokens for
instructions that take local and param operands.
svn path=/trunk/mcs/; revision=14503
positions. Add method to get named local variables slot
number. Make sure param_lists aren't null when defining them. Add
specialname and rtspecialname attributes if the method being
defined is named '.ctor' or '.cctor'. Add new method for creating
signatures using a list of typerefs.
* GlobalMethodRef.cs: Use new CreateSignature method that takes an
array of typerefs.
* MethodRef.cs: Use new CreateSignature method
* InstrTable.cs: Use INSTR_LOCAL and INSTR_PARAM tokens for
instructions that take local and param operands.
svn path=/trunk/mcs/; revision=14501
* typemanager.cs (LookupDeclSpace): Add new method, sometimes we
want to pull the DeclSpace out of the builder_to_declspace instead
of the TypeBuilder (like in TypeContainer.FindMembers).
* class.cs (TypeContainer.FindMembers): Use LookupDeclSpace
instead of LookupTypeContainer. Fixes the crash on .NET for
looking up interface members.
svn path=/trunk/mcs/; revision=14499
* const.cs: Create our own emit context during the Definition
stage, so that constants are evaluated in the proper context, when
a recursive definition happens.
svn path=/trunk/mcs/; revision=14498
* statement.cs (Block.CreateSwitchBlock): New method. Creates a
new block for a switch section.
(Block.AddLabel, Block.LookupLabel): If we're a switch section, do
the adding/lookup in the switch block. Fixes#39828.
svn path=/trunk/mcs/; revision=14495
+2003-04-30 Miguel de Icaza <[email protected]>
+
+ * SoapHttpClientProtocol.cs: Flag the methods in the chain that
+ gets the caller method as non-inlineable.
svn path=/trunk/mcs/; revision=14490
* inssel-long32.brg, basic-long.cs, exceptions.cs: handle
a couple of missing operations for long casts, with test cases.
svn path=/trunk/mono/; revision=14484
* Binder.cs (ChangeType): Very simplistic change. Am not sure if
it is correct, but it makes RemotingCorba move along a bit more
(Remoting.Corba invokes Binder.ConvertArgs, which calls
Binder.ChangeType with an Attribute [] to Object []).
svn path=/trunk/mcs/; revision=14482
* ExternFieldRef.cs: New file - Reference to a field in another
assembly
* FieldRef.cs: New file - Reference to a field in this assembly
* GlobalFieldRef.cs: New file - Reference to a global field
* FieldInstr.cs: New file - Instruction that takes a field
instruction
* CodeGen.cs: Add method to resolve global methods
* ExternTypeRef.cs: Add method to get method references
* FieldDef.cs: Allow methods to be resolved before being defined
* IClassRef.cs: Add method to get field references.
* TypeDef.cs: Add method to resolve member fields.
* TypeRef.cs: Add method to get field references
svn path=/trunk/mcs/; revision=14476
* Encoding.cs (GetEncoding): Add all the aliases documented in the
framework. We were missing a few.
Reorganize the table. Also, convert the input name into the
lower-case - to _ before we compare against our table.
svn path=/trunk/mcs/; revision=14472
* CodeGen.cs: Store global methods and fields in hashtables to
make lookup easier. Add method to resolve global methods.
svn path=/trunk/mcs/; revision=14465
implement
* ExternMethodRef.cs: New file - Reference to a method in another
assembly
* Local.cs: New file - A Local variable
* MethodInstr.cs: New file - an instruction that takes a method
reference operand
* IClassRef.cs: Add method to get a method reference from a class
reference
* MethodDef.cs: Add ability to resolve methods before defining
them, add max stack, locals, and entry point. Make CreateSignature
method public and static so other classes can use it.
* TypeDef.cs: Store methods and fields in hashtables so they can
be easily retrieved, add method to resolve member methods.
* TypeRef.cs: Add method for resolving member methods.
svn path=/trunk/mcs/; revision=14458
* SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
documentation (no public declaration).
* Transform.cs: Added property XmlResolver Resolver as per framework 1.1
documentation (no public declaration).
svn path=/trunk/mcs/; revision=14454
* TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
reporting.
svn path=/trunk/mcs/; revision=14448
* io.c (CopyFile): Copy file mode as well as file data. Based on
suggestion by Giuseppe Greco <[email protected]>, bug
42706.
svn path=/trunk/mono/; revision=14447
* DSACryptoServiceProvider.cs: Class is now sealed in v.1.1.
* KeySizes.cs: Class is now sealed in v.1.1.
* MD5CryptoServiceProvider.cs: Class is now sealed in v.1.1.
* RNGCryptoServiceProvider.cs: Class is now sealed in v.1.1.
svn path=/trunk/mcs/; revision=14438
* AllowPartiallyTrustedCallersAttribute.cs: New. Class was missing
from original 1.0 documentation (but inclufed in framework 1.0)
svn path=/trunk/mcs/; revision=14435
* list.unix: added missing file.
* System.Xml.Serialization/XmlReflectionImporter.cs: created an
instance field because GetTypeData method of TypeTranslator is not
static.
This just fixes the build, but the changes may NOT be correct.
svn path=/trunk/mcs/; revision=14432
* Added TypeTableEntry.cs.
* TypeTranslator.cs : changed for non-static use.
* XmlAttributes.cs : XmlType attribute support for GetAttributeName()
and GetElementName(). Bugfix so that if any XmlElementAttribute
exists after non-typed XmlElementAttribute then it might be ignored.
Added GetElementIsNullable().
* XmlSerializer.cs :
Introduced TypeTablePool and TypeTableEntry and erased ambiguous
Object memberObj[4].
Deserialize() now uses XmlReader.Depth to check its depth.
Serialize() for non-XmlReader arguments now always write xmldecl.
SerializeBuiltin() now explicitly requires Type to support xsi:nil,
and handles XmlQualifiedName.
Separated SerializeType () from Serialize().
Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
IsPropertyTypeSerializable() from SerializeMembers().
SerializeMembers() is now capable of null value and actual type,
which should be included by XmlIncludeAttribute and so on.
Renamed SerializeArray() to SerializeArrayContent(), and added
SerializeCollectionContent().
SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
FillTypeTable() is now aware of XmlInclude attributes.
FillEnum() should not have different type table content from others.
svn path=/trunk/mcs/; revision=14429
* expression.cs (UnaryMutator.LoadOneAndEmitOp): Missing
functionality: I needed to convert the data after I had performed
the add/sub operation into the operands type size.
svn path=/trunk/mcs/; revision=14427
* ecore.cs (ImplicitReferenceConversion): When boxing an interface
pass the type for the box operation, otherwise the resulting
object would have been of type object.
(BoxedCast): Add constructor to specify the type to box as.
svn path=/trunk/mcs/; revision=14426
* DataGridColumnCollection.cs: fixed LoadViewState for the columns.
Don't save ViewState is the number of columns is 0.
svn path=/trunk/mcs/; revision=14421
* MulticastDelegate.cs (GetInvocationList): Avoid ArrayList
construction if the delegate list only has one element.
svn path=/trunk/mcs/; revision=14420
* class.c (mono_class_layout_fields): Add experimental GC aware
auto layout facility. Requires class library changes to work correctly.
(mono_class_setup_vtable): Avoid overriding explicit interface
method implementations. Fixes iface3.exe test.
* object.c (mono_class_compute_gc_descriptor): Type I can't hold an
object reference.
(mono_array_new_specific): Add MONO_ARCH_SAVE_REGS.
(mono_string_new_wrapper): Add MONO_ARCH_SAVE_REGS.
* metadata.h: Add new type classification macro which determines
whenever the type holds an object reference.
svn path=/trunk/mono/; revision=14419
* Added many new properties to Combo.cs
* Fixed the TextBox.Text get property
* Fixed some properties in Form.cs
* Small code cleanups
svn path=/trunk/mcs/; revision=14409
* mono/tests/Makefile.am:
- Compile with mcs.
- Disable some warnings.
- Added executables to clean target.
- Make testjit the default target.
- Print list of failed tests at the end of a test run.
- Abort tests when Ctrl-C is pressed.
* mono/tests/test-driver: Return with a special exit code when
SIGINT is detected.
* mono/tests/checked.cs: Make it compile.
svn path=/trunk/mono/; revision=14406
* Path.cs
(GetPathRoot) Added support for UNC paths.
(CanonicalizePath) Added optimizations per Miguel's requests.
* PathTest.cs
Even more GetFullPath () tests. Includes UNC tests.
svn path=/trunk/mcs/; revision=14383
Patches from Igor Nosyryev <[email protected]>
* TdsComm.cs: (GetString): GetString adds extra byte to a string
at end. It suppose to be '\0', but '\0' is valid value in .NET
string, so this byte must not be used.
* Tds.cs (GetDecimalValue):Method reads extra byte if a DECIMAL
field contains NULL. As a result server's response is parsed
incorrectly and this method fires an exception.
svn path=/trunk/mcs/; revision=14378
* ScrollableControl.cs : registration of "mono_scrollable_control" was moved to Control class
* win32functions.cs : new constant DEFAULT_WINDOW_CLASS
* PictureBox.cs : implemented
svn path=/trunk/mcs/; revision=14371
* BufferedStream.cs:
- Removed unusefull code.
- Added ObjectDisposedException to Position
- Dont flush if stream is allready closed.
- Flush throws also ObjectDisposedException.
* Directory.cs:
- GetFileSystemEtries: ArgumentNullException if pattern is null
* DirectoryInfo.cs: Fixed little MoveTo () bug.
* FileInfo.cs:
- Exists: If file does not exists when instance is created the
value of the Exists property does not change even if file is created
afterwards.
- Delete: If path is a directory UnauthorizedException is thrown.
- CopyTo: Now we can overwrite file if wanted.
* Path.cs:
- GetFullPath: Now throws exception when path is " ".
svn path=/trunk/mcs/; revision=14370
* TextBox.cs : use styles provided by TextBoxBase
* TextBoxBase.cs : more methods and properties were implemented
* win32enums.cs : messages and notifications for EDIT control
svn path=/trunk/mcs/; revision=14367
* CompilationException.cs: don't add duplicated lines in the case that
mcs reports several errors for the same one.
svn path=/trunk/mcs/; revision=14344
* attribute.cs (Attribute.Resolve): Params attributes are encoded
by creating an array at the point where the params starts and
putting all those arguments there, then adjusting the size of the
array.
svn path=/trunk/mcs/; revision=14343
* System.Web/HttpException.cs: encode as HTML the inner exception that
is appended as a comment at the end of error pages.
* System.Web.Compilation/AspGenerator.cs: fully support including files,
ie., treat them just as C treats #includes.
* System.Web.UI/RootBuilder.cs: throw exception when the tagprefix
is not valid or not found.
svn path=/trunk/mcs/; revision=14316
because we need to implement the method on Windows.
* Path.cs
(CanonicalizePath) Added new function to get
rid of . and .. in path names. Need to figure out what
other functions should call this.
(GetFullPath) Added call to the above function. Fixes
bug 42303
svn path=/trunk/mcs/; revision=14314
* expression.cs (New.AddressOf): Implement interface
IMemoryLocation. This is used when the `new' operator is used in
the context of an invocation to a method on a value type.
See http://bugzilla.ximian.com/show_bug.cgi?id=#42390 for an
example.
svn path=/trunk/mcs/; revision=14311
* namespace.cs: Also check the using aliases here.
* driver.cs: Move the test for using validity after the types have
been entered, so we do a single pass that also includes the using
aliases.
svn path=/trunk/mcs/; revision=14310
* statement.cs (Try.Resolve): Avoid crashing if there is a failure
in the regular case. CreateSiblingForFinally is doing extra
error checking.
svn path=/trunk/mcs/; revision=14309
* attribute.cs (GetAttributeArgumentExpression): Store the result
on an out value, and use the return value to indicate failure
instead of using null (which is a valid return for Constant.GetValue).
* statement.cs: Perform the analysis flow for the increment
portion after the statement, because this will be the real flow of
execution. Fixes#42385
svn path=/trunk/mcs/; revision=14307
* io-layer/handles.c: added some debugging code. Call GC_gcollect
before creating a new handle. It makes Lupus' test run smoother and
faster (from 62 to 83 request per second). Notice that calling
GC_finalizer_notifier if needed (GC_should_invoke_finalizer ()) does
not improve nor degrade the performance, so i don't do it.
* metadata/socket-io.c:
(Select_internal): allow NULLs, don't create arrays if not needed.
Coupled with Socket.cs changes.
* metadata/threadpool.c:
(mono_thread_pool_add): use GC_MALLOC to allocate the ASyncCall and
register a finalizer for it that will close the semaphore handle. This
fixes the leak and make Lupus' test run with > 4080 loops.
svn path=/trunk/mono/; revision=14297
* codegen.cs (EmitContext.EmitArgument,
EmitContext.EmitStoreArgument): New helper functions when the
RemapToProxy flag is set.
* expression.cs (ParameterReference.EmitLdarg): Expose this useful
function.
Add support for remapping parameters.
* iterators.cs: Propagate parameter values; Store parameter
values in the proxy classes.
* ecore.cs (FieldExpr): Fix an obvious bug. static fields do not
need a proxy reference; I do not know what I was thinking
svn path=/trunk/mcs/; revision=14290
* cs-parser.jay (field_declaration): catch void field declaration
to flag a better error.
* class.cs (MemberBase.CheckBase): Report an error instead of a
warning if a new protected member is declared in a struct.
(Field.Define): catch the error of readonly/volatile.
* ecore.cs (FieldExpr.EmitAssign): reuse the field lookup.
(FieldExpr.AddressOf): ditto. Catch error where the address of a
volatile variable is taken
svn path=/trunk/mcs/; revision=14286
* MiscInstr.cs: New file - Just an enum that gives me constant
values for instructions PEAPI does not define in an enum
* InstrTable.cs: Use new MiscInstr constants instead of string values.
svn path=/trunk/mcs/; revision=14272
* ChangeLog : Added missing ChangeLog of 2003-04-25.
* XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
separators. Added experimental method ToEnum().
* XmlSerializationReader.cs : unconfirmed implementation of
ReadSerializable() and ToEnum().
* XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
is null then no output will be written.
Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
to use custom formatted name.
svn path=/trunk/mcs/; revision=14268
* System.Reflection/Assembly.cs: implemented GetSatelliteAssembly.
* System.Resources/ResourceManager.cs: enabled the code that calls
GetSatelliteAssembly and ignore the exception thrown if the assembly
cannot be loaded.
svn path=/trunk/mcs/; revision=14252
* debug-mono-symfile.h
(MonoSymbolFile): Moved declaration into mono-debug.h.
(MonoDebugMethodJitInfo): Likewise.
(mono_debug_open_mono_symbol_file): Take the MonoDebugHandle as
argument.
(_mono_debug_address_from_il_offset): Take a
MonoDebugMethodJitInfo instead of a MonoDebugMethodInfo.
* mono-debug.h
(MonoDebugDomainData): New struct.
(mono_debug_get_domain_data): New function.
(mono_debug_add_method): Take an additional `MonoDomain *'
argument.
(mono_debug_source_location_from_address): Likewise.
(mono_debug_il_offset_from_address): Likewise.
(mono_debug_address_from_il_offset): Likewise.
svn path=/trunk/mono/; revision=14245
* System.Web.Compilation/AspGenerator.cs:
* System.Web.Compilation/AspParser.cs:
* System.Web.Compilation/TagType.cs:
* System.Web.UI/TemplateParser.cs: Added support for server side
includes.
svn path=/trunk/mcs/; revision=14242
* ResourceManager.cs: fixed the name for the file when the culture is
not de invariant culture. Commented out the GetSatelliteAssembly code
to avoid NotImplementedException being thrown.
svn path=/trunk/mcs/; revision=14234
* System.Web.Compilation/CSCompiler.cs: actually add the list of
referenced assemblies to the compiler options. Throw a
CompilationException if there's an error.
* System.Web.Compilation/CachingCompiler.cs: added a method to compile
directly from a source file.
* System.Web.UI/TemplateControl.cs: fixed the flags used to find the
methods that are automatically hooked up on events.
* System.Web.UI/TemplateParser.cs: don't compile a source file directly.
Use the cache instead.
svn path=/trunk/mcs/; revision=14231
Added methods to support IList wrappers
* ArrayListTest.cs
Tests for the above* ArrayList.cs
Added methods to support IList wrappers
svn path=/trunk/mcs/; revision=14229
* Makefile.am: avoid linking libmono with GMODULE_LIBS, because
that contains -export-dynamic and it makes using the ld script
useless.
* mini.h, main.c, driver.c: s/mini_main/mono_main/g.
svn path=/trunk/mono/; revision=14216
* runtime/Makefile.am ($(monobins_DATA)): Use explicit file names
for the target exe binaries.
Copy cilc.exe and secutil.exe from the right paths to the right
location.
Add missing assemblies.
svn path=/trunk/mono/; revision=14214
* sockets.c: Rearrange closesocket() and socket_close_private(),
and remember to unref the handle, so we don't leak socket handles.
Fix from Pelle Johnsen <[email protected]>
svn path=/trunk/mono/; revision=14211
been resolved, this avoids the infinite loop that would occur if a
type was a member of its base type.
* TypeDef.cs: Method to define contents after being defined.
svn path=/trunk/mcs/; revision=14204
* Environment.cs: Changed the method GetFolderPath because it must
return at least a directory name (not null).
* Convert.cs: In ToType, if the destination type is unknown, try to
cast the value to object (then, the calling method will downcast it
to the type it wants).
svn path=/trunk/mcs/; revision=14199
* System.Web/HtmlizedException.cs: added more virtual methods.
* System.Web/HttpException.cs: some work on the output when there's
a source file present.
* System.Web.Compilation/AspGenerator.cs: copy the location before
setting the value for the control builders.
* System.Web.Compilation/BaseCompiler.cs: changed parameters for
CompilationException.
* System.Web.Compilation/CompilationException.cs: it takes now line
numbers and error descriptions from the CompilerErrorCollection.
* System.Web.Compilation/Location.cs: used when a copy of an ILocation
is needed.
* System.Web.Compilation/ParseException.cs: implemented new methods
to provide line numbers and souce file.
* System.Web.Compilation/TemplateControlCompiler.cs: throw a
ParseException where appropiate.
* System.Web.UI/BaseParser.cs: Location property is now here. Added a
couple of convenience methods to throw a ParseException.
* System.Web.UI/TemplateParser.cs:
* System.Web.UI/TemplateControlParser.cs:
* System.Web.UI/PageParser.cs: throw ParseException where appropiate.
svn path=/trunk/mcs/; revision=14191
* mini.c: make sure leave calls all the needed finally blocks,
even when the target jumps out of multiple exception clauses.
svn path=/trunk/mono/; revision=14183
* ldscript, Makefile.am: add linker script to reduce the number of
exported symbols (should also fix the issues with libwine defining
some of the same symbols in io-layer).
svn path=/trunk/mono/; revision=14182
* CodeGen.cs: Fix typo
* IInstr.cs: New file - Interface for instructions that are added to methods
* IntInstr.cs: New file - Instruction that takes a single int
param
* LdstrInstr.cs: New file - ldstr instruction (the only
instruction that takes a string parameter)
svn path=/trunk/mcs/; revision=14173
* System.Web.Compilation/AspGenerator.cs: also support data bind syntax
inside tags not processed as controls. Added debugging method.
* System.Web.Compilation/TemplateControlCompiler.cs: reset the number
of data binding handlers in the proper place. Small fix when getting the
container type.
* System.Web.UI/ApplicationFileParser.cs: use the generator to actually
parse the file.
* System.Web.UI/ControlBuilder.cs: small fix in NamingContainerType
because TemplateBuilders have a null ControlType. When a control is
appended to a parent, assign the child's parent.
* System.Web.UI/UserControlParser.cs: fixed the value of InputFile.
IBuySpy works again!
svn path=/trunk/mcs/; revision=14170
* System.Web.Compilation/TemplateControlCompiler.cs: correctly set
the TemplateSourceDirectory value.
* System.Web.UI/ApplicationFileParser.cs: store the Context and
override BaseVirtualDir so that it's the application path.
* System.Web.UI/BaseParser.cs: removed CurrentVirtualPath property.
* System.Web.UI/TemplateControlParser.cs: use BaseVirtualDir.
* System.Web.UI/UserControlParser.cs: removed CurrentVirtualPath.
svn path=/trunk/mcs/; revision=14168
* AspGenerator.cs: handle code render syntax in tag attributes.
* AspParser.cs: the constructor now takes a TextReader.
* TemplateControlCompiler.cs: removed comment.
svn path=/trunk/mcs/; revision=14166
- Compound operators added
- Member access now work correctly
- A lot of array fixes/improvements
- LateIndexGet/Set calls are generated correctly
- Overloading in constructors fixed
- Array access when the array is a parameter fixed
- Invocation resolution improved
- Added readonly modifier for properties
- Many more little and not-so-little things I can't remember :-(
svn path=/trunk/mcs/; revision=14162
* mini.c, basic-calls.cs: when inlining, save arguments to locals according
to the type in the method signature (fixes bug#42134).
svn path=/trunk/mono/; revision=14156
* HtmlImage.cs:
* HtmlInputControl.cs:
* HtmlSelect.cs: added control builder attribute.
* HtmlSelectBuilder.cs: builder for HtmlSelect.
* HtmlControlBuilder.cs: common builder for all HtmlControls.
svn path=/trunk/mcs/; revision=14143
* ApplicationFileParser.cs: it works now. Prior to these changes, we
were using the compiler directly.
* BaseParser.cs: added some useful properties and methods.
* CodeBuilder.cs: use ILocation.
* CodeRenderBuilder.cs: use ILocation.
* CollectionBuilder.cs: use the RootBuilder to map tag names into Types.
* ControlBuilder.cs: made it useful.
* DataBindingBuilder.cs: the control type for data bound text is
DataBoundLiteralControl now.
* ObjectTagBuilder.cs: store some object tag attributes.
* PageParser.cs: handle page-only directives.
* RootBuilder.cs: bah.
* SimpleWebHandlerParser.cs: made it dummy.
* TemplateControl.cs: Modified file.
* TemplateControlParser.cs: handle directives that are common to pages
and user controls.
* TemplateParser.cs: utility methods and handling of directives that
are common to app, page and user controls.
* UserControl.cs: added ControlBuilderAttribute.
* UserControlControlBuilder.cs: builder for user controls.
* UserControlParser.cs: use the new interfaces.
svn path=/trunk/mcs/; revision=14142
* AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
instead of their names.
* AspElements.cs: removed. No longer needed.
* AspGenerator.cs: this file is now in charge of interfacing between
the parser and the compiler. It manages the creation of the
ControlBuilder tree and the compilation of the CodeDOM tree.
* AspParser.cs: tag handling is simpler now. Instead of a whole bunch
of different Types, tags are just and id and a set of attributes.
Implement ILocation interface.
* AspTokenizer.cs: added a few methods to help the parser implementing
ILocation.
* BaseCompiler.cs: handles the portions of the CodeDOM tree that are
common to appliaction, page and user control, including the actual
compilation and error handling.
* CSCompiler.cs: compiles C# files using CodeDOM interfaces.
* CachingCompiler.cs: simplified to use the new interfaces.
* CompilationException.cs: it's now using CompilationResult to report
errors.
* CompilationResult.cs: Removed file.
* Directive.cs: to check for the validity of a directive.
* GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
in BaseCompiler.
* ILocation.cs: interface used to now the exact place where a parse
error happens.
* PageCompiler.cs: generates a couple of methods that are only used in
pages.
* ParseException.cs: use the ILocation interface.
* TagAttributes.cs: handles the attributes of the tags parsed.
* TagType.cs: an enum for the different kinds of tags.
* TemplateControlCompiler.cs: this is the one that does most of the
conversion from teh ControlBuilder tree into a CodeDOM tree.
* UserControlCompiler.cs: simplified as most of the work is done in
its base classes.
* WebServiceCompiler.cs: dummy.
svn path=/trunk/mcs/; revision=14140
* HtmlizedException.cs: simplified to cope with the new interface.
* HttpApplicationFactory.cs: use the application file parser to get the
application Type.
* HttpException.cs: small changes. Needs some more work on
ParseExceptions.
svn path=/trunk/mcs/; revision=14139
* SoapHttpClientProtocol.cs (CreateMessage): Extract information
from the method to be called.
* SoapDocumentMethodAttribute.cs: Do not initialize all the fields
on the attribute at bootstrap, for default values, just compute
them when queried.
* SoapMessage.cs (SetStage): New internal method, used to register
the stage as we move along the soap pipeline.
svn path=/trunk/mcs/; revision=14130
* LogicalMethodInfo.cs: Most of this is implemented. Its only
missing a few bits in the Create() method.
* SoapHttpClientProtocol.cs: Begin implementation of Invoke, which
lead to other dependencies to be implemented.
* LogicalMethodInfo.cs: Mostly complete. It is only missing the
async features (BeginInvoke/EndInvoke) on a LogicalMethodInfo.
* WebClientProtocol.cs (GetWebRequest): Track the web request, so
we can abort it later.
(Abort): Call abort on the underlying transport.
svn path=/trunk/mcs/; revision=14129
* attribute.cs (Attribute.GetAttributeArgumentExpression): Moved
the functionality for testing whether an expression is valid for
an attribute here. Also handle the case of arrays of elements
being stored.
* expression.cs (ArrayCreation.EncodeAsAttribute): Add support for
encoding a linear array into an array of objects that are suitable
to be passed to an CustomAttributeBuilder.
svn path=/trunk/mcs/; revision=14117
* CSharpCodeCompiler.cs:
(CompileAssemblyFromDomBatch): add the assemblies referenced by the
CodeCompileUnits to the options.
svn path=/trunk/mcs/; revision=14088
2003-04-28 Miguel de Icaza <[email protected]>
* ecore.cs: (FieldExpr): Handle field remapping here.
* iteratators.cs: Pass the instance variable (if the method is an
instance method) to the constructors, so we can access the field
variables on the class.
TODO: Test this with structs. I think the THIS variable on
structs might have to be a pointer, and not a refenrece
svn path=/trunk/mcs/; revision=14081
* XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
* XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
MoveTo*Attribute(),
Fixed this[] to work correctly against XmlDeclarations.
Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
(which may prevent validations etc.)
* XmlReader.cs,
XmlNodeReader.cs,
XmlTextReader.cs : Fixed ReadString() to be compliant with each
other.
* XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
svn path=/trunk/mcs/; revision=14069
* mini.c: moved most of the code required to do inlining to its own
function so it can be reused. Inline also ctors if appropriate.
svn path=/trunk/mono/; revision=14068
2003-04-27 Miguel de Icaza <[email protected]>
* codegen.cs (EmitContext.Mapvariable): Adds a mechanism to map
local variables to fields in a proxy class.
* iterators.cs (PopulateProxy): Rename our internal fields to
<XXX>.
Create a <THIS> field if we are an instance method, so we can
reference our parent container variables.
(MapVariable): Called back from the EmitContext code to enter a
new variable to field mapping into the proxy class (we just create
a FieldBuilder).
* expression.cs
(LocalVariableReference.{Emit,EmitAssign,AddressOf}): Add support
for using the remapped locals to fields.
I placed the code here, because that gives the same semantics to
local variables, and only changes the Emit code.
* statement.cs (Fixed.Resolve): it is not allowed to have fixed
statements inside iterators.
(VariableInfo): Add a FieldBuilder for the cases when we are
remapping local variables to fields in a proxy class
* ecore.cs (SimpleNameResolve): Avoid testing two times for
current_block != null.
* statement.cs (Swithc.SimpleSwitchEmit): Removed code that did
not cope with strings, as it has been moved to the
TableSwitchEmit. Fixed bug in switch generation.
svn path=/trunk/mcs/; revision=14063
* Makefile.am: added missing man pages.
* mini.1: moved to mono.1
* mono.1: moved to oldmono.1
* oldmono.1: new file.
svn path=/trunk/mono/; revision=14059
* debug-mini.c (mono_debug_init_method): Added
`guint32 breakpoint_id' argument; if the method has a breakpoint,
send a notification to the debugger.
* mini.c (mono_method_to_ir): Don't insert a breakpoint if we're
running in the Mono Debugger, just pass the breakpoint number to
mono_debug_init_method().
* tramp-x86.c, tramp-ppc.c: Removed the breakpoint trampolines.
svn path=/trunk/mono/; revision=14054
* mono-debug-debugger.h (MonoDebuggerEvent): Renamed
MONO_DEBUGGER_EVENT_BREAKPOINT_TRAMPOLINE to
MONO_DEBUGGER_EVENT_BREAKPOINT.
(mono_breakpoint_trampoline_code): Removed.
(mono_debugger_event_handler): The last argument is now a
`guint32'.
(mono_debugger_insert_breakpoint_full): Removed the
`use_trampoline' argument.
(mono_debugger_method_has_breakpoint): Likewise.
(mono_debugger_trampoline_breakpoint_callback): Renamed to
mono_debugger_breakpoint_callback(); take the method and
breakpoint number as arguments.
svn path=/trunk/mono/; revision=14052
* expression.cs (MemberAccess.DoResolve): When we get a type back,
check the permissions for it. Note than in a type-resolution
context the check was already present in DeclSpace.ResolveType,
but was missing from the MemberAccess.
svn path=/trunk/mcs/; revision=14048
* expression.cs (ArrayCreation.CheckIndices): warn if the user has
more nested levels of expressions, but there are no more
dimensions specified. Avoids crash on bug 41906.
svn path=/trunk/mcs/; revision=14047
* Npgsql/NpgsqlDataReader.cs: Now GetDateTime works for "dd/MM/yyyy"
date formats. I think that it's needed support to auto-detect
DateTime format through PgSql server configuration.
svn path=/trunk/mcs/; revision=14032
* XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
content EntityReference correctly.
* XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
HasAttributes, indexers, MoveTo*Attribute() and Read() ).
Modified Skip() to call Read () explicitly.
* XmlTextReader.cs :
Fixed ReadInnerXml() which ignored EndElement token in certain cases.
Implemented MoveToAttribute (local, ns), and modified GetAttribute()
in relation to this change.
Attributes for XmlDeclaration are now correctly set.
* XmlTextWriter.cs : WriteRaw() is now different from WriteString().
Simplified WriteAttributes() for XmlDeclaration.
svn path=/trunk/mcs/; revision=14030
* ColorConverter.cs:
(ConvertFrom): return a system or named color if there's one that fits
teh values parsed with Color.FromArgb.
svn path=/trunk/mcs/; revision=14027
* mini-x86.c, Makefile.am: make distcheck works (partially from
a patch by Richard Lee <[email protected]>).
* regset.c, regset.h: removed, they are unused.
svn path=/trunk/mono/; revision=14024
* statement.cs (Block): replace Implicit bool, for a generic
flags.
New flag: `Unchecked'. This is used during the EmitMeta phase
(which is out-of-line with the regular Resolve/Emit process for a
statement, as this is done ahead of time, but still gets a chance
to call constant resolve).
(Block.Flags): new enum for adding a new flag.
(Block.EmitMeta): track the state of unchecked.
(Unchecked): Set the "UnChecked" flags on any blocks we enclose,
to enable constant resolution to work there as well.
svn path=/trunk/mcs/; revision=14020
* TypeTranslator.cs : patch by Erik LeBel. Array consideration.
* XmlReflectionImporter.cs : patch by Erik LeBel.
Now uses XmlRootAttribute to determine element name.
svn path=/trunk/mcs/; revision=13994
* XmlDocument.cs : fixed Load() to set baseURI correctly.
* XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
* XmlTextReader.cs :
fixed Depth. When it's on StartElement, Depth was already incremented.
fixed private SaveProperty(), which moved away its saved properties
when MoveToElement was called repeatedly.
* XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
* XmlWriter.cs :
WriteAttributes() refactory (for XMLDecl).
WriteNode() don't Read() when the reader is Initial state, let other
invokation to Read(). In case of Element, it should write entire
element. In case of Attribute, it shouldn't Read().
WriteStartDocument() should omit standalone decl. when there is no
explicit value.
svn path=/trunk/mcs/; revision=13993
remapping of parameters and local variables to proxy values. I have a
kludge, but will soon have the right thing.
Also a few bugs fixes that I did while implementing iterators.
To use iterators, you need to pass -v2 to the compiler
2003-04-22 Miguel de Icaza <[email protected]>
* typemanager.cs (ienumerable_type): Also look up
System.Collections.IEnumerable.
2003-04-21 Miguel de Icaza <[email protected]>
TODO: Test more than one conditional per method.
* class.cs (Indexer.Define): Report the location where the user is
referencing the unsupported feature.
(MethodData): Overload the use of `conditionals' to
minimize the creation of needless ArrayLists. This saves roughly
212kb on my machine.
(Method): Implement the new IIteratorContainer interface.
(Method.SetYields): Implement the method by setting the ModFlags
to contain METHOD_YIELDS.
* expression.cs (Unary.ResolveOperator): Use expr_type, not Expr,
which just got set to null.
* iterators.cs: New file.
(Yield, YieldBreak): New statements.
* statement.cs (Return.Resolve): Flag an error if we are used in
an iterator method.
* codegen.cs (InIterator): New flag set if the code is being
compiled in an iterator method.
* modifiers.cs: New flag METHOD_YIELDS. This modifier is an
internal modifier, and we just use it to avoid adding extra
fields, as this is seldom used.
* cs-parser.jay: Add yield_statement (yield and yield break).
* driver.cs: New flag -v2 to turn on version 2 features.
* cs-tokenizer.cs (Tokenizer): Add yield and __yield to the
hashtable when v2 is enabled.
svn path=/trunk/mcs/; revision=13991
* SqlEditorSharp.cs: Change: Glib -> GLib.
* sqlsharpgtk.cs: Correct method calls because they
changed in GTK#.
* makefile.gnu: Reference gdk-sharp in assembly list.
* FileSelectionDialog.cs: Update method calls (GTK#).
* DataGrid.cs: Fix a type of a variable.
svn path=/trunk/mcs/; revision=13990
* Microsoft.CSharp/CSharpCodeGenerator.cs:
(QuoteSnippetString): add a few common escape sequences.
* System.CodeDom.Compiler/CodeGenerator.cs:
(GenerateCodePrimitive): special case strings and chars (bool was
already a special case). Throw an exception if the type is not a
primitive type.
svn path=/trunk/mcs/; revision=13987
* WebClient.cs (DownloadData): Instead of using a MemoryStream,
keep track of all the small chunks in an ArrayList. The
MemoryStream had the property of reallocating itself, and the
problem was that MemoryStream.GetBuffer would return the buffer
(correctly), but not something of the right size. So clients of
DownloadData would get the extra unused bytes as part of the
result.
The solution would have been to make another copy at this point,
instead, we only keep the small allocations around in the
ArrayList, and we only do one large allocation at the end.
* HttpWebResponse.cs: If there is a Content-Length header, pass
this information to our HttpWebResponseStream, so it knows when to
stop, instead of waiting for the stream to be shut down by the
other end.
* HttpWebRequest.cs: Only set the `delay-header-writing' mode on
the underlying stream if the method will do a content transfer and
no Content-Length was provided. If not (HEAD and GET or
Content-Length provided), keep going.
svn path=/trunk/mcs/; revision=13986
* BufferedStream.cs: Test if it's possible to seek in a Stream
before access to Position. This prevents the exception thrown when
the stream is System.Net.Sockets.NetworkStream.
svn path=/trunk/mcs/; revision=13978
* mono-debug-debugger.c: Moved all code which interacts with the
Mono Debugger here.
* debug-mono-symfile.c: This code now just deals with the symbol
file itself, the debugger code is now in mono-debug-debugger.c.
svn path=/trunk/mono/; revision=13962
* Microsoft.CSharp/CSharpCodeGenerator.cs: implemented
GenerateSnippetMember and some little fixes.
* System.CodeDom/CodeMemberProperty.cs: fixed HasGet and HasSet to
actually generate code for the property.
* System.CodeDom.Compiler/CodeGenerator.cs: more fixes and sorted the
output.
* System.CodeDom.Compiler/IndentedTextWriter.cs: don't output tabs in
WriteLine ().
svn path=/trunk/mcs/; revision=13960
* X509Certificate.cs: Fixed issues for null certificate
(special case where object exists without any certificate)
which made PublisherTest fails.
svn path=/trunk/mcs/; revision=13957
* HttpWebRequest.cs: .NET Allows the HttpWebRequest to not have
the ContentLength specified on the request. If that happens, we
have to accumulate all the data written, and once we accumulate
the data, we send it off.
Notice that the documentation in .NET is actually incorrect, they
state that setting ContentLength is mandatory. It is not.
svn path=/trunk/mcs/; revision=13956
* X509Certificate.cs: Fixed GetHashCode for null certificate
(special case where object exists without any certificate)
which made PublisherTest fails.
svn path=/trunk/mcs/; revision=13954
* mono-debug.c (mono_debug_source_location_from_il_offset):
New method; like mono_debug_source_location_from_address(), but
takes an IL offset instead of a machine address.
svn path=/trunk/mono/; revision=13941
* debug-mono-symfile.h (MonoDebugLineNumberEntry): Removed the
`line' field; this is now computed by the debugger.
svn path=/trunk/mono/; revision=13935
* debug.[ch]: Removed. The code is now in
../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
* debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
last six months.
svn path=/trunk/mono/; revision=13929
* mono.c: The `--debug' command line argument doesn't take any
arguments anymore, removed the `--debug-args' argument.
svn path=/trunk/mono/; revision=13928
* debug-jit.c (mono_debug_add_method): Renamed this to
mono_debug_jit_add_method(); create the JIT-specific data
structure and pass it to mono_debug_add_method().
svn path=/trunk/mono/; revision=13924
* debug.[ch]: Removed. The code is now in
../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
* debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
last six months.
svn path=/trunk/mono/; revision=13923
* mono-debug.[ch]: New files. This is the new debugging interface.
* mono-debug-debugger.[ch]: New files. Moved all code which
interacts with the Mono Debugger here.
svn path=/trunk/mono/; revision=13922
* Button.cs : changes in DialogResult and OnClick
* Control.cs : new internal getOwnerWindow method, recreate child windows in RecreateHandle as well
* form.cs : implementation of modal forms
* win32enums.cs : constants for GetWindow function
* win32functions.cs : GetWindow , IsDialogMessage added
svn path=/trunk/mcs/; revision=13920
* XmlReader.cs: reverted last patch. It breaks System.Configuration
because 1. it considers XmlDeclaration as content and 2. always
returns XmlNodeType.None.
svn path=/trunk/mcs/; revision=13919
* corlib_test.build: Excluded Mono.Math unit tests (as the class
isn't available under MS implementation).
* corlib_linux_test.args: Added all Mono.Math unit test files.
* corlib_test.args: Added all Mono.Math unit test files.
svn path=/trunk/mcs/; revision=13916
* ArithmeticBigTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* BigIntegerSetTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* BitwiseTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* GcdBigTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* ModInverseBigTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* ModRingTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* PrimeGenerationTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* PrimeTestingTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* SearchGeneratorTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
svn path=/trunk/mcs/; revision=13914
* DSACryptoServiceProvider.cs: Changed key generation to use the
new BigInteger class (commited for Ben Maurer).
* RSACryptoServiceProvider.cs: Changed key generation to use the
new BigInteger class (commited for Ben Maurer).
svn path=/trunk/mcs/; revision=13913
* BigInteger.cs: New, much faster, version by Ben Maurer.
Warning: this version requires "unsafe" compilation switch
(which isn't a problem in corlib but may be elsewhere)
svn path=/trunk/mcs/; revision=13912
* NextPrimeFinder.cs: New. Prime Generator.
Support class for BigInteger (commited for Ben Maurer).
* PrimeGeneratorBase.cs: New. Abstract Prime Generator.
Support class for BigInteger (commited for Ben Maurer).
* SequentialSearchPrimeGeneratorBase.cs: New. Prime Generator.
Support class for BigInteger (commited for Ben Maurer).
svn path=/trunk/mcs/; revision=13911
* ConfidenceFactor.cs: New. Enum for prime quality.
Support for BigInteger (commited for Ben Maurer).
* PrimalityTests.cs: New. Tests for primality.
Support for BigInteger (commited for Ben Maurer).
svn path=/trunk/mcs/; revision=13910
* Directory.cs: clean up --> performance improvment. Some exceptions
are now checked in File.cs.
* File.cs: Implemented Get/SetXXXTimeUtc () methods. Some bugfixes.
svn path=/trunk/mcs/; revision=13903
* NumberFormatInfo.cs: Method CurrentInfo now returns the "real"
CurrentInfo (Thread.CurrentThread.CurrentCulture.NumberFormat).
2003-04-22 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Little fixes for get the same results
as MS.NET and show a message when something goes wrong with the
parser of Custom Formats.
svn path=/trunk/mcs/; revision=13902
* Form.cs : small changes regarding resizing of MDI client window
* StatusBar.cs : update parts on Layout event, new style to prevent resizing be the system
svn path=/trunk/mcs/; revision=13888
* icall.c
(ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
Make this work with relative pathnames; g_filename_to_uri() needs
an absolute filename.
svn path=/trunk/mono/; revision=13867
* debug.c (mono_debug_open): Splitted into mono_debug_init() and
mono_debug_init_2().
(mono_debug_open_image): Don't open referenced assemblies; this is
done automatically by the code in assembly.c.
* mono.c (main_thread_handler): Call mono_debug_init() before
opening the assembly because we need to install the assembly load
hook before doing so.
svn path=/trunk/mono/; revision=13864
* typemanager.cs (TypeManager.NamespaceClash): Use to check if
there is already a namespace defined with this name.
(TypeManager.InitCoreTypes): Remove the temporary workaround, as
people upgraded their corlibs.
(TypeManager.CoreLookupType): Use LookupTypeDirect, as we
always use fully qualified types, no need to use the compiler
front end.
(TypeManager.IsNamespace): Use binarysearch.
* class.cs (AddClass, AddStruct, AddInterface, AddEvent,
AddDelegate): I did not quite use the new IsValid API properly: I
have to pass the short-name and the fullname. I was passing only
the basename instead of the fullname sometimes.
(TypeContainer.DefineType): call NamespaceClash.
* interface.cs (Interface.DefineType): use NamespaceClash before
defining the type.
* delegate.cs (Delegate.DefineType): use NamespaceClash before
defining the type.
* enum.cs: (Enum.DefineType): use NamespaceClash before
defining the type.
svn path=/trunk/mcs/; revision=13839
* ILGenerator.cs (EmitCall): Implement.
Flag a few unimplemented methods with MonoTODO, make coding style
for method definitions Mono consistent.
svn path=/trunk/mcs/; revision=13832
* StringReader.cs (Read): Increment nextChar by charsToRead
instead of count, that will guarantee that the next time the
method is called, it will return 0 on an empty string rather than
throwing an exception
svn path=/trunk/mcs/; revision=13830
* ControlBuilder.cs: line and fileName are protected now.
* CodeBuilder.cs: base class for the next 2 files.
* CodeRenderBuilder.cs: builder for code render.
* DataBindingBuilder.cs: builder for data binding.
svn path=/trunk/mcs/; revision=13824
* FieldDef.cs: Add method to set a fields value
* TypeDef.cs: Add method to add data
* DataDef.cs: New file - Definition of a data constant
svn path=/trunk/mcs/; revision=13818
* typemanager.cs (: 3-line patch that gives us some tasty 11%
speed increase. First, use the negative_hits cache when we get a
negative. Second, add the type with its full original name
instead of the new . and + encoded name (reflection uses + to
separate type from a nested type). Use LookupTypeReflection
directly which bypasses the type->name hashtable (that we already
know does not contain the type.
* decl.cs (DeclSpace.ResolveTypeExpr): track the
location/container type.
* driver.cs: When passing utf8, use directly the UTF8Encoding.
svn path=/trunk/mcs/; revision=13817
* delegate.cs (NewDelegate.Resolve): Test whether an instance
method is being referenced in the method group from a static
context, and report error 120 if so.
svn path=/trunk/mcs/; revision=13808
Before, if there was a one-line block (such as in if (x) do_something;) and a non-one-line block after, the statement of the second block would be removed, and its bracket put on the first statement.
svn path=/trunk/mcs/; revision=13807
* BufferedStream.cs: Some fixes, mostly throwing exceptions.
* MemoryStream.cs: Changed the order of exception checking
* StringReader.cs: little clean up
svn path=/trunk/mcs/; revision=13798
* typemanager.cs (GetReferenceType, GetPointerType): In .NET each
invocation to ModuleBuilder.GetType with the same values will
return a new type instance, so we need to cache its return
values.
svn path=/trunk/mcs/; revision=13796
* ecore.cs (Expression.ImplicitReferenceConversion): handle target
types of ValueType on their own case. Before we were giving them
the same treatment as objects.
svn path=/trunk/mcs/; revision=13791
* decl.cs (DeclSpace.IsValid): IsValid takes the short name and
fullname. Short name is used to compare against container name.
Fullname is used to check against defined namespace names.
* class.cs (AddProperty, AddField, AddClass, AddStruct, AddEnum,
AddDelegate, AddEvent): Pass new parameter to DeclSpace.IsValid
svn path=/trunk/mcs/; revision=13789
2003-04-18 Miguel de Icaza <[email protected]>
* report.cs: Negative error codes are now mapped to 8000 - code,
so that the display is render more nicely.
* typemanager.cs: Do not use try/catch, instead report a regular
error.
(GetPointerType, GetReferenceType): These methods provide
mechanisms to obtain the T* and T& from a T. We had the code
previously scattered around the code base, and it also used
TypeManager.LookupType that would go through plenty of caches.
This one goes directly to the type source.
In some places we did the Type.GetType followed by
ModuleBuilder.GetType, but not in others, so this unifies the
processing as well.
* namespace.cs (VerifyUsing): Perform a non-lazy approach to using
statements now that we have namespace information.
* typemanager.cs (IsNamespace): New method, returns whether the
string presented is a namespace or not.
(ComputeNamespaces): New public entry point, computes the list of
available namespaces, using the GetNamespaces API call in Mono, or
the slower version in MS.NET.
Now before we start the semantic analysis phase, we have a
complete list of namespaces including everything that the user has
provided.
Deleted old code to cache namespaces in .nsc files.
svn path=/trunk/mcs/; revision=13777
* Object.cs ValueType.cs: Make the Object::GetHashCode() and
ValueType::Equals() icalls static non-virtual, so they can be called
by the code in RuntimeHelpers.
svn path=/trunk/mcs/; revision=13769
* Array.cs: Deleted the exception in Array.Initialize(), it looks
like the method do nothing for C#, is still a MonoTODO until
we find a compiler that uses that.
svn path=/trunk/mcs/; revision=13764
* ParamDef.cs: New file - definition of a parameter to a method
* TypeDef.cs: Add method definitions, set intransit flag to false
before defining members, so a false circular reference is not
created.
* CodeGen.cs: Add methods to add method definitions
svn path=/trunk/mcs/; revision=13760
* TypeManager.cs: Rewrite - Just a simple table for looking up
typedefs
* ExternTable.cs: Create ClassRef's instead of Classes
* Location.cs: Make compile
* CodeGen.cs: Use new tree system
svn path=/trunk/mcs/; revision=13754
an external assembly
* FieldDef.cs: New file - Represents a field definition
* IClassRef.cs: New file - Interface that classrefs must
implement. This needs some more thought though because once a
classref has been modified it is no longer a classref.
* ITypeRef.cs: New file - Interface that references to types must
implement
* TypeDef.cs: New file - Represents the a class definition, and
will hold all of the classes members.
svn path=/trunk/mcs/; revision=13752
* class.cs: (TypeContainer.DefineDefaultConstructor): Use the
class/struct location definition Location for the implicit
constructor location.
(Operator.Define): Use the location of the operator for the
implicit Method definition.
(Constructor.Emit): use the constructor location for the implicit
base initializer constructor.
svn path=/trunk/mcs/; revision=13744
* ecore.cs: Remove ITypeExpression. This interface is now gone,
and the Expression class now contains two new methods:
ResolveAsTypeStep and ResolveAsTypeTerminal. This is used to
isolate type lookup from the rest of the resolution process.
Since we use Expressions to hold type definitions due to the way
we parse the input we have historically overloaded Resolve to
perform the Type lookups if a special flag is passed. Now this is
eliminated and two methods take their place.
The differences in the two methods between xStep and xTerminal is
that xStep is involved in our current lookup system that uses
SimpleNames to compose a name, while xTerminal is used just to
catch the case where the simplename lookup failed.
svn path=/trunk/mcs/; revision=13739
* ComboBox.cs
* ColorDialog.cs
* Improved functionality in RadioBox.cs
* Fix some things that were broken with the update to gtk-sharp-0.8
svn path=/trunk/mcs/; revision=13738
* Timer.cs: Change the position of two lines because they were
before the "if" that ensures the integrity. After this, the first of
that two lines was producing a NullReferenceException.
svn path=/trunk/mcs/; revision=13737
* jit/jit.c:
(mono_jit_cleanup): moved mono_runtime_cleanup call after the call to
mono_domain_finalize.
* mini/mini.c:
(mini_cleanup): moved mono_runtime_cleanup call after the call to
mono_domain_finalize.
(mini_method_compile): use mono_method_profile* if the the option is
enabled.
* metadata/gc.c:
(internal_domain_finalize): moved into mono_domain_finalize. No need
to create another thread because the finalizers will be run in the
finalizer thread.
(ves_icall_System_GC_WaitForPendingFinalizers): implemented.
(finalizer_notify): if shutting down, wait 2 seconds for the finalizers
to be run (MS does this too).
svn path=/trunk/mono/; revision=13733
* ImageListStreamer.cs : started to implement
* Control.cs : changes in implementation of size-related functions
* Form.cs : small modifications to reflect changes in Contol class
svn path=/trunk/mcs/; revision=13713
* interface.cs (PopulateMethod): Do not lookup the types twice.
We were doing it once during SemanticAnalysis and once during
PopulateMethod.
svn path=/trunk/mcs/; revision=13700
* cs-parser.jay: Due to our hack in the grammar, things like A.B[]
in local variable type definitions, were being returned as a
SimpleName (we decomposed everything into a string), that is
because primary_expression was being used instead of a type in the
grammar (reduce/reduce conflicts).
The part that was wrong is that we converted the expression into a
string (an oversimplification in one hand, compounded with primary
expressions doing string concatenation).
So things like:
A.B.C [] x;
Would return "A.B.C[]" as a SimpleName. This stopped things like
using clauses from working on this particular context. And a type
was being matched directly against "A.B.C[]".
We now use the correct approach, and allow for ComposedCast to be
part of the unary expression. So the "A.B.C []" become a composed
cast of "A.B.C" (as a nested group of MemberAccess with a
SimpleName at the end) plus the rank composition "[]".
Also fixes 35567
svn path=/trunk/mcs/; revision=13695
* mini.c (mono_compile_create_var): use g_malloc/g_realloc instead
of the mempool. This is slightly faster and uses less memory
svn path=/trunk/mono/; revision=13687
* TypeBuilder.cs (DefineDefaultConstructor): Make it generate code
by default for a default constructor. This is what the MS runtime
does. The PythonNet code expected this.
(TypeBuilder.GetConstructorImpl): Implement this.
(TypeBuilder.CreateType): If there are no constructors defined, we
create one.
svn path=/trunk/mcs/; revision=13674
* metadata.c (mono_type_to_unmanaged): dont access
type->data.klass for MONO_TYPE_OBJECT
(mono_type_to_unmanaged): consider System.Delegate class
svn path=/trunk/mono/; revision=13655
* write-source.cs: A new program to write out C# source from the
XML files.
* src/MonoCulture.cs: A skeleton class for the other
culture-specific classes.
svn path=/trunk/mcs/; revision=13635
* CaseInsensitiveComparer.cs: Fixed Compare Method (now works
like MS.NET) and implemented the
CaseInsensitiveComparerTest(culture) constructor.
svn path=/trunk/mcs/; revision=13634
* CaseInsensitiveComparerTest.cs: Fixed Compare Method (now works
like MS.NET) and implemented the
CaseInsensitiveComparerTest(culture) constructor.
svn path=/trunk/mcs/; revision=13633
* list: added CollectionBuilder and TemplateBuilder.
* System.Web.UI/CollectionBuilder.cs:
* System.Web.UI/TemplateBuilder.cs: new classes derived from
ControlBuilder that represent a property or a ITemplate.
* System.Web.UI/ControlBuilder.cs: implemented all the missing bits.
* System.Web.UI/TemplateParser.cs: added mapping from tag name to
Type feature.
svn path=/trunk/mcs/; revision=13632
* SqlSharpDataAdapter.cs: added new file
as a special data adapter for SQL#
* SqlEditorSharp.cs: allow the use of
syntax highlighting of SQL keywords or not
via a property and default to false
* makefile.gnu
* win32.make: add SqlSharpDataAdapter.cs to
the build
* sqlsharpgtk.cs: handle a key pressed event
when the user presses F5 to execute the SQL
in the editor's buffer. Also, add an Edit menu, but
its menu options currently are placeholders
svn path=/trunk/mcs/; revision=13589
* BinaryStreamReader.cs: Added lots of tests. Somehow I missed that
there are already testcases for BinaryStreamReader :/
svn path=/trunk/mcs/; revision=13575
* get.c (dis_stringify_modifiers): Print a space between custom modifers.
* get.c (get_custom_mod): Handle multiple custom modifiers aka bug #30812.
* main.c: Print klass name at the end of each method to make it easier
to find a given method.
svn path=/trunk/mono/; revision=13556
* XmlTextReaderTests.cs: quick fix to comment out TestExternalDocument.
* XmlDocumentTests.cs : quick fix to comment out LoadExternalUri and
LoadDocumentWithIgnoreSection.
svn path=/trunk/mcs/; revision=13555
* moved testcases into each namespace-named directories.
fixed System.XML_linux_test.args and MonoMicro.test.csproj
along with it.
* added XmlFiles directory for test xml files.
svn path=/trunk/mcs/; revision=13554
* added this file as a new entry.
See ../ChangeLog to find former ChangeLog entries.
* added XmlSerializerTests.cs and XmlSerializerTestClasses.cs
(by Erik Lebel)
svn path=/trunk/mcs/; revision=13550
* Data/CultureInfo.xsd: XML schema for the XML files.
* Data/*.xml: Modify the DisplayName element to allow for more
flexible translation.
svn path=/trunk/mcs/; revision=13543
* X509CertificateTest.cs: Commented ToString() test because of the
dates included within (which makes the comparison with a pre-
generated value difficult).
svn path=/trunk/mcs/; revision=13537
* Makefile.am: re-added -m option when running cygpath. This way,
MONO_ASSEMBLIES and MONO_CFG_DIR will contain '/' as directory
separator.
* mono-config.c: same codepath for locating mono config file for WIN32
and the rest.
* assembly.c: if mono_assembly_setrootdir is called, don't override
the value set.
svn path=/trunk/mono/; revision=13530
* Control.cs : init bounds in ctor, invisible parking window
* TrackBar.cs
* ProgressBar.cs.cs
* DateTimePicker.cs
* StatusBar.cs : use base version of CreateParams
* ScrollableControl.cs : use base version of CreateParams, removed CS_VREDRAW, CS_HREDRAW styles
* Form.cs : reset parent back to zero for the main form
* StatusBarPanel.cs : small bug-fix
svn path=/trunk/mcs/; revision=13509
ContributorComparer.
(RenderHtml): Add some SetAttribute loving to make it render prettier.
* doc/web/team.xml: Revert excessive indenting.
svn path=/trunk/mono/; revision=13494
* class.cs: Cosmetic changes. Renamed `TypeContainer parent' to
`TypeContainer container', because I kept getting confused when I
was debugging this code.
svn path=/trunk/mcs/; revision=13493
* expression.cs (Indexers): Instead of tracking getters/setters,
we now track them in parallel. We create one arraylist less, but
most importantly it is possible now for the LValue code to find a
matching get for a set.
(IndexerAccess.DoResolveLValue): Update the code.
GetIndexersForType has been modified already to extract all the
indexers from a type. The code assumed it did not.
Also make the code set the correct return type for the indexer.
This was fixed a long time ago for properties, but was missing for
indexers. It used to be void_type.
svn path=/trunk/mcs/; revision=13490
* expression.cs (Binary.Emit): Test first for doubles instead of
floats, as they are more common.
(Binary.EmitBranchable): Use the .un version of the branch opcodes
when dealing with floats and the <=, >= operators. This fixes bug
#39314
svn path=/trunk/mcs/; revision=13488
* statement.cs (Foreach.EmitArrayForeach): bug fix: The code used
to load the array value by emitting a load on the foreach variable
type. This was incorrect.
We now emit the code to load an element using the the array
variable type, and then we emit the conversion operator.
Fixed#40176
svn path=/trunk/mcs/; revision=13487
* class.cs (MethodSignature.InheritableMemberSignatureCompare):
test for protection before we test for signatures.
(MethodSignature.ToString): implement.
svn path=/trunk/mcs/; revision=13482
* ClientContextTerminatorSink.cs: Improved support for Async and OneWay messages.
* MonoMethodMessage.cs: Added member needed to support Async messages.
* ServerObjectTerminatorSink.cs: Improved support for Async and OneWay messages.
svn path=/trunk/mcs/; revision=13479
* ChannelServices.cs: renamed ChannelInfoStore an its members to match MS.NET.
* CrossAppDomainChannel.cs: Renamed CrossAppDomainChannelData to match MS.NET.
Added processId property to CrossAppDomainData. Now it is checked in CreateSink.
svn path=/trunk/mcs/; revision=13477
* mini.c (mono_type_blittable): MONO_TYPE_OBJECT is blittable.
* driver.c: Added --print-vtable option as in the old JIT.
svn path=/trunk/mono/; revision=13473
* expression.cs (Unary.TryReduceNegative): Add missing minus sign
to the case where we reduced into a LongConstant.
svn path=/trunk/mcs/; revision=13456
* decl.cs (CheckAccessLevel): If the type is an array, we can not
depend on whether the information is acurrate, because the
Microsoft runtime will always claim that the array type is public,
regardless of the real state.
If the type is a pointer, another problem happens: the type is
reported as non-public in Microsoft.
In both cases we have to call CheckAccessLevel recursively with
the underlying type as the argument to be tested.
svn path=/trunk/mcs/; revision=13455
* assign.cs (Assign.Emit): If we are dealing with a compound
assignment expression, we should use the code path that stores the
intermediate result in a temporary value. This fixes#40903.
*expression.cs (Indirection.ToString): Provide ToString method for
debugging.
svn path=/trunk/mcs/; revision=13454
* Thread.cs: Make sure a reference to the ThreadStart delegate is
held. There's no telling how long it will be before
Thread.Start() is called, and GC might destroy the delegate.
Thread() and Start() need to be rewritten so that the runtime
creates the new thread when Start() is called, which will simplify
the code a great deal.
svn path=/trunk/mcs/; revision=13442
* appdomain.h, domain.c: added mono_domain_foreach() to
be able to access the currently loaded appdomains.
* object.c: make string interning work across sppdomains.
Mark some functions for use as icalls.
svn path=/trunk/mono/; revision=13440
* class.c reflection.c: Fix memory leaks reported by ccmalloc.
* reflection.h reflection.c: Allocate long living data using
GC_MALLOC_ATOMIC so the collector does not need to scan it.
* reflection.c: Double the allocation size in streams instead of
increasing it, to prevent unneccesary copying on large assemblies.
* reflection.c (mono_reflection_create_runtime_class): Avoid vtable
creation if the assembly does not have the Run flag set.
svn path=/trunk/mono/; revision=13438
* class.cs: Null out fields holding references to Block objects so
they can be garbage collected.
* expression.cs (OverloadResolve): Remove unused local.
svn path=/trunk/mcs/; revision=13432
* ecore.cs (Expression.ResolveBoolean): Don't call ec.Mark().
* codegen.cs (EmitContext.EmitTopBlock): Don't call Mark() on the
location. [FIXME: The location argument which gets passed to this
method is sometimes wrong!]
svn path=/trunk/mcs/; revision=13431
* expression.cs (Indirection.EmitAssign): We were using the
temporary, but returning immediately instead of continuing the
EmitAssing flow.
svn path=/trunk/mcs/; revision=13430
* expression.cs (Indirection.EmitAssign): We were using the
temporary, but returning immediately instead of continuing the
EmitAssing flow.
svn path=/trunk/mcs/; revision=13429
* ecore.cs (SimpleName.SimpleNameResolve): Don't report an error
if it's a nested child, but also deriving from the outer class.
See test 190.cs.
svn path=/trunk/mcs/; revision=13428
* typemanager.cs (IsNestedChildOf): Make this work if it's a
nested child, but also deriving from the outer class. See
test-190.cs.
(FilterWithClosure): We may access private members of the outer
class if we're a nested child and deriving from the outer class.
(RealMemberLookup): Only set `closure_private_ok' if the
`original_bf' contained BindingFlags.NonPublic.
svn path=/trunk/mcs/; revision=13427
* codegen.cs (EmitContext.CurrentFile): New public field.
(EmitContext.Mark): Use the CurrentFile to check whether the
location is in the correct file.
(EmitContext.EmitTopBlock): Initialize CurrentFile here.
svn path=/trunk/mcs/; revision=13426
* class.cs (Event.Define): Do not allow abstract events to have
initializers.
2003-04-01 Miguel de Icaza <[email protected]>
* cs-parser.jay: Add error productions for ADD/REMOVE missing a
block in event declarations.
svn path=/trunk/mcs/; revision=13423
* expression.cs (Is.Emit): For action `LeaveOnStack' we were
leaving a class on the stack instead of a boolean value (int
0/1). Change the code so we compare against null, and then the
svn path=/trunk/mcs/; revision=13422
* class.cs (TypeContainer.GetClassBases): We were checking for the
parent class being sealed too late.
* expression.cs (Binary.Emit): For <= and >= when dealing with
floating point values, use cgt.un and clt.un instead of cgt and
clt alone.
svn path=/trunk/mcs/; revision=13421
* statement.cs: Apply the same optimization as MS: skip the
GetEnumerator returning an IEnumerator, and use the one returning a
CharEnumerator instead. This allows us to avoid the try-finally block
and the boxing.
svn path=/trunk/mcs/; revision=13420
* class.cs (TypeContainer.CheckPairedOperators): Report error for missmatch on
operator true/false as required by the spec.
svn path=/trunk/mcs/; revision=13415
* expression.cs (Unary.ResolveOperator): In LogicalNot, do an
implicit conversion to boolean.
* statement.cs (Statement.ResolveBoolean): A boolean expression is
also one where the type implements `operator true'.
* ecore.cs (Expression.GetOperatorTrue): New helper routine to
get an expression that will invoke operator true based on an
expression.
(GetConversionOperators): Removed the hack that called op_True
here.
(Expression.ResolveBoolean): Move this from Statement.
svn path=/trunk/mcs/; revision=13414
* expression.cs (Indexers): Do not construct immediately, allow
for new members to be appended as we go. Fixes 38143
svn path=/trunk/mcs/; revision=13411
* ecore.cs (Expression.MemberLookup): Don't create a
MethodGroupExpr for something which is not a method. Fixes#38291.
svn path=/trunk/mcs/; revision=13404
* class.cs (MemberBase.CheckParameters): Also check that the type
is unmanaged if it is a pointer.
* expression.cs (SizeOf.Resolve): Add location information.
* statement.cs (Block.EmitMeta): Flag error (208) if a pointer to
a managed type is declared.
svn path=/trunk/mcs/; revision=13403
* class.cs: Very sad. Am backing out the speed up changes
introduced by the ArrayList -> Array in the TypeContainer, as they
were not actually that much faster, and introduced a bug (no error
reports on duplicated methods).
svn path=/trunk/mcs/; revision=13401
Although we are resolving for LValues, we will let the Assign code
take care of that (it will be called again from Resolve). This
basically allows code like this:
class X { X operator + (X x, object o) {} X this [int idx] { get; set; } }
class Y { void A (X x) { x [0] += o; }
The problem was that the indexer was trying to resolve for
set_Item (idx, object o) and never finding one. The real set_Item
was set_Item (idx, X). By delaying the process we get the right
semantics.
Fixes bug: 36505
svn path=/trunk/mcs/; revision=13400
* assign.cs (CompoundAssign.DoLResolve): Resolve the original
source first, this will guarantee that we have a valid expression
before calling in lower levels functions that will require a
resolved object. Then use this original_source in the
target.ResolveLValue instead of the original source that was
passed to us.
svn path=/trunk/mcs/; revision=13399
* statement.cs (Block.Emit): Override this and set ec.CurrentBlock
while calling DoEmit ().
* codegen.cs (EmitContext.Mark): Don't mark locations in other
source files; if you use the #line directive inside a method, the
compiler stops emitting line numbers for the debugger until it
reaches the end of the method or another #line directive which
restores the original file.
svn path=/trunk/mcs/; revision=13398
* statement.cs (Block.AddChildVariableNames): We need to call this
recursively, not just for our immediate children.
svn path=/trunk/mcs/; revision=13396
* class.cs (Event.Define): Always make the field private, like csc does.
* typemanager.cs (TypeManager.RealMemberLookup): Make events
actually work, fixes bug #37521.
svn path=/trunk/mcs/; revision=13395
* delegate.cs: When creating the various temporary "Parameters"
classes, make sure that we call the ComputeAndDefineParameterTypes
on those new parameters (just like we do with the formal ones), to
allow them to be resolved in the context of the DeclSpace.
This fixes the bug that Dick observed in Bugzilla #38530.
svn path=/trunk/mcs/; revision=13394
* expression.cs (ResolveMemberAccess): When resolving a constant,
do not attempt to pull a constant if the value was not able to
generate a valid constant.
* const.cs (LookupConstantValue): Do not report more errors than required.
svn path=/trunk/mcs/; revision=13393
* class.cs: Changed all the various members that can be part of a
class from being an ArrayList to be an Array of the right type.
During the DefineType type_list, interface_list, delegate_list and
enum_list are turned into types, interfaces, delegates and enums
arrays.
And during the member population, indexer_list, event_list,
constant_list, field_list, instance_constructor_list, method_list,
operator_list and property_list are turned into their real arrays.
Although we could probably perform this operation earlier, for
good error reporting we need to keep the lists and remove the
lists for longer than required.
This optimization was triggered by Paolo profiling the compiler
speed on the output of `gen-sample-program.pl' perl script.
* decl.cs (DeclSpace.ResolveType): Set the ContainerType, so we do
not crash in methods like MemberLookupFailed that use this field.
This problem arises when the compiler fails to resolve a type
during interface type definition for example.
svn path=/trunk/mcs/; revision=13391
* expression.cs (Indexers.GetIndexersForType): Interfaces do not
inherit from System.Object, so we have to stop at null, not only
when reaching System.Object.
svn path=/trunk/mcs/; revision=13390
* expression.cs: (Indexers.GetIndexersForType): Martin's fix used
DeclaredOnly because the parent indexer might have had a different
name, but did not loop until the top of the hierarchy was reached.
The problem this one fixes is 35492: when a class implemented an
indexer from an interface, we were getting the interface method
(which was abstract) and we were flagging an error (can not invoke
abstract method).
This also keeps bug 33089 functioning, and test-148 functioning.
svn path=/trunk/mcs/; revision=13389
* typemanager.cs (IsSpecialMethod): The correct way of figuring
out if a method is special is to see if it is declared in a
property or event, or whether it is one of the predefined operator
names. This should fix correctly #36804.
svn path=/trunk/mcs/; revision=13388
The goal here is to remove the dependency on EmptyCast.Peel ().
Killing it completely.
The problem is that currently in a number of places where
constants are expected, we have to "probe" for an EmptyCast, and
Peel, which is not the correct thing to do, as this will be
repetitive and will likely lead to errors.
The idea is to remove any EmptyCasts that are used in casts that
can be reduced to constants, so we only have to cope with
constants.
This bug hunt was triggered by Bug 37363 and the desire to remove
the duplicate pattern where we were "peeling" emptycasts to check
whether they were constants. Now constants will always be
constants.
* ecore.cs: Use an enumconstant here instead of wrapping with
EmptyCast.
* expression.cs (Cast.TryReduce): Ah, the tricky EnumConstant was
throwing me off. By handling this we can get rid of a few hacks.
* statement.cs (Switch): Removed Peel() code.
svn path=/trunk/mcs/; revision=13387
* expression.cs (New.DoResolve): Add a guard against double
resolution of an expression.
The New DoResolve might be called twice when initializing field
expressions (see EmitFieldInitializers, the call to
GetInitializerExpression will perform a resolve on the expression,
and later the assign will trigger another resolution
This leads to bugs (#37014)
svn path=/trunk/mcs/; revision=13385
* delegate.cs: The signature for EndInvoke should contain any ref
or out parameters as well. We were not doing this in the past.
svn path=/trunk/mcs/; revision=13384
* class.cs (Field.Define): Do not overwrite the type definition
inside the `volatile' group. Turns out that volatile enumerations
were changing the type here to perform a validity test, which
broke conversions.
svn path=/trunk/mcs/; revision=13383
* ecore.cs (FieldExpr.AddressOf): In the particular case of This
and structs, we do not want to load the instance variable
svn path=/trunk/mcs/; revision=13382
* namespace.cs (Namespace..ctor): Added SourceFile argument.
(Namespace.DefineNamespaces): New static public method; this is
called when we're compiling with debugging to add all namespaces
to the symbol file.
* tree.cs (Tree.RecordNamespace): Added SourceFile argument and
pass it to the Namespace's .ctor.
* symbolwriter.cs (SymbolWriter.OpenMethod): Added TypeContainer
and MethodBase arguments; pass the namespace ID to the symwriter;
pass the MethodBase instead of the token to the symwriter.
(SymbolWriter.DefineNamespace): New method to add a namespace to
the symbol file.
svn path=/trunk/mcs/; revision=13379
* symbolwriter.cs: New file. This is a wrapper around
ISymbolWriter with a cleaner API. We'll dynamically Invoke()
methods here in near future.
svn path=/trunk/mcs/; revision=13378
* codegen.cs (EmitContext.Mark): Just pass the arguments to
ILGenerator.MarkSequencePoint() which are actually used by the
symbol writer.
svn path=/trunk/mcs/; revision=13377
* location.cs (SourceFile): New public sealed class. This
contains the name and an index which is used in the location's token.
(Location): Reserve an appropriate number of bits in the token for
the source file instead of walking over that list, this gives us a
really huge performance improvement when compiling with debugging.
* driver.cs (Driver.parse, Driver.tokenize_file): Take a
`SourceFile' argument instead of a string.
(Driver.ProcessFile): Add all the files via Location.AddFile(),
but don't parse/tokenize here, we need to generate the list of all
source files before we do that.
(Driver.ProcessFiles): New static function. Parses/tokenizes all
the files.
* cs-parser.jay (CSharpParser): Take a `SourceFile' argument
instead of a string.
* cs-tokenizer.cs (Tokenizer): Take `SourceFile' argument instead
of a string.
svn path=/trunk/mcs/; revision=13376
* driver.cs: Removed the `--debug-args' command line argument.
* codegen.cs (CodeGen.SaveSymbols): Removed, this is now done
automatically by the AsssemblyBuilder.
(CodeGen.InitializeSymbolWriter): We don't need to call any
initialization function on the symbol writer anymore. This method
doesn't take any arguments.
svn path=/trunk/mcs/; revision=13370
* class.cs (Constructor.Emit): Open the symbol writer before
emitting the constructor initializer.
(ConstructorInitializer.Emit): Call ec.Mark() to allow
single-stepping through constructor initializers.
svn path=/trunk/mcs/; revision=13367
* class.cs (Operator): Set the SpecialName flags for operators.
* expression.cs (Invocation.DoResolve): Only block calls to
accessors and operators on SpecialName methods.
(Cast.TryReduce): Handle conversions from char constants.
svn path=/trunk/mcs/; revision=13363
* expression.cs (IndexerAccess.DoResolveLValue): Resolve the same
problem that the last fix but in the other sid (Set).
* expression.cs (IndexerAccess.DoResolve): Fix a problem with a null
svn path=/trunk/mcs/; revision=13361
* expression.cs (IndexerAccess.DoResolve): Before trying to resolve
any indexer, it's needed to build a list with all the indexers in the
hierarchy (AllGetters), else we have problems. Fixes#35653.
svn path=/trunk/mcs/; revision=13358
* class.cs (MethodData.Define): It is wrong for an interface
implementation to be static in both cases: explicit and implicit.
We were only handling this in one case.
Improve the if situation there to not have negations.
* class.cs (Field.Define): Turns out that we do not need to check
the unsafe bit on field definition, only on usage. Remove the test.
svn path=/trunk/mcs/; revision=13357
* cs-parser.jay: Small fix: we were not comparing the constructor
name correctly. Thanks to Zoltan for the initial pointer.
svn path=/trunk/mcs/; revision=13349
* cs-parser.jay: Only perform the constructor checks here if we
are named like the class; This will help provider a better
error. The constructor path is taken when a type definition is
not found, but most likely the user forgot to add the type, so
report that rather than the constructor error.
svn path=/trunk/mcs/; revision=13347
* ilasm/parser/ScannerAdapter.cs: Implement the new cleanup method
in the tokenizer. This fixes the build.
* skeleton.cs (cleanpup): Rename to cleanup to make it look more consistent.
* cs-tokenizer.cs (Cleanup): Rename to 'cleanup' to make it more
consistent with other methods.
svn path=/trunk/mcs/; revision=13344
* ecore.cs:
* expression.cs:
* typemanager.cs: fixes to allow mcs compile corlib with the new
Type.IsSubclassOf fix.
svn path=/trunk/mcs/; revision=13341
* expression.cs (LocalVariableReference.DoResolve): Classify a
constant as a value, not as a variable. Also, set the type for
the variable.
svn path=/trunk/mcs/; revision=13340
* cs-parser.jay (fixed_statement): take a type instead of a
pointer_type, so we can produce a better error message later.
* statement.cs (Fixed.Resolve): Flag types that are not pointers
as an error.
svn path=/trunk/mcs/; revision=13339
* statement.cs: First populate the pinned variables, then emit the
statement, then clear the variables. Before I was emitting the
code once for each fixed piece.
svn path=/trunk/mcs/; revision=13338
* statement.cs (FlowBranching.CheckOutParameters): `struct_params'
lives in the same number space than `param_map'. Fixes#36154.
svn path=/trunk/mcs/; revision=13336
* cs-parser.jay (constructor_declaration): Set the
Constructor.ModFlags before probing for it. This makes the
compiler report 514, 515 and 132 (the code was there, but got
broken).
svn path=/trunk/mcs/; revision=13335
* statement.cs (Goto.Resolve): Set `Returns' to ALWAYS.
(GotoDefault.Resolve): Set `Returns' to ALWAYS.
(GotoCase.Resolve): Set `Returns' to ALWAYS. Fixes the test-49 problem on windows
svn path=/trunk/mcs/; revision=13334
* class.cs: don't try to create the ParamBuilder for the return
type if it's not needed (and handle it breaking for the ms runtime
anyway).
svn path=/trunk/mcs/; revision=13332
* cs-tokenizer.cs (get_cmd_arg): Fixups to allow \r to terminate
the command. This showed up while compiling the JANET source
code, which used \r as its only newline separator.
svn path=/trunk/mcs/; revision=13330
* class.cs (Method.Define): If we are an operator (because it
reuses our code), then set the SpecialName and HideBySig. #36128
svn path=/trunk/mcs/; revision=13329
* ecore.cs (StandardImplicitConversion): When in an unsafe
context, we allow conversion between void * to any other pointer
type. This fixes bug #35973.
svn path=/trunk/mcs/; revision=13325
* attribute.cs (Attributes.Contains): Add new method.
* class.cs (MethodCore.LabelParameters): if the parameter is an
`out' parameter, check that no attribute `[In]' has been passed.
svn path=/trunk/mcs/; revision=13321
* attribute.cs (Attributes.AddAttributeSection): Rename to this
since it makes much more sense.
(Attributes.ctor): Don't require a Location parameter.
* rootcontext.cs (AddGlobalAttributeSection): Rename again.
* attribute.cs (ApplyAttributes): Remove extra Location parameters
since we already have that information per attribute.
* everywhere : make appropriate changes.
* class.cs (LabelParameters): Write the code which actually
applies attributes to the return type. We can't do this on the MS
.NET runtime so we flag a warning in the case an exception is
thrown.
svn path=/trunk/mcs/; revision=13319
* class.cs (MethodCore.LabelParameters): Remove the extra
Type [] parameter since it is completely unnecessary. Instead
pass in the method's attributes so that we can extract
the "return" attribute.
svn path=/trunk/mcs/; revision=13317
* cs-parser.jay (parse): Use Report.Error to flag errors instead
of ignoring it and letting the compile continue.
* typemanager.cs (ChangeType): use an extra argument to return an
error condition instead of throwing an exception.
svn path=/trunk/mcs/; revision=13316
* expression.cs (Unary.TryReduce): mimic the code for the regular
code path. Perform an implicit cast in the cases where we can
implicitly convert to one of the integral types, and then reduce
based on that constant. This fixes bug #35483.
svn path=/trunk/mcs/; revision=13315
* class.cs: Remove some dead code.
* cs-parser.jay: Estimate the number of methods needed
(RootContext.MethodCount);
* cs-tokenizer.cs: Use char arrays for parsing identifiers and
numbers instead of StringBuilders.
* support.cs (PtrHashtable): Add constructor with initial size;
We can now reduce reallocations of the method table.
svn path=/trunk/mcs/; revision=13312
* codegen.cs (EmitContext.CurrentFile): New public field.
(EmitContext.Mark): Use the CurrentFile to check whether the
location is in the correct file.
(EmitContext.EmitTopBlock): Initialize CurrentFile here.
svn path=/trunk/mcs/; revision=13284
* ecore.cs (Expression.ResolveBoolean): Don't call ec.Mark().
* codegen.cs (EmitContext.EmitTopBlock): Don't call Mark() on the
location. [FIXME: The location argument which gets passed to this
method is sometimes wrong!]
svn path=/trunk/mcs/; revision=13283
* AsymmetricAlgorithm.cs: Moved IsLegalKeySize to KeySizes.cs.
* DSACryptoServiceProvider.cs: Fix bug where key generation always
resulted in 1024 bits keypair.
* KeySizes.cs: Added internal IsLegalKeySize and IsLegal to avoid
duplication in both AsymmetricAlgorithm and SymmetricAlgorithm.
* RC2.cs: Modified to use IsLegalKeySize from KeySizes.cs.
* RSACryptoServiceProvider.cs: Fix bug where key generation always
resulted in 1024 bits keypair. Should fix unit test failure under
Linux.
* SymmetricAlgorithm.cs: Moved IsLegalKeySize to KeySizes.cs.
svn path=/trunk/mcs/; revision=13256
* ecore.cs (SimpleName.SimpleNameResolve): Don't report an error
if it's a nested child, but also deriving from the outer class.
See test 190.cs.
svn path=/trunk/mcs/; revision=13251
* typemanager.cs (IsNestedChildOf): Make this work if it's a
nested child, but also deriving from the outer class. See
test-190.cs.
(FilterWithClosure): We may access private members of the outer
class if we're a nested child and deriving from the outer class.
(RealMemberLookup): Only set `closure_private_ok' if the
`original_bf' contained BindingFlags.NonPublic.
svn path=/trunk/mcs/; revision=13248
* CryptoStream.cs: Partial fix for bug #40689 (workaround). Does not
throw a NotSupportedException on closing a CryptoStream in read mode
(like MS does but unlike MS documents).
svn path=/trunk/mcs/; revision=13244
* object.c:
(mono_unhandled_exception): fill in the arguments for the
UnhandledException event. Only trigger that event for the default
domain (as MS does).
svn path=/trunk/mono/; revision=13239
* Console.cs: Make stderr, stdout and stdin use synchronized
versions of the their readers/writers.
2003-03-20 Miguel de Icaza <[email protected]>
* Thread.cs (CurrentCuluture): use the invaraint culture instead
of "" for the current_culture setting.
2003-04-05 Miguel de Icaza <[email protected]>
* TextWriter.cs: Implemented Synchronized method.
* TextReader.cs: Implemented Synchronized method.
svn path=/trunk/mcs/; revision=13203
* MobileCapabilities.cs : More methods.
* DeviceFilterDictionary.cs: Used by MobCaps for filtering
the capabilities. Init impl.
svn path=/trunk/mcs/; revision=13195
* MobileCapabilities.cs : Completed all properties.
Thanks to the tool that I made.
* ErrorHandlerModule.cs : Initial implementation.
svn path=/trunk/mcs/; revision=13193
* FileStream.cs (Read, ReadByte, Seek): throw
ObjectDisposedException if the handle has been released.
(Read): Throw exceptions specified in the spec.
(Read, Write, ReadSegment, WriteSegment): There is no requirement for any
instance methods of FileStream to be thread safe, so remove all
the calls to lock on the object
svn path=/trunk/mcs/; revision=13172
* doc/web/makefile: Add team page information.
* doc/web/team.xml:
* doc/web/render-team-page.cs: Code for rendering a team page.
svn path=/trunk/mono/; revision=13147
* object.c: Improve typed allocation stuff based on suggestions from
Paolo. Also turn it on if the GC library supports it.
svn path=/trunk/mono/; revision=13145
* Version.cs: Make operator== and operator!= cope with null
objects. Didn't change operator<, operator<=, operator> or
operator>= because its not meaningful to use those to compare
against null, and throwing a NullReferenceException is probably
the best thing to do there anyway.
Fixes bug 40720.
svn path=/trunk/mcs/; revision=13139
* object.c object.h class.h: Added experimental typed allocation
facility using the interfaces in gc_gcj.h.
* os/gc_wrapper.h: Added new include files.
svn path=/trunk/mono/; revision=13077
The following change is conditional to `WITH_INCLUDED_LIBGC'
which is not yet enabled by default.
* threads.c (SuspendThread, ResumeThread): Fully implemented this.
(gc_init): New static function; install a signal handler for
SIGPWR which is used to suspend threads. [FIXME: it SIGPWR
doesn't exist on all Unix systems, we need to find another
signal].
(mono_wapi_push_thread_stack): New public function. Tells the
garbage collector about the current stack pointer of a suspended
thread.
svn path=/trunk/mono/; revision=13074
* XmlDocument.cs : Load() now closes the given XmlReader.
Don't allow creation of XmlTextReader for Doctype. (workaround.)
* XmlInputStream.cs : It now closes its internal stream explicitly.
* XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
* XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
* XmlParserInput.cs : added Close() method.
* XmlReader.cs : MoveToContent() should (1) not Read in case of empty
element, and (2) MoveToElement() in case of attribute.
* XmlTextReader.cs : Close() now actually closes source TextReaders.
svn path=/trunk/mcs/; revision=13070
All the following changes are conditional to `WITH_INCLUDED_LIBGC'
which is not yet enabled by default.
* gc.c (mono_gc_init): Set the gc_thread_vtable to our thread
functions.
(mono_gc_lock, mono_gc_unlock): New static functions.
* threads.c (mono_gc_stop_world, mono_gc_start_world): New public
functions; stop/start the world for the garbage collector. This
is using the windows API; we need to complete the SuspendThread()/
ResumeThread() implementation in the io-layer to make this work on Unix.
(mono_gc_push_all_stacks): New public function; tells the garbage
collector about the stack pointers from all managed threads.
svn path=/trunk/mono/; revision=13065
sent by Jose Lu�s Mart�n.
* TcpClientTransportSink.cs: Added Content-Type header. Improved support
for OneWay messages.
svn path=/trunk/mcs/; revision=13061
sent by Jose Lu�s Mart�n.
* TcpClientTransportSink.cs: Added Content-Type header. Improved support
for OneWay messages.
svn path=/trunk/mcs/; revision=13060
- Fixed enums
- Removed a few conflicts from the grammar
- Added single-line If statement
- Fixed access modifiers for module members
- Started implementing MustOverride (not working yet)
- Added MyClass
- Added a couple of missing integral types
svn path=/trunk/mcs/; revision=13032
* reflection.c: set table_idx in MonoReflectionArrayMethod object even
if the array method was already assigned a token (fixes bug#40646).
svn path=/trunk/mono/; revision=13027
* class.cs (Event.Define): Do not allow abstract events to have
initializers.
2003-04-01 Miguel de Icaza <[email protected]>
* cs-parser.jay: Add error productions for ADD/REMOVE missing a
block in event declarations.
svn path=/trunk/mcs/; revision=13023
* class.cs (TypeContainer.GetClassBases): We were checking for the
parent class being sealed too late.
* expression.cs (Binary.Emit): For <= and >= when dealing with
floating point values, use cgt.un and clt.un instead of cgt and
clt alone.
svn path=/trunk/mcs/; revision=13010
* statement.cs: Apply the same optimization as MS: skip the
GetEnumerator returning an IEnumerator, and use the one returning a
CharEnumerator instead. This allows us to avoid the try-finally block
and the boxing.
svn path=/trunk/mcs/; revision=13009
* metadata.h: Added the new tables.
* row-indexes.h: Added definitions for new tables.
* metadata.c: Add schemas for new tables, and add support for
computing the sizes of them.
* class.c: Update for handling the new type cases.
2003-03-31 Miguel de Icaza <[email protected]>
* main.c: Sorted command line options table by name.
* dump.c: Add support for dumping the new generic tables.
* monodis.1: Update man page.
svn path=/trunk/mono/; revision=13008
* domain.c: added initialization of mono_defaults.marshalbyrefobject_class
* icall.c: ves_icall_InternalExecute: fixed bug in field setter and in the
generation of output parameters.
ves_icall_Remoting_RealProxy_GetTransparentProxy: added support for interfaces.
* marshal.c: mono_remoting_wrapper(): avoided call through proxy when the type is
contextbound and the target object belongs to the context of the caller.
* object.h: added context and unwrapped_server variables in MonoRealProxy.
* object.c: Implemented support for interfaces and abstract classes
in mono_class_proxy_vtable. Fixed several methods to avoid unneeded calls through
proxy. Fixed problem when dealing with output parameters in mono_runtime_invoke_array.
svn path=/trunk/mono/; revision=12974
instead of having to have namespace and name seperate.
* ClassTable.cs: Make method that seprates full names into
name/namespaces public.
svn path=/trunk/mcs/; revision=12948
* Handler.cs: Add CP936 and ENCgb2312 Encodings
* CP936.cs: Added support for GB2312 Encoding
* CP950.cs: Small fixes on SBCS range
* DbcsEncoding.cs: Little fix
* Gb2312Convert.cs: Support class for conversion table
* gb2312.table: GB2312 conversion table
The GB2312 Encoding is actually GB2312+GBK Encoding as in Windows
svn path=/trunk/mcs/; revision=12934
* Handler.cs: Added encoding handler for CP950 and ENCbig5
* DbcsEncoding.cs: A base class for all DBCS encodings
* DbcsConvert.cs: A singleton class for all DBCS conversion tables
* CP950.cs: Encoding and Decorder classes for Big5 Encoding
* big5.table: The conversion table for Big5 Encoding
CP932.cs can be made neater by using the new base class
svn path=/trunk/mcs/; revision=12924
that, and use a stack for putting chars back. This is probably
much slower and not nearly as cool but the old method was a little
buggy and I was having trouble tracking things down. This can be
optimized someday.
svn path=/trunk/mcs/; revision=12923
* class.h class.c (mono_class_is_subclass_of): New function.
* icall.c (ves_icall_System_Array_FastCopy): Added optimized copy
routines for most common case (calls from ArrayList::ToArray).
* icall.c (ves_icall_System_Environment_Exit): Call profiler shutdown
routine so programs which call Environment::Exit() can be profiled.
* icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle):
Added MONO_ARCH_SAVE_REGS.
* icall.c (ves_icall_type_is_subtype_of): Use new function.
svn path=/trunk/mono/; revision=12920
* Array.cs (Copy): Call FastCopy() earlier to avoid the expensive
type checks and let it decide whenever a fast copy is possible.
svn path=/trunk/mcs/; revision=12919
* expression.cs (Unary.ResolveOperator): In LogicalNot, do an
implicit conversion to boolean.
* statement.cs (Statement.ResolveBoolean): A boolean expression is
also one where the type implements `operator true'.
* ecore.cs (Expression.GetOperatorTrue): New helper routine to
get an expression that will invoke operator true based on an
expression.
(GetConversionOperators): Removed the hack that called op_True
here.
(Expression.ResolveBoolean): Move this from Statement.
svn path=/trunk/mcs/; revision=12891
* CryptoStream.cs: fixed the previous fix. MS throws a NotSupportedExc
when FlushFinalBlock is called twice. I've moved a few lines from Close
to FlushFinalBlock and added the exception check.
svn path=/trunk/mcs/; revision=12879
* AspTokenizer.cs: allow quotes inside server tags that are part of
attribute values.
* CachingCompiler.cs: no more 'FileNotFound' exceptions when the
compilation fails.
svn path=/trunk/mcs/; revision=12877
* ConstraintCollection.cs: Little fix.
* DataColumn.cs: Added new internal method SetUnique()
* UniqueConstraint.cs: some little fixes
svn path=/trunk/mcs/; revision=12867
* reflection.h (MonoReflectionDynamicAssembly): track changes in
the layout of the class.
* reflection.c (alloc_table): double the size on overflow to avoid
unnecessary copying.
* reflection.h reflection.c: If AssemblyBuilderAccess is Run, then
avoid filling out metadata tables and blobs. Also set mb->ilgen to
null so it can be garbage collected.
svn path=/trunk/mono/; revision=12865
* reflection.c (mono_reflection_get_type): Return the resolved type
only if it is in the assembly we searched.
* reflection.c (ensure_runtime_vtable): Initialize method slots.
* class.c (mono_class_setup_vtable): Set the slot of the overriding
method.
svn path=/trunk/mono/; revision=12863
* AspGenerator.cs: generate correct appbase path. It was working with
mcs but not with csc.
* BaseCompiler.cs: quote arguments and removed GetRandomFileName.
* CachingCompiler.cs: quote source file.
svn path=/trunk/mcs/; revision=12862
* DataColumn.cs: If DataType if set to something else than short, int
or long and AutoIncrement is true, AutoIncrement is must set to false.
svn path=/trunk/mcs/; revision=12857
* XmlTextWriter.cs (Write): A patch from Atsushi to fix
prematurely ending the write, or something like that. It was
causing us to chop off the end of the document when we're trying
to generate XML Schemas.
svn path=/trunk/mcs/; revision=12854
* appdomain.c:
(set_domain_search_path): allow 'file://blah'. It's an invalid URI,
the right one is 'file:///blah', but MS allows it.
* assembly.c:
(mono_assembly_open): allow 'file://blah'
Fixes bug #40306. Thanks to Mitko Iliev ([email protected]).
svn path=/trunk/mono/; revision=12848
* DataRow.cs:
(BeginEdit): fixed array bound problem when a column has been added.
(EndEdit): just assign proposed to current as proposed is set to null.
This also fixes another array boudn problem.
svn path=/trunk/mcs/; revision=12837
we don't have a proper entry point and our main class is a SWF form. This
makes it possible to compile directly code generated by the VB.NET IDE
svn path=/trunk/mcs/; revision=12833
* MonoXSD.cs: Added support for two command line arguments:
/output: specify the directory to put the generated schema.
/type: specify a specific type in the assembly.
svn path=/trunk/mcs/; revision=12829
* reflection.c (mono_reflection_parse_type): handle deeply nested
types correctly.
* reflection.c (mono_image_create_token): Use unique token values
since they will be put into a hash table.
* class.c (mono_class_setup_vtable): If a method occurs in more than
one place in the vtable, and it gets overriden, then change the
other occurances too.
* marshal.c (mono_marshal_get_managed_wrapper): Added support for
object as return type.
svn path=/trunk/mono/; revision=12825
* Activator.cs (CreateInstance): Call GetConstructor with the right
arguments so the nonPublic argument is handled correctly.
svn path=/trunk/mcs/; revision=12821
* MonoXSD.cs: Add support for having enums as a field in the
class. I overlooked this bit last week.
* makefile: Make it build with debug enabled by default.
svn path=/trunk/mcs/; revision=12801
* UdpClient.cs: don't bind the socket unless .ctor (IPEndPoint) is used.
Added more checks and throws.
Small fixes in Send to avoid duplicating the buffer.
Moved CheckIfDisposed calls to the start of the methods instead of doing
the check inside a finally clause.
svn path=/trunk/mcs/; revision=12798
OVERRIDES actually works, for now.
- Fixed a bug in MyBase invocations (en expression list was passed instead of
an argument list)
- Added 'Is Nothing' relational expression (maybe not working right, must
check)
svn path=/trunk/mcs/; revision=12794
assembly is a WinEXE AND uses System.Windows.Forms AND RootContext.MainClass
is derived from System.Windows.Forms.Form (just like VB.NET does)
svn path=/trunk/mcs/; revision=12793
* added XmlReaderCommonTests.cs which is mostly copied from
XmlTextReaderTests and XmlNodeReaderTests. These tests are removed
from each files.
svn path=/trunk/mcs/; revision=12759
* XmlTextReader.cs : implemented ReadString().
fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
null reference exception when context is null.
* XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
fixed Read() - when positioned at EndElement, it didn't progress.
fixed HasAttribute - it didn't return false in all cases.
fixed Name and LocalName - only limited type of nodes return names.
fixed AttributeCount - in some cases it threw null ref exception.
svn path=/trunk/mcs/; revision=12758
* FloatingPointFormatter.cs: Fixed some bugs for get the same
results than MS.NET. Added simple error recovering, now ToString
will return a general format if there is any exception in the
process of formatting. This make the library more robust while the
formatters are refined.
* DoubleTest.cs: Converted to Nunit 2.0. Completed ToString test.
* icall.c: Deleted "ToString" implementation for double and float
because they are full implemented in managed code.
svn path=/trunk/mono/; revision=12756
* FloatingPointFormatter.cs: Fixed some bugs for get the same
results than MS.NET. Added simple error recovering, now ToString
will return a general format if there is any exception in the
process of formatting. This make the library more robust while the
formatters are refined.
* DoubleTest.cs: Converted to Nunit 2.0. Completed ToString test.
* icall.c: Deleted "ToString" implementation for double and float
because they are full implemented in managed code.
svn path=/trunk/mcs/; revision=12756
* MonoSymbolTable.cs (MethodEntry.LocalNamesAmbiguous): New public
field. Specifies whether two local variables have the same name.
svn path=/trunk/mcs/; revision=12742
* DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
EndEdit and AcceptChanges to act correctly according to DataRowState
and DataRowVersion.
* DataRowCollection.cs: Call AttachRow and DetachRow when a row is
attached and detached from the collection.
svn path=/trunk/mcs/; revision=12728
* ObjRef.cs: Removed some [MonoTODO]
* TypeInfo.cs: Added support for interfaces.
* RemotingServices.cs: Several fixes to support interfaces in proxies.
svn path=/trunk/mcs/; revision=12714
creation message to the right message sink. Added support for AppDomainLevelActivator.
* ConstructionLevelActivator.cs: Activate does not use the object identity because
it may not be set yet.
* ContextLevelActivator.cs: this activator is now always called for CBOs. A new context
has to be created only if the construction message says so.
* AppDomainLevelActivator.cs: Added. Implements an IActivator that makes a remote creation.
svn path=/trunk/mcs/; revision=12713
in the same context as the caller.
* RemotingProxy.cs: added suport for dynamic sinks. Activation code moved to
ActivationServices.
svn path=/trunk/mcs/; revision=12711
* DataColumn.cs: Store empty string for Expression when null is passed in.
Classes generated by XSD.exe passes null by default.
svn path=/trunk/mcs/; revision=12700
* MonoXSD.cs: More refinements. We now support transforming
enumerations as well as arrays to their corresponding XML Schema
type. Read/Write properties will also be transformed (thanks to
reading KeithBa's book). XmlNode is properly handled, and XmlElement
& co. should also be transformed correctly.
Next up: I should look into whether or not xsd.exe makes use of
XmlAttributes. If so, I'll have to support that.
Other than that, this part of MonoXSD should be complete.
svn path=/trunk/mcs/; revision=12695
* Uri.cs: reworked Segment. Small fix in MakeRelative. Throw exception
in Parse when host length is 0 and the Uri is not a file.
svn path=/trunk/mcs/; revision=12690
* UriTest.cs: moved a couple of test to their own method as they fail
with MS runtime. Added new tests for Segment.
svn path=/trunk/mcs/; revision=12689
* appdomain.c: moved Uri handling to assembly.c
* assembly.c: use g_filename_from_uri (). This makes assembly.LoadFrom
work when using a file Uri in *nix and windows.
* icall.c: fixed Assembly.CodeBase to return a valid Uri. The same for
GetReferencedAssemblies.
svn path=/trunk/mono/; revision=12679
* XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
not WriteState.Start, and never call WriteEndDocument().
svn path=/trunk/mcs/; revision=12662
* BaseCompiler.cs: fixed the hack to work under windows.
* CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
svn path=/trunk/mcs/; revision=12659
* Thread.cs: Keep the thread state updated in all the places that
require it. (Suspend, Resume and Interrupt not handled yet)
svn path=/trunk/mcs/; revision=12655
* icall.c: Rename a couple of internal calls
* threads.c: Set the thread state to Stopped when a thread exits.
Fixes bug 39377.
svn path=/trunk/mono/; revision=12654
* FieldTable.cs: Add method to check if all fields have been defined, set referenced fields properties when defining them
* ClassTable.cs: Make sure all methods and fields are defined.
svn path=/trunk/mcs/; revision=12648
* MonoXSD.cs: A simple implementation of MonoXSD. It current
supports creating an XML Schema based on a .NET assembly. The
handling of schema derivation is simplistic.
svn path=/trunk/mcs/; revision=12644
* icall.c (ves_icall_type_is_subtype_of): Avoid vtable creation.
* reflection.c (mono_blob_entry_hash): Avoid reading uninitialized
memory.
(method_encode_clauses): Create exception info structures in the right
order.
(mono_reflection_setup_internal_class): Initialize supertypes field.
* class.c object.c: Handle interfaces which implement other interfaces
correctly.
* class.h class.c: Move the supertypes array initialization code into
a separate function so it can be used for dynamic types too. Also call
it earlier, in mono_class_init(), since it can be used before the
type is initialized.
svn path=/trunk/mono/; revision=12632
* FileSystemWatcher.cs: added attributes and some more implementation.
Now only the guts left to do.
* FileSystemEventArgs.cs:
* RenamedEventArgs.cs: implemented a couple of properties.
svn path=/trunk/mcs/; revision=12627
* System.Data.build: on windows build, ignore
warnings CS0219: "The variable xxx is assigned but its value is
never used" and CS0168: "The variable xxx
is declared but never used"
* System.Data/DataRow.cs: flush
* System.Data/DataSet.cs: start implementation on Clear(),
and WriteXml() should write the start element <?xml ... ?> at the top
of the document
* System.Data/DataTable.cs: TODO/FIXME notes. Start implementation
of Compute() - still not working
svn path=/trunk/mcs/; revision=12626
* UnicodeEncoding.cs: changed WebName from unicodeFFFE to utf-16be.
(unicodeFFFE is MS compliant, but isn't valid IANA encoding name.)
svn path=/trunk/mcs/; revision=12624
* added XmlParserInput.cs for multi xml document sources.
* added DTDObjectModel.cs (maybe temporary).
* XmlTextReader.cs :
+ fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
+ Some members such as LineNumber, ReadChar now uses XmlParserInput.
+ added support for Namespaces (namespace-ignorant parse available).
+ added support for XmlResolver.
+ replace SetReaderContext()/SetReaderFragment() with Initialize().
+ use NameTable in CreateNameString.
+ fixed ReadCData(). Now reads "]]]>" correctly.
+ support for DTD parse.
+ Read() now throws an error when it reached EOF while Depth > 0.
* XmlAttribute.cs,
XmlDocumentFragment.cs,
XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
* XmlDocument.cs : ReadNode() now reads DocumentType.
* XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
* XmlEntity.cs,
XmlNotation.cs : added override LastLinkedChild (for doctype node).
* XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
* XmlElement.cs : bugfix for node removal of set_InnerXml.
* XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
(to append child XmlEntity into XmlDocumentType correctly.)
* XmlInputStream.cs : fixed to access file with FileAccess.Read.
svn path=/trunk/mcs/; revision=12619
* System.Data/DataRowView.cs: in the constructor pass
DataRow in instead of int index of the DataRow
in DataTable.Rows
* System.Data/DataTable.cs: implement sorting
for method Select(filterExpression,sort)
* System.Data/DataView.cs: more implementation -
Now, If Sort, RowFilter, or RowStateFilter is set, an
enumerated DataRowViews will be a view with those
properties applied. Still need to implement event handling
though.
svn path=/trunk/mcs/; revision=12603
* Single.cs:
* Double.cs: Apply changes of .ToString methods.
* SingleFormatter.cs:
* DoubleFormatter.cs: Simple wrappers to FloatingPointFormatter.
* FloatingPointFormatter.cs: New class. Implementation of double and
single formatters. It is unified now and parametrized with precission
values.
svn path=/trunk/mcs/; revision=12589
* X501Name.cs: New. X.501 Distinguished Names stuff
* X509Builder.cs: New. Abstract class for building X.509 related
structures (like certificates and CRLs).
* X509Certificate.cs: New. A more complete class to handle X.509
certificates.
* X509CertificateBuilder.cs: New. Class to build X.509 certificates.
* X509Extension.cs: New. A base class for all X.509 extensions.
* X509Extensions.cs: New. X509Extension collection.
* X520Attributes.cs: New. X.520 attributes (mainly for X501 names)
svn path=/trunk/mcs/; revision=12574
* PrivateKey.cs: New. Class to load or create PVK (PriVate Key)
files (a Microsoft specific file format for private keys).
2003-03-06 Sebastien Pouliot <[email protected]>
* SoftwarePublisherCertificate.cs: New. Class to load or create
SPC files (which are PKCS#7 files containing only certificates
and CRL).
svn path=/trunk/mcs/; revision=12573
* X501Name.cs: New. X.501 Distinguished Names stuff
* X509Certificate.cs: New. A more complete class to handle X.509
certificates.
* X509Extension.cs: New. A base class for all X.509 extensions.
* X509Extensions.cs: New. X509Extension collection.
* X520Attributes.cs: New. X.520 attributes (mainly for X501 names)
svn path=/trunk/mcs/; revision=12561
* ASN1.cs: Improved version.
* ASN1Convert.cs: New. Helper class to convert between .NET
types and ASN.1 structures.
svn path=/trunk/mcs/; revision=12560
I was setting the return to the parent before, but the parent
value was being set to the return type value so it all worked
out but was very confusing.
svn path=/trunk/mcs/; revision=12559
* SqlConnection.cs: if Server in the ConnectionString
is set to "(local", use "localhost" as the hostname
to connect
svn path=/trunk/mcs/; revision=12521
neither String.Empty nor null. Thanks to Simon Guindon for
reporting the bug and Jackson for fixing this bug with me.
svn path=/trunk/mcs/; revision=12518
* XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
* XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
fixed ReadNode(), it should call reader.Read() only on Initial state.
* XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
System.Net.WebClient directly.
* XmlParserContext.cs : baseURI don't be null.
* XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
* XmlUrlResolver.cs : namespace change for XmlInputStream.
svn path=/trunk/mcs/; revision=12517
* XmlTextWriterTests.cs : fixed AttributeWriteAttributeString() in
related to MS bugs. "\r\n" are replaced with Environment.NewLine.
svn path=/trunk/mcs/; revision=12516
* mono-win32-setup.nsi: added NSIS
(NullSoft Installer System) script file for building
a Mono release for Windows NT/2000/XP
svn path=/trunk/mcs/; revision=12511
* makefile: added ByteFX.Data.dll to windows install
* class/library.build: added ByteFX.Data.dll
to windows build. added additional clean targets
* class/Microsoft.VisualC/Microsoft.VisualC.build: fix
windows clean
* class/ByteFX.Data: added directory for ByteFX.Data.dll
which includes a MySQL ADO.NET Provider.
Contributed by Reggie Burnett <[email protected]>
from ByteFX, Inc.
ByteFX.Data 0.6.5 is Copyright 2002-2003, ByteFX, Inc.
Added the following files and directories:
class/ByteFX.Data/AssemblyInfo.cs
class/ByteFX.Data/list
class/ByteFX.Data/ByteFX.Data.build
class/ByteFX.Data/makefile.gnu
class/ByteFX.Data/ChangeLog.txt
class/ByteFX.Data/readme.txt
class/ByteFX.Data/lgpl.txt: new files
BitStream.cs
Connection.cs
Field.cs
Inflater.cs
ConnectionString.cs
HuffmanTree.cs
NamedPipeStream.cs
class/ByteFX.Data/Common: added files to new directory
Driver.cs
command.resx
todo.txt
CommandBuilder.cs
Exception.cs
dataadapter.cs
transcaction.cs
Connection.cs
Field.cs
datareader.cs
Connection.resx
MysqlDefs.cs
parameter.cs
class/ByteFX.Data/mysqlclient: added files to new directory
command.cs
parameter_collection.cs
class/ByteFX.Data/mysqlclient/Designers: added files to new directory
svn path=/trunk/mcs/; revision=12508
* makefile: add ilasm.exe to windows build and add missing assemblies
to windows install
* class/library.build: include PEAPI.dll, Npgsql.dll, and
ICSharpCode.SharpZipLib part of the windows build
svn path=/trunk/mcs/; revision=12506
* System.Data.SqlClient/SqlCommandBuilder.cs:
Change "where" variable name to "whereClause" at the
request of Rhys Weatherley <[email protected]>
svn path=/trunk/mcs/; revision=12488
* debug-mono-symfile.h (MonoSymbolFileLexicalBlockEntry): New type.
(MonoDebugLexicalBlockEntry): New types.
* debug-mono-symfile.c
(_mono_debug_address_from_il_offset): Moved here from ../jit/debug.c.
svn path=/trunk/mono/; revision=12483
Added basic support for lexical scopes. This is just to tell a
debugger that a local variable is only available in a specific
lexical scope and that another variable of the same name may exist
in another lexical scope. See debugger/test/TestLexicalScope.cs
for examples.
* MonoSymbolTable.cs (LexicalScopeEntry): New class.
(LocalVariableEntry): Added `BlockIndex' field which specifies the
lexical scope of this variable.
* MonoSymbolWriter.cs (SourceBlock): Removed, we're now using
LexicalScopeEntry instead.
svn path=/trunk/mcs/; revision=12481
* System.Web/HttpRuntime.cs: Cache no longer have a Dispose method.
* System.Web/HttpServerUtility.cs: removed MonoTODO.
* System.Web.Caching/Cache.cs:
* System.Web.Caching/CacheDefinitions.cs:
* System.Web.Caching/CacheDependency.cs:
* System.Web.Caching/CacheEntry.cs:
* System.Web.Caching/CacheExpires.cs:
* System.Web.Caching/ExpiresBuckets.cs: reformatted, make class status
page happier. Does not work yet (wait for the next patch).
* System.Web.SessionState/HttpSessionState.cs: implemented CodePage.
* System.Web.SessionState/SessionStateModule.cs: initial stuff to make
it work.
svn path=/trunk/mcs/; revision=12480
* io-layer/processes.c: included Jerome Laban's patch and call
SetLastError when the executable is not found.
* metadata/process.c: ret can be any non-zero value accroding to MS doc.
svn path=/trunk/mono/; revision=12475
class's method table.
* CodeGen.cs: Add Method to add methods :p
* MethodTable.cs: Add file, this class is used to add methods to a class.
svn path=/trunk/mcs/; revision=12466
* XmlCustomFormatter.cs: Correct signature, Implement
ToByteArrayBase64
* XmlSerializationWriter.cs: Fix prototype.
* XmlSerializer.cs: Implements Deserialize().
2003-03-12 Elan Feingold <[email protected]>
* XmlTextReader.cs: When throwing a ReaderException, show what
character was the culprit
svn path=/trunk/mcs/; revision=12456
* makefile.gnu : use $RUNTIME for all targets
actually run the compiled program on 'test-gtk' target
* mb-tokenizer.cs : no escaping of chars allowed in VB.NET (old mcs code removed)
handle doubled-doublequotes (VB idiom to escape a doublequote)
svn path=/trunk/mcs/; revision=12436
* XslTransform.cs: Implemented boolean, number and string parameters.
(Node Set and Node Iterator parameters and Extension Objects are left.)
* XsltAttributeList.cs: Loosened access modifiers.
svn path=/trunk/mcs/; revision=12405
* System.Data.SqlClient/SqlDataReader.cs: when
the data reader is closed, this SqlDataReader referenced
in SqlConnection needs to be null
* System.Data.Common/DbDataAdapter.cs: for SelectCommands executed that
have no result set, such as, DDL like CREATE TABLE or DML like INSERT,
the data reader needs to be immediately closed, and 0 returned
as the number of rows added or refreshed
svn path=/trunk/mcs/; revision=12403
* makefile: Removed cert2spc and sn from linux build (as
Mono.Security assembly isn't, yet, part of the linux build).
* makefile.gnu: Removed (not required for tools).
svn path=/trunk/mcs/; revision=12367
* ASN1.cs: Removed - now part of Mono.Security assembly
* cert2spc.cs: Moved to /mcs/tools/security
* secutil.cs: Moved to /mcs/tools/security
svn path=/trunk/mcs/; revision=12362
* ARC4ManagedTest.cs: New. Test vectors for RC4(tm) taken from
usenet and Netscape SSL version 3 implementation details.
* MD2ManagedTest.cs: New. Call tests defined in MD2Test class.
* MD2Test.cs: New. Test vectors defined in RFC1319.
svn path=/trunk/mcs/; revision=12337
* ARC4Managed.cs: New. Implementation of the Alleged RC4(tm)
stream cipher in managed code (required for SSL/TLS).
* CryptoConvert.cs: New. Helper class to help convert between
Windows crypto structures and .NET crypto classes (required
for security tools).
* MD2.cs: New. Abstract class for all MD2 hash implementations.
* MD2Managed.cs: New. Managed implementation of the MD2 hash
algorithm (required for old, but still valid, X.509 certificates).
* RC4.cs: New. Abstract class for all RC4 stream cipher
implementations.
svn path=/trunk/mcs/; revision=12336
* class.c (mono_marshal_load_type_info): Fix buglet: Noticed when
fixing a warning for a miss-used prototype, would have cause
random memory corruption.
svn path=/trunk/mono/; revision=12326
* StreamReaderTest.cs: added test for exception when the nase stream is
closed. Make the reader.CurrentEncoding test work.
svn path=/trunk/mcs/; revision=12320
* HttpWebRequest.cs: implemented IDisposable, make the request stream
read only. Changed the way of disposing the socket.
* HttpWebResponse.cs: wrapped the socket in a write-only NetworkStream,
handle chunked transfer encoding (no more hangs), added serialization
stuff, call CheckDisposed at the beginning of methods/properties (not
in a finally clause).
svn path=/trunk/mcs/; revision=12283
* list.unix: New. All C# files required to build the assembly.
* makefile.gnu: New. Makefile to build the assembly under Linux.
svn path=/trunk/mcs/; revision=12278
* cert2spc.cs: Update to use the new PKCS7 class (from Mono.Security
assembly) and AssemblyInfo.cs. Older version was located in /mcs/tools.
* makefile: New. PROTOTYPE makefile (not tested) for Linux.
* secutil.cs: Updated to use AssemblyInfo.cs. Older version was located
in /mcs/tools.
* sectools.build: New. NAnt build file to build all security tools.
svn path=/trunk/mcs/; revision=12277
* SoftwarePublisherCertificate.cs: New. Class to load or create
SPC files (which are PKCS#7 files containing only certificates
and CRL).
svn path=/trunk/mcs/; revision=12273
* ASN1.cs: Updated ASN1 class (from corlib). This file will,
eventually, be automagically synched with corlib.
* ASN1Convert.cs: New. Helper class to convert from and to
ASN1 structures.
* PKCS7.cs: New. Basic implementation of CMS (Cryptographic
Message Syntax Standard).
svn path=/trunk/mcs/; revision=12272
* AssemblyInfo.cs: New. Global assembly attributes (version and
copyright) for security tools.
* README: New. Important information about the Mono's security tools
svn path=/trunk/mcs/; revision=12268
SmtpMessage - A more sofisticated mail container than MailMessage
MailAddress - A class that represents a mail address
MailAddressCollection - A collection of mail adresses
Theese classes where added to support the funtionality of serveral
recievers and Cc and Bcc. And also to ensure the format of the
address strings.
svn path=/trunk/mcs/; revision=12230
* category.cs (CategoryUtils.CategoryFromName): Use StartsWith
("Is") instead of a substring for (0,2) which was throwing an
exception causing Category.None to be returned
svn path=/trunk/mcs/; revision=12228
* debug-jit.c, debug-jit.h: New files. Moved all JIT-specific
stuff here.
* debug.c (mono_debug_add_method): Moved to debug-jit.c.
(mono_debug_handle, mono_debug_initialized): Made them global.
(replace_suffix): Removed, this isn't used anymore.
(record_line_number): Moved to debug-jit.c.
(debug_generate_method_lines): Moved to debug-jit.c
(generate_line_number): Renamed to
_mono_debug_generate_line_number() and made it global.
(debug_update_il_offsets): Moved to debug-jit.c
(mono_debug_get_image): Renamed to _mono_debug_get_image() and made
it global.
(address_from_il_offset): Renamed to
_mono_debug_address_from_il_offset() and made it global.
(il_offset_from_position): Moved to debug-jit.c
(lookup_method): Renamed to _mono_debug_lookup_method() and made
it global.
(mono_debug_add_method): Moved to debug-jit.c.
(mono_debug_create_notification_function): Use two new functions
mono_debug_codegen_breakpoint() and mono_debug_codegen_ret()
instead of x86_breakpoint() and x86_ret().
svn path=/trunk/mono/; revision=12217
* System.Security.build: Added a new output System.Security_cmp.dll
which links with mscorlib. This version is to be used to generate
the class status web page (required for CorCompare).
svn path=/trunk/mcs/; revision=12200
* makefile: System.Security (corlib) class status now compared
with System.Security_cmp.dll (mscorlib) as required for CorCompare.
svn path=/trunk/mono/; revision=12199
* mb-parser.jay: added rule for Imports with alias
* mb-parser.jay: Friend (internal) modifier was missing,
Shared modifier was expecting Static token erroneously
Modules must accept only a static constructor rule added
Constant declaration rule added
* makefile & makefile.gnu : actually run the compiled program on test target
svn path=/trunk/mcs/; revision=12191
* XmlDocumentFragment.cs, XmlElement.cs :
modified InnerXml (fragment type from Element to DocumentFragment).
* XmlElement.cs : fixed WriteTo() ns check.
* XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
* XmlNode.cs : fixed ConstructNamespaceManager().
* XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
IsPubid with an int arg.
* XmlReader.cs : changed to use XmlChar.cs (its role is as same as
XmlConstructs.cs).
* XmlTextReader.cs :
improved error messages with line info.
/ checking matching start and end tags.
/ prevents the apperance of multiple root elements. (patch by Erik)
fixed and refactored ReadInnerXml() and ReadOuterXml()
changed to use XmlChar.cs.
* XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
(It will help c14n implementation.)
/ blocks multiple attribute output with element node.
svn path=/trunk/mcs/; revision=12186
* System.Data.OracleClient.Oci/IOciDescriptorHandle.cs:
* System.Data.OracleClient.Oci/IOciHandle.cs:
* System.Data.OracleClient.Oci/OciDescriptorType.cs:
Removed. These are no longer used.
* System.Data.OracleClient.Oci/OciParameterDescriptor.cs:
Add new class
* list:
Add System.Data.OracleClient.Oci/OciParameterDescriptor.cs
Rem System.Data.OracleClient.Oci/IOciDescriptorHandle.cs
Rem System.Data.OracleClient.Oci/IOciHandle.cs
Rem System.Data.OracleClient.Oci/OciDescriptorType.cs
* System.Data.OracleClient/OciGlue.cs:
Move the OCIAttrGet* methods into OciHandle
* System.Data.OracleClient/OracleDataReader.cs:
* System.Data.OracleClient/OracleParameter.cs:
Change the way that columns are bound and described
* System.Data.OracleClient.Oci/OciBindHandle.cs:
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
* System.Data.OracleClient.Oci/OciDescriptorHandle.cs:
* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
* System.Data.OracleClient.Oci/OciErrorHandle.cs:
* System.Data.OracleClient.Oci/OciHandle.cs:
* System.Data.OracleClient.Oci/OciLobLocator.cs:
* System.Data.OracleClient.Oci/OciServerHandle.cs:
* System.Data.OracleClient.Oci/OciServiceHandle.cs:
* System.Data.OracleClient.Oci/OciSessionHandle.cs:
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
* System.Data.OracleClient.Oci/OciTransactionHandle.cs:
All handles now derive from OciHandle, and these classes
have been rewritten as such. Also attempted to implement
the Dispose () methods for these classes.
* System.Data.OracleClient.Oci/OciHandleType.cs:
Add descriptor types into here because handles and
descriptors are used in many of the same OCI functions.
svn path=/trunk/mcs/; revision=12176
* NameValueCollection.cs: Uncoment constructor, an old MCS bug
prevented this from working. Removed test for nullitude of col,
as it would have aborted anyways on the dereference in the base
constructor call.
svn path=/trunk/mcs/; revision=12163
* Double.cs: Changed ToString method. Added NumberFormatInfo support
with DoubleFormatter class.
* Single.cs: Changed ToString method. Added NumberFormatInfo support
with SingleFormatter class.
* DoubleFormatter.cs: New class with Double formatting functions.
* SingleFormatter.cs: New class with Single formatting functions.
svn path=/trunk/mono/; revision=12162
* Double.cs: Changed ToString method. Added NumberFormatInfo support
with DoubleFormatter class.
* Single.cs: Changed ToString method. Added NumberFormatInfo support
with SingleFormatter class.
* DoubleFormatter.cs: New class with Double formatting functions.
* SingleFormatter.cs: New class with Single formatting functions.
svn path=/trunk/mcs/; revision=12162
* RSACryptoServiceProvider.cs: Delay keypair generation event when
keysize is a constructor parameter (major speed improvment when
importing keys). Removed NotSupportedException when CspParameter is
used in constructor (required for forthcoming security tools).
svn path=/trunk/mcs/; revision=12161
* System.Security_test.build: Updated build file to stop linking
with MS assemblies (and like with Mono's corlib instead).
svn path=/trunk/mcs/; revision=12159
* DSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
XML generation).
* RSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
XML generation).
* XmlDsigBase64Transform.cs: Fixed problem when using XPath.
svn path=/trunk/mcs/; revision=12158
* System.Security.build: Updated build file to stop linking with
MS assemblies (and like with Mono's corlib instead).
svn path=/trunk/mcs/; revision=12157
* RealProxy.cs: Added stubs for some missing methods.
* RemotingProxy.cs: The activation constructor now creates the ConstructionCall
message and collects the context properties.
Activation of objects now use IActivator instances.
svn path=/trunk/mcs/; revision=12140
Some other minor corrections.
* EnvoyTerminatorSink.cs: Message now redirected to current context's client sink chain.
* MethodCall.cs: Added method for copying messages.
svn path=/trunk/mcs/; revision=12139
Implemented creation of the client context, server context, object and envoy sinks.
Added method for creating a new context.
* CrossContextChannel.cs : Removed check for construction messages. Now construction
go through the IActivators.
svn path=/trunk/mcs/; revision=12137
of activation attributes. This is used by System.Activator.
Added method for creating a ConstructionCall from a list of activation attributes.
This is used from RemotingProxy.
* ConstructionLevelActivator.cs: Added. Implements an IActivator that constructs an object.
* ContextLevelActivator.cs: Added. Implements an IActivator that constructs a context.
* RemoteActivationAttribute.cs: Added.
* RemoteActivator.cs: Used RemoteActivationAttribute in the creation of the server object.
* UrlAttribute.cs: Removed some "throw new NotImplementedException ()".
svn path=/trunk/mcs/; revision=12135
* ObjRef.cs: Added internal helper method for getting the server type of an ObjRef.
* RemotingServices.cs: Implemented Disconnect method. Added support for custom proxy
creating using ProxyAttribute. Added support for activation attributes in creation
of proxies. Some other minor corrections.
* ServerIdentity.cs: minor corrections.
svn path=/trunk/mcs/; revision=12134
* mb-tokenizer.cs : new semi-keywords: Compare, Explicit, Strict, On, Off, Binary, Text
* mb-parser.jay: tokens for above semi-keywords, and rules for option directives
* driver.cs: integrates command line options with parser flags for option directives
* makefile & makefile.gnu : added 'verbose' target that uses --verbose switch to compile
the test source and pipes it through 'less', also added a Extended Syntax source
svn path=/trunk/mcs/; revision=12133
a domain. Added internal call for getting the default context.
* appdomain.h: Added context variable in MonoDomain struct.
* domain.c: mono_domain_set also sets the default context of the domain
* icall.c: Mapped internal method InternalGetDefaultContext.
* object.c: mono_object_get_virtual_method returns always a remoting
wrapper if the object is a transparent proxy.
mono_runtime_invoke_array: when creating an object by calling the
constructor, if the created object is a proxy, then the constructor should
be called using the a remoting wrapper.
svn path=/trunk/mono/; revision=12131
* io.c (CreateFile): Try opening directories readonly, so that
timestamps can be adjusted. Patch by Elan Feingold
<[email protected]>.
svn path=/trunk/mono/; revision=12121
* socket-io.c (create_sockaddr_from_object): Rename sockaddr_un
variable so it compiles on solaris. Problem spotted by
Christopher Taylor <[email protected]>
svn path=/trunk/mono/; revision=12120
* list: added SessionConfig.cs and SessionStateSectionHandler.cs
* System.Web/HttpHelper.cs: store the values in an ArrayList to get
them in correct order.
* System.Web.Configuration/ModuleItem.cs: it's not public.
* System.Web.Configuration/ModulesConfiguration.cs: it's not public.
* System.Web.SessionState/SessionConfig.cs:
* System.Web.SessionState/SessionStateSectionHandler.cs: new files to
read <sessionState> configuration.
svn path=/trunk/mcs/; revision=12118
* DirectoryInfo.cs: changed ToString to match MS behavior.
* Path.cs: further fixes to GetDirectoryName to return null in the
same cases that MS does.
Fixes bug #38387.
svn path=/trunk/mcs/; revision=12105
* DSAKeyValue.cs: New XML generation is commented. Old string technique
did a better job to match MS implementation.
* DataObject.cs: Replaced XML generation from StringBuilder to XmlElement.
* KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
* KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement.
* KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement.
* KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement.
* KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement.
* RSAKeyValue.cs: New XML generation is commented. Old string technique
did a better job to match MS implementation.
* Reference.cs: Replaced XML generation from StringBuilder to XmlElement.
* Signature.cs: Replaced XML generation from StringBuilder to XmlElement.
* SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
* SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement.
* Transform.cs: Replaced XML generation from StringBuilder to XmlElement.
* XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL.
* XmlDsigXPathTransform.cs: Added missing Algorithm URL.
* XmlSignature.cs: New. Private contants (construct similar to WSE).
svn path=/trunk/mcs/; revision=12100
* X509CertificateCollection.cs: Fixed bugs in AddRange
(added the collection not the certificates in the collection).
svn path=/trunk/mcs/; revision=12091
* unix.args: added ModuleResolveEventHandler.cs
* System.Reflection/Assembly.cs: added missing stuff. Only ModuleResolve
event is left out to avoid changing MonoReflectionAssembly by now.
* System.Reflection/ModuleResolveEventHandler.cs: delegate.
svn path=/trunk/mcs/; revision=12083
* ILGenerator.cs (Emit): Add fixup for already created methods and
fields. Do not add fixup for types since their table index do not
change any more.
svn path=/trunk/mcs/; revision=12067
* reflection.h reflection.c: Encode already created dynamic methods
and fields correctly as a DEF instead of a REF.
* reflection.c: Get rid of the force_ref argument to
mono_image_typedef_or_ref since it was wrong in the first place.
svn path=/trunk/mono/; revision=12066
* reflection.c: Emit types in the order their TypeBuilders were
created. Previously, a new table index was assigned to each type before
the tables were emitted. This was wrong because the signature blob
might already refer to a type by its original table index.
svn path=/trunk/mono/; revision=12062
* Socket.cs: patch from Elan Feingold <[email protected]>. Fixes
NullReferenceException when the callback is null.
svn path=/trunk/mcs/; revision=12056
* DateTime.cs: FileTime is expressed in Universal time, and as such must
be converted before subtracting the magic offset.
* DateTime.cs: Strings in the format "2003-02-27T10:05:03-11:00" (note
the timezone at the end) *must* be parsed by DateTime.Parse() for
compatibility with Microsoft.
svn path=/trunk/mcs/; revision=12038
* metadata.c metadata.h (mono_metadata_nesting_typedef): changed to
iterate over the NESTEDCLASS table using a linear search since the
table is not guaranteed to be sorted by the secondary key.
* class.c (mono_class_create_from_typedef): fixed up call to
mono_metadata_nesting_typedef.
svn path=/trunk/mono/; revision=12035
* DataSet.cs: Changed WriteTable so that it now calls the newly written
WriteObjectXml to direct the call to the respective XmlConvert method.
This fixes the wrong format written to XML files of bool, float,
double, DateTime and TimeSpan types.
svn path=/trunk/mcs/; revision=12032
* XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
methods to make them compatible with the XML Schema Spec from W3C
ToString(TimeSpan) is still outstanding
svn path=/trunk/mcs/; revision=12031
* ecore.cs (Expression.MemberLookup): Don't create a
MethodGroupExpr for something which is not a method. Fixes#38291.
svn path=/trunk/mcs/; revision=12027
* System.Data.OracleClient/OracleConnection.cs:
Rollback transactions when connection closes if they
are open.
* System.Data.OracleClient/OracleDataReader.cs:
Implement GetOracleLob ()
* System.Data.OracleClient/OracleLob.cs:
Implement some of the details, like Read/Write/Seek
* System.Data.OracleClient.Oci/OciBindHandle.cs:
Remove debug message.
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Add LOB support.
* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
Minor formatting changes
* System.Data.OracleClient.Oci/OciLobLocator.cs:
Huge amounts of code to make it work. Lots of ugly
OCI P/Invoke code.
* Test/TestOracleClient.cs:
Improve the LOBTest.
svn path=/trunk/mcs/; revision=12021
* TypeBuilder.cs (DefineInitializedData): Removed unnecessary assignments.
* ModuleBuilder.cs (DefineInitializedData): Do not call
TypeBuilder::DefineInitializedData since that would mean defining a
nested type of the global type, which is wrong. Instead define a
new public type as MS does.
* ModuleBuilder.cs (DefineUninitializedData): Ditto.
svn path=/trunk/mcs/; revision=11999
* ActivatorTest.cs: Unregister the channel like it should.
* MarshalByRefTest.cs: Take out my hack.
Both from Jean-Marc Andr [[email protected]].
svn path=/trunk/mcs/; revision=11995
* class.cs (MemberBase.CheckParameters): Also check that the type
is unmanaged if it is a pointer.
* expression.cs (SizeOf.Resolve): Add location information.
* statement.cs (Block.EmitMeta): Flag error (208) if a pointer to
a managed type is declared.
svn path=/trunk/mcs/; revision=11983
* MemoryStream.cs:
(ToArray): return only the portion of the buffer that contains
data, not the whole buffer. (note: this makes XmlDocument.Load work
again with documents that have a <?xml without the 'encoding'
attribute, which makes gtk-sharp generator work again).
svn path=/trunk/mcs/; revision=11979
* class.cs: Very sad. Am backing out the speed up changes
introduced by the ArrayList -> Array in the TypeContainer, as they
were not actually that much faster, and introduced a bug (no error
reports on duplicated methods).
svn path=/trunk/mcs/; revision=11977
Although we are resolving for LValues, we will let the Assign code
take care of that (it will be called again from Resolve). This
basically allows code like this:
class X { X operator + (X x, object o) {} X this [int idx] { get; set; } }
class Y { void A (X x) { x [0] += o; }
The problem was that the indexer was trying to resolve for
set_Item (idx, object o) and never finding one. The real set_Item
was set_Item (idx, X). By delaying the process we get the right
semantics.
Fixes bug: 36505
svn path=/trunk/mcs/; revision=11973
* assign.cs (CompoundAssign.DoLResolve): Resolve the original
source first, this will guarantee that we have a valid expression
before calling in lower levels functions that will require a
resolved object. Then use this original_source in the
target.ResolveLValue instead of the original source that was
passed to us.
svn path=/trunk/mcs/; revision=11972
* DbDataAdapter.cs: Added support for filling when schema is present.
Fixed incorrect behavior when ColumnMapping is present
when more than one fields have the same name. Implemented Dispose.
Fixed error when there is no ColumnMapping at all.
Still have some problems in finding the correct TableMapping
because the SourceTable name is not present in BuildSchema
svn path=/trunk/mcs/; revision=11963
* DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
* DataRelationCollection.cs: Implemented AddRange and Contains.
Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
Reimplemented most Add methods to eliminate duplicated checks.
Centralized RelationName generation procedure in GetNextDefaultRelationName.
svn path=/trunk/mcs/; revision=11945
* DataColumn.cs: Fixed wrong storage representation of Expression
(using empty string instead of null) so that ToString() returns nothing.
* DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
auto column naming now works as expected. Reimplemented some Add methods
to eliminate code duplication.
svn path=/trunk/mcs/; revision=11943
* DbDataAdapter.cs: The original code might pass a null DataTableMapping
value which is then used to create a RowUpdatingEventArgs
instance. So RowUpdatingEvent handler (for instance
CommandBuilder) could get null DataTableMapping which
might be unexpected. The patch makes sure that a non-null
DataTableMapping is passed.
svn path=/trunk/mcs/; revision=11930
* statement.cs (Block.Emit): Override this and set ec.CurrentBlock
while calling DoEmit ().
* codegen.cs (EmitContext.Mark): Don't mark locations in other
source files; if you use the #line directive inside a method, the
compiler stops emitting line numbers for the debugger until it
reaches the end of the method or another #line directive which
restores the original file.
svn path=/trunk/mcs/; revision=11880
* statement.cs (Block.AddChildVariableNames): We need to call this
recursively, not just for our immediate children.
svn path=/trunk/mcs/; revision=11868
* class.cs (Event.Define): Always make the field private, like csc does.
* typemanager.cs (TypeManager.RealMemberLookup): Make events
actually work, fixes bug #37521.
svn path=/trunk/mcs/; revision=11867
When adding any tests here, please do also add them to the
README.tests !
The following tests are still missing:
test-176 test-177 test-179 test-180 test-181 test-182 test-183
test-184
svn path=/trunk/mcs/; revision=11864
* delegate.cs: When creating the various temporary "Parameters"
classes, make sure that we call the ComputeAndDefineParameterTypes
on those new parameters (just like we do with the formal ones), to
allow them to be resolved in the context of the DeclSpace.
This fixes the bug that Dick observed in Bugzilla #38530.
svn path=/trunk/mcs/; revision=11857
* expression.cs (ResolveMemberAccess): When resolving a constant,
do not attempt to pull a constant if the value was not able to
generate a valid constant.
* const.cs (LookupConstantValue): Do not report more errors than required.
svn path=/trunk/mcs/; revision=11848
* class.cs : As, per vbc, there is a rootnamespace now, --main wasn't working anymore,
because it was expecting a fully qualified class name.
We now also test the name passed prepended by the rootnamespace.
* class.cs : Corrected warning "The keyword new is required on `Mono.CSharp.Property.Emit'
because it hides inherited member `PropertyBase.Emit'", by making it virtual
in PropertyBase and override in Property.
* makefile.gnu : test and test-gtk targets now depend on mbas.exe
svn path=/trunk/mcs/; revision=11845
* reflection.c: define RTSpecialName automatically for constructors for
compatibility with MS.NET.
* reflection.c (mono_reflection_create_runtime_class): initialize
nested_in field of dynamically created classes.
svn path=/trunk/mono/; revision=11840
* System.Data.OracleClient/OracleDateTime.cs:
* System.Data.OracleClient/OracleInfoMessageEventArgs.cs:
* System.Data.OracleClient/OracleInfoMessageEventHandler.cs:
* System.Data.OracleClient/OracleMonthSpan.cs:
* System.Data.OracleClient/OraclePermission.cs:
* System.Data.OracleClient/OraclePermissionAttribute.cs:
* System.Data.OracleClient/OracleTimeSpan.cs:
* System.Data.OracleClient.Oci/IOciDescriptorHandle.cs:
* System.Data.OracleClient.Oci/OciDescriptorHandle.cs:
* System.Data.OracleClient.Oci/OciLobLocator.cs:
New classes added. Some based on .NET docs,
others (internal) based on getting some LOB
support (doesn't actually work yet).
* list:
Add new files
* System.Data.OracleClient/OracleBFile.cs:
* System.Data.OracleClient/OracleBinary.cs:
* System.Data.OracleClient/OracleLob.cs:
* System.Data.OracleClient/OracleNumber.cs:
* System.Data.OracleClient/OracleString.cs:
Change handling of NULL object based on new
discovery.
* System.Data.OracleClient/OracleCommand.cs:
* System.Data.OracleClient/OracleDataReader.cs:
Typo fix.
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
Add some code to handle LOBs. Still more to
come.
* Test/TestOracleClient.cs:
New test for LOB added.
svn path=/trunk/mcs/; revision=11828
* appdomain.h appdomain.c:
(mono_domain_try_type_resolve): split the
name_or_tb argument into a name and a tb argument.
(mono_domain_has_type_resolve): new function to check whenever the
application has registered a TypeResolve event handler.
* icall.c reflection.h reflection.c: move the type resolve logic into
mono_reflection_get_type () so it will be invoked when
Assembly::GetType () is called.
* reflection.c:
(mono_reflection_get_type): renamed to get_type_internal.
(mono_reflection_get_type): fixed type name generation so it works
for nested types too.
(mono_reflection_get_type): call has_type_resolve () to avoid the
costly type name generation if there is no resolve event handler.
svn path=/trunk/mono/; revision=11813
* processes.c (GetCurrentProcessId): Use the current process
handle to return the process ID, as getpid() is unreliable
(linuxthreads gives each thread a different pid). Fixes bug
37550.
svn path=/trunk/mono/; revision=11804
invocation for the Mono runtime.
Dick and Paolo reported:
pthread remappes the sigrtmin signal, so it needs to be loaded from the start of the lifetime of the app
svn path=/trunk/mono/; revision=11801
* All: Updated tests for NUnit2. Some big tests where splited in
smaller ones.
* XmlDsigC14NTransformTest.cs: New, but almost empty, test suite.
* XmlDsigC14NWithCommentsTransformTest.cs: New, but almost empty,
test suite.
svn path=/trunk/mcs/; revision=11751
* DataTable.cs: DataTable.CaseSensitive follows parent
DataSet.CaseSensitive property if DataTable.CaseSensitive has never
been changed directly from DataTable
svn path=/trunk/mcs/; revision=11744
* mb-parser.jay : eliminated reduce/reduce conflict on duplicated rank_specifier rule
by renaming the one using brackets to bracketed_rank_specifier
svn path=/trunk/mcs/; revision=11728
* RemotingProxy.cs: Added new constructor for client activated objects.
Added method that handles construction messages.
svn path=/trunk/mcs/; revision=11727
* ServerContextTerminatorSink.cs: Added support for construction messages.
* MethodCall.cs: Implemented serialization support. Added support for IInternalMessage.
* MethodDictionary.cs: Added support for IInternalMessage.
* MethodResponse.cs: Added serialization support. Added support for IInternalMessage.
* MonoMethodMessage.cs: Added support for IInternalMessage.
* ReturnMessage.cs: Added support for IInternalMessage.
* ClientContextTerminatorSink.cs: Added.
* ConstructionCall.cs: Added.
* ConstructionCallDictionary.cs: Added.
* ConstructionResponse.cs: Added.
* EnvoyTerminatorSink.cs: Added.
svn path=/trunk/mcs/; revision=11726
* ObjRef.cs: Implemented EnvoySink property
* RemotingConfiguration.cs: now enables proxy creation for types registered
as ClientActivatedType or WellKnownClientType.
* RemotingServices.cs: Added support for ContextBoundObjects.
Added methods for creating proxies.
* ServerIdentity.cs: Added initialization of envoy sink.
* EnvoyInfo.cs: Added. It is an implementation on IEnvoyInfo.
svn path=/trunk/mcs/; revision=11722
used to cache the managed methods used to create proxies and make
remote invocation of methods.
* class.h: Added in MonoVTable a flag to indicate that a class needs
to be remotely created.
* object.c: Modified the method mono_class_vtable(). It now initializes
the remote flag of the vtable. Modified mono_object_new_specific(),
so now it checks the remote flag.
* icall.c: Added a couple of internal methods, one for enabling instance
creation interception for a type, and one for creating objects bypassing
the remote check.
svn path=/trunk/mono/; revision=11721
* InternalDataCollectionBase.cs: revert change to field
to fix build
* DataViewManager.cs
* DataView.cs
* DataTable.cs
* DataSet.cs: commented use of DesignerAttribute
because it broke the build. According to MSDN,
DesignerAttribute does not have a zero-argument constructor
svn path=/trunk/mcs/; revision=11716
* System.Data.OracleClient/OciBindHandle.cs:
* list:
Add new class
* System.Data.OracleClient/OracleCommand.cs:
Add transaction logic for rollback/commit,
attaching to oracle service context, and a
couple of test cases.
Add Parameter handling
* System.Data.OracleClient/OracleDataReader.cs:
Change GetValue call
* System.Data.OracleClient/OracleParameter.cs:
Make this work
* System.Data.OracleClient/OracleType.cs:
Add values to enum
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Add GetValue call which is used by data reader
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
Add parameter logic
* Test/TestOracleClient.cs:
Add some new test cases.
svn path=/trunk/mcs/; revision=11709
* class.cs: Changed all the various members that can be part of a
class from being an ArrayList to be an Array of the right type.
During the DefineType type_list, interface_list, delegate_list and
enum_list are turned into types, interfaces, delegates and enums
arrays.
And during the member population, indexer_list, event_list,
constant_list, field_list, instance_constructor_list, method_list,
operator_list and property_list are turned into their real arrays.
Although we could probably perform this operation earlier, for
good error reporting we need to keep the lists and remove the
lists for longer than required.
This optimization was triggered by Paolo profiling the compiler
speed on the output of `gen-sample-program.pl' perl script.
* decl.cs (DeclSpace.ResolveType): Set the ContainerType, so we do
not crash in methods like MemberLookupFailed that use this field.
This problem arises when the compiler fails to resolve a type
during interface type definition for example.
svn path=/trunk/mcs/; revision=11708
* debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethodToken):
New interncall to get a method's metadata token.
* icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethodToken"):
New interncall for the debugger.
svn path=/trunk/mono/; revision=11702
* MonoSymbolTable.cs (MethodIndexEntry): New public struct.
* MonoSymbolFile.cs (MonoSymbolFile.GetMethodByToken): New method.
svn path=/trunk/mcs/; revision=11700
* XmlSchemaAnnotation.cs : expect the correct closing tag on <appinfo>
and <documentation> elements. (patch by Peter Pentchev)
* XmlSchemaObjectEnumerator.cs : cast properly to XmlSchemaObject
instead of XmlSchema. (patch by Peter Pentchev)
svn path=/trunk/mcs/; revision=11699
* FileStream.cs: Make FileMode.Append work, and check for Seeking
back over old data (undocumented ms behaviour, throws an exception
if you try). Fixes bug 35975.
svn path=/trunk/mcs/; revision=11693
* MonoSymbolFile.cs (MonoSymbolFile.Assembly): New public property.
* MonoSymbolTable.cs (MethodEntry.MethodBase): New public property.
(MethodEntry.LocalTypes): New public variable.
svn path=/trunk/mcs/; revision=11688
* MonoSymbolFile.cs (MethodEntry.ThisTypeIndex): Renamed to
ClassTypeIndex; provide this for all methods so we can get the
class of static methods.
svn path=/trunk/mcs/; revision=11685
Compress some code
* CheckSum.cs: Access Lfanew through property not field.
* CorHeader.cs: Convert to class, use Read and Write methods.
* DOSHeader.cs: Convert to class, use Read and Write methods,
and Init method for creating new DOSHeaders
* DataDir.cs: Convert to class, use Read and Write methods.
* Image.cs: Access lfanew through property, add Write method.
* PEHeader.cs: Convert to class, use Read and Write methods.
* PEUtils.cs: Add GetString method for converting byte pointers
to strings.
* RVA.cs: Add Write method
* Section.cs: Use PEUtils.GetString method instead of new string (byte*)
* makefuile.gnu: Compile all the files I want compiled ;-)
svn path=/trunk/mcs/; revision=11683
* Rows.cs: Cast a bunch of enums to int when displaying
them otherwise an Exception is thrown.,
this is probably a bug but I haven't had
time to track it down yet.
* StringHeap.cs: Use PEUtils.GetString instead of new string (byte*)
svn path=/trunk/mcs/; revision=11682
* DataTableRelationCollection.cs: removed file
because its internally in file DataRelationCollection.cs
2003-02-18 Alan Tam <[email protected]>
* DataRelation.cs: Added storage required to hold the relations.
Checking of constraints are not implemented yet.
* DataRelationCollection.cs: Implemented DataSetRelationCollection
and DataTableRelationCollection, both as inner class of the abstract class
DataRelationCollection (like Microsoft although not documented in ECMA).
* DataRow.cs: Implemented GetChildRows in a extremely slow way.
Need to implement caching like Microsoft later.
* DataSet.cs: Uncomment DataRelation related members. Uncomment
code for Nested XML. Implemented WriteTable(XmlWriter, DataRow[],
XmlWriteMode) for use of Nested XML. Fixed a wrong modifier in
GetSerializationData.
* DataTable.cs: Uncomment DataRelation related members.
svn path=/trunk/mcs/; revision=11670
* System.Data.OracleClient/OracleCommand.cs:
* System.Data.OracleClient/OracleTransaction.cs:
* System.Data.OracleClient.Oci/OciTransactionHandle.cs:
* Test/TestOracleClient.cs:
Add transaction logic for rollback/commit,
attaching to oracle service context, and a
couple of test cases.
svn path=/trunk/mcs/; revision=11669
* XmlDocument.cs:
(Load (string)): hack to workaround some issues with Uri.Parse. Once
Parse is fixed, remove the hack.
svn path=/trunk/mcs/; revision=11659
* System.Web/HttpApplicationFactory.cs: Global.asax takes precedence
over global.asax if it exists.
* System.Web/HttpRequest.cs: use allowCrossAppMapping in MapPath.
* System.Web.Hosting/AppDomainFactory.cs: Web.config takes precedence
over web.config.
* System.Web.Hosting/ApplicationHost.cs: removed hacks to work around
an old bug.
svn path=/trunk/mcs/; revision=11649
* System.Web/HttpApplication.cs: CreateHttpHandler is now internal.
* System.Web/HttpRequest.cs: allow setting QueryStringRaw, which
invalidates the data obtained from the previous value. Added internal
SetFilePath method.
* System.Web/HttpServerUtility.cs: implemented Execute and GetLastError.
* System.Web.Configuration/HandlerFactoryConfiguration.cs: first search
in the mappings of this instance, then in the parent.
svn path=/trunk/mcs/; revision=11642
* FileStream.cs: Don't close the handle if the stream doesn't own
it. Patch from Raymond Penners ([email protected]), bug
35623.
svn path=/trunk/mcs/; revision=11641
* reflection.c:
(assembly_name_to_aname): jump over unknown properties (i've found
something like: 'type, assembly, version=xxx, custom=null, public...',
so now will ignore custom=null and still get the rest of the values).
svn path=/trunk/mono/; revision=11640
* System/AppDomain.cs: implemented GetCurrentThreadId ().
* System.Threading/Thread.cs: made the thread_id for the current thread
accesible through an internal property.
svn path=/trunk/mcs/; revision=11638
* threads.c: Have Thread.Start() wait for a semaphore to signal
that the thread has set up all its local data. This fixes bug
34323, where Abort() raced the new thread's TLS data.
Also removes the handle_store() call from start_wrapper, because
threads are now always created suspended and there is no longer a
race between the parent and child threads to store the info.
svn path=/trunk/mono/; revision=11637
* Thread.cs: Added the Start semaphore field to the class. Update
the thread state after Start() has returned, not before.
svn path=/trunk/mcs/; revision=11636
* icall.c:
(GetEntryAssembly): if the domain has not invoked
AppDomain.ExecuteAssembly yet, return the assembly of the default
AppDomain.
svn path=/trunk/mono/; revision=11632
* typemanager.cs (IsSpecialMethod): The correct way of figuring
out if a method is special is to see if it is declared in a
property or event, or whether it is one of the predefined operator
names. This should fix correctly #36804.
svn path=/trunk/mcs/; revision=11630
* Socket.cs: make Worker.Connect and Receive work with non-blocking
sockets. May be Receive* and Send* in Worker need to do the same. I'll
wait for bug reports. Set IsCompleted to true before invoking the end
callback. Fixes bug #38136.
svn path=/trunk/mcs/; revision=11629
* TdsConnection.cs: - parse data source for 2 possible uses:
"Server=hostname",
"Server=hostname,port" and open the connection based on the
resulting server name and port.
svn path=/trunk/mcs/; revision=11626
* SybaseConnection.cs: - parse data source for 2 possible uses:
"Server=hostname",
"Server=hostname,port" and open the connection based on the
resulting server name and port.
svn path=/trunk/mcs/; revision=11625
* TestSqlConnection.cs: added test file
to test SqlClient, SybaseClient, and TdsClient
and connections
* System.Data_test.build: excluded
TestSqlConnection.cs from NUnit tests
svn path=/trunk/mcs/; revision=11624
* ChangeLog: added this file
* SqlConnection.cs: - parse data source for 3 possible uses:
"Server=hostname",
"Server=hostname\\instancename",
"Server=hostname,port" and open the connection based on the
resulting server name and port.
- Added support for named instances
by discovery of the sql server tcp port via the sql monitor (udp port 1434)
thanks to Phillip Jerkins ([email protected]) contribution.
Also, thanks to Gonzalo and Tim for their help with timeouts.
svn path=/trunk/mcs/; revision=11623
* SqlSharpCli.cs: fix typos and when the
provider is set to oracle, it should default
to not using the simple reader
svn path=/trunk/mcs/; revision=11616
* sqlsharpgtk.cs: fixes to get data
from an Oracle 8i database via
Mono's System.Data.OracleClient. It
can only output the results to the TextView
because the Oracle provider does not have
a data adapter yet.
svn path=/trunk/mcs/; revision=11615
* System.Data.OracleClient.Oci/OciStatementHandle.cs
* System.Data.OracleClient.Oci/OciColumnInfo.cs
* System.Data.OracleClient/OciGlue.cs
* System.Data.OracleClient/OracleDataReader.cs: fixes
to display character data in SQL# command-line
and GTK# versions
* Test/TestOracleClient.cs: updated test to
include reading data via the OracleDataReader
* System.Data.OracleClient/OracleConnection.cs: removed
debug code
svn path=/trunk/mcs/; revision=11614
The goal here is to remove the dependency on EmptyCast.Peel ().
Killing it completely.
The problem is that currently in a number of places where
constants are expected, we have to "probe" for an EmptyCast, and
Peel, which is not the correct thing to do, as this will be
repetitive and will likely lead to errors.
The idea is to remove any EmptyCasts that are used in casts that
can be reduced to constants, so we only have to cope with
constants.
This bug hunt was triggered by Bug 37363 and the desire to remove
the duplicate pattern where we were "peeling" emptycasts to check
whether they were constants. Now constants will always be
constants.
* ecore.cs: Use an enumconstant here instead of wrapping with
EmptyCast.
* expression.cs (Cast.TryReduce): Ah, the tricky EnumConstant was
throwing me off. By handling this we can get rid of a few hacks.
* statement.cs (Switch): Removed Peel() code.
svn path=/trunk/mcs/; revision=11610
* image.c, image.h, class.c, assembly.c: move module loading
to MonoImage. When loading metadata, consider alignemnet from
the start of metadata, not from the metadata address in memory.
svn path=/trunk/mono/; revision=11605
* list: forgot to add this one.
* System.Web.Compilation/AspGenerator.cs: corrected typo and wrong fix.
* System.Web.UI/Control.cs: have i definitely fixed naming container
stuff this time?
* System.Web.UI/LosFormatter.cs: activated binary serialization code.
* System.Web.UI.WebControls/ButtonColumn.cs: fixed a couple of infinite
loop problems and render correctly the header of the column.
* System.Web.UI.WebControls/DataGridTableInternal.cs: don't assign a
default ID to this control.
* System.Web.UI.WebControls/LinkButton.cs: raise bubble event in
OnCommand.
* System.Web.UI.WebControls/TableCellCollection.cs: fixed the index
returned by Add.
* System.Web.UI.WebControls/TableRowCollection.cs: ditto.
svn path=/trunk/mcs/; revision=11601
* class-status.in: Added assembly System.Security and link to crypto
status page.
* crypto: Corrected html typo (too bold ;-).
svn path=/trunk/mono/; revision=11596
* delegate.cs: The signature for EndInvoke should contain any ref
or out parameters as well. We were not doing this in the past.
svn path=/trunk/mcs/; revision=11591
* x86.brg: Implemented CONV_OVF_[I|U]4 (freg), this fixes the issues
with the "checked" keyword. Closes bugs #33421 and #35280 (JIT not mint)
svn path=/trunk/mono/; revision=11582
* checked.cs: New test that tests that the runtime throws correct overflow
exceptions during execution of checked keyword.
svn path=/trunk/mono/; revision=11576
* Control.cs:
(AddedControl): fixed default id assignation when the sequence of
AddedControl until it's included in the page or one of its controls
does not pass through a naming container.
svn path=/trunk/mcs/; revision=11573
* System.Data.OracleClient.Oci/OciColumnInfo.cs:
* System.Data.OracleClient.Oci/OciDataType.cs:
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
* list:
New classes added
* System.Data.OracleClient/OciGlue.cs:
Changes to AttrGet functions
* System.Data.OracleClient/OracleCommand.cs:
* System.Data.OracleClient/OracleDataReader.cs:
Start some work on getting data reader going
* System.Data.OracleClient.Oci/OciAttributeType.cs:
Add DisplayName
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
Add code to get schema for query, as well as
define output values.
svn path=/trunk/mcs/; revision=11571
* AspElements.cs: get the property Type for controls that use
ParseChildren with a property name.
* AspGenerator.cs: generate correct signature for the method that
adds controls to the default property in ParseChildren.
svn path=/trunk/mcs/; revision=11552
* reflection.c (mono_reflection_get_custom_attrs): Added support for
AssemblyBuilder objects. Factored out custom attribute creation into
a separate function.
(create_custom_attr): new function to create custom attributes.
svn path=/trunk/mono/; revision=11551
* ActivatorTest.cs:
* MarshalByRefTest.cs: New unit tests from Jean-Marc Andr
[[email protected]]. One failure on .NET in the latter.
svn path=/trunk/mcs/; revision=11547
* GlobalizationConfiguration.cs: added internal fields to hold the
values in the globalization node.
* GlobalizationConfigurationHandler.cs: handler to load
<system.web/globalization> section.
svn path=/trunk/mcs/; revision=11543
* HttpApplication.cs: only execute the EndRequest step on error
condition or request marked as completed. This prevent page events from
being called when, for example, the url authorization module forbids
the request.
svn path=/trunk/mcs/; revision=11541
* ecore.cs (FieldExpr.AddressOf): In the particular case of This
and structs, we do not want to load the instance variable
svn path=/trunk/mcs/; revision=11540
* Makefile.am: Got tired of typing the full pathname to pedump.
Until there is another option, am installing this.
svn path=/trunk/mono/; revision=11534
* ecore.cs (ImplicitReferenceConversion,
ImplicitReferenceConversionExists): enum_type has to be handled
like an object reference (implicit conversions exists from this to
object), but the regular IsClass and IsValueType tests will never
return true for this one.
Also we use TypeManager.IsValueType instead of type.IsValueType,
just for consistency with the rest of the code (this is only
needed if we ever use the construct exposed by test-180.cs inside
corlib, which we dont today).
svn path=/trunk/mcs/; revision=11533
* added argument.cs (extracted from expression.cs) makefiles corrected
* mb-parser.jay : eliminated reduce/reduce conflict on opt_argument_list rule,
by putting and if to make a argument list with just an empty argument list become an empty list
svn path=/trunk/mcs/; revision=11524
* list: added AuthorizationConfig and AuthorizationConfigHandler.
* System.Web/HttpRequest.cs: implemented the indexer.
* System.Web.Configuration/AuthorizationConfigHandler.cs: handler for
system.web/authorization section.
* System.Web.Configuration/AuthorizationConfig.cs: keeps record of
authorization configuration.
* System.Web.Security/FormsAuthentication.cs: implemented
RedirectFromLoginPage and GetRedirectUrl.
* System.Web.Security/FormsAuthenticationModule.cs: redirect to the
login page when a 401 error happens.
* System.Web.Security/UrlAuthorizationModule.cs: check for valid user
or render error page.
svn path=/trunk/mcs/; revision=11512
* configure.in: added check for sys/un.h.
* mono/metadata/socket-io.c: support AF_UNIX and use the same layout as
MS, not the one they documented (bytes 0 and 1 are the family).
svn path=/trunk/mono/; revision=11511
* System.Data.SqlClient/SqlConnection.cs:
* System.Data.SqlClient/SqlDataReader.cs:
Close the data reader properly, and be sure
to close the data reader when the connection
is closed.
svn path=/trunk/mcs/; revision=11492
* threads-types.h:
* monitor.c: Rewrote Monitor, making lock much faster and
Pulse/Wait work as specified. Also uses much fewer handles, and only
creates them as needed.
* exception.c: Added SynchronizationLockException
* threads.c: Deleted old Monitor implementation. The new one is
in a new file.
2003-02-11 Dick Porter <[email protected]>
* timefuncs.h:
* timefuncs.c: Added GetTickCount()
svn path=/trunk/mono/; revision=11483
* trampoline.c (arch_create_jit_trampoline): This function should
allways return a trampoline for managed methods. Fixes bug #29859.
svn path=/trunk/mono/; revision=11480
* list: added a couple of new files.
* System.Web/HtmlizedException.cs: base class for exceptions that makes
it easy to generate error pages.
* System.Web/HttpException.cs: improved error displaying.
* System.Web/HttpRuntime.cs: removed debugging output.
* System.Web.Compilation/AspGenerator.cs: throw ParseException on parse
error.
* System.Web.Compilation/AspParser.cs: added Line and Column props.
* System.Web.Compilation/CompilationException.cs: derives now from
HtmlizedException.
* System.Web.Compilation/CompilationResult.cs: added fileName field.
Fixed set_ExitCode.
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs: pass the file name in
the CompilationResult.
* System.Web.Compilation/ParseException.cs: new exception.
svn path=/trunk/mcs/; revision=11467
* library.build:
Disable OracleClient build on Windows so that I don't
break the build. I'm developing on Linux at present.
svn path=/trunk/mcs/; revision=11456
* class.c: handled TypedReference type code. Set the correct size for
class data. Setup interface_offsets for interface classes, too.
svn path=/trunk/mono/; revision=11447
* Mono.CSharp.Debugger.build: passing the /r using an 'arg' node works.
The <include> node wasn't getting to the compiler. This fixes build
breakage on cygwin.
* MonoSymbolFile.cs: Qualify which Min method. Fixes build breakage
on cygwin.
svn path=/trunk/mcs/; revision=11441
* ConstructorBuilder.cs:
- Added basic error checking to all methods according to the MSDN docs.
- modified a lot of methods to throw NotSupportedException, to comply
with MS.NET.
svn path=/trunk/mcs/; revision=11440
* TypeBuilder.cs:
- Added basic error checking to all methods according to the MSDN docs.
- fixed AssemblyQualifiedName.
- implemented 'Size'.
- modified a lot of methods to throw NotSupportedException, to comply
with MS.NET.
- changes tested by running a full bootstrap.
svn path=/trunk/mcs/; revision=11437
* InstrBase.cs: Take a Class instead of CodeGen when emiting
* Method.cs: Replace MethodInfo property with MethodBuilder property,
Add resolve method
* Instructions.cs: Take Class instead of CodeGen when emitting,
get member methods from Class.
* TypeManager.cs: Add set indexer
svn path=/trunk/mcs/; revision=11431
* AssemblyBuilder.cs (AssemblyBuilder.methods): Removed. This was
a hack for the symbol writer which is no longer needed.
svn path=/trunk/mcs/; revision=11423
* namespace.cs (Namespace..ctor): Added SourceFile argument.
(Namespace.DefineNamespaces): New static public method; this is
called when we're compiling with debugging to add all namespaces
to the symbol file.
* tree.cs (Tree.RecordNamespace): Added SourceFile argument and
pass it to the Namespace's .ctor.
* symbolwriter.cs (SymbolWriter.OpenMethod): Added TypeContainer
and MethodBase arguments; pass the namespace ID to the symwriter;
pass the MethodBase instead of the token to the symwriter.
(SymbolWriter.DefineNamespace): New method to add a namespace to
the symbol file.
svn path=/trunk/mcs/; revision=11419
* MonoSymbolWrtier.cs (SourceFile): Derive from SourceFileEntry.
(SourceBlock): We don't need source lines here.
(SourceMethod): We're always constructed with source info.
* MonoSymbolTable.cs: Added support for namespaces.
(NamespaceEntry): New struct.
(SourceFileEntry.DefineNamespace): New method.
(MethodEntry.BuildLineNumberTable): The table is already sorted,
so we don't need to do this here.
svn path=/trunk/mcs/; revision=11417
* interp.c: added a dummy mono_runtime_install_handlers function to
avoid crashing when ves_pinvoke_method tries to call it.
svn path=/trunk/mono/; revision=11411
* symbolwriter.cs: New file. This is a wrapper around
ISymbolWriter with a cleaner API. We'll dynamically Invoke()
methods here in near future.
svn path=/trunk/mcs/; revision=11410
* codegen.cs (EmitContext.Mark): Just pass the arguments to
ILGenerator.MarkSequencePoint() which are actually used by the
symbol writer.
svn path=/trunk/mcs/; revision=11407
* IMonoSymbolWriter.cs (MarkSequencePoint): New method which takes
just the required arguments as scalars, not arrays.
* ILGenerator.cs (ILGenerator.MarkSequencePoint): Use that new
interface method; unnecessarily creating such a large number of
arrays is both slow and too memory consuming.
svn path=/trunk/mcs/; revision=11406
* location.cs (SourceFile): New public sealed class. This
contains the name and an index which is used in the location's token.
(Location): Reserve an appropriate number of bits in the token for
the source file instead of walking over that list, this gives us a
really huge performance improvement when compiling with debugging.
* driver.cs (Driver.parse, Driver.tokenize_file): Take a
`SourceFile' argument instead of a string.
(Driver.ProcessFile): Add all the files via Location.AddFile(),
but don't parse/tokenize here, we need to generate the list of all
source files before we do that.
(Driver.ProcessFiles): New static function. Parses/tokenizes all
the files.
* cs-parser.jay (CSharpParser): Take a `SourceFile' argument
instead of a string.
* cs-tokenizer.cs (Tokenizer): Take `SourceFile' argument instead
of a string.
svn path=/trunk/mcs/; revision=11405
* loader.c: implemented MEMBERREF_PARENT_TYPEDEF.
* metadata.c, reflection.c: missing MONO_TYPE_TYPEDBYREF handling.
* object.c: fixed mono_object_get_virtual_method () for interfaces.
* verify.c: check for code that runs after the end of the method.
svn path=/trunk/mono/; revision=11398
* Control.cs: give different default names depending on the place where
it is assigned. Implemented ResolveURl (no more ~ rendered in
attributes!).
svn path=/trunk/mcs/; revision=11392
* System.Data.OracleClient/OciGlueLib_BCC_win32.make:
* System.Data.OracleClient/OciGlueLib_MSVC_win32.make:
change name of library to ociglue.dll
* System.Data.OracleClient/ociglue.c:
Use the "database" parameter as TNSNAME.
* System.Data.OracleClient/OciGlue.cs:
Change DllImport from "System.Data.OracleClient.ociglue.dll" to
"ociglue".
* System.Data.OracleClient/OciGlueLib_GCC_linux.make:
added makefile for ociglue shared lib on Linux platform
and compiler gcc.
svn path=/trunk/mcs/; revision=11387
* CodeGen.cs: Add TypeManager attribute
* InstrBase.cs: Take a CodeGen in Emit method
* Instructions.cs: Take a CodeGen in Emit method, handle arg lists better
* Method.cs: Handle local variables better
svn path=/trunk/mcs/; revision=11382
* System.Data.OracleClient/OciGlueLib_GCC_linux.make:
added makefile for ociglue shared lib on Linux platform
and compiler gcc.
svn path=/trunk/mcs/; revision=11381
* MethodBuilder.cs: Added error checking to methods so they conform to
MSDN docs. Implemented 'GetModule' and 'CallingConvention' members.
Some other tweaks to improve compatibility with MS .NET.
* TypeBuilder.cs: Added 'is_created' property which will be used for
checking 'type is already created' errors.
svn path=/trunk/mcs/; revision=11354
* CryptoTools.cs: Renamed namespace to match new location.
* PKCS1.cs: Renamed namespace to match new location.
* HMACAlgorithm.cs: New. Generic class to implement HMAC
using any hash algorithm (was in S.S.C.HMACSHA1.cs).
* MACAlgorithm.cs: New. Generic class to implement MAC
using any symmetric algorithm (was in S.S.C.MACTripleDES.cs).
svn path=/trunk/mcs/; revision=11346
* MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): New public
static method, returns null (without throwing an exception) if the
assembly doesn't have any debugging info.
svn path=/trunk/mcs/; revision=11312
* debug-mono-symfile.c: Reflected latest symwriter changes.
(mono_debug_create_mono_symbol_file): Removed.
(mono_debug_open_mono_symbol_file): Take an argument which
specifies whether to create a dynamic symbol file.
svn path=/trunk/mono/; revision=11310
* driver.cs: Removed the `--debug-args' command line argument.
* codegen.cs (CodeGen.SaveSymbols): Removed, this is now done
automatically by the AsssemblyBuilder.
(CodeGen.InitializeSymbolWriter): We don't need to call any
initialization function on the symbol writer anymore. This method
doesn't take any arguments.
svn path=/trunk/mcs/; revision=11301
* ModuleBuilder.cs (.ctor): Added `bool IsMainModule' argument.
(Save): New internal method; creates the module's symbol file if
we're compiling with debugging information.
* AssemblyBuilder.cs (EmbedResource): Added internal overloaded
version of this method which takes a `byte[] blob' instead of a file.
(DefineDynamicMethod): If this is the first module, tell the
ModuleBuilder that this is the main module.
(Save): Call a new interncall `build_metadata' to create the final
metadata and save all the symbol files before creating the actual
output.
* IMonoSymbolWriter.cs: New public class; it is in the namespace
Mono.CSharp.Debugger. The Mono symbol writer implements this interface.
svn path=/trunk/mcs/; revision=11299
* reflection.c (mono_image_build_metadata): Make this public,
protect it against being called multiple times, don't create
resources and don't build the compressed metadata here.
(mono_image_create_pefile): Do this here.
* icall.c
("System.Reflection.Emit.AssemblyBuilder::build_metadata"): Added.
svn path=/trunk/mono/; revision=11298
* MonoSymbolFile.cs: The symbol file is now a resource in the
assembly instead of a separate file.
* MonoSymbolTable.cs: Did a few more cleanups, sort the line
number table and remove duplicate line numbers.
svn path=/trunk/mcs/; revision=11295
Removed implementation of CreateObjRef. Now it is implemented in the derived classes.
* ServerIdentity.cs: Added implementation of CreateObjRef.
* RemotingServices.cs: Changed implementation of GetRemoteObject and GetClientIdentity.
Now they only have and ObjRef as input parameter. This is the objref received from
the server. Unmarshal() also checks if the objref is for a well known object.
In this case, a proxy is always created, but if not, it tries to get the real object.
* ObjRef.cs: Added some flags that have info for marshalling/unmarshalling.
Changed behavior of IsPossibleToCAD. Now returns false. Returning true makes serialization
of this ObjRef to fail in the target AD. Added method UpdateChannelInfo.
svn path=/trunk/mcs/; revision=11292
* marshal.c (mono_marshal_get_remoting_invoke_with_check): new
function. works like remoting invoke, but does a check for the Proxy first.
svn path=/trunk/mono/; revision=11271
* library.build: added Mono.Security.Win32 to build, test and
clean. There's no makefile.gnu for this assembly as it is
specific to Win32.
svn path=/trunk/mcs/; revision=11266
* MD2CryptoServiceProviderTest.cs: New. Run the MD2Test
unit tests using MD2CryptoServiceProvider class.
* MD2Test.cs: New. Implement the test vectors included
in RFC1319.
* MD4CryptoServiceProviderTest.cs: New. Run the MD4Test
unit tests using MD4CryptoServiceProvider class.
* MD4Test.cs: New. Implement the test vectors included
in RFC1320.
* MD5CryptoServiceProviderTest.cs: New. Run the MD5Test
unit tests using MD5CryptoServiceProvider class.
* MD5Test.cs: New. Implement the test vectors included
in RFC1321.
* RandomNumberGeneratorTest.cs: New. FIPS140 randomness
tests.
* SHA1CryptoServiceProviderTest.cs: New. Run the SHA1Test
unit tests using SHA1CryptoServiceProvider class.
* SHA1Test.cs: New. Implement the test vectors included
in FIPS186.
svn path=/trunk/mcs/; revision=11263
* HttpApplication.cs: display the error instead of hanging when we get
any error before the last step of the request.
svn path=/trunk/mcs/; revision=11261
* CapiContext.cs: New. Class to acquire and release an
unmanaged context with CryptoAPI.
* CapiHash.cs: New. Base class to handle hash algorithms.
* CapiRandomNumberGenerator.cs: New. Base class to handle
random number generation.
* CryptoAPI.cs: Wrapper class around CryptoAPI.
* MD2.cs: Abstract class for Message Digest 2 (RFC1319).
* MD2CryptoServiceProvider.cs: Unmanaged MD2 implementation.
* MD4.cs: Abstract class for Message Digest 4 (RFC1320).
* MD4CryptoServiceProvider.cs: Unmanaged MD4 implementation.
* MD5CryptoServiceProvider.cs: Unmanaged MD5 implementation.
* RNGCryptoServiceProvider.cs: Unmanaged RNG implementation.
* MD2CryptoServiceProvider.cs: Unmanaged SHA1 implementation.
svn path=/trunk/mcs/; revision=11259
* Mono.Security.Win32.build: New. NAnt build file. As this
assembly works only on Windows there are no makefile.gnu.
* README: New. Describe how to use (and not to use) this
assembly.
svn path=/trunk/mcs/; revision=11258
* System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSink.cs:
* System.Runtime.Remoting.Channels.Tcp/TcpMessageIO.cs:
* System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs:
Change MessageType to MessageStatus so the code is
more clear
svn path=/trunk/mcs/; revision=11254
* marshal.c (mono_marshal_get_native_wrapper): only allocate an
array of pointers.
(mono_marshal_get_ldfld_wrapper): only generate necessary ldfld wrappers.
(mono_marshal_get_stfld_wrapper): only generate necessary stfld wrappers.
svn path=/trunk/mono/; revision=11242
* object.c (mono_store_remote_field_new): used by the new jit
instead of mono_store_remote_field
(mono_load_remote_field_new): used by the new jit
instead of mono_load_remote_field
svn path=/trunk/mono/; revision=11241
* appdomain.c: changed unload to take the domain id instead
of domain
* icall.c: changed icall for AppDomain.Unload to AppDomain.InternalUnload
svn path=/trunk/mono/; revision=11237
* CryptoConfig.cs: Added initital support for "machine.config"
(limited to algorithms, not OIDs). Modified CreateFromName to use
the fully qualified class names (and removed xmldsig hack). Added
algorithm names documented in book ".NET Framework Security".
svn path=/trunk/mcs/; revision=11228
Modified the symbol file format to speed up method looks by name
and cleaned this up a lot.
* MonoSymbolFile.cs: New public class. This is now a public class
and writes and reads the symbol file.
* IMonoBinaryReader.cs: Removed.
* MonoSymbolTable.cs: Set version number to 29.
svn path=/trunk/mcs/; revision=11223
* FileTest.cs: Have setup remove files before testing as well in case
tests were interrupted before TearDown could be called in a previous
run. Also test for specific exception in TestGetCreationTime ().
svn path=/trunk/mcs/; revision=11209
* configure.in: added check for sys/un.h.
* mono/metadata/socket-io.c: support AF_UNIX and use the same layout as
MS, not the one they documented (bytes 0 and 1 are the family).
svn path=/trunk/mono/; revision=11207
* ReturnMessage.cs: Removed internal dependence to MonoMethodMessage. It is not needed now.
* MonoMethodMessage.cs: Now only has method call keys in the dictionary.
* MethodReturnDictionary.cs, MethodCallDictionary.cs: Made public the list of
method keys. This list is used in MessageFormatter.
* MethodDictionary.cs: Corrected some minor bugs.
* MethodCall.cs: minor correction on constructor.
svn path=/trunk/mcs/; revision=11199
* LeaseSink.cs: implemented renewal of lease.
* Lease.cs: Added. It is an implementation of ILease.
* LeaseManager.cs: Added. Tracks lifetime of remote objects.
svn path=/trunk/mcs/; revision=11198
* ServerIdentity.cs: added. Implements identity funtionality specific to server objects
* RemotingServices.cs: Modified to work with new types of identities.
* RemotingConfiguration.cs: Modified to work with new types of identities.
* ObjRef.cs: Added initialization of channel info in default constructor.
* Identity.cs: Added support for WellKnownService objects.
svn path=/trunk/mcs/; revision=11196
* reflection.c: added support for SignatureHelper tokens, which is
needed by the Calli opcode.
* reflection.h: track changes to SignatureHelper class.
* metadata.c (mono_metadata_parse_signature): handle dynamic tokens.
svn path=/trunk/mono/; revision=11192
* PasswordDeriveBytesTest.cs: Added some new tests to complete
coverage.
* RSAPKCS1SignatureDeformatterTest.cs: Added test for null and
invalid hash algorithm.
svn path=/trunk/mcs/; revision=11188
* PasswordDeriveBytes.cs: Finally got the derivation right. The
class can now derive keys up to 1000 * HashSize (same limit as MS).
* RSAPKCS1SignatureDeformatter.cs: No need to create the hash object
in this class - the OID is enough.
svn path=/trunk/mcs/; revision=11187
* rootcontext.cs : added RootNamespace member
* mb-parser.jay : use RootContext.RootNamespace to initialize outermost namespace
* driver.cs :
- implement rootnamespace parameter, and defaults it to the output file name
- like vbc if no source file name is provided just show help
svn path=/trunk/mcs/; revision=11179
* RemotingServices.cs:
(GetMethodBaseFromMethodMessage): fixed to make it also work with
internal methods without MethodSignature (see ApplicationHost.cs).
svn path=/trunk/mcs/; revision=11178
* corlib.build: fixes so corlib_cmp and corlib_res builds, need to
check if we need the libs and if they still are correct.
svn path=/trunk/mcs/; revision=11169
* MethodResponse.cs: Implemented
* MethodCall.cs: added support for Cross appdomain messages, implemented some
missing methods.
* MethodDictionary.cs: made serializible and added methods to get internal properties.
* MonoMethodMessage.cs: internal dictionary is now serializible
* ReturnMessage.cs: made serializible
* ErrorMessage.cs: typo fix
* CADMessage.cs: new file, implements cross appdomain messages, both call and return.
Princip of this classes is to move unmutable objects and primitivs between appdomains
without marshalling. This increase performance a lot of the cross appdomain channel.
svn path=/trunk/mcs/; revision=11161
* RealProxy.cs: changed excption behavior and added serialization helpers,
changed so it don't create a new TP for each gettp call.
* RemotingProxy.cs: added functions to short cut calls to GetHashCode and GetType,
same behavior as MS.
svn path=/trunk/mcs/; revision=11157
* appdomain.[c|h], domain.c :
- Added support for getting a domain via domain id
- Support for setting and getting domain from System.AppDomain
(used in cross appdomain channel)
- Added support for get/set for a MonoAppContext on a thread
(Context class in System.Runtime.Remoting.Contexts),
- Removed hack in Get/SetData and ExecuteAssembly.
* icall.c : renamed GetTransparantProxy to InternalGetTransparantProxy to allow
the managed world to get control when a proxy is created.
* icall.c (ves_icall_InternalExecute) : bug fix, must return empty array
svn path=/trunk/mono/; revision=11156
* System.Web.Compilation/AspParser.cs: the parser fires events when it
parses an element.
* System.Web.UI/SimpleWebHandlerParser.cs:
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs:
* System.Web.Compilation/AspElements.cs: modified to use the new parser
interface.
* System.Web.Compilation/AspGenerator.cs: modified to use the new
parser. Merge multiple text strings into one single LiteralControl.
* System.Web.Compilation/AspTokenizer.cs: added Line and Column properties.
svn path=/trunk/mcs/; revision=11146
* debug.c (mono_debug_add_wrapper): Lookup the wrapper method in a
hash table; we need to provide the correct code_size.
svn path=/trunk/mono/; revision=11137
* jit.c (mono_jit_compile_method): Call mono_debug_add_wrapper()
to add the interncall to the symbol file.
* debug.c (mono_debug_add_wrapper): New public function.
svn path=/trunk/mono/; revision=11126
* Class.cs: Test for entry point of methods, and set Assembly entrypoint
* CodeGen.cs: Add method to set an Assemblys entry point
* Method.cs: Add IsEntryPoint property
* Method.cs Add MethodInfo property, and set this while Emiting
* Instructions.cs: Add new InstrCall instruction
svn path=/trunk/mcs/; revision=11118
* AsymmetricSignatureFormatter.cs: Call abstract SetHashAlgorithm
when CreateSignature(hash) is called.
* CryptoStream.cs: Fixed some issues in constructor.
* DSACryptoServiceProvider.cs: Fixed a bug (1 chance in 256) that
a signature could be less than 40 bytes (which is invalid).
svn path=/trunk/mcs/; revision=11107
* Modules.cs: Oups - not implemented. Added MonoTODO to most methods
so it's real status get reflected correctly on the web site.
svn path=/trunk/mcs/; revision=11106
grammar (even if it still needs a hook in the parser).
Event declaration has been added
Fixed a few bugs in the grammar and in FixuPtypes, a helper function used
to declare fields and local vars.
svn path=/trunk/mcs/; revision=11091
* MemoryStream.cs: use BlockCopyInternal instead of Array.Copy, this is
the same way as MS does it (performance improvement)
svn path=/trunk/mcs/; revision=11077
* ArrayList.cs (RemoveAt): duplicated the the code from RemoveRange
here, since RemoveAt raises a different exception than RemoveRange
when the index is out-of-range. Fixes the ArrayList unit tests.
* ArrayList.cs (RemoveRange): fixed indentation.
svn path=/trunk/mcs/; revision=11075
* X509CertificateCollection.cs: Replaced the use of the private
ArrayList by the protected InnerList (from CollectionBase) so
Count property now works.
svn path=/trunk/mcs/; revision=11072
* TimeZoneTest.cs: Added "Eastern Standard Time" to the test.
This won't be complete until all time zone are added (added a
Fail for unsupported TimeZones).
svn path=/trunk/mcs/; revision=11071
* StringBuilder.cs: fix the constructor: 'value' can be NULL,
'capacity' must be >=0, use defaultCapacity only if capacity equals 0.
This fixes the StringBuilder unit tests.
svn path=/trunk/mcs/; revision=11069
* ExpressionElement.cs: Added new file. This file is for parsing
and DataData.Select () -methods and DataColumn.Expression -property
* DataTable.cs: Implemented Select(string) -method
svn path=/trunk/mcs/; revision=11060
* ByteTest.cs: Updated Setup to support my Locale. Better but
probably still incomplete.
* DoubleTest.cs: Updated Setup to support my Locale. You can now
use a comma (or anything else) instead of a dot (.).
* ConvertTest.cs: Updated TestToDecimal and TestToDouble to
support my Locale. You can now use a comma (or anything else)
instead of a dot (.).
svn path=/trunk/mcs/; revision=11037
* BrowsableAttribute.cs: this attribute applies to All. Since the fix
to bug #37380, mcs complained about this when compiling System.Data.
svn path=/trunk/mcs/; revision=11036
* System/MonoCustomAttrs.cs: fixed shortcut in GetCustomAttributes.
The argument ICustomAttributeProvider can be of other types different
from Type. Handle it.
* System.Reflection/MonoMethod.cs: implemented GetBaseDefinition ().
* System.Reflection.Emit/MethodBuilder.cs: GetBaseDefinition () returns
this.
Fixes bug #37380.
svn path=/trunk/mcs/; revision=11035
* MonoMethod.cs: Added support for serialization for MonoMethod and MonoCMethod
* ReflectionSerializationHolder.cs: Support class for serialization
svn path=/trunk/mcs/; revision=11030
* Directory.cs (GetFileSystemEntries): moved error handling to the
correct instance of GetFileSystemEntries so all callers can enjoy it.
svn path=/trunk/mcs/; revision=11029
* makefile.gnu: compile and run with debugging enabled.
* makefile.gnu: added SUBDIR variable to enable building a subset of
the tests, saving on compilation time during development.
* run_test.sh: updated to nunit2.
svn path=/trunk/mcs/; revision=11028
* System.Web/HttpRequest.cs: added BaseVirtualDir property and use it
in MapPath.
* System.Web.UI.HtmlControls/HtmlControl.cs: _tagName is now internal.
* System.Web.UI.HtmlControls/HtmlGenericControl.cs: use the field in
HtmlControl to keep the tag name.
* System.Web.Util/UrlUtils.cs: fixed Combine ().
svn path=/trunk/mcs/; revision=11027
* RemotingConfiguration.cs: Implemented most of methods (Configure is not working yet).
* ObjRef.cs: Added initialization of channel info in default constructor.
* Identity.cs: Added support for WellKnownService objects.
svn path=/trunk/mcs/; revision=11020
* marshal.c, marshal.h: use larger integers in mono_mb_emit_add_to_local()
to avoid overflows (bug spotted and fixed by Jerome Laban <[email protected]>).
svn path=/trunk/mono/; revision=11002
* Npgsql.build: got it to work for Windows build
* Npgsql/Npgsql.build
* Npgsql/Npgsql.cmbx
* Npgsql/Npgsql.prjx: removed files not needed
svn path=/trunk/mcs/; revision=11001
* added the Npgsql (Npgsql is a .Net Data Provider for PostgreSQL)
from http://gborg.postgresql.org/project/npgsql/projdisplay.php
by adding the following files and directories to the mcs module
in mono-cvs.ximian.com at mcs/class:
Npgsql (directory)
ChangeLog
Makefile
Npgsql.build
RELEASENOTES.txt
TODO.txt
makefile.gnu
LICENSE.txt
README.txt
STATUS.txt
list
Npgsql/Npgsql (directory)
Npgsql/AssemblyInfo.cs
Npgsql/NpgsqlAsciiRow.cs
Npgsql/NpgsqlBackEndKeyData.cs
Npgsql/NpgsqlClosedState.cs
Npgsql/NpgsqlCommand.cs
Npgsql/NpgsqlConnectedState.cs
Npgsql/NpgsqlConnection.cs
Npgsql/NpgsqlConnector.cs
Npgsql/NpgsqlConnectorPool.cs
Npgsql/NpgsqlDataAdapter.cs
Npgsql/NpgsqlDataReader.cs
Npgsql/NpgsqlEventLog.cs
Npgsql/NpgsqlException.cs
Npgsql/NpgsqlMediator.cs
Npgsql/NpgsqlMessageTypes.cs
Npgsql/NpgsqlParameter.cs
Npgsql/NpgsqlParameterCollection.cs
Npgsql/NpgsqlPasswordPacket.cs
Npgsql/NpgsqlQuery.cs
Npgsql/NpgsqlReadyState.cs
Npgsql/NpgsqlResultSet.cs
Npgsql/NpgsqlRowDescription.cs
Npgsql/NpgsqlStartupPacket.cs
Npgsql/NpgsqlStartupState.cs
Npgsql/NpgsqlState.cs
Npgsql/NpgsqlTransaction.cs
Npgsql/PGUtil.cs
svn path=/trunk/mcs/; revision=11000
* configure.in: added WIN32_THREADS flag when building under windows.
It seems that the header files of the gc do not always define it when
GC_WIN32_THREADS is defined.
svn path=/trunk/mono/; revision=10993
* DateTime.cs: fix FromFileTime so the time returned by
File::GetLastModificationTime etc. is in the correct timezone.
svn path=/trunk/mcs/; revision=10985
* RemotingSurrogateSelector.cs: Added serialization support for MBR's.
* RemotingSurrogate.cs: Moved ObjRefSurrogate and MBRSurrogate to new file.
* ErrorMessage.cs: Dummy used when an exception occours.
* MonoMethodMessage.cs: Added Serializable and support for be created with null methods
svn path=/trunk/mcs/; revision=10979
* ArrayTest.cs: Avoid nulls in arrays. This crashes mono.
* ConsoleTest.cs: Ignore some tests that hang mono.
* ConvertTest.cs: Ignore some tests that hang mono.
svn path=/trunk/mcs/; revision=10969
* exception.c (ves_icall_get_trace): avoid crash if the exception is
not yet thrown.
* exception.c (ves_icall_get_trace): avoid crash on unmanaged frames.
svn path=/trunk/mono/; revision=10960
* icall.c: (ves_icall_System_CurrentTimeZone_GetTimeZoneData): raise an
exception instead of going into an infinite loop on dates which it
can't yet handle.
* string-icalls.c (ves_icall_System_String_get_Chars): raise
out-of-range exception if needed.
* class.c (mono_class_setup_vtable): allow a virtual method to provide
an implementation for an interface method and to override an inherited
method at the same time.
Imagine a scenario when a virtual method is used to override a
virtual abstract method in a parent class, and this same method
provides an implementation for an method inherited from an interface.
In this case, the interface resolution code will set im->slot, which
means that the virtual method override pass will skip this method
which means a pointer to the abstract method inherited from the parent
will remain in the vtable of this non-abstract class.
* class.c: (mono_class_setup_vtable): continue search for a real
method if only an abstract method is found.
svn path=/trunk/mono/; revision=10959
* IListControl.cs : A private class hacked.
* PagedControl.cs : Fixed typo error (OnPageChange)
* List.cs : Stubbed almost all methods. Will
implement tommorrow. Time to sleep.
* MobileListItemCollection.cs
: Finally, a collection class will bite
me all. ;-)
svn path=/trunk/mcs/; revision=10955
* List.cs, PagedControl.cs
: Was I drunk? or Sleeping when I wrote
the classes? I mixed up the methods.
Reorganizing.
* PagedControl.cs : Completed.
svn path=/trunk/mcs/; revision=10954
* class.c (mono_class_setup_vtable): pass the override info as an
argument.
* class.c (mono_class_setup_vtable): set the slot of overriding methods
correctly.
* reflection.c (ensure_runtime_vtable); add support for method
overrides.
svn path=/trunk/mono/; revision=10949
* reflection.c (resolution_scope_from_image): Hack to work to work with
dynamic assemblies.
* reflection.c (mono_image_typedef_or_ref): renamed to ..._aux and
added a 'force_ref' argument to force this function to allways return
a TypeRef. This is needed by mono_image_get_memberref_token ().
svn path=/trunk/mono/; revision=10948
* reflection.c (mono_image_get_type_info): interfaces really don't have
a parent.
* reflection.c (mono_image_basic_init): fill out missing fields of
image structure.
* reflection.c (mono_image_basic_init): Invoke assembly load hooks for
dynamic assemblies. This is required so dynamic assemblies show up in
AppDomain.GetAssemblies (), emit an AssembyLoadEvent, gets searched by
Type::GetType() etc. This is consistent with MS behaviour.
* image.c image.h reflection.c: add newly created classes to the name
cache so mono_class_get () will find them.
svn path=/trunk/mono/; revision=10946
First part of changes to get IKVM.NET running under mono.
* appdomain.h, appdomain.c: added new function
mono_domain_try_type_resolve() which will emit TypeResolve events.
This function will call AppDomain::DoTypeResolve to do the actual work.
* class.h, class.c, loader.c, object.c, reflection.h, reflection.c:
moved existing code dealing with dynamic tokens to a new function
called mono_reflection_lookup_dynamic_token (). This function will
raise TypeResolve events when appropriate. Since reflection.c is not
part of libmetadata, a new hook function called
mono_lookup_dynamic_token() is added to class.c which will call this.
* assembly.h assembly.c: make the invoke_load_hook function public,
so it can be called for dynamic assemblies.
* icall.c (ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor): skip interfaces since they do not have initializers.
* icall.c (ves_icall_type_from_name): emit a TypeResolve event if the
type isn't found.
* reflection.c reflection.h: change MonoDynamicAssembly.tokens to a
MonoGHashTable, since it contains pointers to objects which the GC
needs to track.
* assembly.c (search_loaded): remove unused variable.
svn path=/trunk/mono/; revision=10944
* expression.cs (IndexerAccess.DoResolve): Before trying to resolve
any indexer, it's needed to build a list with all the indexers in the
hierarchy (AllGetters), else we have problems. Fixes#35653.
svn path=/trunk/mcs/; revision=10932
* AssemblyBuilder.cs (Save): Set the executable bit at the end.
This uses a non-official enumeration value to call SetFileAttributes.
svn path=/trunk/mcs/; revision=10928
* io.c (SetFileAttributes): This routine is not currently
implemented for the general case, but I added a special case to
set the executable bit on Linux.
svn path=/trunk/mono/; revision=10926
* System.Data/DataColumn.cs: fix to not check for DataType being set
* System.Data/DataRow.cs: misc fixes
* Test/SqlTest.cs: accept connection parameters from
command line instead of being hard coded
* Test/System.Data_test.build: exclude building SqlTest.cs
* Test/System.Data/DataRowTest.cs
* Test/System.Data/DataColumnTest.cs: added new tests and numbered
all the tests so they can be easily identified
* Test/System.Data/DataRelationTest.cs: commented code that calls
DataSet's BeginEdit() and EndEdit() which causes a compile error
svn path=/trunk/mcs/; revision=10916
* DbEnumerator.cs: why does the runtime throw an invalid cast here? The
object is an Int16... Gotta fill a bug report and when fixed undo this
patch.
svn path=/trunk/mcs/; revision=10914
* DataGrid.cs: AutoGenerateColumns defaults to true. Fixed
CreateColumnSet. Set the owner of the column when auto generated.
In PrepareControlHierarchyForItem, fixed for loop bound.
* LinkButtonInternal.cs: fixed infinite recursion bug.
Fixes bug #37124.
svn path=/trunk/mcs/; revision=10910
* threads.c (start_wrapper): Moved the initialization of
`start_func' above the mono_new_thread_init() call to which we
pass it as argument.
svn path=/trunk/mono/; revision=10886
* System.Data/DataColumn.cs: fixes to be like .NET -
when setting AllowDBNull to false, determine if there is
any data that has DBNull.Value, implement AutoIncrement, do not
allow changing the DataType of the column if data has already been
set, check if the DataType is supported,
* System.Data/DataColumnCollection.cs: handle default ColumnName
like .NET
* System.Data/DataRow.cs: fixes to be like .NET - a
data column gets initialized to all DBNull.Values not null,
implement AutoIncrement, when setting ItemArray if the item array being
set has less items than the number of columns in the table set those last
columns to DBNull.Value, after setting ItemArray values do an EndEdit(),
both a null and DBNull.Value get set to a DBNull.Value, only use DefaultValue
and AutoIncrement if the value is set to null while DBNull.Value only gets set
to DBNull.Value
svn path=/trunk/mcs/; revision=10882
* ObjectReader.cs (ReadNextObject): Call
RaiseDeserializationEvent() on the ObjectManager when we're done
reading the whole graph.
svn path=/trunk/mcs/; revision=10873
* Math.cs: Remove Pow's implementation body as it was wrong. The
C code does the right thing. The code was trying to handle a
number of cases, and that was incorrect.
svn path=/trunk/mcs/; revision=10869
* UniqueConstraint.cs: Do not set columns Unique property true
as a default.
* ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
svn path=/trunk/mcs/; revision=10867
* XslTransform.cs: don't free the xml document used for the style sheet.
xmlFreeStylesheet already does it. Correctly close the element tag for
elements that don't have children. Added a couple of checks more.
svn path=/trunk/mcs/; revision=10858
Cast functions (CStr(), CBool(), etc) supported
ByRef parameters now work
A few fixes for optional parameters and structure declaration
String concatenation operator supported (to be debugged)
svn path=/trunk/mcs/; revision=10849
* XslTransform.cs: fixed a couple of Transform overloads and changed the
library name in DllImport to make it work on windows too.
svn path=/trunk/mcs/; revision=10841
Fixes bugs 34263 and 31333.
(All tests still behave the same way - 4 fails)
2003-01-23 Dick Porter <[email protected]>
* threads.c (start_wrapper): Create a Thread object if needed, so
the Main() thread can do the class initialisation in a subthread
that has been set up to allow managed code execution.
Pass the thread ID instead of the MonoThread pointer to the thread
start and attach callbacks. This change is required, because the
jit thread start callback must be called _before_ the Thread
object can be created.
(mono_thread_init): Removed much object creation code that is no
longer needed. No managed code is called from here now.
* object.c (mono_runtime_exec_managed_code): Create a subthread
for Main, and call back to the runtime to use it.
Set the exit code when Main exits.
* gc.c: Make sure domain finalisation happens in a subthread.
Re-enable threaded GC, fixing bug 31333 (again).
* environment.c: System.Environment internall calls (so far just
ExitCode is here, the others are still in icall.c)
* appdomain.c (mono_runtime_cleanup): All threads running managed
code should have finished before mono_runtime_cleanup() is
reached, so no need to clean up threads.
2003-01-23 Dick Porter <[email protected]>
* mono.c: Use mono_runtime_exec_managed_code() to run all managed
code in a subthread.
* jit.c: Changed thread start and attach callbacks to pass the
thread ID, not the MonoThread pointer. Arrange that managed code
execution will fail an assertion in the main thread, just to be
sure.
2003-01-23 Dick Porter <[email protected]>
* interp.c: Use mono_runtime_exec_managed_code() to run all
managed code in a subthread.
svn path=/trunk/mono/; revision=10838
This is a compiler for the MonoBASIC language,
which is a superset of Visual Basic.NET
Usage: mbas [options] SOURCE-FILES
Options:
-? --help Show this help list
--about About the MonoBASIC compiler
--addmodule=PARAM [NOT IMPLEMENTED YET]Reference metadata from specified module
--baseaddress=PARAM [NOT IMPLEMENTED YET]The base address for a library or module (hex)
--bugreport=PARAM [NOT IMPLEMENTED YET]Create bug report file
--checked [Mono] Set default context to checked
-d --define=PARAM [NOT IMPLEMENTED YET]Declares global conditional compilation symbol(s). symbol list:name=value,...
--debug Emit debugging information
--debug-args=PARAM [Mono] Debugger arguments
--debug:full Emit full debugging information (default)
--debug:pdbonly [IGNORED]Emit PDB file only
--delaysign [NOT IMPLEMENTED YET]Delay-sign the assembly using only the public portion of the strong name key
--fatal [Mono] Makes errors fatal
--ignorewarn=PARAM [Mono] Ignores warning number PARAM
--imports=PARAM [NOT IMPLEMENTED YET]Declare global Imports for namespaces in referenced metadata files. import list:namespace,...
--keycontainer=PARAM [NOT IMPLEMENTED YET]Specifies a strong name key container
--keyfile=PARAM [NOT IMPLEMENTED YET]Specifies a strong name key file
--libpath=PARAM [NOT IMPLEMENTED YET]List of directories to search for metada references (semi-colon delimited)
--linkpaths=PARAM [Mono] Adds path to the assembly link path
--linkresource=PARAM [NOT IMPLEMENTED YET]Adds the specified file as an embedded assembly resource
-m --main=PARAM Specifies the Class or Module that contains Sub Main.It can also be a Class that inherits from System.Windows.Forms.Form.
--noconfig [Mono] Disables implicit references to assemblies
--nologo [NOT IMPLEMENTED YET]Do not display compiler copyright banner
--nostdlib [Mono] Don't assume the standard library
--nowarn Disable warnings
-o --out=PARAM Specifies the output file name
--optimize [NOT IMPLEMENTED YET]Enable optimizations
--optioncompare:binary [NOT IMPLEMENTED YET]Specifies binary-style string comparisons. This is the default
--optioncompare:text [NOT IMPLEMENTED YET]Specifies text-style string comparisons.
--optionexplicit [NOT IMPLEMENTED YET]Require explicit declaration of variables
--optionstrict [NOT IMPLEMENTED YET]Enforce strict language semantics
--parse [Mono] Only parses the source file (for debugging the tokenizer)
--quiet [NOT IMPLEMENTED YET]Quiet output mode
--recurse=PARAM [NOT IMPLEMENTED YET]Include all files in the current directory and subdirectories according to the wildcard
--removeintchecks [NOT IMPLEMENTED YET]Remove integer checks. Default off.
--resource=PARAM Adds the specified file as an embedded assembly resource
--rootnamespace=PARAM [NOT IMPLEMENTED YET]Specifies de root namespace for all type declarations
-r --reference=PARAM References metadata from the specified assembly
--stacktrace [Mono] Shows stack trace at Error location
--target=PARAM Specifies the target type for the output file (exe [default], winexe, library, module)
--timestamp [Mono] Displays time stamps of various compiler events
--tokenize [Mono] Only tokenizes source files
--unsafe [Mono] Allows unsafe code
--usage Show usage syntax and exit
--utf8output [NOT IMPLEMENTED YET]Emit compiler output in UTF8 character encoding
-v --verbose Display verbose messages
--warnaserror Treat warnings as errors
--win32icon=PARAM [NOT IMPLEMENTED YET]Specifies a Win32 icon file (.ico) for the default Win32 resources
--win32resource=PARAM [NOT IMPLEMENTED YET]Specifies a Win32 resource file (.res)
--wlevel=PARAM [Mono] Sets warning level (the highest is 4, the default)
svn path=/trunk/mcs/; revision=10833
* System/System.Net.Sockets/NetworkStream.cs: the check for disposed
should not be done in the finally clause.
* corlib/System.IO/BufferedStream.cs: don't try to write a 0 sized
array on when flushing the stream.
Fixes bug #37045.
svn path=/trunk/mcs/; revision=10825
* debug.c: Reverted Gonzalo's last change since it is wrong.
We're also using the debugging code on Windows, for instance the
stabs stuff when running in gdb. I hope this code still builds on
Windows; if not, we need to fix this.
Moved all the mono debugger support code into the debugger itself;
when debugging a managed application, the debugger new launches a
small unmanaged wrapper application which contains this stuff.
* debug.h (MonoDebuggerIOLayer): New public typedef; this is just
initialized to an array of function pointers to the io-layer
function; they don't seem to be public in the `libmono' library.
(mono_debugger_event): New public function. Sends the debugger an
event if we're running in the Mono Debugger and does nothing otherwise.
* mono.c: Don't initialize the Mono Debugger here.
* jit.c (mono_debug_insert_breakpoint): Removed, this isn't used anymore.
(mono_thread_start_cb, mono_thread_attach_cb): Call
mono_debugger_event() to send the debugger a callback.
svn path=/trunk/mono/; revision=10807
* appdomain.h (MonoThreadStartCB): Added `MonoThread *thread' and
`gpointer func' arguments.
(MonoThreadAttachCB): New typedef; like the old MonoThreadStartCB,
but added `MonoThread *thread' argument.
(mono_runtime_init): The last argument is now a MonoThreadAttachCB.
* threads.c (mono_new_thread_init): Added `gpointer func' argument
and pass it to the mono_thread_start_cb callback.
(mono_install_thread_callbacks): New public function to install a
set of callbacks which are set by the debugger.
(mono_thread_init): The last argument is now a MonoThreadAttachCB.
svn path=/trunk/mono/; revision=10806
2003-01-16 Martin Baulig <[email protected]>
Added special support for the Mono Debugger to send it a
notification each time a thread is created or exited.
* timed-thread.h (TimedThread): Added `pid' and `start_sem'.
* timed-thread.c (timed_thread_start_routine): If
`mono_debugger_threads_debug' is non-zero, set `thread->pid' and
post the `thread->start_sem'.
(_wapi_timed_thread_create): If `mono_debugger_threads_debug' is
non-zero, wait for the `thread->start_sem' before returning.
* threads.c (mono_debugger_threads_debug): New global variable
which is set by the Mono Debugger.
(mono_debugger_thread_info): New global variable.
(update_debugger_thread_info): When running inside the Mono
Debugger (`mono_debugger_threads_debug' is non-zero), update the
`mono_debugger_thread_info' array. This function is called (while
owning the `thread_hash_mutex') each time the `thread_hash' is
modified.
svn path=/trunk/mono/; revision=10804
* configure.in: Set version number to 0.19.1.
Heads up: I'm going to commit some changes to the debugger
which'll require you to use this new runtime, so if you update the
debugger from CVS, you also need this new runtime.
svn path=/trunk/mono/; revision=10803
* XslTransform.cs: implemented all Load and Transform methods. It uses
libxml2 and libxslt. No more temp files. It's slow and memory consuming,
but, well, that's XSLT... ;-). Idea from Zdravko Tashev.
Now the Xsl web control works.
svn path=/trunk/mcs/; revision=10800
* System.Xml/XmlTextWriter.cs: throw an exception if WriteEndDocument is
called without a prior call to WriteStartDocument.
svn path=/trunk/mcs/; revision=10799
* AspGenerator.cs:
* BaseCompiler.cs:
* CachingCompiler.cs: changes to work around spaces and
directory-separators in the local filesystem.
svn path=/trunk/mcs/; revision=10780
* added the following fix from Jackson Harper <[email protected]>
* class.c (mono_ptr_class_get): correctly set access levels of pointers
(mono_array_class_get): correctly set access levels of arrays
svn path=/trunk/mono/; revision=10771
* debug.c (initialize_debugger_support): ifdef out the call to
mono_debugger_init_thread_debug for the release.
Someone should look into why its not defined. I think the problem
is what Dick pointed out somewhere: code in io-layer is not
supposed to ever be used in Windows, so code for the debugger that
lives there must be moved elsewhere.
svn path=/trunk/mono/; revision=10746
* Tds70.cs:
(FormatParameter): send input/output parameter names. This way we don't
depend on the parameter position being different of the index in the
parameter collection.
svn path=/trunk/mcs/; revision=10735
* System.Web.Compilation/AspGenerator.cs: removed unused variable. Added
support for properties/fields of type string [].
* System.Web.UI.WebControls/DataList.cs: handle the exception when
adding new keys to DataKeysArray.
svn path=/trunk/mcs/; revision=10734
* doc/ibmdb2: added file which is new web page
about IBM DB2 data provider at Mono.Data.DB2Client
* makefile
* commands: added ibmdb2 web page to go-mono web site
* doc/ado-net: added a couple more developers email, plus made the
email spam resistant, added Mono's DB2 data provider to list,
added more info about the ProviderFactory and retrieving data using
ADO.NET from ASP.NET, add notes about testing, misc cleanup
* doc/mysql
* doc/postgresql
* doc/sqlclient
* doc/oracle
* doc/tdsclient
* doc/firebird
* doc/oledb
* doc/odbc
* doc/sybase
* doc/sqlite: added testing notes and C# examples
* doc/gtk-sharp: added links for GTK# for Windows
svn path=/trunk/mono/; revision=10712
* CryptoTools.cs: Added internal class BlockProcessor to help
implementation of block-based algorithms (like MAC and HMAC).
* HMACSHA1.cs: Refactored to remove dependencies on CryptoStream,
better constructors and Dispose support.
* MACTripleDES.cs: Refactored to reuse new HMACSHA1 stuff, better
constructors.
svn path=/trunk/mcs/; revision=10702
* IsolatedStorageFile.cs: Added missing [CLSCompliant(false)]
to CurrentSize and MaximumSize to fix compilation (at least
under Windows/csc).
svn path=/trunk/mcs/; revision=10701
* XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
null when no matching uri.
* XmlElement.cs : removed unnecessary xmlns output.
* XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
* XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix
along with the change above, and moved timing of 'xmlns' output
to CloseStartElement.
* XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
svn path=/trunk/mcs/; revision=10699
Well, a partial implementation, anyway. Enough of an implementation to run
example 21-17 from "Programming C#, 2nd Edition" (O'Reilly Press).
There are several issues remaining, such as proper behavior under Win32 (I'm
sure looking up the HOME environment variable won't be correct) and security
issues (docs suggest that isolated storage should have a limited size to
prevent DOS attacks, and that Isolated Storage is intended to be used by
untrusted apps).
This will suffice as a first pass of the code.
System.IO.FileStream changes are because IsolatedStorageFileStream needed to
override a virtual property, which FileStream didn't expose. (Rather odd,
that.)
svn path=/trunk/mcs/; revision=10694
* KeyInfo.cs: Changed some protected declaration to private.
* KeyInfoName.cs: Changed some protected declaration to private.
* KeyInfoNode.cs: Changed some protected declaration to private.
* KeyInfoRetrievalMethod.cs: Changed some protected declaration to private.
* KeyInfoX509Data.cs: Changed some protected declaration to private.
* Transform.cs: Changed some protected declaration to private.
* XmlDsigBase64Transform.cs: Changed some protected declaration to private.
* XmlDsigC14NTransform.cs: Changed some protected declaration to private.
* XmlDsigC14NWithCommentsTransform.cs: Changed some protected declaration to private.
* XmlDsigEnvelopedSignatureTransform.cs: Changed some protected declaration to private.
* XmlDsigXPathTransform.cs: Changed some protected declaration to private.
* XmlDsigXsltTransform.cs: Changed some protected declaration to private.
svn path=/trunk/mcs/; revision=10636
* cs-parser.jay: Small fix: we were not comparing the constructor
name correctly. Thanks to Zoltan for the initial pointer.
svn path=/trunk/mcs/; revision=10635
* ParameterInfo.cs: modified constructor so it allows the
ParameterBuilder to be null and add a 'position' argument which will
be used when pb is null.
* MethodBuilder.cs ConstructorBuilder.cs: modify GetParameters() so it
returns information even when the app did not use DefineParameter() to
define the parameters.
* ConstructorBuilder.cs (ctor): allways define SpecialName attribute
for constructors as done by MS.
svn path=/trunk/mcs/; revision=10631
Mono.Data.DB2Client/DB2ClientCommand.cs: ExecuteReader non executes a command against the DB, as it should
Mono.Data.DB2Client/DB2ClientConstants.cs: Added more constants, mostly for SQLDriverConnect.
Mono.Data.DB2Client/DB2ClientException.cs: Now can get all errors from the DB2 error stack.
Mono.Data.DB2Client/DB2ClientPrototypes.cs: Added SQLDriverConnect prototype.
Mono.Data.DB2Client/DB2ClientTransaction.cs: Changed to work with new handle returned from DB2CLientConnect.
svn path=/trunk/mcs/; revision=10629
* System.Web/HttpRequest.cs: implemented CurrentExecutionFilePath.
* System.Web.UI/Control.cs: some more tweaks to naming containers stuff.
* System.Web.UI/DataBinder.cs: don't throw exception if the container
is null.
* System.Web.UI/Page.cs: now we can render client scripts, startup
scripts and hidden fields. Only render __VIEWSTATE if there is someone
that will take care of it.
(RaisePostBackEvents): first try the last one that required raise event,
then try __EVENTTARGET.
* System.Web.UI.HtmlControls/HtmlForm.cs: render 'action' attribute.
* System.Web.UI.WebControls/BaseDataList.cs: what can I say for this
one? I spent so many time until I finally found this that I'm gonna
miss this f....g bug... ;-). Farewell. Now we can get events from
image buttons inside Data*.
* System.Web.UI.WebControls/DataList.cs: now the value stored in
ViewState for item count is correct.
svn path=/trunk/mcs/; revision=10627
* SurrogateSelector.cs: completed implementation.
* SerializationInfo.cs: corrected a bug in GetValue method.
* ObjectIDGenerator.cs: corrected a bug. Now it does not give the same
id for two different instances that return true when calling Equal.
svn path=/trunk/mcs/; revision=10615
* debug.c: Don't use mono_once here. Reworked the API a bit to
use `mono_debug_' and `debug_' for the general debugging API and
`mono_debugger_' and `debugger_' for the Mono Debugger stuff.
svn path=/trunk/mono/; revision=10608
"The buffer of a closed System.IO.MemoryStream is still available, and the
System.IO.MemoryStream.ToArray and System.IO.MemoryStream.GetBuffer methods
can be called successfully."
svn path=/trunk/mcs/; revision=10601
* Mono.Data.Db2Client/DB2ClientConnection.cs: added parsing and setting
of connection string values. Prior to this change, the server, username, and
authentication were hard-coded.
* Mono.Data.Db2Client/DB2ClientUtils.cs: prevent warning about
unreachable code
* Test/TestDB2Conn/TestDB2Conn.cs: modify test to accept
database, username, and password from command line. Also, test
a CREATE TABLE statement with ExecuteNonQuery()
svn path=/trunk/mcs/; revision=10595
* exception.[ch]:
(mono_get_exception_type_initialization): new function.
* object.c: throw a TypeInitializationException when an exception is
thrown invoking the class constructor.
svn path=/trunk/mono/; revision=10593
* makefile.gnu: added --unsafe command line option, needed for unsafe
code. The IBM DB2 provider now compiles on Mono.
svn path=/trunk/mcs/; revision=10585
* debug.c (debugger_thread_func): We don't need to `raise
(SIGSTOP)' anymore; the thread manager already takes care of this.
svn path=/trunk/mono/; revision=10581
* exception.c (arch_handle_exception): exclude runtime invoke
wrapper from the stack trace
* jit.c (mono_cfg_new): allocate extra space to store esp (used by exceptions)
(mono_thread_start_cb): save an additional LMF at thread start
svn path=/trunk/mono/; revision=10577
* jit.c (mono_runtime_install_handlers): Use SYS_sigaction() for
the mono_thread_get_abort_signal () - this is SIGUSR1 on FreeBSD
and the LinuxThreads port doesn't allow you to override the handler.
[FIXME: This avoids an assertion failure on startup, but there's
still an issue with thread termination.]
svn path=/trunk/mono/; revision=10576
* configure.in (GTHREAD_LIBS, GTHREAD_CFLAGS): Removed the gthread
check again, we're now using the mono/io-layer for this.
svn path=/trunk/mono/; revision=10575
Added special support for the Mono Debugger to send it a
notification each time a thread is created or exited.
* timed-thread.h (TimedThread): Added `pid' and `start_sem'.
* timed-thread.c (timed_thread_start_routine): If
`mono_debugger_threads_debug' is non-zero, set `thread->pid' and
post the `thread->start_sem'.
(_wapi_timed_thread_create): If `mono_debugger_threads_debug' is
non-zero, wait for the `thread->start_sem' before returning.
* threads.c (mono_debugger_threads_debug): New global variable
which is set by the Mono Debugger.
(mono_debugger_thread_info): New global variable.
(update_debugger_thread_info): When running inside the Mono
Debugger (`mono_debugger_threads_debug' is non-zero), update the
`mono_debugger_thread_info' array. This function is called (while
owning the `thread_hash_mutex') each time the `thread_hash' is
modified.
svn path=/trunk/mono/; revision=10573
* Control.cs: fixes in UniqueID, FindControl, AddedControl,
UnloadRecursive, InitRecursive. Reduced the size of __VIEWSTATE. Made
FindControl work with NamingContainers.
* ControlCollection.cs: notify the parent when clearing the collection.
* LosFormatter.cs: Added debugging output and generate a valid
viewstate even for unknown types.
* Page.cs: GetPostBackEventReference now uses UniqueID. Reduced
viewstate.
svn path=/trunk/mcs/; revision=10569
* HttpContext.cs: store the errors in an arraylist instead of an array.
* HttpRequest.cs: bah.
* HttpRuntime.cs: display last error in the context.
svn path=/trunk/mcs/; revision=10567
* icall.c:
(ves_icall_type_from_name): make it work as MS. Ie, if no assembly name
provided, look for the type in the calling assembly and then in
mscorlib; if the assembly name is provided, only try that one.
svn path=/trunk/mono/; revision=10556
* cs-parser.jay: Only perform the constructor checks here if we
are named like the class; This will help provider a better
error. The constructor path is taken when a type definition is
not found, but most likely the user forgot to add the type, so
report that rather than the constructor error.
svn path=/trunk/mcs/; revision=10548
Displayers (Console, Gtk#, System.Windows.FOrms) are under the `displayers'
directory.
Finders (How nodes are found) are under the `finders' directory.
Formatters (how nodes are displayed) are under the `formatters' directory.
Miguel did the actual movement of CVS files so that file history wouldn't be
lost. Hence no corresponding "cvs add" for this "cvs remove".
svn path=/trunk/mcs/; revision=10531
* jit.c (mono_jit_compile_method): make sure runtime_init is called
(mono_analyze_stack): make sure runtime_init is called
svn path=/trunk/mono/; revision=10502
* debug.c (debugger_update_symbol_file_table): Moved all the
functionality into debugger_update_symbol_file_table_internal();
the latter one will be called from the background thread while
already owning the lock. This'll allow us to step into
debugger_update_symbol_file_table() in the debugger and debug it.
svn path=/trunk/mono/; revision=10494
* Makefile.am: Link against gthread.
* jit.c: After realizing that mono-mutex doesn't work either
because it doesn't support recursive mutexes on FreeBSD, rewrote
the whole thread stuff to use gthread. This seems to fix this
weird deadlock in the debugger as well.
svn path=/trunk/mono/; revision=10492
* ilasm/parser/ScannerAdapter.cs: Implement the new cleanup method
in the tokenizer. This fixes the build.
* skeleton.cs (cleanpup): Rename to cleanup to make it look more consistent.
* cs-tokenizer.cs (Cleanup): Rename to 'cleanup' to make it more
consistent with other methods.
svn path=/trunk/mcs/; revision=10471
* DateTimeTest.cs: Use 2003, since that' the year now. Need to work
on this test so we don't have it fail each new year.
svn path=/trunk/mcs/; revision=10451
* ArrayList.cs (RemoveRange): Patch for allowing zero-size
removal at the end of a list. It also cleans up the argument
checking code so the raised exceptions have the same message as
under MS.NET.
svn path=/trunk/mcs/; revision=10426
* HashAlgorithmTest.cs: Added new test for null streams.
* MACTripleDESTest.cs: New. Test suite par MAC using 3DES.
svn path=/trunk/mcs/; revision=10416
* MACTripleDES.cs: Now working (the problem was with my stream usage
which was removed for performance reason).
* TripleDES.cs: Fixed key generation (wasn't called and returned
null).
svn path=/trunk/mcs/; revision=10415
PropertyFormat properties).
Fix a bug where the ReflectionNodeFinder wouldn't display the value of static
properties (it was using an invalid instance reference).
svn path=/trunk/mcs/; revision=10372
* list.unix (CSharpCodeCompiler): Add
Microsoft.Charp.CSharpCodeCompiler for Sean Kasun.
* CSharpCodeCompiler.cs:
* CSharpCodeProvider.cs: Patch from Sean Kasun
<[email protected]> to implement CSharpCodeCompiler.
* CompilerErrorCollection.cs:
* CompilerParameters.cs: Patch from Sean Kasun
<[email protected]> implementing most of the MonoTODOs in
CompilerErrorCollection and the CompilerParameters overloads in CompilerParameters.cs.
svn path=/trunk/mcs/; revision=10362
* TypeBuilder.cs (DefineInitializedData): Call DefineNestedType()
instead of DefineType() so the auxiliary types do not pollute the
global namespace. This is consistent with the behaviour of MS .NET.
svn path=/trunk/mcs/; revision=10358
This allows ``type-reflector.exe'' (no arguments) to open a Gtk# window which
can be later used to open an Assembly.
svn path=/trunk/mcs/; revision=10336
doesn't require them.
For example, it's sensible for a GUI program to load without having any
assembly loaded, so there's no reason for assemblies/types to be specified.
This allows us to do:
type-reflector --displayer=gtk
And get an empty Gtk# window (which can be later filled by using
File->Open...).
svn path=/trunk/mcs/; revision=10335
namespace, partition into namespaces according to purpose. For example, all
formatters (CSharp, VB, Default, etc.) are moved to the
Mono.TypeReflector.Formatters namespace.
Similar things were done for finders and displayers.
svn path=/trunk/mcs/; revision=10330
* HttpApplication.cs: keep _lasterror if no context. Attach
application events *after* modules initialization (if not, User is not
set when the user handler is called).
* HttpApplicationFactory.cs: made all methods related to
AttachEvents static. I will fix OnStart/OnEnd for application and
session later.
* HttpRequest.cs: don't initialize cookies twice.
svn path=/trunk/mcs/; revision=10326
* RNGCryptoServiceProvider.cs: Changed methods interacting with
the runtime as Internal<MethodName>. This will allow to make the
class Windows-compatible by doing a switch at runtime.
svn path=/trunk/mcs/; revision=10324
* AppDomain.cs: implemented DoCallBack method.
* MonoType.cs:
(GetConstructorImpl): when the flag is BindingFlags.Default, set it to
Public, Instance.
NUnit2 tests start moving.
svn path=/trunk/mcs/; revision=10321
mono-hackers: how to provide support for what the build platform provides.
For example, if you're on Windows and have System.Windows.Forms but not Gtk#,
the default compile should give you System.Windows.Forms support and console
output.
If you're on Linux with Gtk# and no System.Windows.Forms, you should get Gtk#
support from the default compile.
Next trick: default to the GUI displayer, not the console displayer, if
--displayer isn't specified. I have no idea how to pull that off...
svn path=/trunk/mcs/; revision=10320
* Page.cs: make it fire the LoadData related events also for controls
such as ImageButton, whose variable(s) in the query string are of the
form ctrl_name.x and only fire them once per control.
svn path=/trunk/mcs/; revision=10318
- Exit partly implemented (behaves like 'break' in C#)
- Arrays working (still very buggy and work only if declared
statically - e.g. Dim MyArray(2,3) - but the plumbing is in place)
- Field and Local declarations have been re-coded in the grammar
svn path=/trunk/mcs/; revision=10316
HAVE_GUI_SWF) by placing this information within type-reflector.exe.config.
This also provides for user-provided formatters/finders/displayers. They
merely need to write a class and add it to the appropriate section.
svn path=/trunk/mcs/; revision=10315
* ecore.cs:
* expression.cs:
* typemanager.cs: fixes to allow mcs compile corlib with the new
Type.IsSubclassOf fix.
svn path=/trunk/mcs/; revision=10310
The biggest change is a System.Windows.Forms front-end. It doesn't look as
nice (visually) as the Gtk# front-end, but it's better because it works.
Mwa-ha-ha-ha. Err, sorry.
To be more specific, the Gtk# front-end works, but (at present) it must build
the entire tree at once, during initialization.
The swf front-end doesn't. When you attempt to expand a node, it's at *that*
point that it looks for sub-nodes, allowing you to use (for example) the
reflection finder (--finder=reflection) and start clicking lots of `+' signs
to get properties of properties of properties... (Make sure verbose output is
enabled to see what I mean.)
This is the approach I want Gtk# to ultimately follow, as soon as I figure out
how to do that (read: Gtk# allows me to do it cleanly).
svn path=/trunk/mcs/; revision=10297
* cs-parser.jay (fixed_statement): take a type instead of a
pointer_type, so we can produce a better error message later.
* statement.cs (Fixed.Resolve): Flag types that are not pointers
as an error.
svn path=/trunk/mcs/; revision=10294
* statement.cs: First populate the pinned variables, then emit the
statement, then clear the variables. Before I was emitting the
code once for each fixed piece.
svn path=/trunk/mcs/; revision=10291
* marshal.c (mono_marshal_get_icall_wrapper): like
mono_marshal_get_native_wrapper, but simpler and use a MonoMethodSignature
instead of a MonoMethod.
svn path=/trunk/mono/; revision=10282
* statement.cs (FlowBranching.CheckOutParameters): `struct_params'
lives in the same number space than `param_map'. Fixes#36154.
svn path=/trunk/mcs/; revision=10276
* DataGrid.cs: default value for ShowHeaders is true. Fixed style for
Header and Footer.
* DataGridColumn.cs: added SetOwner method.
* DataGridColumnCollection.cs: set the owner of the column when added.
svn path=/trunk/mcs/; revision=10272
* TypeDescriptor.cs: use ICustomTypeDescriptor if the component
implements it. It's done for GetProperties and should be done for the
rest of methods present in ICustomTypeDescriptor.
svn path=/trunk/mcs/; revision=10262
* list: added System.Data/DataTablePropertyDescriptor.cs
* System.Data/DataColumnPropertyDescriptor.cs: fixed typo.
* System.Data/DataViewManagerListItemTypeDescriptor.cs: added new
internal property to get the DataViewManager and removed TablePD class.
* System.Data/DataTablePropertyDescriptor.cs: TablePD class is now this
one as suggested by danmorg.
svn path=/trunk/mcs/; revision=10261
* cs-parser.jay (constructor_declaration): Set the
Constructor.ModFlags before probing for it. This makes the
compiler report 514, 515 and 132 (the code was there, but got
broken).
svn path=/trunk/mcs/; revision=10260
* statement.cs (Goto.Resolve): Set `Returns' to ALWAYS.
(GotoDefault.Resolve): Set `Returns' to ALWAYS.
(GotoCase.Resolve): Set `Returns' to ALWAYS. Fixes the test-49 problem on windows
svn path=/trunk/mcs/; revision=10257
* AspComponentFoundry.cs: reworked to allow same prefix for multiple
controls. You can register 1 assembly plus any number of user controls
under the same prefix.
* AspGenerator.cs: don't add duplicate 'using' for the same namespace.
Hack to allow @Register access to assemblies in other places than bin
directory.
svn path=/trunk/mcs/; revision=10225
* XmlDataLoader.cs: Moved diffgram stuff to new internal class
XmlDiffLoader.
* XmlDiffLoader.cs: new class for diffgrams. Added handling of
diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
svn path=/trunk/mcs/; revision=10220
* AspElements.cs: added 'codebehind' attribute for page, control and
application. It's ignored by MS, but allowed. Fixed typo.
svn path=/trunk/mcs/; revision=10217
* DataView.cs: made dataViewManager internal.
* DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
properties of the object, but the values of the columns present in a
row.
* DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
which returns a PropertyDescriptorCollection. Created a new class
derived from PropertyDescriptor that treats Table as an object whose
properties are DataRowView.
svn path=/trunk/mcs/; revision=10212
* debug.c: Correctly handle the `debugger_finished_mutex'; it is
only unlocked by the pthread_cond_wait() in mono_debugger_wait().
svn path=/trunk/mono/; revision=10199
* CryptoAPITransform.cs: Removed all TODO. This class will not be
used by Mono. MS uses it with <algo>CryptoServiceProvider classes
to provide a common ICryptoTransform access to CryptoAPI.
svn path=/trunk/mcs/; revision=10197
* COMException.cs: New. Minimal (incomplete - i'm not using COM)
implementation because this is thrown when dealing with Software
Publisher Certificates (SPC) in X509Certificate.
svn path=/trunk/mcs/; revision=10190
* Hash.cs: Added [Serializable] and ISerializable to class declaration.
Changed how the hash algorithm are created (now use system default
implementation). Added some exception handling.
svn path=/trunk/mcs/; revision=10189
* AspGenerator.cs: don't generate instance fields for pages/controls
when the base class specified in the Inherits attribute already has
them. Closes bug #36262.
svn path=/trunk/mcs/; revision=10167
* debug.c (mono_debugger_jit_exec): Custom version of mono_jit_exec();
this is used when we're running inside the Mono Debugger
(mono_debugger_wait): Put the waiting code into a function of its own.
* mono.c (main): Call mono_debugger_jit_exec() instead of
mono_jit_exec() if we're running inside the Mono Debugger.
svn path=/trunk/mono/; revision=10160
* debug.h (MonoDebugFormat): Added
`MONO_DEBUG_FORMAT_MONO_DEBUGGER'; this allows us to check whether
we're running inside the Mono Debugger prior to the args parsing.
svn path=/trunk/mono/; revision=10159
* System.Web/HttpApplication.cs: added new state to handle default
authentication.
* System.Web.Configuration/HttpModulesConfigurationHandler.cs: add
a default authentication module at the end of the list.
* System.Web.Configuration/ModuleItem.cs: new constructor.
* System.Web.Security/DefaultAuthenticationModule.cs: implemented. It
just create a default unauthenticated user when no one else provided one.
* System.Web.Security/FormsAuthenticationModule.cs: removed debug output.
* System.Web.UI/Control.cs:
(AddedControl): take the children to the same state of the parent.
(InitRecursive): set the page of the children.
* System.Web.UI/Page.cs: removed one line (it's done a few lines above).
* System.Web.UI/UserControl.cs:
(OnInit): always call InitializeAsUserControl
(InitializeAsUserControl): sets the page for the control.
svn path=/trunk/mcs/; revision=10114
* debug.c (release_symbol_file_table): Only call this if we're
actually modifying the symbol tables.
(mono_debug_open): Always set the `mono_debugger_class_init_func'
for MONO_DEBUG_FORMAT_MONO; this stuff should also go into core dumps.
svn path=/trunk/mono/; revision=10113
Class declaration modified to better conform to MS'VB.NET grammar
Preliminary support for Array declarations (not working yet)
svn path=/trunk/mcs/; revision=10103
* RC2CryptoServiceProvider.cs: Now about 2 time faster by inlining
methods and changing to UInt16 (instead of UInt32).
svn path=/trunk/mcs/; revision=10091
* debug.c (mono_debugger_trampoline_breakpoint_callback): New
function. This is called from the breakpoint trampoline to signal
the debugger and wait until it has reload the symbol tables.
* trampoline.c (get_breakpoint_trampoline): Call the new
mono_debugger_trampoline_breakpoint_callback() in the breakpoint
trampoline just before the breakpoint.
svn path=/trunk/mono/; revision=10083
close the parens. Allows better use of vi's paren-matching functionality in
output, avoids issues with "}}" format specifier in string.Format.
NodeInfo.cs: handle MemberTypes.NestedType, which is returned under .NET for
nested types. Without this, .NET generates error messages for nested types.
svn path=/trunk/mcs/; revision=10059
* RijndaelManaged.cs: Now 7 (encrypt) to 10 (decrypt) times faster
by removing allocation inside intensively called methods, using pre-
calculated tables instead of Mult_GF methods and inlining most methods.
svn path=/trunk/mcs/; revision=10052
* DataSet.cs:
- Added XmlReader and XmlWriter Closing.
- Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
* XmlSchemaMapper.cs
- Much better way IMHO to map xmlschema than the old one in
DataSet.cs. Its, more flexible, cleaner, ...
svn path=/trunk/mcs/; revision=10028
When I wasn't recovering from stomach flu, anyway...
All in all, a good Christmas.
Summary:
- Made tools/makefile.gnu recursive, much like the top-level makefile.gnu.
This was principally done so that the type-reflector install target could
install additional files (currently it installs type-reflector.exe and
type-reflector.exe.config; this may expand in the future).
- Massive cleanup/improvements to type-reflector
The biggest news is that a Gtk# front-end exists for type-reflector now. It
is incomplete (due to my learning Gtk# with this program) and needs
improvement, but it works... Sort of.
It's not enabled by default, as I don't want to require that the
Gtk#/Gnome#/Glade# assemblies be available to build mcs from CVS.
To enable the type-reflector Gtk# front-end, do two things:
- Rebuild type-reflector: cd tools/type-reflector && make -f makefile.gnu gui
- When running, specify the --displayer=gtk parameter, e.g.
type-reflector.exe --displayer=gtk -S .
svn path=/trunk/mcs/; revision=10020
* AsymmetricAlgorithm.cs: Removed ValidKeySize (method only present
in SymmetricAlgorithm).
* DSA.cs: Change ZeroizePrivateKey from protected to internal.
* DSACryptoServiceProvider.cs: Added some case where we need to check
for keypairGenerated.
* RSA.cs: Change ZeroizePrivateKey from protected to internal.
* RSACryptoServiceProvider.cs: Key were never generated with the default
(no parameter) constructor. Now checks for keypairGenerated in methods.
* SignatureDescription.cs: Added CreateDeformatter in RSAPKCS1SHA1-
SignatureDescription to please corcompare (it just call it's ancestor).
svn path=/trunk/mcs/; revision=10019
* debug-mono-symfile.c: Completely rewrote the type section.
Instead of using individual malloc()ed fields, we use one big
continuous memory area and offsets into this area.
See the comments in the source code for details.
svn path=/trunk/mono/; revision=10011
* CryptoStream.cs: Implemented core. Not sure about many details -
but it run the samples now (#30256).
* CryptoStreamMode.cs: Added [Serializable] to enum declaration.
* SymmetricAlgorithm.cs: Made some changes required for CryptoStream
and to match more closely MS implementation. Also added little
optimizations in TransformBlock.
svn path=/trunk/mcs/; revision=10006
* debug.c (MonoDebuggerInfo): Put back `symbol_file_modified'.
This variable now specifies that the symbol tables have been
modified after the last notification has been send. The debugger
uses this flag to check whether it needs to reload the symbol
tables or not.
(debugger_compile_method): Just send a notification to the
debugger, but don't set the modified flag. It may or may not be
set when the debugger gets the notification - depending on whether
the JIT compilation added a new method to the symbol tables.
svn path=/trunk/mono/; revision=9999
* debug.c (debugger_compile_method): This is a wrapper around
mono_compile_method() which always sends a notification to the
debugger.
svn path=/trunk/mono/; revision=9997
* debug.c: Reload the symbol file table before sending the
notification event to the debugger.
(MonoDebuggerInfo): Removed `update_symbol_file_table'.
svn path=/trunk/mono/; revision=9995
2002-12-27 Daniel Cazzulino <[email protected]>
* CacheEntry.cs: several changes. New constants, use of constants
defined in Cache.cs, modified locks to optimize perf. Fixed property
sets which weren't using the keyword value to set the new values
(don't know how this worked before!).
* Cache.cs: changed singleton implementation to only create the object
when actually used. Changed Insert overloads to use constants
defined instead of hard values.
* ExpiresBuchets: major changes. All locking now uses ReaderWriterLock
class. Bucket now efectively reuses free indexes from removed items
to avoid unnecessary expansions. Expansion now uses Array.CopyTo to
add elements to the new list. Added private Int32Collection to
handle int indexes efficiently (thanks Shawn Van Ness). See comments
there.
svn path=/trunk/mcs/; revision=9985
* debug.c: When running under the mono debugger, create a special
debugger thread; always protect the symbol tables with a mutex.
svn path=/trunk/mono/; revision=9980
* debug-mono-symfile.h (MonoSymbolFileMethodAddress): Include the
line number table in this data blob instead of using an external
pointer.
svn path=/trunk/mono/; revision=9979
* LoginDialog.cs
* DbProviderCollection.cs
* DbProvider.cs
* DataGrid.cs: save as Unix (LF) and format based on
Mono style
* SqlEditorSharp.cs: SQL editor will be used in a
notebook, keep track of that tab. Also, when text changed,
update the notebook tab to indicate text changed. Save as
Unix (LF) and monostyle format
* sqlsharpgtk.cs: add a notebook where each tab represents a SQL editor where
the selected tab could be opend or saved to a file or execute against the
database. The full filename of the selected editor tab is displayed in the title
bar. The tab gets an asterisk if the user changes the text in that text buffer.
Add a second notebook for the results to be a DataGrid or a TextView
to log messages. Add new menu items for execute and saving to
a HTML, XML, and CSV (Comma Separated Values) files. Menu item New brings up a new
editor tab. Add menu item New SQL# Window to open a new SQL# window.
svn path=/trunk/mcs/; revision=9969
* cs-tokenizer.cs (get_cmd_arg): Fixups to allow \r to terminate
the command. This showed up while compiling the JANET source
code, which used \r as its only newline separator.
svn path=/trunk/mcs/; revision=9961
* Activator.cs: Since the documentation indicates the method
either succeeds or throws one of the listed exceptions, we weren't
expecting that CreateInstance might be returning null.
For more information on the bug, see http://bugs.ximian.com/show_bug.cgi?id=36109
svn path=/trunk/mcs/; revision=9960
* X509CertificateTest.cs: Changed how the dates are compared. This
should stop the nunit errors in X509Certificate.
svn path=/trunk/mcs/; revision=9956
* debug.c (MonoDebuggerInfo): Added `symbol_file_modified'; it's
incremented each time one of the symbol tables is modified.
svn path=/trunk/mono/; revision=9946
* CryptoTools.cs: New. Shared classes for cryptography. Now
includes a KeyBuilder to generate symmetric keys and IV.
* DES.cs: Modified Key validation.
* DESCryptoServiceProvider.cs: Implemented Key and IV using
KeyBuilder.
* RC2CryptoServiceProvider.cs: Implemented Key and IV using
KeyBuilder (and removed TODO).
* RijndaelManaged.cs: Implemented Key and IV using KeyBuilder
(and removed TODO).
* SHA384Managed.cs: Changed code to remove compiler warning.
* SHA512Managed.cs: Changed code to remove compiler warning.
* SymmetricAlgorithm.cs: Removed TODO on IV.
* TripleDESCryptoServiceProvider.cs: Implemented Key and IV
using KeyBuilder (and removed TODO).
svn path=/trunk/mcs/; revision=9933
* XmlDocumentTests.cs : Test for bugzilla #35308 (default ns output)
* XmlElementTests.cs : Test for output of attributes with different NS.
svn path=/trunk/mcs/; revision=9930
* ASN1.cs: New. Classes to manipulate Abstract Syntax Notation 1
structures.
* cert2spc.cs: New tool to generate Software Publisher Certificate
(SPC) from a list of X509 certificate and CRL.
* secutils.cs: Changed copyright notice.
* makefile: Added cert2spc.exe to Windows build.
* makefile.gnu: Added cert2spc.exe to Linux build.
svn path=/trunk/mcs/; revision=9928
* ASN1.cs: New. Updated ASN1 classes for X509Certificate that can
now be reused for other tools (like Cert2Spc). Classes are marked
internal so they cannot be reused from outside corlib (for
compatibility with MS implementation).
* X509Certificate.cs: Removed all ASN1 classes from file.
svn path=/trunk/mcs/; revision=9927
* X509Certificate.cs: Fixed the date issue (again). Time was
converted to local time then ajusted to Pacific time. Now time
is kept (internally) as UTC and correct (-8) to Pacific when shown.
Changed Authenticode signature detection and removed debugging code.
svn path=/trunk/mcs/; revision=9914
* AssemblyNameTest.cs: Added test for non-signed assembly (which
returns an empty array - i.e. not null like an empty assembly).
svn path=/trunk/mcs/; revision=9857
* AssemblyName.cs: GetPublicKey now return an empty array (not null)
when an assembly isn't signed with a StrongName (to match MS
implementation) and null when no assembly is referenced. Also removed
commented code (no bug reported so it was probably not used).
svn path=/trunk/mcs/; revision=9856
* secutils.cs: New tool to extract strongname and X509 certificate
from assembly (or other signed files).
* makefile: Added secutil.exe to Windows build.
* makefile.gnu: Added secutil.exe to Linux build.
svn path=/trunk/mcs/; revision=9836
* X509Certificate.cs: Completed CreateFromSignedFile. Added a new
internal constructor so Publisher (and the related classes) can
create a X509Certificate object which return null dates (for both
GetEffectiveDateString and GetExpirationDateString methods).
svn path=/trunk/mcs/; revision=9835
* ecore.cs (FieldExpr.DoResolve): Instead of throwing an
exception, report error 120 `object reference required'.
* driver.cs: Add --pause option, used during to measure the size
of the process as it goes with --timestamp.
svn path=/trunk/mcs/; revision=9833
* Mono.Data.Tds.Protocol/TdsComm.cs:
Change GetString to NOT explicitly add a NUL
to the end of the string since Encoder.GetString ()
will do that.
svn path=/trunk/mcs/; revision=9831
to Mono into a define that we can ship in mono.pc
Remove the dependency on config.h from mono/metadata/exception.h
svn path=/trunk/mono/; revision=9829
* appdomain.c
(ves_icall_System_AppDomainSetup_InitAppDomainSetup): Use
g_build_filename to properly get separators on the filename created.
svn path=/trunk/mono/; revision=9825
* RealProxy.cs: Added ObjectIdentity property.
Implemented CrateObjRef.
* RemotingProxy.cs: Added Identity parameter to constructor
2002-12-20 Lluis Sanchez Gual <[email protected]>
* ServerContextTerminatorSink.cs: Added
* ServerObjectTerminatorSink.cs: Added
* StackBuilderSink.cs: Added
2002-12-20 Lluis Sanchez Gual <[email protected]>
* LeaseSink.cs: Added
2002-12-20 Lluis Sanchez Gual <[email protected]>
* ObjRef.cs: Implementation now based on methods of RemotingServices.
* RemotingServices.cs: Remoting information now kept in Identity objects.
All methods adapted to work with identities.
Renamed ExecuteMessage to InternalExecuteMessage. ExecuteMessage should
not make a direct call to the object.
* Identity.cs: added.
svn path=/trunk/mcs/; revision=9822
* object.h: Small change, introduce MonoMarshalByRefObject to
track the layout of that structure in the C# universe as we make
changes there.
svn path=/trunk/mono/; revision=9810
* ecore.cs (StandardImplicitConversion): When in an unsafe
context, we allow conversion between void * to any other pointer
type. This fixes bug #35973.
svn path=/trunk/mcs/; revision=9809
failures anymore. Added SwitchesTest (to test switches) and
DiagnosticsConfigurationHandler to test .config file handling.
Issues: while the DiagnosticsConfigurationHandlerTest is reasonably
self-contained, SwitchesTest is not. To properly test switches, we need a
.exe and a .exe.config file. The needed .exe.config file that SwitchesTest
depends on is present in `test-config-file', but I'm unsure where to place it
(much less what to name it).
Additionally, SwitchesTest generates test failures at this time, principally
because of the lack of .config file support in the test system.
Finally, makefile.gnu & system_linux_test.args was changed to use the newly
added tests and to reference System.Xml.dll, which is used by
DiagnosticsConfigurationHandlerTest.
svn path=/trunk/mcs/; revision=9807
Don't assume that optional attributes are always present
<assert/> can't have any child nodes
Change in semantics: if the attribute isn't present, GetAttribute()
returns null, not "". This allows us to differentiate between an attribute
not being present and an attribute with an empty value.
Translate exceptions if a TraceListener type is invalid
ChangeLog: Update for the previous changes I forgot to record
svn path=/trunk/mcs/; revision=9806
* XmlTextWriterTests.cs (TestAttributeNamespacesXmlnsXmlns):
fixed bug in the testcase (in relation to JD Conley's patch).
svn path=/trunk/mcs/; revision=9799
* System.Web/HttpCookie.cs: send 'expires' in the header.
* System.Web.Security/FormsAuthenticationModule.cs: remove debug lines.
* System.Web.UI/BaseParser.cs: a couple of path fixes to make it work
when the page is not in the root directory.
* System.Web.Util/UrlUtils.cs: fixed IsRelativeUrl and IsRootUrl.
svn path=/trunk/mcs/; revision=9797
whatever TraceImpl is using (which in turn may have been set by the .config
file, so we should get the user-specified values in added listeners).
svn path=/trunk/mcs/; revision=9787
code that uses Trace.Indent() before a Trace.WriteLine() to be indented
properly.
* TraceImpl.cs: provide a static constructor to explicitly specify the
ordering of initialization, in particular the ordering of
TraceImpl.Listeners and the reading of the .config file (by accessing
DiagnosticsConfiguration.Settings). This (hopefully) ensures that the
Listeners collection is initialized before the .config file is read in, as
the DiagnosticsConfigurationHandler will directly modify the listeners
collection.
The DiagnosticsConfigurationHandler assumes this so that it can <add/> and
<remove/> trace listeners and set the logfile for the DefaultTraceListener.
svn path=/trunk/mcs/; revision=9786
* attribute.cs (Attributes.Contains): Add new method.
* class.cs (MethodCore.LabelParameters): if the parameter is an
`out' parameter, check that no attribute `[In]' has been passed.
svn path=/trunk/mcs/; revision=9785
* object.c: removed assert to allow static fields on interfaces.
* loader.c: a TypeSpec may be used for any type, not just arrays.
svn path=/trunk/mono/; revision=9768
* System.Web.Configuration/AuthConfig.cs: LoginUrl defaults to login.aspx.
* System.Web.Security/FormsAuthentication.cs: return a null ticket when
an exception is thrown creating it. Implemented RenewTicketIfOld.
* System.Web.Security/FormsAuthenticationModule.cs: implemented event
handlers for AuthenticateRequest and EndRequest.
* System.Web.Security/FormsAuthenticationTicket.cs: implemented
SetDates and Clone methods.
svn path=/trunk/mcs/; revision=9764
* AspGenerator.cs: generate code like 'control.XXX = value' also for
public fields (properties were being handled in that way too).
svn path=/trunk/mcs/; revision=9762
* ConfigXmlDocument.cs: don't jump over the first element.
* ConfigurationSettings.cs: pass doc.DocumentElement instead of doc.
This used to work until i tried to access one attribute of the first
element and realized that the element was not the expected!
This change does not affect the configuration handlers that only use
ChildNodes property on the XmlNode they get as argument.
svn path=/trunk/mcs/; revision=9760
* attribute.cs (Attributes.AddAttributeSection): Rename to this
since it makes much more sense.
(Attributes.ctor): Don't require a Location parameter.
* rootcontext.cs (AddGlobalAttributeSection): Rename again.
* attribute.cs (ApplyAttributes): Remove extra Location parameters
since we already have that information per attribute.
* everywhere : make appropriate changes.
* class.cs (LabelParameters): Write the code which actually
applies attributes to the return type. We can't do this on the MS
.NET runtime so we flag a warning in the case an exception is
thrown.
svn path=/trunk/mcs/; revision=9757
* configure.in: moved struct tm field tm_gmtoff check before the check
for timezone global variable. This makes Timezone work for me (debian
sid, linux, x86, which has both the field and the global variables).
svn path=/trunk/mono/; revision=9749
Switch derived classes should match that of .NET.
Go forth and use Swiches! ;-)
ChangeLog:
* BooleanSwitch.cs: Complete re-write. It works now.
* DefaultTraceListener.cs:
- Use `const' strings, so I don't worry about copy/paste errors
- Give `AssertUiEnabled' an actual backing member
* DiagnosticsConfigurationHandler.cs: To avoid race conditions, let the
configuration handler set .config-specified properties on
DefaultTraceListener (AssertUiEnabled, LogFileName) and TraceImpl
(AutoFlush, IndentSize).
* Switch.cs: Near complete re-write. Actually works, and is (should be)
comformant with .NET behavior. Changed member names because they were
confusing me. (Yes, that doesn't say much about my memory.)
* TextWriterTraceListener.cs: Append text to already existing files, don't
overwrite them.
* TraceImpl.cs:
- Added private destructor, to ensure no instances are created.
- Move members declarations to be closer to each other.
* TraceSwitch.cs: Complete re-write. It works now.
svn path=/trunk/mcs/; revision=9747
* System.Web/HttpApplicationFactory.cs: add the context as parameter
when building the application Type.
* System.Web/HttpCookie.cs: new internal constructor.
* System.Web/HttpCookieCollection.cs: new internal method to make a
cookie expire.
* System.Web/HttpRequest.cs: MapPath fixes.
* System.Web/HttpResponse.cs: implemented ApplyAppPathModifier.
* System.Web/HttpRuntime.cs: fixed typo in AppDomainAppVirtualPath.
* System.Web.Compilation/AspGenerator.cs: now it uses the current
HttpContext when creating user controls. TemplateSourceDirectory is no
longer a dummy value.
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs: set the context which
will be used to locate the files.
* System.Web.UI/BaseParser.cs: use MapPath and context to locate files.
* System.Web.UI/Control.cs: implemented MapPathSecure.
* System.Web.UI/TemplateControl.cs: use UrlUtils to generate the path.
* System.Web.UI/TemplateControlParser.cs: use the context and MapPath.
* System.Web.UI/UserControl.cs: implemented MapPath.
* System.Web.UI/UserControlParser.cs: added context parameter to
constructor.
* System.Web.Util/PathUtil.cs: removed.
* System.Web.Util/UrlUtils.cs: fixed Combine to handle '~'.
svn path=/trunk/mcs/; revision=9737
* class.cs (MethodCore.LabelParameters): Remove the extra
Type [] parameter since it is completely unnecessary. Instead
pass in the method's attributes so that we can extract
the "return" attribute.
svn path=/trunk/mcs/; revision=9736
* cs-parser.jay (parse): Use Report.Error to flag errors instead
of ignoring it and letting the compile continue.
* typemanager.cs (ChangeType): use an extra argument to return an
error condition instead of throwing an exception.
svn path=/trunk/mcs/; revision=9726
* FormsAuthentication.cs: implemented Authenticate, unencrypted Encrypt
and Decrypt, HashPasswordForStoringInConfigFile and Initialize.
* FormsAuthenticationTicket.cs: set cookiePath to the default when no
other provided.
svn path=/trunk/mcs/; revision=9722
* AuthConfig.cs:
* AuthenticationConfigHandler.cs: handler and helper class for
system.web/authentication configuration section.
* HttpHandlersSectionHandler.cs: check for null in attributes.
* MachineKeyConfig.cs:
* MachineKeyConfigHandler.cs: handler and helper class for
system.web/machineKey tag.
svn path=/trunk/mcs/; revision=9720
* HttpContext.cs: hack to create a default user when there's no one.
Implemented GetConfig (string).
* HttpRequest.cs: fixes to MapPath (string).
svn path=/trunk/mcs/; revision=9718
* DataSet.cs: implemented DefaultViewManager and GetList.
* DataViewManager.cs: a bit of work on IList and ITypedList needed by
DataList in System.Web.
* DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
DataViewManager.
svn path=/trunk/mcs/; revision=9715
AllTests.cs: Added StrongNamePublicKeyBlobTest suite.
StrongNamePublicKeyBlobTest.cs: New. Test suite for
StrongNamePublicKeyBlob.
svn path=/trunk/mcs/; revision=9708
* AllTests.cs: Added test suites for Publisher and
PublisherMembershipCondition.
* PublisherTest.cs: New. Test suite for Publisher (complete).
* PublisherMembershipConditionTest.cs: New. Test suite for Publisher
PublisherMembershipCondition (incomplete).
svn path=/trunk/mcs/; revision=9697
* Directory.cs: Some fixes to SMB shares handling, and not compiling
with csc, mcs compiles it correctly (mcs bug 35652)
svn path=/trunk/mcs/; revision=9694
* Directory.cs: Some fixes related to correct some exceptions thrown
2002-12-11 Eduardo Garcia Cebollero <[email protected]>
* Directory.cs: Some Exceptions added, fixed GetParent(),
CreateDirectory() should work with unix, native windows and
windows samba shares. Converted end-lines from dos-mode to unix-mode
2002-12-08 Eduardo Garcia Cebollero <[email protected]>
* Directory.cs: CreateDirectory works now with Absolute paths
too, not only with relative ones.
svn path=/trunk/mcs/; revision=9693
* X509CertificateTest.cs: Uncommented the GetEffectiveDateString and
GetExpirationDateString tests. Added a test for ToString(true).
svn path=/trunk/mcs/; revision=9688
* X509Certificate.cs: Fixed the date issue. MS implementation always
return the local time for Pacific (GMT-8). Added ToString() and changed
some protected to private to please corcompare.
svn path=/trunk/mcs/; revision=9687
* Transform.resources: Add file. This is technically a generated file,
but it will never change for us since we get the sources from the nunit
project anyway.
svn path=/trunk/mcs/; revision=9672
remove a configuration setting, you'd get an exception saying that there was
no factory for it (i.e. it had already been removed).
svn path=/trunk/mcs/; revision=9664
* DefaultTraceListener.cs: now OutputDebugStringW is called from an
internal call (update your runtime!). No more warnings in linux.
svn path=/trunk/mcs/; revision=9661
* makefile.gnu: added file for linux build
* win32.make: update file for windows build
* DataGrid.cs: since SetColumnTypes has been fixed in GTK#,
update its use here
* sqlsharpgtk.cs: change Console.WriteLine()s to Error()s or
get rid of the Console.WriteLine()s. Created new menus Session
and Command and move some menu items. Implement new menu items
File - New, Open, Save, and Save As
* FileSelectionDialog.cs: added file
to make it easier to use the FileSelection dialog
* SqlEditorSharp.cs: added public methods
LoadFromFile, SaveToFile, and Clear
svn path=/trunk/mcs/; revision=9657
* System.Web.Compilation/AspGenerator.cs: added support for
AutoEventWireup attribute in @Page and @Control.
* System.Web.Compilation/CompilationResult.cs:
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs: store the options.
* System.Web.UI/Control.cs: added AutoEventWireup internal property.
* System.Web.UI/Page.cs: removed page events wire up from here.
* System.Web.UI/TemplateControl.cs: new method WireupAutomaticEvents to
hook up page and user controls events.
* System.Web.UI/TemplateControlParser.cs: process the options that are
applicable once we have the instance of the control.
* System.Web.UI/TemplateParser.cs: also stores the options.
* System.Web.UI/UserControl.cs: hook up events before initializing the
control.
svn path=/trunk/mcs/; revision=9623
* gc.h, gc-internal.h: Rename header for GC internal calls to
gc-internal.h from gc.h as to not clash with Boehm GC having its
header installed as <gc.h> in outside include paths.
* appdomain.c, gc.c, icall.c, object.c: Account for aforementioned.
* threads.c: If SIGRTMIN is not defined, fall back to SIGUSR1.
svn path=/trunk/mono/; revision=9612
* class.cs: Remove some dead code.
* cs-parser.jay: Estimate the number of methods needed
(RootContext.MethodCount);
* cs-tokenizer.cs: Use char arrays for parsing identifiers and
numbers instead of StringBuilders.
* support.cs (PtrHashtable): Add constructor with initial size;
We can now reduce reallocations of the method table.
svn path=/trunk/mcs/; revision=9611
* System.Web.UI/Control.cs: new method to set bindingContainer value.
* System.Web.UI/TemplateControl.cs: added controls are not binding
containers.
* System.Web.UI.WebControls/DataList.cs: for header and footer don't
use data source. Instantiate in the DataListItem, not in the DataList.
databind-template.aspx works now.
svn path=/trunk/mcs/; revision=9594
* daemon.c, handles-private.h, handles.c, wapi-private.h:
Check for an implementation which says it supports
_POSIX_THREAD_PROCESS_SHARED, rather than just one that
defines the symbol. Defined but with a value of -1 still
means that it is unsupported.
svn path=/trunk/mono/; revision=9591
System.Drawing in driver.cs is referenced by default (just for now)
Added an extra define (EXTRA_DEFAULT_REFS) in driver.cs to allow default
referencing of a bigger set of system assemblies. Off by default.
svn path=/trunk/mcs/; revision=9590
* Encoding.cs: g_get_encoding () returns "ASCII". In Default, when the
encoding is not found, default to UTF8Unmarked. Removed comment in
UnixConsoleEncoding, because it's now Default, which gets the
encoding internally using g_get_encoding ().
svn path=/trunk/mcs/; revision=9584
* list: Modified file.
* System.Web/HttpRuntime.cs: avoid nulls and exception when getting
resource format strings.
* System.Web/StaticFileHandler.cs: added file name to error message.
* System.Web.Compilation/AspElements.cs: new method Tag.GetElements
used to parse the inner contents of a tag looking for data binding or
code render tags.
New property HtmlControlTag.ParseChildren allows
differentiation of a couple of HtmlControls that has children as
properties (namely HtmlTable and HtmlTableRow).
* System.Web.Compilation/AspGenerator.cs: fixed container semantics to
match BindingContainer one. Implemented Inherits attribute for page and
control.
Support HtmlControls that has ChildrenAsProperties.
Generate code for data binding functions that matches the semantic of
Container.
Handle data bound and code render attribute values.
Set proper value return for TemplateSourceDirectory. Should be relative
to appPath.
* System.Web.Compilation/BaseCompiler.cs: moved CompilerOptions and
References handling here.
* System.Web.Compilation/CachingCompiler.cs: copy result of compilation.
* System.Web.Compilation/CompilationException.cs: simple ToString ()
implementation.
* System.Web.Compilation/CompilationResult.cs: implemented CopyFrom and
ToString.
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs: removed
CompilerOptions as it's now handled in the base class. Get all the
types in the generated assembly and look for one that derives from
the correct Type.
* System.Web.UI/Control.cs: implemented TemplateSourceDirectory.
* System.Web.UI/TemplateControl.cs: implemented LoadControl and
LoadTemplate.
* System.Web.Util/PathUtil.cs: some path handling methods that are not
available in Path.
svn path=/trunk/mcs/; revision=9583
* attribute.cs (ApplyAttributes): Keep track of the emitted
attributes on a per-target basis. This fixes bug #35413.
svn path=/trunk/mcs/; revision=9557
* test-102.cs : Improve to catch the case when an attribute
can be emitted twice for the same program element but with
different targets.
svn path=/trunk/mcs/; revision=9556
* driver.cs (MainDriver): On rotor encoding 28591 does not exist,
default to the Windows 1252 encoding.
(UnixParseOption): Support version, thanks to Alp for the missing
pointer.
* AssemblyInfo.cs: Add nice assembly information.
* cs-tokenizer.cs: Add fix from Felix to the #if/#else handler
(bug 35169).
* cs-parser.jay: Allow a trailing comma before the close bracked
in the attribute_section production.
svn path=/trunk/mcs/; revision=9553
* doc/oracle: added file which is
a new web page oracle.html
* doc/ado-net: clean up and add link
to oracle.html
* doc/web/commands
* doc/web/makefile: added oracle.html
svn path=/trunk/mono/; revision=9549
* ecore.cs (FieldExpr.AddressOf): Until I figure out why the
address of the instance was being taken, I will take this out,
svn path=/trunk/mcs/; revision=9544
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs:
(Disconnect): close the stream and set connected to false.
(NextResult): check if after DoneProc we have a ColumnMetadata + Row,
which holds the values for the output parameters and read them.
(LoadRow): add the values to outputParameters if DoneProc.
When executing a stored procedure, we execute the procedure and then
select the parameter values.
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs:
(BuildParameters): check Parameters.
* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs: added Close () to
close the stream.
* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionParameters.cs:
initialize all the string to be empty.
* System.Data/System.Data.SqlClient/SqlCommand.cs:
(CloseReader): don't get the output parameters here.
(GetOutputParameters): don't skip the stream. The parameters will be
there.
* System.Data/System.Data.SqlClient/SqlConnection.cs: don't try to
execute 'sp_reset_connection'.
* System.Data/System.Data.SqlClient/SqlDataReader.cs: get the output
parameters after the end of the results.
svn path=/trunk/mcs/; revision=9534
* Monitor.cs:
* Thread.cs:
* ThreadPool.cs:
* Timer.cs:
* WaitHandle.cs: Use TotalMilliseconds to convert a TimeSpan to
ms, not Milliseconds.
svn path=/trunk/mcs/; revision=9533
* Makefile
* SqlSharpCli.build: change target
from SqlSharpCli.exe
to sqlsharp.exe
* README: mention how to run SQL#
svn path=/trunk/mcs/; revision=9530
* typemanager.cs (AreMultipleAllowed): Take care of the most
obvious case where attribute type is not in the current assembly -
stupid me ;-)
svn path=/trunk/mcs/; revision=9515
* library.build: add Mono.GetOptions to windows build
* Mono.GetOptions/Mono.GetOptions.build: add file
for windows build
svn path=/trunk/mcs/; revision=9499
* appdomain.c: fix buglet when building exe file name. Handle full
assembly name (needed after latest changes to AssemblyName).
* image.c:
(mono_image_close): free some hashtables.
svn path=/trunk/mono/; revision=9490
* ecore.cs (SimpleName.DoResolve): First perform lookups on using
definitions, instead of doing that afterwards.
Also we use a nice little hack, depending on the constructor, we
know if we are a "composed" name or a simple name. Hence, we
avoid the IndexOf test, and we avoid
* codegen.cs: Add code to assist in a bug reporter to track down
the source of a compiler crash.
svn path=/trunk/mcs/; revision=9465
* AllTests.cs: Added test suites for AssemblyName and
StrongNameKeyPair.
* AssemblyNameTest.cs: New. Test suite for AssemblyName.
* StrongNameKeyPairTest.cs: New. Test suite for StrongNameKeyPair.
svn path=/trunk/mcs/; revision=9458
Instead of having a single type, a TypeDisplayer, responsible for taking in a
System.Type object and spitting out its contents to the screen, we instead
have two policies, finders and formatters, which split up the previous work.
The finders build up an internal tree of nodes for display.
The formatters format each node for output to a display device.
Doing this, I'm hoping to allow a GUI front-end to be created, which would be
impossible to do under the previous arrangement.
See the new file DESIGN for more information.
svn path=/trunk/mcs/; revision=9457
* list
* makefile.gnu: added files for linux build
* System.Data.OracleClient.build: added file
for windows build
* .cvsignore: added file for cvs to ignore files
* System.Data.OracleClient/OciGlue.cs
* System.Data.OracleClient/ociglue.h
* System.Data.OracleClient/ociglue.c: code clean up
and better error handling
svn path=/trunk/mcs/; revision=9456
* AssemblyName.cs: Added missing methods/interfaces. Fixed some
code to match the MS Framework.
* StrongNameKeyPair.cs: Completed the "visible" implementation.
There must be some internal methods to allow signing with the key.
svn path=/trunk/mcs/; revision=9453
* attribute.cs (Attribute.ApplyAttributes) : Keep track of which attribute
types have been emitted for a given element and flag an error
if something which does not have AllowMultiple set is used more
than once.
* typemanager.cs (RegisterAttributeAllowMultiple): Keep track of
attribute types and their corresponding AllowMultiple properties
(AreMultipleAllowed): Check the property for a given type.
* attribute.cs (Attribute.ApplyAttributes): Register the AllowMultiple
property in the case we have a TypeContainer.
(Attributes.AddAttribute): Detect duplicates and just skip on
adding them. This trivial fix catches a pretty gross error in our
attribute emission - global attributes were being emitted twice!
Bugzilla bug #33187 is now fixed.
svn path=/trunk/mcs/; revision=9440
* Directory.cs: Don't use the uninitialized pathsumm here.
Don't try and create "" if we're using an absolute path.
svn path=/trunk/mcs/; revision=9438
* Timer.cs: Make it actually work; now it no longer sets your
application on fire if you use a zero periode and Timer.Change()
actually works.
svn path=/trunk/mcs/; revision=9426
* UrlAttribute.cs (GetHashCode): Implemented.
* BaseChannelSinkWithProperties.cs (constructor): Implemented by
chaining on to the base constructor.
* BaseChannelObjectWithProperties.cs : Implemented the Count,
IsFixedSize, IsReadOnly, IsSynchronized, Keys, Properties, SyncRoot,
Values properties.
Implemented the Contains and GetEnumerator methods.
Removed the unnecessary TODO attribute on the constructor, and the Add
method.
* Formatter.cs (WriteValueType): Remove the erroneous CLSCompliant attribute.
svn path=/trunk/mcs/; revision=9414
* expression.cs (Binary.ResolveOperator): I can only use the
Concat (string, string, string) and Concat (string, string,
string, string) if the child is actually a concatenation of
strings.
svn path=/trunk/mcs/; revision=9409
* DataSet.cs: Clean up to reading xmlschema. This looks much better
now (work better too), but it not working correctly yet.
svn path=/trunk/mcs/; revision=9402
* threads.c (ves_icall_System_Threading_Thread_Abort): we use SIGRTMIN
instead of SIGUSR1, because SIGUSR1 is used by the pthread implementation
on some systems (redhat 7.3)
svn path=/trunk/mono/; revision=9398
* threads.c: delete the critical section of a sync block,
spotted and fixed by [email protected] (Thong (Tum) Nguyen).
svn path=/trunk/mono/; revision=9395
* System.Data.OracleClient
* System.Data.OracleClient/System.Data.OracleClient
added directory to mcs/class for the Oracle 8i
data provider
* System.Data.OracleClient/OciGlue.cs
* System.Data.OracleClient/OracleConnection.cs
* System.Data.OracleClient/OracleCommand.cs: added
files for the System.Data.OracleClient.dll assembly
* System.Data.OracleClient/ociglue.c
* System.Data.OracleClient/ociglue.h: added
files for thte System.Data.OracleClient.gluelib.dll
unmanaged c shared library
* System.Data.OracleClient/TestOracleClient.cs: test
the OracleClient data provider for Oracle 8i database
* ChangeLog: added file
* README.TXT: added file
* System.Data.OracleClient/OciGlueLib_MSVC_win32.make:
added makefile for ociglue shared lib on Win32 platform
and compiler Visual C++ 7.0
* System.Data.OracleClient/OciGlueLib_BCC_win32.make:
added makefile for ociglue shared lib on Win32 platform
and compiler Borland C++ 5.5
* MonoOracleClient.csproj
* MonoOracleClient.csproj.usr
* MonoOracleClient.sln
* MonoOracleClient.suo: added Visual Studio 1.0
project files to build the
assembly System.Data.OracleClient.dll
svn path=/trunk/mcs/; revision=9394
* appdomain.[ch]: handle the assembly preload event to try loading the
assemblies using the paths we have in the current domain.
* assembly.[ch]: created an assembly preload hook that is called to try
loading the assembly by other means that the ones provided here.
* domain.c: initialize the domain search path.
From now on, assemblies (TODO: except corlib and System) are loaded
according to these rules when using mono_assembly_load ():
1. It tries to load the assembly from the ApplicationBase
of the current domain appending .dll and .exe (TODO: have to
try loading from name/name.dll and name/name.exe).
2. It tries the search path specified in PrivateBinPath for the
current domain (if any).
3. Previous behavior.
svn path=/trunk/mono/; revision=9391
* pending.cs (PendingImplementation): Rework so we can keep track
of interface types all the time, and flag those which were
implemented by parents as optional.
2002-12-03 Miguel de Icaza <[email protected]>
* expression.cs (Binary.ResolveOperator): Use
String.Concat(string,string,string) or
String.Concat(string,string,string,string) when possible.
* typemanager: More helper methods.
svn path=/trunk/mcs/; revision=9383
* System.Xml/XmlDataDocument.cs: Now this works in both ways,
DataSet <--> XmlDataDocument.cs at some level at least.
svn path=/trunk/mcs/; revision=9380
* pending.cs: remove the bogus return from GetMissingInterfaces()
(see the 2002-11-06 entry: the mono runtime is now fixed in cvs).
svn path=/trunk/mcs/; revision=9371
ServiceControllerPermissionAccess.cs, ServiceControllerStatus.cs,
ServiceStartMode.cs and ServiceType.cs. All of them are enum
implementations.
svn path=/trunk/mcs/; revision=9363
* HttpApplicationFactory.cs: get the events from the application class,
fire Application/Session Start/End and add the others as application
events.
svn path=/trunk/mcs/; revision=9359
* MulticastDelegate.cs: implemented GetInvocationList. I'll check later
if this is the correct order of invocation.
svn path=/trunk/mcs/; revision=9358
* Type.cs: changed the signature of internal_from_name. Modified
the overloads of GetType to use it and check the typeName argument.
Implemented FindInterfaces.
svn path=/trunk/mcs/; revision=9335
* icall.c:
(ves_icall_type_from_name): it now has throwOnError and ignoreCase
parameters. If no assembly specified, try getting the type from all
the assemblies in the current domain, else, load the assembly and get
the type from it.
svn path=/trunk/mono/; revision=9334
* namespace.cs: avoid duplicated 'using xxx' being added to
using_clauses. This prevents mcs from issuing and 'ambiguous type' error
when we get more than one 'using' statement for the same namespace.
Report a CS0105 warning for it.
svn path=/trunk/mcs/; revision=9333
* In visual studio, I added a SWFTest project to the SWF solution.
* Using Microsoft's swf.dll, I added one of each possible stock controls to the form.
* I closed the form (swf design stuff i svery incomplete).
* I Removed the reference to MS's swf.dll, and added a reference to the SWF project.
* The result compiles, runs, and can be closed, without crashing in windows.
* PrintPreviewDialog is the only item (other than crystal reports) on the
* standard toolbar that is not included.
* When run, a standard window comes up, not a dialog/form type window.
* The form is as small as possible, just a caption bar of minimum width
* with control bax and min/max box. It can be resized to any size fine.
* no controls are actualy displayed. they may be of zero size, or it
* may be due to the window not being a dialog box, or it may be anything.
* ApplicationContext.cs
* Button.cs
* ChangeLog
* CheckBox.cs
* CheckedListBox.cs
* ColorDialog.cs
* ComboBox.cs
* ContainerControl.cs
* Control.cs
* DataGrid.cs
* DateTimePicker.cs
* DomainUpDown.cs
* ErrorProvider.cs
* FileDialog.cs
* FontDialog.cs
* Form.cs
* GroupBox.cs
* HelpProvider.cs
* HScrollBar.cs
* ImageList.cs
* Label.cs
* LinkLabel.cs
* ListBox.cs
* ListControl.cs
* ListView.cs
* logfile.txt
* MainMenu.cs
* Menu.cs
* MenuItem.cs
* NativeWindow.cs
* NotifyIcon.cs
* NumericUpDown.cs
* OpenFileDialog.cs
* PageSetupDialog.cs
* Panel.cs
* PictureBox.cs
* PrintDialog.cs
* PrintPreviewControl.cs
* PrintPreviewDialog.cs
* ProgressBar.cs
* RadioButton.cs
* RichTextBox.cs
* SaveFileDialog.cs
* ScrollableControl.cs
* ScrollBar.cs
* Splitter.cs
* StatusBar.cs
* System.Windows.Forms.csproj
* System.Windows.Forms.csproj.user
* TabControl.cs
* TextBox.cs
* TextBoxBase.cs
* Timer.cs
* ToolBar.cs
* ToolBarButton.cs
* tooltip.cs
* TrackBar.cs
* TreeNode.cs
* TreeNodeCollection.cs
* TreeView.cs
* UpDownBase.cs
* UserControl.cs
* VScrollBar.cs
* win32Enums.cs
* win32functions.cs
svn path=/trunk/mcs/; revision=9297
2002-11-30 Miguel de Icaza <[email protected]>
* cs-tokenizer.cs (consume_identifier): use read directly, instead
of calling getChar/putback, uses internal knowledge of it.
(xtoken): Reorder tokenizer so most common patterns are checked
first. This reduces the compilation time in another 5% (from 8.11s
average to 7.73s for bootstrapping mcs on my Mobile p4/1.8ghz).
The parsing time is 22% of the compilation in mcs, and from that
64% is spent on the tokenization process.
I tried using a binary search for keywords, but this is slower
than the hashtable. Another option would be to do a couple of
things:
* Not use a StringBuilder, instead use an array of chars,
with a set value. Notice that this way we could catch
the 645 error without having to do it *afterwards*.
* We could write a hand-parser to avoid the hashtable
compares altogether.
The identifier consumption process takes 37% of the tokenization
time. Another 15% is spent on is_number. 56% of the time spent
on is_number is spent on Int64.Parse:
* We could probably choose based on the string length to
use Int32.Parse or Int64.Parse and avoid all the 64-bit
computations.
Another 3% is spend on wrapping `xtoken' in the `token' function.
svn path=/trunk/mcs/; revision=9295
* list:
* Mono.Data.Tds.Protocol/TdsPacketColumnNamesResult:
* Mono.Data.Tds.Protocol/TdsPacketTableNameResult:
Remove these classes, since they are essentially just
ArrayLists.
* Mono.Data.Tds.Protocol/Tds.cs:
* Mono.Data.Tds.Protocol/Tds42.cs:
* Mono.Data.Tds.Protocol/Tds50.cs:
* Mono.Data.Tds.Protocol/Tds70.cs:
Make ProcessSubPacket return an enum instead of instantiating
useless classes. Remove the TdsPacketColumnNamesResult
and TdsPacketTableNameResult in favour of ArrayLists.
* Mono.Data.Tds.Protocol/TdsPacketColumnInfoResult.cs:
Add a Count property.
svn path=/trunk/mcs/; revision=9294
* System.Web/HttpApplicationFactory.cs: compile global.asax file if it
exists.
* System.Web.Compilation/AspElements.cs: added @Application directive.
* System.Web.Compilation/AspGenerator.cs: make it work also with
application files. We currently generate an extra private function.
svn path=/trunk/mcs/; revision=9293
* sqlsharpgtk.cs: fix dynamically creating DbDataAdapter
so external providers can display data in the DataGrid too,
included the use of OdbcDataAdapter for ODBC to use
a DataGrid, fix compile errors for a newer Gtk# in cvs
svn path=/trunk/mcs/; revision=9277
* System.Data.Odbc/OdbcDataReader.cs: implemented GetValues() method
needed by OdbcDataAdapter
* System.Data.Odbc/OdbcDataAdapter.cs
* System.Data.Odbc/OdbcRowUpdatedEventArgs.cs
* System.Data.Odbc/OdbcRowUpdatedEventHandler.cs
* System.Data.Odbc/OdbcRowUpdatingEventArgs.cs
* System.Data.Odbc/OdbcRowUpdatingEventHandler.cs: added files for an
ODBC Data Adapter
* list: added new files to linux build
in namespace System.Data.Odbc for the ODBC Data Adapter
* System.Xml/XmlDataDocument.cs: commented method
protected internal override XPathNavigator CreateNavigator(XmlNode node)
because it would not compile on .NET Framework. Added
a FIXME comment there
svn path=/trunk/mcs/; revision=9274
* INSTALL: renamed to INSTALL.txt because INSTALL
interferred with "make install" on windows
* makefile: changes to get "make install" work
on windows
* class/makefile.gnu: flush
* ilasm/makefile: updated for windows build
* monoresgen/makefile: updated for windows build
* tools/SqlSharp/SqlSharpCli.build: flush
* winexe.in: add file to be template for executable assemblies
to be installed on windows via "make install" by providing
a script that runs mono and the assembly
like mcs runs mono mcs.exe
svn path=/trunk/mcs/; revision=9266
* DataSystem.Data.DataTableCollection.cs:
Removed HashTable. There could be situations where DataTable
is added to collection before it hava TableName. So using
HashTable is impossible.
svn path=/trunk/mcs/; revision=9264
* MarshalByRefObject.cs: undo latest changes. It breaks the build by
some obscure reasons (try make -f makefile.gnu using a corlib which has
the modified version).
svn path=/trunk/mcs/; revision=9263
* list: added new file.
* System.Web.Compilation/GlobalAsaxCompiler.cs: compiler for global.asax
file. If the file exists, it will be compiled into an HttpApplication
derived class (directly or through a user-provided class).
svn path=/trunk/mcs/; revision=9243
* TODOAttribute.cs: New. Still much to do ;-)
* XmlDsigXPathTransform.cs: Corrected to compile. Transform is non-
functionnal.
* XmlDsigXsltTransform.cs: Corrected to compile. Transform is non-
functionnal.
svn path=/trunk/mcs/; revision=9242
* makefile.gnu: added tools directory to linux build
* tools/makefile.gnu: added new file to built tools and install.
dist works too. test is just blank.
svn path=/trunk/mcs/; revision=9235
* exception.c (x86_unwind_native_frame): support exceptions inside
native code using gcc generated exception tables (-fexception).
2002-11-19 Dietmar Maurer <[email protected]>
* exception.c: include some code from Zoltan Varga, but modified
it slightly.
svn path=/trunk/mono/; revision=9222
* typemanager.cs (IsCLRType): New routine to tell whether a type
is one of the builtin types.
Maybe it needs to use TypeCodes to be faster. Maybe we could use
typecode in more places instead of doing pointer comparissions.
We could leverage some knowledge about the way the typecodes are
laid out.
New code to cache namespaces in assemblies, it is currently not
invoked, to be used soon.
* decl.cs (DeclSpace.MakeFQN): Simple optimization.
* expression.cs (Binary.ResolveOperator): specially handle
strings, and do not perform user-defined operator overloading for
built-in types.
svn path=/trunk/mcs/; revision=9212
* exception.c: massive code cleanups. The code is still
architecture dependent, but it should be now possible to reuse the
complex parts for other architecture.
svn path=/trunk/mono/; revision=9208
* System.Web.Compilation/AspGenerator.cs: fixed target file name and
generated class name.
* System.Web.Compilation/BaseCompiler.cs: reference assemblies in
PrivateBinPath.
* System.Web.UI/UserControl.cs: fixed SetAttribute.
* System.Web.UI/UserControlParser.cs: set the correct base type.
svn path=/trunk/mcs/; revision=9202
* makefile.gnu: add Mono.Data.PostgreSqlClient
to Linux build
* library.build: add Mono.Data.PostgreSqlClient
to Windows build
svn path=/trunk/mcs/; revision=9201
* HttpRequest.cs: provide a default Browser until we detect it.
* HttpResponse.cs:
(End): do not close the connection here.
(Flush (bool)): send the headers when, for example, Redirect () is
called.
svn path=/trunk/mcs/; revision=9200
* list: changed the name of the files beginning
with Sql to PgSql. Added missing files to linux build.
* makefile.gnu: added .dll to end of assembly names
* Mono.Data.PostgreSqlClient: created new directory within
mcs/class/Mono.Data.PostgreSqlClient
* copy files from ./*.cs to ./Mono.Data.PostgreSqlClient/*.cs
on cvs server (thanks to Miguel)
* remove ./*.cs files
svn path=/trunk/mcs/; revision=9198
* Mono.Data.SybaseClient.build:
Copy dll into Test directory.
* Mono.Data.SybaseClient/SybaseCommand.cs:
* Mono.Data.SybaseClient/SybaseConnection.cs:
* Mono.Data.SybaseClient/SybaseParameter.cs:
* Mono.Data.SybaseClient/SybaseParameterCollection.cs:
* Mono.Data.SybaseClient/SybaseTransaction.cs:
Many changes around making PREPAREs work in
Sybase as well as SQL Server.
svn path=/trunk/mcs/; revision=9195
* Mono.Data.TdsClient.build:
* makefile.gnu
Add System.EnterpriseServices to build.
* Mono.Data.TdsClient/TdsCommand.cs:
* Mono.Data.TdsClient/TdsConnection.cs:
* Mono.Data.TdsClient/TdsDataReader.cs:
* Mono.Data.TdsClient/TdsException.cs:
* Mono.Data.TdsClient/TdsParameter.cs:
* Mono.Data.TdsClient/TdsParameterCollection.cs:
* Mono.Data.TdsClient/TdsTransaction.cs:
* Mono.Data.TdsTypes/TdsDecimal.cs:
Copied over from the Sybase classes because the
whole world is changing and I want generic
TDS to keep up.
svn path=/trunk/mcs/; revision=9194
* System.Data.SqlClient/SqlCommand.cs:
* System.Data.SqlClient/SqlConnection.cs:
* System.Data.SqlClient/SqlDataReader.cs:
* System.Data.SqlClient/SqlParameter.cs:
* System.Data.SqlClient/SqlParameterCollection.cs:
* System.Data.SqlClient/SqlTransaction.cs:
Many changes around restructuring of parameter
information so that the Sybase provider supports
PREPAREs too.
svn path=/trunk/mcs/; revision=9193
* list:
* Mono.Data.Tds/TdsMetaParameter.cs:
* Mono.Data.Tds/TdsMetaParameterCollection.cs:
* Mono.Data.Tds/TdsParameterDirection.cs:
* Mono.Data.Tds.Protocol/ITds.cs:
* Mono.Data.Tds.Protocol/Tds.cs:
* Mono.Data.Tds.Protocol/Tds50.cs:
* Mono.Data.Tds.Protocol/Tds70.cs:
* Mono.Data.Tds.Protocol/Tds80.cs:
* Mono.Data.Tds.Protocol/TdsColumnType.cs:
* Mono.Data.Tds.Protocol/TdsComm.cs:
* Mono.Data.Tds.Protocol/TdsPacketColumnInfoResult.cs:
* Mono.Data.Tds.Protocol/TdsPacketColumnNamesResult.cs:
* Mono.Data.Tds.Protocol/TdsPacketColumnOrderResult.cs:
* Mono.Data.Tds.Protocol/TdsPacketSubType.cs:
* Mono.Data.Tds.Protocol/TdsPacketType.cs:
Restructuring around making Sybase and SQL Server
support both work with same interface. In particular,
the bulk of parameter work is moved into the meta
parameter objects from the native objects. The
Sybase TDS50 stuff needs intimate access to the parameters.
This will also allow me to eventually plonk output values
directly into parameters rather than through the current
klugey interface.
svn path=/trunk/mcs/; revision=9192
* list: added/removed files.
* System.Web.Compilation/AspGenerator.cs: reworked user control
compilation. Provide the options as a Hashtable for use in compilation.
Create the user controls in the private bin path of the domain.
* System.Web.Compilation/BaseCompiler.cs: base class for the various
compiler types.
* System.Web.Compilation/CachingCompiler.cs: actually executes mcs and
do some poor caching (it will use Cache when finished).
* System.Web.Compilation/CompilationException.cs: this exception has
enough information to generate a nice error page.
* System.Web.Compilation/CompilationResult.cs: used in caching.
* System.Web.Compilation/PageCompiler.cs: now derives from BaseCompiler
* System.Web.Compilation/TemplateFactory.cs: no longer needed.
* System.Web.Compilation/UserControlCompiler.cs: new class used when
compiling user controls.
* System.Web.Compilation/WebServiceCompiler.cs: derives from
BaseCompiler.
* System.Web.Mail/SmtpMail.cs: i don't wanna see that warning :-).
* System.Web.UI/TemplateParser.cs: fixed BaseType.
* System.Web.UI/UserControlParser.cs: helper class to compile user
controls.
svn path=/trunk/mcs/; revision=9191
* Application.cs
* Control.cs
* Form.cs
* Message.cs
* NativeWindow.cs
* ScrollableControl.cs
* win32functions.cs
* win32Structs.cs
* Fixed added more win32 stuff
* On windows in Visual studio and runs my test program, but does
* not display a window. the window Handle is null, so the size gets set to 0,0.
svn path=/trunk/mcs/; revision=9184
* cs-tokenizer.cs: Avoid calling Char.IsDigit which is an
internalcall as it is a pretty simple operation; Avoid whenever
possible to call Char.IsLetter.
svn path=/trunk/mcs/; revision=9183
* cs-tokenizer.cs (consume_identifier): Cut by half the number of
hashtable calls by merging the is_keyword and GetKeyword behavior.
svn path=/trunk/mcs/; revision=9180
* cs-tokenizer.cs: Do not short-circuit, because if we do, we
report errors (ie, #if false && true would produce an invalid
directive error);
svn path=/trunk/mcs/; revision=9179
* test-130.cs: This test did not compile with csc and
mcs now reports the error as well. Removed the offending
line from the test.
svn path=/trunk/mcs/; revision=9175
* expression.cs (Cast.TryReduce): If we're in checked syntax,
check constant ranges and report a CS0221. Fixes#33186.
svn path=/trunk/mcs/; revision=9174
* expression.cs (Binary.DoNumericPromotions): Added `check_user_conv'
argument; if true, we also check for user-defined conversions.
This is only needed if both arguments are of a user-defined type.
Fixes#30443, added test-175.cs.
(Binary.ForceConversion): Pass the location argument to ConvertImplicit.
* ecore.cs (Expression.ImplicitUserConversionExists): New method.
svn path=/trunk/mcs/; revision=9164
* expression.cs (ArrayAccess.GetStoreOpcode): New public static
function to get the store opcode.
(Invocation.EmitParams): Call ArrayAccess.GetStoreOpcode() and
only emit the Ldelema if the store opcode is Stobj. You must run
both test-34 and test-167 to test this. Fixes#34529.
svn path=/trunk/mcs/; revision=9162
* XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for
Fabricio Barros Cabral (fx) on #mono for spotting it. This is his
first patch to Mono! ;-)
svn path=/trunk/mcs/; revision=9161
checked in for Francois-Denis Gonthier
* win32functions.cs
* win32Structs.cs
* Menu.cs
* ScrollableControl.cs
* MenuItem.cs
* NativeWindow.cs
* Form.cs
* move some more stuff from monostub to c#
* converted a couple of files to unix style line end
* some implmementation
svn path=/trunk/mcs/; revision=9160
* ecore.cs (Expression.MemberLookup): Added additional
`qualifier_type' argument which is used when we're being called
from MemberAccess.DoResolve() and null if we're called from a
SimpleName lookup.
(Expression.MemberLookupFailed): New method to report errors; this
does the CS1540 check and reports the correct error message.
* typemanager.cs (MemberLookup): Added additional `qualifier_type'
argument for the CS1540 check and redone the way how we're dealing
with private members. See the comment in the source code for details.
(FilterWithClosure): Reverted this back to revision 1.197; renamed
`closure_start_type' to `closure_qualifier_type' and check whether
it's not null. It was not this filter being broken, it was just
being called with the wrong arguments.
* expression.cs (MemberAccess.DoResolve): use MemberLookupFinal()
and pass it the correct `qualifier_type'; this also does the error
handling for us.
svn path=/trunk/mcs/; revision=9159
* expression.cs (Invocation.EmitParams): If the we are dealing
with a non-built-in value type, load its address as well.
(ArrayCreation): Use a a pretty constant instead
of the hardcoded value 2. Use 6 instead of 2 for the number of
static initializers.
(ArrayCreation.EmitDynamicInitializers): Peel enumerations,
because they are not really value types, just glorified integers.
* driver.cs: Do not append .exe, the CSC compiler does not do it.
svn path=/trunk/mcs/; revision=9153
* ecore.cs: Remove redundant code for enumerations, make them use
the same code path as everything else, fixes the casting issue
with enumerations in Windows.Forms.
* attribute.cs: Do only cast to string if it is a string, the
validation happens later.
* typemanager.cs: Temproary hack to avoid a bootstrap issue until
people upgrade their corlibs.
svn path=/trunk/mcs/; revision=9151
* typemanager.cs (FilterWithClosure): Commented out the test for
1540 in typemanager.cs, as it has problems when accessing
protected methods from a parent class (see test-174.cs).
Notice that 1540 is still caught elsewhere.
svn path=/trunk/mcs/; revision=9142
* BaseDataList.cs:
(Render): call RenderContents (), not base.RenderContents ().
* DataList.cs: style.
But I still haven't found what i'm looking for....
svn path=/trunk/mcs/; revision=9127
* AllTests.cs: New. Added suites for very listed files.
* DataObjectTest.cs: New. Test suite for DataObject.
* DSAKeyValueTest.cs: New. Test suite for DSAKeyValue.
* KeyInfoNameTest.cs: New. Test suite for KeyInfoName.
* KeyInfoNodeTest.cs: New. Test suite for KeyInfoNode.
* KeyInfoRetrievalMethodTest.cs: New. Test suite for DSAKeyValue.
* KeyInfoTest.cs: New. Test suite for KeyInfo.
* KeyInfoX509DataTest.cs: New. Test suite for KeyInfoX509Data.
* ReferenceTest.cs: New. Incomplete test suite for Reference.
* RSAKeyValueTest.cs: New. Test suite for RSAKeyValue.
* SignatureTest.cs: New. Partial test suite for Signature.
* SignedInfoTest.cs: New. Partial test suite for SignedInfo.
* SignedXmlTest.cs: New. Partial test suite for SignedXml.
* TransformChainTest.cs: New. Test suite for TransformChain.
* XmlDsigBase64TransformTest.cs: New. Partial test suite for
XmlDsigBase64Transform
* XmlDsigXsltTransformTest.cs: New. Partial test suite for
XmlDsigXsltTransform.
svn path=/trunk/mcs/; revision=9125
* RSAPKCS1SignatureDeformatterTest.cs: Removed patch from Nick -
as it doesn't seems to work on my system and the exception behavior
isn't logical (only MD5 not SHA1, ...).
svn path=/trunk/mcs/; revision=9123
* AsymmetricSignatureDeformatter.cs: Added exception handling in
VerifySignature (moved from RSAPKCS1SignatureDeformatter).
* AsymmetricSignatureFormatter.cs: Added exception handling in
CreateSignature (moved from RSAPKCS1SignatureFormatter).
* CryptoAPITransform.cs: Removed "= false" assignation from a private
member (because this created an unwanted "ghost" constructor) and
modified Dispose declaration.
* HashAlgorithm.cs: Removed destructor. Disposing unmanaged
ressources is the responsability of each class (not an abstract class).
* RSAPKCS1SignatureDeformatter.cs: Removed a VerifySignature method
which was present in the base class AsymmetricSignatureDeformatter.
* RSAPKCS1SignatureFormatter.cs: Removed a CreateSignature method
which was present in the base class AsymmetricSignatureFormatter.
* SHA1Managed.cs: Removed sealed from class declaration. Removed
destructor and Dispose method as class is fully managed.
* ToBase64Transform.cs: Added virtual to property CanReuseTransform.
svn path=/trunk/mcs/; revision=9122
* timed-thread.c (_wapi_timed_thread_attach): Attached threads
need to store their data structure too.
* threads.c: Make sure the threading data is initialised wherever
it is needed
2002-11-20 Dick Porter <[email protected]>
* threads.c (mono_thread_init): Set the main thread's handle
svn path=/trunk/mono/; revision=9110
* ChangeLog:
* ElapsedEventArgs.cs:
* ElapsedEventHandler.cs:
* Timer.cs:
* TimersDescriptionAttribute.cs: New files.
Don't use timers yet. If you do, your program will never end.
svn path=/trunk/mcs/; revision=9103
* ecore.cs (SimpleName.SimpleNameResolve): Remove the special
handling for enumerations, as we only needed the TypeContainer
functionality to begin with (this is required for the fix below to
work for enums that reference constants in a container class for
example).
* codegen.cs (EmitContext): Make TypeContainer a DeclSpace.
* enum.cs (Enum.Define): Use `this' instead of parent, so we have
a valid TypeBuilder to perform lookups on.o
* class.cs (InheritableMemberSignatureCompare): Use true in the
call to GetGetMethod and GetSetMethod, because we are comparing
the signature, and we need to get the methods *even* if they are
private.
(PropertyBase.CheckBase): ditto.
svn path=/trunk/mcs/; revision=9102
* Mono.Data.TdsClient.Internal/Tds.cs:
* Mono.Data.TdsClient.Internal/Tds50.cs:
* Mono.Data.TdsClient.Internal/TdsPacketSubType.cs:
More changes to get Sybase queries working
properly.
svn path=/trunk/mcs/; revision=9090
* UnicodeEncoding.cs: the bytemark should only be used to return
information in GetPreamble, not to actually encode the information
on the stream. That is taken care of by the Stream classes.
* UTF8Encoding.cs: ditto.
svn path=/trunk/mcs/; revision=9068
* System.Data.SqlClient/SqlConnection.cs:
BeginTransaction bug.
* System.Data.SqlClient/SqlParameter.cs:
Add some comments to describe what is going on.
svn path=/trunk/mcs/; revision=9067
* Mono.Data.SybaseClient/SybaseCommand.cs:
* Mono.Data.SybaseClient/SybaseConnection.cs:
* Mono.Data.SybaseClient/SybaseDataReader.cs:
* Mono.Data.SybaseClient/SybaseException.cs:
* Mono.Data.SybaseClient/SybaseParameter.cs:
* Mono.Data.SybaseClient/SybaseParameterCollection.cs:
* Mono.Data.SybaseClient/SybaseTransaction.cs:
* Mono.Data.SybaseTypes/SybaseDecimal.cs:
Various changes to overhaul Sybase provider,
and bring it closer to being in-line with
the SqlClient. Can now connect to Sybase DB.
svn path=/trunk/mcs/; revision=9065
* System.Data.SqlClient/SqlCommand.cs:
Add a TODO.
* System.Data.SqlClient/SqlDataReader.cs:
Add support to get SQL Types
* System.Data.SqlClient/SqlParameter.cs:
Add some comments to describe what is going on.
svn path=/trunk/mcs/; revision=9064
* threads.c: Split out some thread initialisation so that other
files can set the start callback function.
* gc.c: Run finalisers in a separate thread, to avoid stack
overflow. Fixes bug 31333.
* appdomain.c: Set up GC finalisation thread.
* reflection.c:
* object.c:
* domain.c: Use gc.h macros for GC_malloc
svn path=/trunk/mono/; revision=9057
* AccessibleObject.cs
* Removed COMvisible. Docs say yes, but verifer says no
2002-11-17 DennisHayes <[email protected]>
* Application.cs
* Button.cs
* Control.cs
* Form.cs
* Label.cs
* ListBox.cs
* Menu.cs
* MessageBox.cs
* NativeWindow.cs
* PrintPreviewDialog.cs
* ScrollableControl.cs
* ScrollBar.cs
* VScrollBar.cs
* Made changes releated to the new win32 stuff
2002-11-17 DennisHayes <[email protected]>
* Win32Enums.cs
* Win32Handles.cs
* Win32Interfaces.cs
* Win32RegistryUtil.cs
* Win32Structs.cs
* Completed merging files from Carlos Harvey Perez
* Moved all parts of Win32.cs to these files
* eliminated Win32.cs.
*
* many things moved from win32.cs still commented out.
* Also needs to be mono styled.
* Win32.cs - removed
svn path=/trunk/mcs/; revision=9047
* AllTests.cs: Added a common RSA keypair for tests and all RSA
suites for new tests.
* RSACryptoServiceProviderTest.cs: Include tests for keygen,
import/export and signature (no encryption yet).
* RSAOAEPKeyExchangeDeformatterTest.cs: Compare results with
pre-generated vectors from Mono/Windows (cannot yet compare
with CryptoAPI/Windows as OAEP isn't available on my system).
* RSAOAEPKeyExchangeFormatterTest.cs: Test that the Formatter output
is compatible with the Deformatter.
* RSAPKCS1KeyExchangeDeformatterTest.cs: Compare results with
pre-generated vectors from Mono/Windows and CryptoAPI/Windows.
* RSAPKCS1KeyExchangeFormatterTest.cs: Test that the Formatter output
is compatible with the Deformatter.
* RSAPKCS1SignatureDeformatterTest.cs: Compare results with
pre-generated vectors from Mono/Windows and CryptoAPI/Windows.
* RSAPKCS1SignatureFormatterTest.cs: Test that the Formatter output
is compatible with the Deformatter.
svn path=/trunk/mcs/; revision=9036
* CryptoConfig.cs: Added full classes name for MapNameToOID.
* PKCS1.cs: New. Internal class for the various primitives defined
in PKCS#1 v.2.1.
* PKCS1MaskGenerationFunction.cs: Modified to use PKCS1.cs.
* RSA.cs: Added internal class RSAHandler (which implements IHandler
interface for MiniParser) to import RSA keypairs from XML strings.
* RSACryptoServiceProvider.cs: Crypto implemented using BigInteger.
Key generation is VERY LONG.
* RSAOAEPKeyExchangeDeformatter.cs: Completed using PKCS1. Not sure
of the results as this is not available in all versions of Windows.
* RSAOAEPKeyExchangeFormatter.cs: Completed using PKCS1. Not sure
of the results as this is not available in all versions of Windows.
* RSAPKCS1KeyExchangeDeformatter.cs: Completed using PKCS1.
* RSAPKCS1KeyExchangeFormatter.cs: Completed using PKCS1.
* RSAPKCS1SignatureDeformatter.cs: Completed using PKCS1.
* RSAPKCS1SignatureFormatter.cs: Completed using PKCS1.
svn path=/trunk/mcs/; revision=9035
* DataGrid.cs: Redid Clear(). Made GetResolvedDataSource() protected.
* LoginDialog.cs: if Cancel is clicked, don't set provider
* sqlsharpgtk.cs: for bottom panel (Output Results) add tool bar button
to toggle between DataGrid and TextView
svn path=/trunk/mcs/; revision=9033
* ecore.cs (EmptyCast.Child): New public property.
* statement.cs (SwitchLabel.ResolveAndReduce): Check whether the
label resolved to an EmptyCast. Fixes#34162.
(GotoCase.Resolve): Likewise.
(Block.EmitMeta): Likewise.
svn path=/trunk/mcs/; revision=9030
* expression.cs (Invocation.BetterConversion): Prefer int over
uint; short over ushort; long over ulong for integer literals.
Use ImplicitConversionExists instead of StandardConversionExists
since we also need to check for user-defined implicit conversions.
Fixes#34165. Added test-173.cs.
svn path=/trunk/mcs/; revision=9028
* expression.cs (Invocation.BetterConversion): Prefer int over
uint; short over ushort; long over ulong for integer literals.
Fixes#34165. Added test-173.cs.
svn path=/trunk/mcs/; revision=9027
* AllTests.cs: Added suites for DSASignatureDeformatter,
DSASignatureFormatter.
* CryptoConfigTest.cs: Tests new URLs. This test will fail
if System.Security.dll isn't present (or not yet compiled).
* DSACryptoServiceProviderTest.cs: New. Key generation (limited
because it's too slow), Import/Export, Signature and Verification.
* DSASignatureDeformatterTest.cs: New. Test signature verification.
* DSASignatureFormatterTest.cs: New. Test signature creation.
* DSATest.cs: Comment DSA-derived test class as DSA constructor
is internal. Reworked the test suite.
* SignatureDescriptionTest.cs: Added tests for
DSASignatureDescription and RSAPKCS1SHA1SignatureDescription.
svn path=/trunk/mcs/; revision=9021
* AsymmetricAlgorithm.cs: Added internal class AsymmetricParameters
(which implements the IReader interface for MiniParser). Corrected
Dispose declaration.
* BigInteger.cs: New. Internal class for handling BIG integers for
asymmetric crypto (both RSA and DSA). Thanks to Chew Keong TAN !
* CryptoConfig.cs: Added XMLDSIG URLs in CreateFromName.
Will dynamically load System.Security.dll, when required,
to return instance of those classes. Also CryptoConfig can now
create any object (e.g. System.IO.MemoryStream) !
* DSA.cs: Added internal class DSAHandler (which implements IHandler
interface for MiniParser) to import DSA keypairs from XML strings.
* DSACryptoServiceProvider.cs: Crypto fully implemented using
BigInteger. Key generation (group) is VERY long.
* MiniParser.cs: New. Minimal XML parser by Sergey Chaban. Used to
import keypairs in XML strings.
* SignatureDescription.cs: Removed local CreateFromName (to use
CryptoConfig - which actually can create anything). Added internal
classes DSASignatureDescription and RSAPKCS1SHA1SignatureDescription.
svn path=/trunk/mcs/; revision=9020
* DataGrid.cs: made this a GTK# widget and
removed any references to System.Data
* DbProvider.cs: added DbDataAdpter class
* SqlEditorSharp.cs: made this an actual GTK# widget and
added a few more SQL keywords
* sqlsharpgtk.cs: use the GTK# DataGrid for results by
using a DbDataAdapter to Fill a DataTable and then
data bind that DataTable to the DataGrid
* win32.make: added DataGrid.cs to build
* DataGrid.Makefile.win32: removed file
svn path=/trunk/mcs/; revision=9019
* makefile.gnu: `binary-snapshot' is now an alias for `dist'.
Please update your scripts, the `dist' target will disappear soon.
svn path=/trunk/mcs/; revision=9017
* typemanager.cs (RealMemberLookup): Reverted Miguel's patch from
October 22nd; don't do the cs1540 check for static members.
* ecore.cs (PropertyExpr.ResolveAccessors): Rewrote this; we're
now using our own filter here and doing the cs1540 check again.
svn path=/trunk/mcs/; revision=9016
* DataGrid.cs
* DataGrid.Makefile.win32: DataGrid demo based on the
TreeViewDemo in GTK#. It works on GTK# Win32.
Includes the start of data binding for a GTK# widget.
However, it needs to be generalized into base classes.
The goal is to make a DataGrid for GTK# to be like
a ASP.NET DataGrid and Windows.Froms DataGrid.
svn path=/trunk/mcs/; revision=9015
* decl.cs (MemberCache.AddMethods): Use BindingFlags.FlattenHierarchy
when looking up static methods to make this work on Windows.
Fixes#33773.
svn path=/trunk/mcs/; revision=9012
* ecore.cs (PropertyExpr.VerifyAssignable): Check whether we have
a setter rather than using PropertyInfo.CanWrite.
svn path=/trunk/mcs/; revision=9010
* System.Data.Common/DbDataPermission.cs:
* System.Data.SqlClient/SqlClientPermission.cs:
Make these agree on the class status page.
* System.Data.SqlClient/SqlCommand.cs:
- Fix up handling of GUID and [Var]Binary, and Image types
* System.Data.SqlClient/SqlParameter.cs:
- Provide support for conversion between Type,
DbType, SqlDbType, and the SQL server type names.
- Fix up handling of GUID and [Var]Binary types
* System.Data.SqlClient/SqlParameterCollection.cs:
Correct all of the Add methods.
* Test/SqlTest.cs:
- Add more types to test: unique identifier, binary,
image, smalldatetime, money, smallmoney, timestamp
svn path=/trunk/mcs/; revision=9003
* CryptographicUnexpectedOperationException.cs: Forgot it last time!
* FromBase64Transform.cs: Added missing virtual to CanReuseTransform.
Changed Dispose().
* HashAlgorithm.cs: Changed Dispose().
* MD5CryptoServiceProvider.cs: Added destructor and Dipose(bool).
* PasswordDeriveBytes.cs: Changed some declaration from
protected to private.
* RC2.cs: Added valid keysize check in EffectiveKeySize.
* RC2CryptoServiceProvider.cs: Overriden EffectiveKeySize to match
corlib declarations.
* RSAOAEPKeyExchangeDeformatter.cs: Changed some declaration from
protected to private.
* RSAOAEPKeyExchangeFormatter.cs: Changed some declaration from
protected to private.
* RSAPKCS1KeyExchangeDeformatter.cs: Changed some declaration from
protected to private.
* RSAPKCS1KeyExchangeFormatter.cs: Changed some declaration from
protected to private.
* RSAPKCS1SignatureDeformatter.cs: Changed some declaration from
protected to private.
* RSAPKCS1SignatureFormatter.cs: Changed some declaration from
protected to private.
* SHA1CryptoServiceProvider.cs: Moved SHA1 code to SHA1Internal.
SHA1CryptoServiceProvider now use SHA1Internal. Added Dispose and
destructor.
* SHA1Managed.cs: New. Use SHA1Internal. Same as
SHA1CryptoServiceProvider but is required for binary compatibility.
* SHA256Managed.cs: Changed some declaration from protected to private.
* SHA384Managed.cs: Changed some declaration from protected to private.
* SHA512Managed.cs: Changed some declaration from protected to private.
* SymmetricAlgorithm.cs: Added Clear(), changed Dispose() and added
virtual to Dispose(bool).
* ToBase64Transform.cs: Added missing virtual to CanReuseTransform.
Changed Dispose().
* TripleDESCryptoServiceProvider.cs: Added missing sealed to class
declaration.
svn path=/trunk/mcs/; revision=8998
* timed-thread.c: Removed unneeded parameters in
_wapi_timed_thread_attach().
* threads.c: Renamed AttachThread() to make it not look like
external API. Removed unneeded parameters.
2002-11-15 Dick Porter <[email protected]>
* threadpool.c:
* threads.c:
* appdomain.c: Removed mono_runtime_init_with_attach(),
mono_thread_create_arg(), and mono_thread_init_with_attach(), by
merging the extra parameter with the existing function. Removed
unneeded code in mono_thread_attach().
2002-11-15 Dick Porter <[email protected]>
* jit.c: Pass the attach callback to mono_runtime_init().
2002-11-15 Dick Porter <[email protected]>
* interp.c: mono_runtime_init() now has an extra parameter for
thread attaching.
svn path=/trunk/mono/; revision=8996
* class.cs: back out the last two changes to class.cs, since that
breaks the compilation of the string internalcall constructors in
corlib.
svn path=/trunk/mcs/; revision=8995
* Test/SqlTest.cs:
- Add more types to test: unique identifier, binary
types.
* System.Data.SqlClient/SqlParameter.cs:
- Provide support for conversion between Type,
DbType, SqlDbType, and the SQL server type names.
- Fix up handling of GUID and [Var]Binary types
* System.Data.SqlClient/SqlCommand.cs:
- Fix up handling of GUID and [Var]Binary types
svn path=/trunk/mcs/; revision=8992
* System.Data/DataColumnPropertyDescriptor.cs
* System.Data/DataRowView.cs
* System.Data/DataView.cs
* System.Data.Common/DbDataRecord.cs: a little bit more
implementation for data binding purposes
* Test/PostgresTest.cs
* Test/TestSqlDataAdapter.cs
* Test/TestSqlException.cs
* TestSqlParameters.cs: fixed test for PostgreSQL's new home
at Mono.Data.PostgreSqlClient
svn path=/trunk/mcs/; revision=8991
* expression.cs (IndexerAccess.DoResolve): Do a DeclaredOnly
iteration while looking for indexers, this is needed because the
indexer may have a different name in our base classes. Fixed the
error reporting (no indexers at all, not get accessor, no
overloaded match). Fixes bug #33089.
(IndexerAccess.DoResolveLValue): Likewise.
svn path=/trunk/mcs/; revision=8988
* System.Data.SqlClient/SqlCommand.cs:
Slight reformatting of Bit values and sql statements
* System.Data.SqlClient/SqlDataReader.cs:
Implement RecordsAffected
Complete SchemaTable
* System.Data.SqlClient/SqlParameter.cs:
Propertly support Char/NChar
* System.Data.SqlClient/SqlXmlTextReader.cs:
Add Close () to the Dispose () method
svn path=/trunk/mcs/; revision=8986
* class.cs (PropertyBase.CheckBase): Make this work for multiple
indexers. Fixes the first part of bug #33089.
(MethodSignature.InheritableMemberSignatureCompare): Added support
for properties.
svn path=/trunk/mcs/; revision=8984
* image.c (mono_image_loaded_by_guid): a method to get loaded
images by guid.
(load_metadata_ptrs): we store the guid as string.
svn path=/trunk/mono/; revision=8981
* PgSqlConnection.cs: redid connection parameters
based on SqlClient's SqlConnection
* PgSqlCommand.cs: redid handling of different
CommandType of CommandText, StoredProcedure,
and TableDirect. Got rid of debug messages
svn path=/trunk/mcs/; revision=8980
* Test/SqlTest.cs:
New class added for testing SqlClient
* System.Data.SqlClient/SqlCommand.cs:
Add handling for SqlDbType.Bit
* System.Data.SqlClient/SqlConnection.cs:
Implement Dispose () methods.
Change ConnectionString setter
* System.Data.SqlClient/SqlDataReader.cs:
Implement Dispose () methods.
Set RecordsAffected to -1 by default. Need to
set this correctly in the future.
* System.Data.SqlClient/SqlCommandBuilder.cs:
* System.Data.SqlClient/SqlDataAdapter.cs:
* System.Data.SqlClient/SqlTransaction.cs:
* System.Data.SqlClient/SqlXmlTextReader.cs:
Implement Dispose () methods.
svn path=/trunk/mcs/; revision=8975
* AspElements.cs: added ServerComment class.
* AspParser.cs: ignore ServerComments tags. Remove server comments when
in verbatim mode.
Fixes#33482.
* PageCompiler.cs: check if the type is already cached before generating
the C# file.
* TemplateFactory.cs: if csFile parameter is null, only checks if we
already have the page compiled.
svn path=/trunk/mcs/; revision=8974
* attribute.cs (Attribute.Resolve): Catch the
NullReferenceException and report it since it isn't supposed to
happen.
svn path=/trunk/mcs/; revision=8972
* Mono.Data.TdsClient.Internal/TdsComm.cs:
Comment out asynchronous socket connect
because it doesn't work properly yet on
Linux.
svn path=/trunk/mcs/; revision=8968
* Mono.Data.MySql/MySqlParameter.cs
* Mono.Data.MySql/MySqlParameterCollection.cs: added
simple input parameters support. AFAIK, MySQL does not
support parameters, so this is just a search and replace
* Test/TestParameters.cs: add file to test Parameters
* Test/TestDataAdapter.cs: add file to test MySqlDataAdapter
* Mono.Data.MySql.build: added files to windows build
* list: added files to linux build
* Mono.Data.MySql/MySql.cs: make sure all
DllImport attributes
also have the SuppressUnmanagedCodeSecurity attribute
* Mono.Data.MySql/MySqlCommand.cs: add support for
input parameters, don't execute empty queries,
and support of CommandTypes of StoredProcedure and TableDirect
* Mono.Data.MySql/MySqlConnection.cs: borrowed Tim Coleman's
code from SqlConnection to handle connection
parameters correctly
* Mono.Data.MySql/MySqlTypes.cs
* Mono.Data.MySql/MySqlDataReader.cs: started support
for NULL values.
* Test/MySqlTest.cs: test for NULL values, stored procedures,
executing a non-query via ExecuteReader(), new connection
string functionality, and exception handling
svn path=/trunk/mcs/; revision=8967
* String.cs:
(Equals (str, str)): use 'as' instead of casting to object.
(Equals (obj)): check the length of the strings (until now,
"Hello".Equals ((object) "Hellow World!) was true!).
svn path=/trunk/mcs/; revision=8963
* doc/oledb
* doc/odbc
* doc/mysql
* doc/sqlite
* doc/sqlclient
* doc/tdsclient
* doc/sybase
* doc/firebird: added web pages
for each specific data provider
* doc/ado-net
* doc/postgresql: updated web page
with current status
* doc/web/commands
* doc/web/makefile: updated to include
svn path=/trunk/mono/; revision=8949
* expression.cs (Binary.EmitBranchable): Also handle the cases for
LogicalOr and LogicalAnd that can benefit from recursively
handling EmitBranchable. The code now should be nice for Paolo.
svn path=/trunk/mcs/; revision=8948
* LosFormatter.cs: added array serialization support. Disabled binary
serialization and add some debugging code.
* StateBag.cs: the length of the list of value can be less than the
length if the list of keys when remaining values are null.
svn path=/trunk/mcs/; revision=8932
* HttpApplication.cs: style.
* HttpException.cs: style.
* HttpRuntime.cs: only flush the response if there are no errors.
Otherwise, write an error output.
* HttpWriter.cs: change Unicode to UTF8.
svn path=/trunk/mcs/; revision=8930
* SqlSharpCli.cs: added new SQL# command \exexml
to execute a query and put results in an xml file via a
generic DbDataAdapter and a DataSet. Added
Mono.Data.SybaseClient as a provider to use
via \provider sybase which is easier than SQL# command
\loadextprovider Mono.Data.SybaseClient Mono.DataSybaseClient.SybaseConnection
svn path=/trunk/mcs/; revision=8924
* error.[ch]: added errno_to_WSA (). It displays a warning and return
WSASYSCALLFAILURE if there is no error mapping for the given errno,
* sockets.c: use errno_to_WSA and fixed display of warning for h_errno.
svn path=/trunk/mono/; revision=8920
* System.Data.OleDb/OleDbDataAdapter.cs: cleaned up implementation,
based on the PgSql/SqlClient data adapter classes.
svn path=/trunk/mcs/; revision=8908
* list:
Add new internal tds classes
* System.Data.Common/DbDataAdapter.cs:
* System.Data.SqlClient/SqlDataAdapter.cs:
Change event calling system
* System.Data.SqlClient/SqlClientPermission.cs:
* System.Data.SqlClient/SqlClientPermissionAttribute.cs:
* System.Data.SqlClient/SqlDataReader.cs:
Add comments
* System.Data.SqlClient/SqlCommand.cs:
Some changes to make consistent with .NET based on Sql server traces
Implement command timeout
* System.Data.SqlClient/SqlCommandBuilder.cs:
Make sure that we only build a command if key info found
* System.Data.SqlClient/SqlConnection.cs:
Change event calling system
Some changes to make consistent with .NET based on Sql server traces
Implement connection timeout
* System.Data.SqlClient/SqlConnectionPool.cs:
Implement connection timeout
* System.Data.SqlClient/SqlError.cs:
Implement ToString ()
* System.Data.SqlClient/SqlException.cs:
Mucho implementation and cleanup
* System.Data.SqlClient/SqlParameter.cs:
Implement Clone ()
* System.Data.SqlClient/SqlParameterCollection.cs:
Code cleanup
* System.Data.SqlClient/SqlTransaction.cs:
Move some of the transaction creation to SqlConnection to be consistent
with .NET SQL traces
svn path=/trunk/mcs/; revision=8906
* HttpApplication.cs: don't begin the request using ExecuteNextAsync
(it fails to work on NetServ).
* HttpWorkerRequest.cs: typo.
svn path=/trunk/mcs/; revision=8900
* System.Data/DataRow.cs:
* System.Data/DataTable.cs:
Some fix-ups related to the DbDataAdapter to make it work.
* System.Data.Common/DbDataAdapter.cs:
Fix the Fill () and Update () methods. These now work
fairly well. Need mucho testing.
* System.Data.SqlClient/SqlCommandBuilder.cs:
Support table mappings and parameter source versions now.
* System.Data.SqlClient/SqlConnection.cs:
* System.Data.SqlClient/SqlTransaction.cs:
Add set accessor for transaction so that SqlTransaction.Commit ()
will remove itself from the connection.
* System.Data.SqlClient/SqlDataAdapter.cs:
Update/Insert/Delete command should be null by default.
* System.Data.SqlClient/SqlException.cs:
Remove a TODO attribute
* System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
Properly handle the SqlCommand object
svn path=/trunk/mcs/; revision=8889
* typemanager.cs (LookupType): Added a negative-hit hashtable for
the Type lookups, as we perform quite a number of lookups on
non-Types. This can be removed once we can deterministically tell
whether we have a type or a namespace in advance.
But this might require special hacks from our corlib.
* TODO: updated.
* ecore.cs (TryImplicitIntConversion): Handle conversions to float
and double which avoids a conversion from an integer to a double.
svn path=/trunk/mcs/; revision=8882
* System.Data.SqlTypes/SqlDecimal.cs: fixed build. Someone should check
my comments and do something more appropiate.
svn path=/trunk/mcs/; revision=8879
* appdomain.c: insert the loaded assemblies in the domain->assemblies in
the hook function called when an assembly is loaded.
* domain.c: Modified file.
(mono_domain_assembly_load): removed hash table insertion of assemblies.
Fixes bug #33196.
svn path=/trunk/mono/; revision=8878
* System.Data.SqlTypes/SqlDecimalTest.cs
* System.Data.SqlTypes/SqlDoubleTest.cs
* System.Data.SqlTypes/SqlMoneyTest.cs
* System.Data.SqlTypes/SqlSingleTest.cs:
mcs don't understand (currently) correctly what 1e10 means,
with mcs it must be 1E+10.
svn path=/trunk/mcs/; revision=8874
* HttpValueCollection.cs: the value may contain trailing '=' as it is
UrlEncoded. Don't split name=value based on '='.
svn path=/trunk/mcs/; revision=8866
* System.Data.Common/DbDataAdapter.cs:
Remove NotImplementedException in Dispose
* System.Data.Common/FieldNameLookup.cs:
Should be sealed
* System.Data.SqlClient/SqlCommand.cs:
Fix CommandText accessor (stack overflow)
Implement DeriveParameters method
* System.Data.SqlClient/SqlCommandBuilder.cs:
Implement this class
* System.Data.SqlClient/SqlConnection.cs:
Change application name to "Mono SqlClient Data Provider"
* System.Data.SqlClient/SqlDataReader.cs:
Add new schema information
* System.Data.SqlClient/SqlError.cs:
* System.Data.SqlClient/SqlErrorCollection.cs:
Remove internal methods, TODO attributes
* System.Data.SqlClient/SqlParameter.cs:
Add new internal constructor for DeriveParameters use
* System.Data.SqlClient/SqlParameterConverter.cs:
Add missing methods based on class status
svn path=/trunk/mcs/; revision=8864
* pending.cs (GetMissingInterfaces): New method used to remove all
the interfaces that are already implemented by our parent
classes from the list of pending methods.
* interface.cs: Add checks for calls after ResolveTypeExpr.
svn path=/trunk/mcs/; revision=8862
* autogen.sh: make it work when MONO_PATH is set and it has more than
one directory or ends in ":". Also check that the directory added to
ACLOCAL_FLAGS and PATH exist (aclocal fails if they don't).
svn path=/trunk/mono/; revision=8846
* rand.c: use /dev/urandom. If it fails to open, use the previous one.
Read until the buffer is filled completely.
svn path=/trunk/mono/; revision=8845
* Common/ByteEncoding.cs: fixed buglet in GetString.
* Common/Manager.cs: the handlers Hashtable and GetType are now case
insensitive because Normalize may return lower case strings.
In GetEncoding (string) also look for the name passed without prepending
any string when the encoding is not found.
When getting the stream for the resource, if it's null, load the
internal list of classes. Catch the correct exception.
svn path=/trunk/mcs/; revision=8843
* class.cs (Class.Emit): Report warning 67: event not used if the
warning level is beyond 3.
* ecore.cs (Expression.ConvertExplicit): Missed a check for expr
being a NullLiteral.
* cs-parser.jay: Fix, Gonzalo reverted the order of the rank
specifiers.
* class.cs (TypeContainer.GetClassBases): Cover a missing code
path that might fail if a type can not be resolved.
* expression.cs (Binary.Emit): Emit unsigned versions of the
operators.
* driver.cs: use error 5.
svn path=/trunk/mcs/; revision=8842
* TdsBigDecimal.cs:
New class added to handle (potentially) large
decimal values
* Tds.cs:
Modified to use TdsBigDecimal instead of
decimal for transit of (potentially) large
decimal values
svn path=/trunk/mcs/; revision=8814
* appdomain.c: implemented InitAppDomainSetup. Delayed
AppDomain.SetupInformation until mono_runtime_exec_main, where we get
the entry_assembly.
* assembly.c: base_dir is now an absolute path ending with
G_DIR_SEPARATOR.
* icall.c: modified get_location according to the above changes.
* object.c: init AppDomain.SetupInformation for the default domain after
we have the entry assembly.
* domain.c: when unloading a domain, setup = NULL.
svn path=/trunk/mono/; revision=8812
* list: added System.Data/XmlConstants.cs to
Linux build
* System.Data/XmlConstants.cs: added -
* System.Data/DataTable.cs
* System.Data/DataSet.cs
* System.Data/DataColumn.cs
* System.Data/DataColumnCollection.cs
* System.Data/DataRelation.cs: modified -
Began initial implementation of WriteXml
and WriteXmlSchema. There is no support for DiffGrams
yet. In WriteSchema mode, relationships are missing,
all types are xs:string and the namespacing is not
working properly. Added support for Ordinals in the
DataColumnCollection and added support for
namespaces and prefixes.
svn path=/trunk/mcs/; revision=8811
* AllTests.cs: New. Include all (1) tests files for X509Certificates.
* X509CertificateTest.cs: New. Generated tests using some (11 right
now) X.509 certificates. There is a bigger version (346 certs today)
to spot new problems (but once spotted they move into this small file).
GetEffectiveDateString and GetExpirationDateString tests are commented.
svn path=/trunk/mcs/; revision=8806
* X509Certificate.cs: Updated some DN cases and some minor time issues.
GetEffectiveDateString and GetExpirationDateString still don't match
MS implementation (however they seems, most of the time, to be on par
with the Windows Certificate Viewer - certmgr.exe).
svn path=/trunk/mcs/; revision=8805
* object.h, object.c: introduced mono_object_get_virtual_method ()
to lookup the method invoked on an object when a callvirt is done on
a method.
* icall.c: make MethodInfo::Invoke() always do a virtual call.
svn path=/trunk/mono/; revision=8800
* TdsColumnStatus.cs:
Newly added to handle column metadata
* Tds.cs
Handle table name and column detail results
* Tds42.cs
* Tds50.cs
* Tds70.cs
rename TableName BaseTableName for consistency
* TdsPacketSubType.cs:
We now know what subtype 0xa5 is
* TdsPacketTableNameResult.cs:
Add means to store table names
* TdsSchemaInfo.cs:
Add new schema information
svn path=/trunk/mcs/; revision=8792
* System.Data.SqlClient/SqlCommand.cs:
Use SET NO_BROWSETABLE ON when CommandBehavior is KeyInfo
* System.Data.SqlClient/SqlDataReader.cs:
Get more schema info if available
* list:
Add Mono.Data.TdsClient.Internal.TdsColumnStatus
svn path=/trunk/mcs/; revision=8791
* AllTests.cs: Added suites for SignatureDescription and
activated suites for SHA384Managed and SHA512Managed.
* SignatureDescriptionTest.cs: New. Basic tests (because I don't
know the context in which the class is used).
svn path=/trunk/mcs/; revision=8790
* SignatureDescription.cs: Updated class to match unit test results
* X509Certificate.cs: REMOVED! Wrong namespace. An almost complete
implementation is now in System.Security.Cryptography.X509Certificates
svn path=/trunk/mcs/; revision=8789
* appdomain.c: invoke AssemblyLoad and AsemblyResolve events in the
current domain when loaded an assembly and failed to load it.
* icall.c: changed ...Assembly_GetType to Assembly_InternalGetType.
svn path=/trunk/mono/; revision=8787
* AppDomain.cs: implemented a couple of methods called from the runtime
to fire AssemblyLoad and AssemblyResolve events.
svn path=/trunk/mcs/; revision=8786
* X509Certificate.cs: REMOVED! Wrong namespace. An almost complete
implementation is now in System.Security.Cryptography.X509Certificates
svn path=/trunk/mcs/; revision=8755
* ChangeLog: New. First entry ;-)
* X509Certificates.cs: New. Almost complete - except
CryptoAPI link, CreateFromSignedFile and some date issues.
svn path=/trunk/mcs/; revision=8754
property, which now sets stream to null (it's set by GetStream()). This
should make GetStream() work on a TcpClient which has had the socket set
by assignment to the Client property, not only one that has been created
by TcpListener.AcceptTcpClient().
svn path=/trunk/mcs/; revision=8753
* System.Data.SqlClient/SqlCommand.cs:
Change to use sp_executesql to run regular text queries.
Now, sp_executesql for text, sp_execute for prepared,
and execute for SPs means everything runs a procedure.
* System.Data.SqlClient/SqlParameter.cs:
Allow client to set parameter name in Prepare ()
* System.Data.SqlClient/SqlParameterCollection.cs:
Implement some methods
* System.Data.SqlClient/SqlDataReader.cs:
Since everything is an SP now, we know that when
we see DoneProc, that we are really done.
svn path=/trunk/mcs/; revision=8749
* ITds.cs:
Add DoneProc property
* Tds.cs:
*Lots*. Some stuff to get binary types
to work, other stuff to get new prepares
working.
* TdsPacketEndTokenResult.cs:
Add Packetsubtype property
* TdsPacketRowResult:
Now implements ICollection and IList.
svn path=/trunk/mcs/; revision=8747
* System.Data.Common/DbEnumerator.cs :
Throw correct exception on Reset ()
Add ColumnSize to schema table.
* System.Data.SqlClient/SqlDataReader.cs :
Add ColumnSize to schema table.
* System.Data.SqlClient/SqlCommand.cs :
Change the way that preparing is handled.
Now uses sp_prepare on the server instead of temp
stored procedures because it's the Right Thing[tm] to do.
* System.Data.SqlClient/SqlConnection.cs :
Store data readers here rather than in command
* System.Data.SqlClient/SqlDataReader.cs :
More implementation, including binary types
* System.Data.SqlClient/SqlParameter.cs :
Lowercase type name
svn path=/trunk/mcs/; revision=8746
* System.Web/HttpCookie.cs: made GetCookieHeader internal.
* System.Web/HttpRequest.cs: get cookies from request.
* System.Web/HttpResponse.cs: send cookies. Implemented
AddFileDependencies (). Added check for _Writer == null in Flush
(Patrik ;-). Clear the content if HEAD or SupressContent == true.
Removed redirect hack used in old server.
* System.Web.Compilation/AspGenerator.cs: undo one-liner change.
* System.Web.UI/Page.cs: implemented FileDependecies and made it
protected.
svn path=/trunk/mcs/; revision=8743
* OdbcDataReader.cs: - uncommented code, but
I put a FIXME: according to Brian,
this does not work on MS .NET
however, we need it for Mono
for now. schemaRow.AcceptChanges(),
- implement IEnumerable.GetEnumerator()
* libodbc.cs: changed the DllImport from "odbc32.dll"
to "odbc32"
svn path=/trunk/mcs/; revision=8739
* Mono.Data.SqliteClient/SqliteDataReader.cs: redid the
implementation for GetSchemaTable() and
implemented IEnumerator IEnumerable.GetEnumerator ()
svn path=/trunk/mcs/; revision=8732
* Mono.Data.MySql/MySqlDataAdapter.cs
* Mono.Data.MySql/MySqlRowUpdatedEventArgs.cs
* Mono.Data.MySql/MySqlRowUpdatedEventHandler.cs
* Mono.Data.MySql/MySqlRowUpdatingEventArgs.cs
* Mono.Data.MySql/MySqlRowUpdatingEventHandler.cs: added new
files for the Data Adapter for the MySQL data provider
* list: added new files to Linux build
* Mono.Data.MySql/MySqlCommand.cs: implement the
interfaces correctly and Dispose(). Allow the provider to
execute multiple queries for a reader
* Mono.Data.MySql/MySqlTransaction.cs
* Mono.Data.MySql/MySqlConnection.cs: implement the
interfaces correctly and Dispose
* Mono.Data.MySql/MySqlDataReader.cs: implement the
interfaces correctly and Dispose(). Allow the provider to
execute multiple queries for a reader. Implement
IEnumerable.GetEnumerator() to return a DbEnumerator
which can be used to do a
foreach (DbDataRecord rec in myDataReader) { ... }
and allows a IDataReader to be "data binded" to a DataGrid.
Thanks goes to Tim Coleman (I copied this from his SqlDataReader).
svn path=/trunk/mcs/; revision=8728
* System.Data.Common/DbDataAdapter.cs :
Fix handling of nulls
* System.Data.Common/DbDataRecord.cs :
Change GetFieldType ()
* System.Data.Common/DbEnumerator.cs :
Add new schema information
* System.Data.Common/FieldNameLookup.cs :
Change definition of schema
* System.Data.Common/SchemaInfo.cs :
Add more information
* System.Data.SqlClient/SqlDataReader.cs :
get more schema table data
* list :
Add Mono.Data.TdsClient.Internal.TdsSchemaInfo
svn path=/trunk/mcs/; revision=8722
* ecore.cs (PropertyExpr.DoResolveLValue, PropertyExpr.DoResolve):
Check whether the base is abstract and report an error if so.
* expression.cs (IndexerAccess.DoResolveLValue,
IndexerAccess.DoResolve): ditto.
(Invocation.DoResolve): ditto.
(Invocation.FullMethodDesc): Improve the report string.
* statement.cs (Block): Eliminate IsVariableDefined as it is
basically just a wrapper for GetVariableInfo.
svn path=/trunk/mcs/; revision=8718
* SqlBinary.cs:
* SqlBoolean.cs:
* SqlByte.cs:
* SqlDecimal.cs:
* SqlDouble.cs:
* SqlInt16.cs:
* SqlInt64.cs:
* SqlString.cs: Some bugfixes and some TODOs but so much
work to do.
svn path=/trunk/mcs/; revision=8714
* icall.c:
* file-io.h:
* file-io.c: Return the error status in a parameter, as the
GetLastError() value has long since been blown away if we try and
look it up in a subsequent internal call invocation. Delete the
GetLastError() internal call, because it's useless.
2002-10-31 Dick Porter <[email protected]>
* io.h:
* io.c: Define and use INVALID_FILE_ATTRIBUTES
2002-10-31 Dick Porter <[email protected]>
* Makefile.am: The previous automake-1.6 fix broke automake-1.4 on
cygwin. Try again.
svn path=/trunk/mono/; revision=8713
* FileStream.cs: Fix buffering properly this time. Also kludge
around broken pipe errors, treating them as EOF instead of
throwing an IO exception.
* MonoIO.cs: Return the error status in a parameter, as the
GetLastError() value has long since been blown away if we try and
look it up in a subsequent internal call invocation.
* Process.cs:
* Environment.cs:
* FileSystemInfo.cs:
* FileInfo.cs:
* File.cs:
* Directory.cs: MonoIO methods now have an error parameter
2002-10-31 Dick Porter <[email protected]>
* list.unix: Added MonoIO and MonoIOError to the build
svn path=/trunk/mcs/; revision=8712
* System.Data.Common/FieldNameLookup.cs:
* System.Data.Common/SchemaInfo.cs:
* System.Data.SqlClient/SqlXmlTextReader.cs:
New classes added
* list :
Class list changed in build
* System.Data.SqlClient/SqlCommand.cs:
Added support for command behaviors
Refactored a bunch of code
Implement ExecuteScalar
Implement ExecuteXmlReader
* System.Data.SqlClient/SqlConnection.cs:
Moved CheckForErrors here
* System.Data.SqlClient/SqlDataAdapter.cs:
Code reformatting
* System.Data.SqlClient/SqlDataReader.cs:
Implement GetEnumerator
Fix NextResult, Read
Add SqlDataReaderEnumerator private class
* System.Data.SqlClient/SqlParameter.cs:
Move some of the Prepare code from SqlCommand to here
* System.Data.SqlClient/SqlTransaction.cs:
Move error checking to SqlConnection
svn path=/trunk/mcs/; revision=8703
* support.cs (ReflectionParamter.ParameterType): We unwrap the
type, as we return the actual parameter ref/unref state on a
different call.
svn path=/trunk/mcs/; revision=8702
* System.Web/HttpRequest.cs: fixed GetRawContent (). Now it only tries
to read at most ContentLength bytes.
* System.Web/HttpResponse.cs: now it sends the headers. Added
X-Powered-By header :-).
* System.Web/HttpRuntime.cs: fixed typo.
* System.Web/HttpValueCollection.cs: cosmetic changes.
* System.Web.UI/Control.cs: save control names instead of the controls
themselves to the ViewState.
* System.Web.UI/LosFormatter.cs: added support for serializing unknown
types. BinaryFormatter does not work so you better don't store anything
unknown in ViewState.
* System.Web.UI/Page.cs: GetViewStateString works now using
LosFormatter. Complete "Control execution lifecycle" by unloading all
the child controls. Check for null in RaisePostBackEvents.
LoadPageViewStateFromPersistenceMedium uses LosFormatter too.
POST works now!
svn path=/trunk/mcs/; revision=8699
* support.cs: Return proper flags REF/OUT fixing the previous
commit.
* expression.cs: Reverted last patch, that was wrong. Is_ref is
not used to mean `ref' but `ref or out' in ParameterReference
svn path=/trunk/mcs/; revision=8698
* expression.cs (ParameterReference.DoResolve, DoResolveLValue):
Do not use ISBYREF because that is a flag that says that either
REF or OUT are set, use REF when we mean ref.
svn path=/trunk/mcs/; revision=8692
* delegate.cs (FullDelegateDesc): use ParameterDesc to get the
full type signature instead of calling TypeManger.CSharpName
ourselves.
* support.cs (InternalParameters.ParameterDesc): Do not compare
directly to the modflags, because REF/OUT will actually be bitsets
if set.
svn path=/trunk/mcs/; revision=8690
* Encoding.cs (UTF8Unmarked): New static property, used to return
a no-markers UTf8 encoder, used in a few places in the class library.
svn path=/trunk/mcs/; revision=8684
* System.Data.SqlClient/SqlCommand.cs:
Added code to handle parameters for queries
* System.Data.SqlClient/SqlConnection.cs:
Properly handle resetting SqlConnections
* System.Data.SqlClient/SqlDataReader.cs:
Properly handle the case where no results are returned
* System.Data.SqlClient/SqlParameter.cs:
Default direction to Input
* System.Data.SqlClient/SqlParameterCollection.cs:
Implement GetEnumerator
svn path=/trunk/mcs/; revision=8670
* Tds.cs:
Add much handling to get the following types
working in queries: string, int, decimal
All sorts of other bug fixing and general
purpose hackery.
* Tds42.cs:
* Tds50.cs:
* Tds70.cs:
ProcessColumnInfo was abstracted in Tds.cs
and subclassed, because 7.0 provides the information
in a different format.
* TdsColumnSchema.cs:
Added size, precision, scale
* TdsComm.cs:
Fixed GetString because it wasn't working properly
with TDS 7.0.
* TdsMessage.cs:
Change state and severity to byte instead of int
because that is more consitent.
svn path=/trunk/mcs/; revision=8645
* cs-parser.jay: Ugly. We had to add a multiplicative_expression,
because identifiers after a parenthesis would end up in this kind
of production, and we needed to desamiguate it for having casts
like:
(UserDefinedType *) xxx
svn path=/trunk/mcs/; revision=8643
* XmlAttribute.cs : add internal 'IsDefault' property
(equals to !Specified)
* XmlImplementation.cs : added 'internalNameTable' property.
* XmlDocument.cs :
+ now allows "" for 'standalone' in CreateXmlDeclaration.
+ implemented 'Implementation' property and constructor with it.
+ added logic for appending name table (but still no use)
+ implemented property 'DocumentType'
(but without internalSubset parsing. wait for next update.)
* XmlNode.cs :
+ modified AppendChild() and RemoveChild() to support fragment.
+ modified AppendChild() to remove newChild from its parent
when newChild is already in the other place.
+ modified RemoveChild() to set parentNode null.
+ modified ConstructDOM() to create DocumentType,
and fixed access modifier ('internal protected' to 'internal')
* XmlLinkedNode.cs : fixed 'NextSibling' to return null
when its parent is null.
svn path=/trunk/mcs/; revision=8632
(equals to !Specified)
* XmlImplementation.cs : added 'internalNameTable' property.
* XmlDocument.cs :
+ now allows "" for 'standalone' in CreateXmlDeclaration.
+ implemented 'Implementation' property and constructor with it.
+ added logic for appending name table (but still no use)
+ implemented property 'DocumentType'
(but without internalSubset parsing. wait for next update.)
* XmlNode.cs :
+ modified AppendChild() and RemoveChild() to support fragment.
+ modified AppendChild() to remove newChild from its parent
when newChild is already in the other place.
+ modified RemoveChild() to set parentNode null.
+ modified ConstructDOM() to create DocumentType,
and fixed access modifier ('internal protected' to 'internal')
* XmlLinkedNode.cs : fixed 'NextSibling' to return null
when its parent is null.
* XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
property to enable AppendChild() for this class.
* XmlTextReader.cs : appended private publicId and systemId fields.
svn path=/trunk/mcs/; revision=8630
(equals to !Specified)
* XmlImplementation.cs : added 'internalNameTable' property.
* XmlDocument.cs :
+ now allows "" for 'standalone' in CreateXmlDeclaration.
+ implemented 'Implementation' property and constructor with it.
+ added logic for appending name table (but still no use)
+ implemented property 'DocumentType'
(but without internalSubset parsing. wait for next update.)
* XmlNode.cs :
+ modified AppendChild() and RemoveChild() to support fragment.
+ modified AppendChild() to remove newChild from its parent
when newChild is already in the other place.
+ modified RemoveChild() to set parentNode null.
+ modified ConstructDOM() to create DocumentType,
and fixed access modifier ('internal protected' to 'internal')
* XmlLinkedNode.cs : fixed 'NextSibling' to return null
when its parent is null.
* XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
property to enable AppendChild() for this class.
* XmlTextReader.cs : appended private publicId and systemId fields.
svn path=/trunk/mcs/; revision=8624
* makefile.gnu:
* data_linux_test.args: Added new files for testing
* System.Data.SqlTypes/AllTest.cs:
* System.Data.SqlTypes/SqlDecimalTest.cs
* System.Data.SqlTypes/SqlMoneyTest.cs: Bugfixes, Now all the
SqlTypes test suites work.
svn path=/trunk/mcs/; revision=8623
* BoundColumn.cs - InitializeCell(TableCell, int, ListItemType)
: Implemented.
- All Properties : Now make use of ViewState.
svn path=/trunk/mcs/; revision=8620
* System.Data.OleDb/OleDbDataAdapter.cs (Fill, FillSchema,
GetFillParameters, Update): added overloaded methods.
* System.Data.OleDb/OleDbCommand.cs:
* System.Data.OleDb/OleDbDataReader.cs:
* System.Data.OleDb/OleDbConnection.cs: removed limitation of one
data adapter at a time. Mono's version can open as many as you want,
for free.
svn path=/trunk/mcs/; revision=8616
* unix.args: added missing files from System.Security.Cryptography
namespace.
* Test/AllTests.cs: removed System.Threading.AllTests. It does not
exist.
* Test/corlib_linux_test.args: added missing tests from s.s.c namespace.
* Test/makefile.gnu: pass MONO_PATH correctly. Not sure if this does
anything because mono will load corlib from the installation dir.
* Test/run_test.sh: NUNIT_MONO_PATH is not used.
svn path=/trunk/mcs/; revision=8608
* Test and sample programs for SWF.
* Created dir and started changlog.
* Miguel will soon move files from SWF that were just moved from WINELIB.
svn path=/trunk/mcs/; revision=8588
* makefile.trace: used to build System.Web.dll with trace enabled.
* System.Web.build: added trace and clean targets.
svn path=/trunk/mcs/; revision=8581
* DefaultTraceListener.cs: changed OutputDebugString to
OutputDebugStringW (no more warnings under windows). Also a few style
fixes.
svn path=/trunk/mcs/; revision=8580
* Mono.Data.MySql/MySqlError.cs
* Mono.Data.MySql/MySqlErrorCollection.cs
* Mono.Data.MySql/MySqlException.cs: added files for
MySQL Exceptions
* Mono.Data.MySql.build: removed excludes for new
files (thus adding them to the build) on Windows
* list: added files to build on Linux
* Mono.Data.MySql/MySqlCommand.cs
* Mono.Data.MySql/MySqlConnection.cs: modified
to throw a new MySqlException when a MySqlError occurs
svn path=/trunk/mcs/; revision=8575
* sqlsharpgtk.cs: add support for
SqlClient and TdsClient providers. Added
DebugWriteLine() for debugging. Misc. tweaks
* LoginDialog.cs
* SqlEditorSharp.cs: use DebugWriteLine() for
debug messages
svn path=/trunk/mcs/; revision=8573
* AllTests.cs: Added suite for PasswordDeriveBytes
* PasswordDeriveBytesTest.cs: New. Tests against pre-generated vectors -
only works for short runs (keys < HashSize) not long runs
svn path=/trunk/mcs/; revision=8572
* PasswordDeriveBytes.cs: New. PKCS#5 key derivation (PBKDF1) works up to
HashSize length (but MS support longer keys)
svn path=/trunk/mcs/; revision=8571
* all of the files: modified made sure
licensing terms were the same
for mcs tools being under the GPL license
* sqlsharpgtk.cs: modified to load Login Dialog
to Connect to database. Create a toolbar and
status bar. When appending text to the output
textview, scroll to the end of the text.
created login dialog, toolbar, and status bar,
and use new SQL editor
* LoginDialog.cs: added file to be the Login Dialog
* DbProvider.cs
* DbProviderCollection.cs: added files for the
database provider
* SqlEditorSharp.cs: added new file to be the
SQL Editor written in C# and GTK#. Replaces
the SqlEditor.cs which was only C# bindings to
native sqleditor.dll
* win32.make: add new files to windows build and
removed the old native sqleditor.dll as a dependency.
* SqlEditor.cs: file removed
* sql-editor-gtk-widget: directory removed
* sql-editor-gtk-widget/win32.make: file removed
* sql-editor-gtk-widget/gnome-db-sqleditor.c
* sql-editor-gtk-widget/gnome-db-sqleditor.h: removed files
svn path=/trunk/mcs/; revision=8561
* TdsConnection.cs:
* TdsConnectionPool.cs:
Use a different locking mechanism for connection
pools.
The connection pool now uses a Monitor to have
exclusive access.
* TdsDataReader.cs:
Implement a bit more.
svn path=/trunk/mcs/; revision=8554
* System.Data.SqlClient/SqlConnectionPool.cs:
New class added
* System.Data.SqlClient/SqlClientPermission.cs:
* System.Data.SqlClient/SqlClientPermissionAttribute.cs:
* System.Data.SqlClient/SqlInfoMessageEventArgs.cs:
* System.Data.SqlClient/SqlInfoMessageEventHandler.cs:
* System.Data.SqlClient/SqlParameter.cs:
* System.Data.SqlClient/SqlParameterCollection.cs:
Code reformatting
* System.Data.SqlClient/SqlCommand.cs:
* System.Data.SqlClient/SqlConnection.cs:
* System.Data.SqlClient/SqlException.cs:
* System.Data.SqlClient/SqlTransaction.cs:
New code based on work in TDS Client
* list:
New files added for SqlClient, and TdsClient.Internal
* System.Data.build:
Added reference to System.EnterpriseServices.dll
Still leave SqlClient out of build until danmorg
can fix.
svn path=/trunk/mcs/; revision=8552
* makefile.gnu: recurse to Test directory.
* Test/makefile.gnu:
* Test/system_linux_test.args: added System tests to the build.
svn path=/trunk/mcs/; revision=8550
* parser.cs: applied fix from Tim Haynes ([email protected]) to
solve bug #32807. Also modified GetMapping to return the same as MS.
svn path=/trunk/mcs/; revision=8549
* HttpWriter.cs: changed encoding of the writer from Unicode to UTF8.
This fixes sending bytes and allows mixing byte with chars.
svn path=/trunk/mcs/; revision=8540
* typemanager.cs (RealMemberLookup): when we deal with a subclass,
we should set on the Bindingflags.NonPublic, but not turn on
private_ok. private_ok controls whether a Private member is
returned (this is chekced on the filter routine), while the
BindingFlags.NonPublic just controls whether private/protected
will be allowed. This fixes the problem part of the problem of
private properties being allowed to be used in derived classes.
* expression.cs (BaseAccess): Provide an DoResolveLValue method,
so we can call the children DoResolveLValue method (this will
properly signal errors on lvalue assignments to base properties)
* ecore.cs (PropertyExpr.ResolveAccessors): If both setter and
getter are null, and we have a property info, we know that this
happened because the lookup failed, so we report an error 122 for
protection level violation.
We also silently return if setter and getter are null in the
resolve functions, this condition only happens if we have flagged
the error before. This is the other half of the problem.
svn path=/trunk/mcs/; revision=8536
* class.cs: Remove InheritablePropertySignatureCompare from the
class, as we no longer depend on the property signature to compute
whether it is possible to implement a method or not.
The reason is that calling PropertyInfo.GetGetMethod will return
null (in .NET, in Mono it works, and we should change this), in
cases where the Get Method does not exist in that particular
class.
So this code:
class X { public virtual int A { get { return 1; } } }
class Y : X { }
class Z : Y { public override int A { get { return 2; } } }
Would fail in Z because the parent (Y) would not have the property
defined. So we avoid this completely now (because the alternative
fix was ugly and slow), and we now depend exclusively on the
method names.
(PropertyBase.CheckBase): Use a method-base mechanism to find our
reference method, instead of using the property.
* typemanager.cs (GetPropertyGetter, GetPropertySetter): These
routines are gone now.
svn path=/trunk/mcs/; revision=8531
* System.Web.build: added options (commented out) to activate tracing.
* System.Web/HttpResponse.cs: don't throw exception in a couple of
methods not yet implemented.
* System.Web.Compilation/AspComponentFoundry.cs: fixed typo.
* System.Web.Compilation/AspGenerator.cs: don't use FileDependencies
property of base class.
* System.Web.Compilation/TemplateFactory.cs: use csc style options.
* System.Web.UI/Page.cs: set the context in ProcessRequest. Added a
few trace calls.
* System.Web.UI/Control.cs: added some trace information.
svn path=/trunk/mcs/; revision=8527
* ITds.cs:
Added column info, and NextResult/NextRow
to interface
* TdsColumnSchema.cs:
New class added to keep track of column info
* Tds.cs:
Many, many changes to get queries working
for the most part.
* TdsPacketColumnInfoResult.cs:
* TdsPacketColumnNamesResult.cs:
Doesn't use a DataColumnCollection anymore
Also more complete.
* TdsPacketRowResult.cs:
Added Add() method.
svn path=/trunk/mcs/; revision=8523
* System.Data.SqlTypes/AllTests.cs:
* System.Data.SqlTypes/SqlStringTest.cs:
* System.Data.SqlTypes/SqlDecimalTest.cs: new test suites for
SqlDecimal and SqlString
svn path=/trunk/mcs/; revision=8512
* System.XML_test.build: remove legacy build of a standalone exe of the
unit tests
* XmlDocumentTests.cs: Cannot use a URI with Load().
svn path=/trunk/mcs/; revision=8511
* TdsCommand.cs:
Change ExecuteReader call
* TdsConnection.cs:
Much to do with the restructuring
of the TDS objects and some
simplification.
* TdsConnectionPool.cs:
Some modifications to do with above.
* TdsTransaction.cs:
Move calls out of Tds object and
into here. Simpler, makes Tds
object smaller, doesn't change this
much.
svn path=/trunk/mcs/; revision=8508
* list:
Add new files to build
* Mono.Data.TdsClient.build:
Exclude Tds70.cs, Tds80.cs, Tds50.cs
Those should only be included with
the appropriate providers.
svn path=/trunk/mcs/; revision=8507
* ITds.cs:
* Tds42.cs:
* Tds50.cs:
* Tds70.cs:
* Tds80.cs:
New classes added. Functionality
is split up because different protocols
have slight differences.
* Tds.cs:
Remove some unnecessary code after
the above split, and add in a whole
lot more stuff for completeness.
* TdsColumnType.cs:
Fix Int4. Wrong enum value.
* TdsComm.cs:
Move the encoder out of constructor
because we don't know the charset at
that point
* TdsConnectionParameters.cs:
Small changes
* TdsPacketEndTokenResult.cs:
Implement ToString ()
svn path=/trunk/mcs/; revision=8506
* pending.cs (PendingImplementation.InterfaceMethod): This routine
had an out-of-sync index variable, which caused it to remove from
the list of pending methods the wrong method sometimes.
svn path=/trunk/mcs/; revision=8504
* ThreadPool.cs: now the monitor thread is not sleeping and checking if
more worker threads needed. It waits on _DataInQueue. If (and only if)
there's data in the queue it checks if more worker threads needed and
then sleeps 5 before waiting for queued data again.
svn path=/trunk/mcs/; revision=8500
* Process.cs: Redirected standard input needs to have AutoFlush set
2002-10-23 Dick Porter <[email protected]>
* FileStream.cs: Implemented CanSeek, and used it around all the
calls to MonoIO.Seek. Fixed buffering in Read() so that it
doesn't block forever on short reads.
* MonoFileType.cs: New enum for GetFileType
* MonoIO.cs: Added GetFileType
svn path=/trunk/mcs/; revision=8492
* ecore.cs (PropertyExpr): Do not use PropertyInfo.CanRead,
CanWrite, because those refer to this particular instance of the
property, and do not take into account the fact that we can
override single members of a property.
Constructor requires an EmitContext. The resolution process does
not happen here, but we need to compute the accessors before,
because the resolution does not always happen for properties.
* typemanager.cs (RealMemberLookup): Set private_ok if we are a
subclass, before we did not update this flag, but we did update
bindingflags.
(GetAccessors): Drop this routine, as it did not work in the
presence of partially overwritten set/get methods.
Notice that this broke the cs1540 detection, but that will require
more thinking.
svn path=/trunk/mcs/; revision=8485
* class.cs:
* codegen.cs:
* driver.cs: issue a warning instead of an error if we don't support
debugging for the platform. Also ignore a couple of errors that may
arise when trying to write the symbols. Undo my previous patch.
svn path=/trunk/mcs/; revision=8480
* TdsConnectionPool.cs:
New class added for pooling connections
* TdsCommand.cs:
* TdsTransaction.cs:
Some implementation, handling of
pooled connections and such.
* TdsConnection.cs:
Code cleanups, more implementation
Connection pooling (works!)
* TODOAttribute.cs:
Add this to this namespace
* TdsDataReader.cs:
* TdsErrorCollection.cs:
* TdsException.cs:
* TdsParameterCollection.cs:
Change the TODO attributes
svn path=/trunk/mcs/; revision=8475
* - Fixed the duplication of xmlns:xx = yy when serializing the
XML for serialization
Fixed the unnecessary parsing/serializing when adding assemblies
for serialization
Avoided setting the XmlNode.InnerXml property
(as it's not implemented)
Fixed the usage/implementation of
XmlElement.GetElementsByTagName()
svn path=/trunk/mcs/; revision=8473
* Tds.cs :
More implementation. Does some
query stuff now. Can also change
database.
* TdsConnectionParameters.cs:
Rename Host to DataSource, and
add Hostname for the local hostname.
* TdsPacketEndTokenResult.cs:
Change TODO attribute
* TODOAttribute.cs:
New class added
svn path=/trunk/mcs/; revision=8471
* DateAndTimeTest.cs: Try to set the culture for these tests and see
if that helps. All but one works on my machine.
svn path=/trunk/mcs/; revision=8470
* TdsCommand.cs:
* TdsTransaction.cs:
Some implementation
* TdsConnection.cs:
Code cleanups, more implementation
* TODOAttribute.cs:
Add this to this namespace
* TdsDataReader.cs:
* TdsErrorCollection.cs:
* TdsException.cs:
* TdsParameterCollection.cs:
Change the TODO attributes
svn path=/trunk/mcs/; revision=8469
* ConstraintCollectionTest.cs (SetUp): Clear the constraints before
each test.
* ConstraintTest.cs: same
* DataColumnTest.cs: Get exceptions straight. Some are thrown and some
aren't
svn path=/trunk/mcs/; revision=8466
* driver.cs: Do not make mcs-debug conditional, so we do not break
builds that use it.
* statement.cs (UsageVector.MergeChildren): I would like Martin to
review this patch. But basically after all the children variables
have been merged, the value of "Breaks" was not being set to
new_breaks for Switch blocks. I think that it should be set after
it has executed. Currently I set this to the value of new_breaks,
but only if new_breaks is FlowReturn.ALWAYS, which is a bit
conservative, but I do not understand this code very well.
svn path=/trunk/mcs/; revision=8461
* sqlsharpgtk.cs
* SqlEditor.cs: added files for SQL# For GTK#
* win32.make: added make file to build on Windows
* sql-editor-gtk-widget: added subdirectory
* sql-editor-gtk-widget/gnome-db-sqleditor.c
* sql-editor-gtk-widget/gnome-db-sqleditor.h: added files for
sql editor gtk+ widget
* sql-editor-gtk-widget/Win32.make: added make file
to build gtk+ widget on Windows
svn path=/trunk/mcs/; revision=8460
* Tds.cs
* TdsComm.cs:
A whole slew of changes to get logon
to work (it now works in both TDS 7.0
and TDS 4.2) ... danmorg can test with
8.0 if he likes.
TdsComm has some simplifications too,
because C# has some features not present
in the Java implementation.
* TdsConnectionParameters.cs:
Change a few default values.
* TdsMessage.cs:
Implement this class.
svn path=/trunk/mcs/; revision=8459
* StatusBarPanelAutoSize.cs
* StatusBarPanelBorderStyle.cs
* StatusBarPanelClickEventArgs.cs
* StatusBarPanelClickEventHandler.cs
* StatusBarPanelStyle.cs
* TabAlignment.cs
* ToolBar.cs
* ToolBarAppearance.cs
* ToolBarButton.cs
* ToolBarButtonClickEventArgs.cs
* ToolBarButtonClickEventHandler.cs
* ToolBarButtonStyle.cs
* ToolBarTextAlign.cs
* Tooltip.cs
* TreeNode.cs
* TreeNodeCollection.cs
* TreeView.cs
* TreeViewAction.cs
* TreeViewCancelEventArgs.cs
* TreeViewCancelEventHandler.cs
* TreeViewEventArgs.cs
* TreeViewEventHandler.cs
* UICues.cs
* UICuesEventArgs.cs
* UICuesEventHandler.cs
* UpDownEventArgs.cs
* UpDownEventHandler.cs
* WINELib.csproj
* WINELib.csproj.user
* winelib.sln
* Moved file from SWF need for uncommented code.
* Include porject file for Visual studio.
* forgot solution file for visual studio.
* will break winelib build because some classes that
* should be public are not marked as suh, so default to private.
* resulting in error "visiblity does not match"
* will fix and check in Tuseday.
* planed to fix tonight, but am out of time and want to get this cjahecked in.
svn path=/trunk/mcs/; revision=8439
* using Mono.GetOptions preliminar support for response files,
changed the makefile target 'test' for use o response file testmbas/filelist
svn path=/trunk/mcs/; revision=8432
- Fixed TinyInt mapping (Thanks Daniel for finding the bug!)
- ExecuteScalar is supported
- Support CloseConnection CommandBehavior for ExecuteReader
- Implemented full error handling support: OdbcException, OdbcError, OdbcErrorCollection
- Parameter support for all data types (needs further optimization)
svn path=/trunk/mcs/; revision=8429
* TdsColumnType.cs:
* TdsContext.cs:
* TdsEnvPacketSubType.cs:
* TdsMessage.cs:
* TdsPacketColumnInfoResult.cs:
* TdsPacketColumnNamesResult.cs:
* TdsPacketColumnOrderResult.cs:
* TdsPacketControlResult.cs:
* TdsPacketEndTokenResult.cs:
* TdsPacketErrorResult.cs:
* TdsPacketMessageResult.cs:
* TdsPacketOutputParam.cs:
* TdsPacketResult.cs:
* TdsPacketRetStatResult.cs:
* TdsPacketRowResult.cs:
* TdsPacketSubType.cs:
* TdsPacketTableNameResult.cs:
* TdsPacketUnknown.cs:
New classes added as part of TDS internal implementation.
* Tds.cs:
Some work on receiving and interpreting packages received from
SQL Server. Still doesn't work completely.
* TdsComm.cs:
Add some methods as part of the ongoing work with Tds.cs
* TdsConnectionParameters.cs:
Add default values for Encoding ("iso-8859-1"), Port (1433),
TDS Version (4.2).
svn path=/trunk/mcs/; revision=8424
* SymmetricAlgorithm.cs: Added better Dispose support
* DES.cs: Now only contains the abstract DES class.
* DESCryptoServiceProvider.cs: Added the DESTransform class (inherited
from SymmetricTransform) based the old DESCore and DESTransformBase code
* RC2.cs: Fixed EffectiveKeySize == 0
* RC2CryptoServiceProvider.cs: Added the RC2Transform class (inherited
from SymmetricTransform) based on the old RC2lImpl code. Unrolled some loops.
* RjindaelManaged.cs: Few more optimizations while looking for decrypting bug
* TripleDESCryptoServiceProvider.cs: New. Implement TripleDESTransform from
DESTransform (non-optimal but working :-).
svn path=/trunk/mcs/; revision=8423
* ecore.cs (UserDefinedConversion): Get rid of the bogus error
message that we were generating - we just need to silently return
a null.
svn path=/trunk/mcs/; revision=8415
* class.cs (Event.Define): Change my previous commit, as this
breaks the debugger. This is a temporary hack, as it seems like
the compiler is generating events incorrectly to begin with.
svn path=/trunk/mcs/; revision=8413
* TdsDataReader.cs:
* TdsError.cs:
* TdsErrorCollection.cs:
* TdsException.cs:
* TdsParameter.cs:
* TdsParameterCollection.cs:
Added new classes, to get started with this namespace.
This is pretty much what is needed to do things like
TdsConnection and so on.
* TdsCommand.cs:
De-wrappify this class. There is no longer a
Mono.Data.TdsClient.Internal.TdsCommandInternal class.
* TdsConnection.cs:
De-wrappify this class. There is no longer a
Mono.Data.TdsClient.Internal.TdsConnectionInternal class.
* TdsTransaction.cs:
De-wrappify this class. There is no longer a
svn path=/trunk/mcs/; revision=8408
* TdsCommInternal.cs:
* TdsConnectionParametersInternal.cs:
* TdsInternal.cs:
* TdsPacketTypeInternal.cs:
* TdsVersionInternal.cs:
Rename classes, since there will no
longer be conflicts between these and
the classes in Mono.Data.TdsClient
* TdsServerTypeInternal.cs:
Added "Generic" server type and renamed
class to TdsServerType
svn path=/trunk/mcs/; revision=8407
* TdsTransactionInternal.cs:
* TdsConnectionInternal.cs:
* TdsCommandInternal.cs:
Since these will be exclusively implemented
in Mono.Data.TdsClient they are no longer needed
here. Lotsa luck guys!
svn path=/trunk/mcs/; revision=8406
* expression.cs (Binary.ResolveOperator): Added support for
"U operator - (E x, E y)"
* cfold.cs (BinaryFold): Added support for "U operator - (E x, E
y)".
svn path=/trunk/mcs/; revision=8404
* ecore.cs (FieldExpr.AddressOf): We had a special code path for
init-only variables, but this path did not take into account that
there might be also instance readonly variables. Correct this
problem.
This fixes bug 32253
svn path=/trunk/mcs/; revision=8401
* driver.cs: Change the extension for modules to `netmodule'
* cs-parser.jay: Improved slightly the location tracking for
the debugger symbols.
* class.cs (Event.Define): Use Modifiers.FieldAttr on the
modifiers that were specified instead of the hardcoded value
(FamAndAssem). This was basically ignoring the static modifier,
and others. Fixes 32429.
svn path=/trunk/mcs/; revision=8398
* corlib_test.build: Removed all excluded cryptographic test code as
the cyclic dependency was removed (well commented)
svn path=/trunk/mcs/; revision=8395
* AllTests.cs: Renabled most tests after commenting all code causing a
cyclic dependency (corlib->System.Xml->corlib). Some tests will fail
until commented code is replaced.
* SymmetricAlgorithm.cs: New (189) generated test cases for all default
algorithm implementation, all cipher modes, all padding modes, all key
sizes, all block sizes, feedback...
* PKCS1MaskGenerationMethodTest.cs: Commented vector test. Added new
tests to check for various exceptions
svn path=/trunk/mcs/; revision=8394
* corlib.build: Removed all excluded cryptographic source code as the
cyclic dependency was removed (well commented)
svn path=/trunk/mcs/; revision=8393
* SymmetricAlgorithm.cs: Added new class SymmetricTransform to avoid
duplicating CipherMode (currently ECB, CBC) and PaddingMode functionalities
in every crytographic algorithm implementation.
* RijndaelManaged.cs: Added the RjindaelTransform class (inherited
from SymmetricTransform) based the old RijndaelImpl / RijndaelController
code. Fixed encryption for block size 192, 256, there is still a problem
decrypting block size 192, 256. Unrolled some loops + littl'optimizations
* PKCS1MaskGenerationMethod.cs: Removed Array.Reverse in I2OSP to be
compatible with MS implementation (however we are now failing the PKCS#1
test vector) + added some more checks (null, overflow, ...)
* AsymmetricAlgorithm.cs: Commented XMLDocument stuff to end the cyclic
dependency (corlib->System.Xml->corlib)
* RSA.cs: Commented FromXmlString stuff to end the cyclic dependency
* DSA.cs: Commented FromXmlString stuff to end the cyclic dependency
* RC2.cs: Create using CryptoConfig
* TripleDES.cs: Marked class public. Added LegalKeySizes and LegalBlockSizes
svn path=/trunk/mcs/; revision=8392
* System.Data.SqlTypes/AllTest.cs:
* System.Data.SqlTypes/SqlMoneyTest.cs new test suite for SqlMoney
* System.Data.SqlTypes/SqlDateTimeTest.cs new test suite for
SqlDateTime
svn path=/trunk/mcs/; revision=8391
* CSharpCodeProvider.cs
(GeneratePropertySetValueReferenceExpression): Implement.
(GenerateField, GenerateMethod): Only call OutputAttributeDeclarations
if there are any attributes.
(GenerateProperty): Implement.
svn path=/trunk/mcs/; revision=8383
* doc/ado-net
* doc/postgresql
* doc/tds-providers: cleaned up the web pages
* doc/web/commands: postgresql.html page was mistyped
svn path=/trunk/mono/; revision=8380
* Application.cs
* ContainerControl.cs
* Control.cs
* Form.cs
* Label.cs
* Added //Compact Framework comment to members that belong.
* A CE subset of SWF might not be that difficult to reach.
* John has already completed *Most* of the CE members in these files.
*
* also added a couple of members that seem to have not been
stubbed, hope I did not break the build, unable to test
svn path=/trunk/mcs/; revision=8374
* TdsConnectionParametersInternal:
* TdsInternal:
New classes added
* TdsConnectionInternal:
Add some implementation details
Add new methods, move some functionality to
TdsInternal
* TdsCommandInternal:
Add new methods
* TdsCommInternal:
New class, which will handle the low-level
communication with the database
* TdsPacketTypeInternal:
Add new packet type, TdsPacketTypeInternal.None
which is used when no packet is being constructed.
The value is 0.
svn path=/trunk/mcs/; revision=8372
* FileStream.cs: SeekOrigin.End still calculates the offset from
the end of the file with positive values extending the length.
Fixes bug 32471.
svn path=/trunk/mcs/; revision=8371
* doc/ado-net: updated status of
the ADO.NET functionality and providers
and added link to tds-providers.html
* doc/tds-providers: added file to
describe the design and status of
the SqlClient, SybaseClient, and TdsClient
ADO.NET providers.
* doc/web/makefile
* doc/web/command: added new web page
tds-providers.html to build of www.go-mono.com web site
svn path=/trunk/mono/; revision=8370
* TdsConnectionInternal:
Add some implementation details
* TdsCommInternal:
New class, which will handle the low-level
communication with the database
* TdsPacketTypeInternal:
Add new packet type, TdsPacketTypeInternal.None
which is used when no packet is being constructed.
The value is 0.
svn path=/trunk/mcs/; revision=8368
* list:
Add files from Mono.Data.TdsClient.Internal
* makefile.gnu:
Add reference to System.Data.dll. This is
fine, just not the reverse.
svn path=/trunk/mcs/; revision=8358
* ChangeLog:
New changelog added
* TdsCommandInternal.cs:
* TdsConnectionInternal.cs:
* TdsPacketTypeInternal.cs:
* TdsServerTypeInternal.cs:
* TdsTransactionInternal.cs:
* TdsVersionInternal.cs:
New classes added. These are the
internal implementations, meant for
"wrapping" from other locations.
svn path=/trunk/mcs/; revision=8355
* IsolationLevel.cs:
Removed, as we now use IsolationLevel from System.Data
* TdsCommand.cs:
* TdsConnection.cs:
* TdsTransaction.cs:
These classes are now just wrappers for the
Mono.Data.TdsClient.Internal classes.
* TdsServerType.cs:
Slight modification
svn path=/trunk/mcs/; revision=8354
* appdomain.c (mono_runtime_cleanup): Don't signal the async
delegate semaphore before waiting for all threads to finish,
because new threads can also call async delegates. Fixes bug
32004.
* threadpool.c (async_invoke_thread): Only wait for 500ms instead
of 3 seconds, in case another async job is queued. (This part is
needed because the bug fix reintroduced the 3s exit lag.) This
makes the mono_runtime_shutdown flag superfluous.
svn path=/trunk/mono/; revision=8353
* Mono.Data.TdsClient.build: added build for windows
* Test: added directory for tests
* Mono.Data.TdsClient/TdsVersion.cs: added file for
enum TdsVersion
* Mono.Data.TdsClient/TdsConnection.cs: added public
property TdsVersion so it can be set to
use TDS version 4.2, 5.0, 7.0, or 8.0. Also, added
comments
svn path=/trunk/mcs/; revision=8349
* SqlSharpCli.cs: added support for new place
where the PostgreSQL provider is an external
provider now. Commented support for SqlClient and
cause an error and exception when trying to change to or open a
connection to the SqlClient provider.
svn path=/trunk/mcs/; revision=8327
* System.Data.SqlTypes/AllTests.cs:
* System.Data.SqlTypes/SqlBinary.cs: new test suite for SqlBinary, by
Ville Palo ([email protected]).
svn path=/trunk/mcs/; revision=8326
* SqlSharpCli.cs: SQL query tool moved
from mcs/class/System.Data/Test
to mcs/tools/SqlSharp. Include it in the build
so people can have a place to test connection strings
and the ADO.NET providers
svn path=/trunk/mcs/; revision=8324
* SqlSharpCli.cs: import from
mcs/class/System.Data/Test
by Miguel to
mcs/tools/SqlSharp
* unix.args
* Makefile
* SqlSharpCli.build: add build files
* README: add file about SqlSharp
* ChangeLog: add file for log of changes
svn path=/trunk/mcs/; revision=8323
* PostresTest.cs: modified to
use the new namepace and assembly for PostgreSQL
provider which is Mono.Data.PostgreSqlClient
svn path=/trunk/mcs/; revision=8322
* ParmUtil.cs
* PostgresLibrary.cs
* PostgresTypes.cs
* SqlClientPermission.cs
* SqlClientPermissionAttribute.cs
* SqlCommand.cs
* SqlCommandBuilder.cs
* SqlConnection.cs
* SqlDataAdapter.cs
* SqlDataReader.cs
* SqlError.cs
* SqlErrorCollection.cs
* SqlException.cs
* SqlInfoMessageEventArgs.cs
* SqlInfoMessageEventHandler.cs
* SqlParameter.cs
* SqlParameterCollection.cs
* SqlRowUpdatedEventArgs.cs
* SqlRowUpdatedEventHandler.cs
* SqlRowUpdatingEventArgs.cs
* SqlRowUpdatingEventHandler.cs
* SqlTransaction.cs: thanks to Miguel, he copied
files on the mono cvs server
from mcs/class/System.Data/System.Data.SqlClient
for the PostgreSQL provider
to mcs/class/Mono.Data.PostgreSqlClient.
This frees up
mcs/class/System.Data/System.Data.SqlClient for
the Microsoft SQL Server provider.
Any Mono.Data.PostgreSqlClient/Sql*.cs files
were copied on the cvs server
to Mono.Data.PostgreSqlClient/PgSql*.cs files
and the old Mono.Data.PostgreSqlClient/Sql*.cs
files were removed. Copying, renaming, and removing
was done on the server so we could keep
the cvs change history.
* ChangeLog: added this file for logging changes
* Mono.Data.PostgreSqlClient.build: added file for Windows build
* library-deps.stamp
* list
* makefile.gnu: added for Linux build
* Locale.cs: added file for Locale.GetText(string);
* TODOAttribute.cs: added file for [MonoTODO] attribute
svn path=/trunk/mcs/; revision=8321
* list:
* System.Data.build:
Exclude compiling of System.Data.SqlClient in
preparation for overhauls of that system.
svn path=/trunk/mcs/; revision=8320
* ParmUtil.cs
* PostgresLibrary.cs
* PostgresTypes.cs
* SqlClientPermission.cs
* SqlClientPermissionAttribute.cs
* SqlCommand.cs
* SqlCommandBuilder.cs
* SqlConnection.cs
* SqlDataAdapter.cs
* SqlDataReader.cs
* SqlError.cs
* SqlErrorCollection.cs
* SqlException.cs
* SqlInfoMessageEventArgs.cs
* SqlInfoMessageEventHandler.cs
* SqlParameter.cs
* SqlParameterCollection.cs
* SqlRowUpdatedEventArgs.cs
* SqlRowUpdatedEventHandler.cs
* SqlRowUpdatingEventArgs.cs
* SqlRowUpdatingEventHandler.cs
* SqlTransaction.cs: thanks to Miguel de Icaza, he
copied files on the mono cvs server
from mcs/class/System.Data/System.Data.SqlClient
for the PostgreSQL provider
to mcs/class/Mono.Data.PostgreSqlClient.
This frees up
mcs/class/System.Data/System.Data.SqlClient for
the Microsoft SQL Server provider.
Any Mono.Data.PostgreSqlClient/Sql*.cs files
were copied on the cvs server
to Mono.Data.PostgreSqlClient/PgSql*.cs files
and the old Mono.Data.PostgreSqlClient/Sql*.cs
files were removed. Copying, renaming, and removing
was done on the cvs server so we could keep
the cvs change history.
svn path=/trunk/mcs/; revision=8318
* System.Data.SqlTypes/AllTests.cs: added new test.
2002-10-15 Ville Palo <[email protected]>
* System.Data.SqlTypes/SqlSingleTest.cs: added test suite for
SqlSingle.
svn path=/trunk/mcs/; revision=8297
* SqlSharpCli.cs: get it to work with System.Data.OleDb
on MS .net when connected to Oracle 8i. Also, get data
to space correctly when data size is smaller than the
header size. If DataType is DateTime, use GetDataTime(),
otherwise, use GetValue().
svn path=/trunk/mcs/; revision=8296
* jit.cs (PUSH_TREE): Always set t->cli_addr here.
* debug.c (generate_line_number): Small fix to make this actually
work for more complex things.
svn path=/trunk/mono/; revision=8282
* statement.cs (Statement.Emit): Made this a virtual method; emits
the line number info and calls DoEmit().
(Statement.DoEmit): New protected abstract method, formerly knows
as Statement.Emit().
* codegen.cs (EmitContext.Mark): Check whether we have a symbol writer.
svn path=/trunk/mcs/; revision=8281
* AllTests.cs: Added suite for PKCS1MaskGenerationMethod
* PKCS1MaskGenerationMethodTest.cs: New. Test work as per PKCS#1 but
result isn't the same as MS implementation !?! is MS using this class ?
svn path=/trunk/mcs/; revision=8276
* MD5.cs: Create using CryptoConfig, set HashSizeValue, removed TODO.
* Rijndael.cs: Create using CryptoConfig. Removed TODO.
* RSAParameters.cs: Modulus must be serialized. Removed TODO.
* SHA256.cs: Create using CryptoConfig, set HashSizeValue, removed TODO.
* SHA384.cs: Create using CryptoConfig, set HashSizeValue, removed TODO.
* SHA512.cs: Create using CryptoConfig, set HashSizeValue, removed TODO.
* FromBase64Transform.cs: Removed ToString()
* ToBase64Transform.cs: Removed ToString()
* SymmetricAlgorithm.cs: Create using CryptoConfig, set default Mode and
Padding, added Clear, Dispose
* TripleDES.cs: New. Abstract class.
* MaskGenerationMethod.cs: New. Abstract class.
* PKCS1MaskGenerationMethod.cs: New. Implement PKCS#1 MGF (currently not
compatible with MS implementation - but not sure the bug is mine!).
svn path=/trunk/mcs/; revision=8254
* debug-mono-symfile.c (ves_icall_MonoDebugger_GetType): Use
mono_class_get() instead of looking in the class cache.
svn path=/trunk/mono/; revision=8241
* ConfigurationSettings.cs (DefaultConfig.GetAppConfigPath):
Append ".config" to the filename, not ".exe.config" since the
filename already has a ".exe" suffix.
svn path=/trunk/mcs/; revision=8239
* ConfigurationSettings.cs (DefaultConfig.GetAppConfigPath): Use
Assembly.Location, not Assembly.FullName to get its filename.
svn path=/trunk/mcs/; revision=8238
- Added OdbcTransaction Object and moved transaction logic out of connection and into new object.
- Support for DSN-less connection strings
- Fixed OdbcType enum to have correct values
- General cleanup on all objects
- Implemented Cancel in OdbcCommand
- Added DBNull support
- Updated OdbcType enum with values from header files.
- Modified column description code to happen dynamically as a column is accessed
instead of describing all columns when the query opens
- Works with SqlSharp
Known Issues:
- Transaction Isolation Level isn't handled
- A number of data types are returned as strings instead of native types
- Parameter support is weak -- only supports int types
- ExecuteReader: CommandBehavior isn't implemented
- ExecuteScalar not implemented
- Need better error handling
svn path=/trunk/mcs/; revision=8233
* Mono.Data.MySql/MySqlDataReader.cs: change "DataType" in
schema DataTable to be typeof(Type) instead of
typeof(string) to make it more like MS.NET
* Test/MySqlTest.cs: tweaks
svn path=/trunk/mcs/; revision=8230
* System.Data/DataRow.cs: don't throw exception
if DBNull is false. Had to do comment this line
to allow a typeof(Type).
* System.Data.SqlClient/SqlCommand.cs: the "DataType"
DataColumn and DataRows in a DataTable for a schema should
be typeof Type, not string. This is to make it
compatible with MS.NET
* System.Data.SqlClient/SqlConnection.cs: the
isolation level should be set before
beginning the transaction
* Test/SqlSharpCli.cs: change string to Type for
"DataType" from a DataRow in a DataTable
that contains a schema.
svn path=/trunk/mcs/; revision=8229
* MonoSymbolTable.cs: Set version number to 28.
(SourceFileEntry): Read the methods when they're needed.
(MethodSourceEntry): Made this a struct, not a class.
svn path=/trunk/mcs/; revision=8224
* MonoSymbolTable.cs: Set version number to 28.
(SourceFileEntry): Read the methods when they're needed.
(MethodSourceEntry): Made this a struct, not a class.
svn path=/trunk/mcs/; revision=8223
* AllTests.cs: Added suite for HashAlgorithm, KeyedHashAlgorithm and
HMACSHA1
* HashAlgorithmTest.cs: New. Test for Create and Clear
* KeyedHashAlgorithmTest.cs: New. Test for Create and key assignation
* HMACSHA1Test.cs: New. Test vectors from FIPS 198 and RFC2202
svn path=/trunk/mcs/; revision=8222
* HashAlgorithm.cs: Added Dispose() to HashAlgorithm because it
inherits ICryptoTransform
* KeyedHashAlgorithm.cs: New implementation
* HMACSHA1.cs: New (include a generic HMACAlgorithm as internal class)
* MACTripleDES.cs: New (missing core implementation on generic MACAlgorithm)
* CryptoStream.cs: Added limited functionalities to support HMACSHA1
svn path=/trunk/mcs/; revision=8221
* MonoSymbolTable.cs: Set version number to 27. Added a source
file table which is used to search a method by source file + line number.
svn path=/trunk/mcs/; revision=8217
* doc/adonet: updated status of all providers, added links,
and added information
about the Mono.Data.SqliteClient provider that
Vladimir Vukicevic contributed. Added Brian Ritchie's
and Vladimir Vukicevic's email addresses as
people to contact about ADO.NET in Mono.
Added information about SQL#, configuration tools,
and an ADO.NET Multiplexor, etc...
svn path=/trunk/mono/; revision=8216
* SqlSharpCli.cs: modified
- add support for the external Mono.Data.SqliteClient
ADO.NET provider. All the user has to do is
"/provider sqlite"
to load it instead of the usual syntax for loading
external providers
"/loadextprovider Mono.Data.SqliteClient Mono.Data.SqliteClient.SqliteConnection".
svn path=/trunk/mcs/; revision=8214
* Test: added new directory to hold
tests for Mono.Data.SqliteClient
* Test/SqliteTest.cs: added file
to test Mono.Data.SqliteClient.
svn path=/trunk/mcs/; revision=8213
* Mono.Data.SqliteClient: add file
to build on Windows
* Mono.Data.SqliteClient/SqliteCommand.cs: modified
added unsafe { } around call to sqlite_exec() which calls
an unsafe method SqliteCallbackFunction
svn path=/trunk/mcs/; revision=8212
* Label.cs:
* Control.cs:
* Form.cs: fixed location of elements on Form
* FormTest.cs: changed location of Label and Button on Form
svn path=/trunk/mcs/; revision=8209
* AllTests.cs: Added suite for RandomNumberGenerator, SHA1 and
SHA1CryptoServiceProvider
* RandomNumberGeneratorTest.cs: New. Tests for Create and generic
random quality tests (FIPS140-2)
* SHA1Test.cs: New. Tests for Create and generic SHA1 tests (FIPS180-1)
* SHA1CryptoServiceProviderTest.cs: New. Inherited SHA1Tests tests +
specific tests
svn path=/trunk/mcs/; revision=8207
* Button.cs: initial implementation of Button class
* FormTest.cs: added Button to form
* makefile: added Button.cs and ButtonBase.cs to makefile
svn path=/trunk/mcs/; revision=8206
* Label.cs: changed CreateHandle method to use CreateParams property
* README: added instructions for building and using project
* makefile: removed monostart.c from makefile
* monostart.c:
* test.sh
* build.sh: no longer used, removed
svn path=/trunk/mcs/; revision=8202
* ICryptoTransform.cs: Now inherits from IDisposable
* RC2CryptoServiceProvider.cs: Added Dispose() to RC2Impl because it inherits ICryptoTransform
* CryptoAPITransform.cs: Added Dispose() to CryptoAPITransform... ICryptoTransform
* RijndaelManaged.cs: Added Dispose() to RijndaelController...ICryptoTransform
* FromBase64Transform.cs: Added Dispose() to FromBase64Transform...ICryptoTransform
* ToBase64Transform.cs: Added Dispose() to ToBase64Transform...ICryptoTransform
* DESCryptoServiceProvider.cs: Added Dispose() to DESTransformBase...ICryptoTransform
svn path=/trunk/mcs/; revision=8199
* Test/MySqlTest.cs: added file - to do
various Tests for the MySql provider
* Mono.Data.MySql/Field.cs: enum MySqlFieldFlags
should be unit. Rename class Field to MySqlMarshalledField
to represent what it really is. Redo handling of field Flags.
* Mono.Data.MySql/MySql.cs: added method AffectedRows() to
pinvoke into mysql_affected_rows() so we can know what rows
were affected by an INSERT, UPDATE, or DELETE SQL statement.
* Mono.Data.MySql/MySqlCommand.cs: rename
internal method rowVal() to GetColumnData(). In GetColumnData,
if IntPtr.Zero, return an empty "" string instead of "NULL".
Pass command behavior to data reader.
* Mono.Data.MySql/MySqlDataReader.cs: redo the
way field meta data and data is structured so
a schema DataTable can be built. Implement
GetSchemaTable() to create a DataTable holding the schema
of the fields. Implemented more methods.
* Mono.Data.MySql/MySqlTypes.cs: added method to
translate System.Data.DbType to System.Type
* est/TestMySqlExecuteReader.cs: minor tweaks
svn path=/trunk/mcs/; revision=8198
* CodeMethodInvokeExpression.cs : Fix second constructor so that
the last argument is params - that is what the docs say.
svn path=/trunk/mcs/; revision=8176
* Mono.Data.MySql/MySqlTransaction.cs: added to
support transactions (BEGIN, COMMIT/ROLLBACK).
* Mono.Data.MySql.build: included MySqlTransaction
in build on Windows
* list: included MySqlTransaction
in build on Linux
* Mono.Data.MySql/MySql.cs: the mysql thread functions
were misnamed and prevented them from being loaded
by the mono JIT - my_thread_init() and my_thread_end().
Now, threading should work in the MySQL provider and
less memory leaks too.
* Mono.Data.MySql/Test.cs: remove conditional comiliation
since everything compiles fine on Mono now
* Mono.Data.MySql/MySqlCommand.cs: remove Console.WriteLine()
* Mono.Data.MySql/MySqlConnection.cs: added transaction
support, implemented method ChangeDatabase(), implemented
property ServerVersion
* Test/TestMySqlInsert.cs: modified test
to handle transactions
svn path=/trunk/mcs/; revision=8163
* class.cs: Following the comment from 2002-09-26 to AddMethod, I
have fixed a remaining problem: not every AddXXXX was adding a
fully qualified name.
Now everyone registers a fully qualified name in the DeclSpace as
being defined instead of the partial name.
Downsides: we are slower than we need to be due to the excess
copies and the names being registered this way.
The reason for this is that we currently depend (on the corlib
bootstrap for instance) that types are fully qualified, because
we dump all the types in the namespace, and we should really have
types inserted into the proper namespace, so we can only store the
basenames in the defined_names array.
svn path=/trunk/mcs/; revision=8161
* DSATest.cs: Added non-abstract DSA class to test To/FromXmlString()
* RSATest.cs: Added non-abstract RSA class to test To/FromXmlString()
* AllTests.cs: Added DSATest.cs and RSATest.cs in suite
svn path=/trunk/mcs/; revision=8160
* AsymmetricAlgorithm.cs: Inherit from IDisposable, common support from XML import
* DSA.cs: FromXmlString() keypair import, Create() using CryptoConfig
* RSA.cs: FromXmlString() keypair import, Create() using CryptoConfig
* DSACryptoServiceProvider.cs: Added Dispose()
svn path=/trunk/mcs/; revision=8159
* expression.cs (ArrayAccess.EmitStoreOpcode): Reverted the patch
from bug #31834, see the bug report for a testcase which is
miscompiled.
svn path=/trunk/mcs/; revision=8146
* SqlSharpCli.cs: modified
- add support for System.Data.Odbc
- created simple reader to display data for those providers
which have not implemented GetSchemaTable - UseSimpleReader
- allow only providers that support parameters to use them
during exection of SQL - UseParameters
- add support for postional parameter marker (question mark),
the delimted named parameter markers (square brackets) in addition
to colon and at parameter markers. Allow, the parameter marker
to be settable.
svn path=/trunk/mcs/; revision=8130
* doc/index: corrected some mistypes
* doc/adonet: updated the status and plans of all the ADO.NET providers
and moved PostgreSQL specific stuff to doc/postgresql
* doc/postgresql: added new file to detail
the status of the PostgreSQL ADO.NET provider
and provide test notes for setting it up
svn path=/trunk/mono/; revision=8127
* ConfigHelper.cs: workaround for a bug in NameValueCollection.
* ConfigurationSettings.cs: load sections when the parent holds a
handler for it. Now overriding appSettings values in the app config
file works (first <remove..> and then <add...).
svn path=/trunk/mcs/; revision=8126
* codegen.cs (EmitContext.Breaks): Removed, we're now using the
flow analysis code for this.
* statement.cs (Do, While, For): Tell the flow analysis code about
infinite loops.
(FlowBranching.UsageVector): Added support for infinite loops.
(Block.Resolve): Moved the dead code elimination here and use flow
analysis to do it.
svn path=/trunk/mcs/; revision=8120
* NameValueFileSectionHandler.cs: For now if a section is not
present, return null. Do not know what the real fix is. Gonzalo
will have to look at this, but the debugger was crashing as
appSettings in the machine.config does not exist, but GetConfig
returns a non-null value when looking it up when you do a
GetDocumentForSection ("appSettings").
svn path=/trunk/mcs/; revision=8115
* typemanager.cs (IsUnmanagedtype): Do not recursively check
fields if the fields are static. We only need to check instance
fields.
svn path=/trunk/mcs/; revision=8106
* Mono.Data.MySql/MySqlDataReader.cs: added
started implementing Reader for MySQL provider
* Mono.Data.MySql/MySqlTypes.cs: added
to hold internal helper methods, enums, structs, classes
for handling MySQL data types
* Test/TestMySqlExecuteReader.cs
* Test/TestMySqlExecuteScalar.cs: added simple tests
for ExecuteScalar() and ExecuteReader() methods
in MySqlCommand. We are able to retrieve data
from MySQL now.
* Mono.Data.MySql.build: took out exclude
so MySqlExecuteReader.cs will build
* Mono.Data.MySql/Field.cs: added enum to file
and added helper methods field flags
* Mono.Data.MySql/MySqlCommand.cs: started
implementation of ExecuteScalar nd ExecuteReader methods
to retrieve data. Also, added internal method rowVal
for marshalling field data.
* Mono.Data.MySql/Test.cs: take out a bunch of
Console.WriteLines'
svn path=/trunk/mcs/; revision=8097
* statement.cs (Using.ResolveExpression): Use
ConvertImplicitRequired, not ConvertImplicit which reports an
error on failture
(Using.ResolveLocalVariableDecls): ditto.
svn path=/trunk/mcs/; revision=8094
* expression.cs: Use StoreFromPtr instead of extracting the type
and then trying to use Stelem. Patch is from [email protected]
svn path=/trunk/mcs/; revision=8083
* ecore.cs (ImplicitReferenceConversion): It is possible to assign
an enumeration value to a System.Enum, but System.Enum is not a
value type, but an class type, so we need to box.
svn path=/trunk/mcs/; revision=8081
* list: Modified file.
* System.Web/HttpApplication.cs: fixed type and handle factories when
creating IHttpHandler for a request.
* System.Web.Configuration/HttpHandlersSectionHandler.cs: made a
couple of static methods be part of a class used in other handlers.
* System.Web.Configuration/HttpModulesConfigurationHandler.cs: handler
for modules.
* System.Web.Configuration/ModuleItem.cs: added IsMatch method.
* System.Web.Configuration/ModulesConfiguration.cs: made it similar to
the handlers class: added Clear, Remove.
* System.Web.Handlers/ChangeLog: New file.
* System.Web.Handlers/TraceHandler.cs: stubbed out. This should generate
the trace page when tracing is enabled.
* System.Web.SessionState/SessionStateModule.cs: don't throw exception.
Just for testing the configuration stuff until we implement this.
svn path=/trunk/mcs/; revision=8074
* BufferTest.cs: Test for ArgumentExceptions where they should be
thrown
* Int32Test.cs: Enable tests for custom format strings. We do have
implementation for them now.
svn path=/trunk/mcs/; revision=8064
* System.Web/HttpApplication.cs: use handlers from configuration.
* System.Web/HttpContext.cs: get handlers from ConfigurationSettings.
* System.Web.Caching/Cache.cs: little fixes.
* System.Web.Configuration/HttpHandlerTypeMapper.cs: removed.
* System.Web.Configuration/HandlerFactoryConfiguration.cs: readded. I
removed it by mistake.
* System.Web.Configuration/HandlerItem.cs: only load the type if
we gotta validate it. Implemented initial IsMatch.
* System.Web.Configuration/HttpConfigurationContext.cs: New file.
* System.Web.Configuration/HttpHandlersSectionHandler.cs: validate is
optional (default true). Use HttpHandlerTypeMapper.
* System.Web.UI/SimpleHandlerFactory.cs: new handler for .ashx files.
svn path=/trunk/mcs/; revision=8053
* ConfigXmlDocument.cs: move the reader for the section to the first
element.
* ConfigurationSettings.cs: fixed hierarchical search for a handler.
svn path=/trunk/mcs/; revision=8052
* System.Data/ConstraintCollection.cs:
* System.Data/DataColumnCollection.cs:
* System.Data/DataRowCollection.cs:
* System.Data/DataTableCollection.cs:
* System.Data/InternalDataCollectionBase.cs: made List internal to fix
the build with csc. It must be a mcs bug. I will try to get a test case.
svn path=/trunk/mcs/; revision=8050
* System.Data/Constraint.cs (AssertConstraint): added overloaded
method.
* System.Data/DataColumnCollection.cs: added constraints when needed.
* System.Data/DataRow.cs: validate UniqueConstraint's.
* System.Data/DataRowCollection.cs (ValidateDataRowInternal): new
internal method to validate a given DataRow with respect to the
DataRowCollection.
* System.Data/ForeignKeyConstraint.cs (AssertConstraint): stubs for
new overloaded method.
* System.Data/UniqueConstraint.cs: added implementation.
(AseertConstraint): implemented new overloaded method.
svn path=/trunk/mcs/; revision=8039
* System.Data/Constraint.cs (AssertConstraint): added overloaded
method.
* System.Data/DataColumnCollection.cs: added constraints when needed.
* System.Data/DataRow.cs: validate UniqueConstraint's.
* System.Data/DataRowCollection.cs (ValidateDataRowInternal): new
internal method to validate a given DataRow with respect to the
DataRowCollection.
* System.Data/ForeignKeyConstraint.cs (AssertConstraint): stubs for
new overloaded method.
* System.Data/UniqueConstraint.cs: added implementation.
(AseertConstraint): implemented new overloaded method.
svn path=/trunk/mcs/; revision=8038
* statemenc.cs (FlowBranching.SetParameterAssigned): Don't crash
if it's a class type and not a struct. Fixes#31815.
svn path=/trunk/mcs/; revision=8037
* list: added new files in System.Web.Configuration.
* System.Web.Configuration/HandlerFactoryConfiguration.cs: removed.
* System.Web.Configuration/HandlerItem.cs: added validation field.
* System.Web.Configuration/HttpHandlerTypeMapper.cs: holds mappings
between verbs and wilcards and their associated HandlerItem.
* System.Web.Configuration/HttpHandlersSectionHandler.cs: this one
processes system.web/httpHandlers section of machine.config file.
svn path=/trunk/mcs/; revision=8030
* RC2Test.cs: New test. Only three cases are enabled - the other
five work fine under mono, but fail under MS corlib, so I've
commented them out.
* AllTests.cs: Added RC2Test.
svn path=/trunk/mcs/; revision=8003
* main.cs (FileSelectionOk): Fix filename handling.
(OnQuitActivate): Added, so now we can properly quit from the
Quit menuitem.
svn path=/trunk/mcs/; revision=7992
* statement.cs (FlowBranching.UsageVector.MergeChildren): Make
finally blocks actually work.
(Try.Resolve): We don't need to create a sibling for `finally' if
there is no finally block.
svn path=/trunk/mcs/; revision=7982
* SqlSharpCli.cs: modified
- fix compile errors due to mcs has better error checking
- fix exection of query with semicolon at end which resulted in an exception
- added support for ? postioned parameters
- added support for [] delimited named parameters
- misc. tidbits
svn path=/trunk/mcs/; revision=7981
* class.cs (Constructor): Make AllowedModifiers public, add
EXTERN.
* cs-parser.jay: Perform the modifiers test here, as the
constructor for the Constructor class usually receives a zero
because of the way we create it (first we create, later we
customize, and we were never checking the modifiers).
svn path=/trunk/mcs/; revision=7978
* typemanager.cs (Typemanager.LookupTypeDirect): This new function
is a version of LookupTypeReflection that includes the type-name
cache. This can be used as a fast path for functions that know
the fully qualified name and are only calling into *.GetType() to
obtain a composed type.
This is also used by TypeManager.LookupType during its type
composition.
(LookupType): We now also track the real type name, as sometimes
we can get a quey for the real type name from things like
ComposedCast. This fixes bug 31422.
* expression.cs (ComposedCast.Resolve): Since we are obtaining a
complete type fullname, it does not have to go through the type
resolution system to obtain the composed version of the type (for
obtaining arrays or pointers).
svn path=/trunk/mcs/; revision=7977
* expression.cs (ArrayCreation.CheckIndices): Use the patch from
[email protected] to validate the array initializers.
svn path=/trunk/mcs/; revision=7975
* class.cs (ConstructorInitializer.Emit): simplify code by using
Invocation.EmitCall, and at the same time, fix the bugs in calling
parent constructors that took variable arguments.
svn path=/trunk/mcs/; revision=7973
* ecore.cs (Expression.ConvertNumericExplicit,
Expression.ImplicitNumericConversion): Remove the code that
manually wrapped decimal (InternalTypeConstructor call is now gone
as well).
svn path=/trunk/mcs/; revision=7971
* expression.cs (Cast.TryReduce): Also handle decimal types when
trying to perform a constant fold on the type.
* typemanager.cs (IsUnmanagedtype): Partially implemented.
svn path=/trunk/mcs/; revision=7969
* acconfig.h:
* configure.in: Freebsd pthread_t is a pointer
2002-10-03 Dick Porter <[email protected]>
* daemon.c:
* handles.c:
* threads.c: Fixes for freebsd. Make sure that mutex and condition
creation and deletion happen in the process that owns them, when
POSIX shared thread objects aren't supported. This breaks on
freebsd, as pthread_t is a pointer to data.
2002-10-03 Dick Porter <[email protected]>
* threads.c: Freebsd pthread_t is a pointer
svn path=/trunk/mono/; revision=7964
* jit.c (ves_array_element_address): added check for out of range index
(mono_analyze_stack): added fix for bug #31654
svn path=/trunk/mono/; revision=7958
* parameter.cs: Removed ResolveAndDefine, as it was not needed, as
that only turned off an error report, and did nothing else.
svn path=/trunk/mcs/; revision=7957
* list.unix: added new files in System.Configuration.
* System.Configuration/ConfigHelper.cs: New file. Contains some
helper functions for getting key-value collections from the config file.
* System.Configuration/ConfigXmlDocument.cs: wrapper around xml
elements to provide line number and file name info.
* System.Configuration/IConfigXmlNode.cs: used in ConfigXmlDocument
and ConfigurationException.
* System.Configuration/ConfigurationException.cs: get file name and line
number from the wrapped XmlNode. Display this info in Message.
* System.Configuration/NameValueFileSectionHandler.cs: new handler.
* System.Configuration/DictionarySectionHandler.cs:
* System.Configuration/NameValueSectionHandler.cs: modified to use the
helper methods in ConfigHelper.
svn path=/trunk/mcs/; revision=7953
* shared.c: Use mmap() instead of sysv shm for the shared data.
* wapi-private.h (_WAPI_HANDLE_VERSION): Reset back to 0, for the
new system
* daemon-private.h:
* daemon.c: mmap()ed regions survive fork, so just pass the
pointer to _wapi_daemon_main instead of mapping it again.
svn path=/trunk/mono/; revision=7946
* System.Data.OleDb/OleDbConnection.cs (Open): commented code from
last commit, which wasn't supposed to be in CVS yet.
svn path=/trunk/mcs/; revision=7924
MCS is currently able to compile itself and many more C#
programs (there is a test suite included that you can use).
It is routinely used to compile Mono, roughly half a million
lines of C# code.
The Mono C# compiler is considered feature complete at this
point and relatively mature. MCS is able to compile itself
and many more C# programs (there is a test suite included that
you can use). It is routinely used to compile Mono, roughly
half a million lines of C# code.
We are in feature completion mode right now. There are still
a couple of areas that are not covered by the Mono compiler, but
they are very very few at this point (security attributes),
* Pending tasks
There are a few known bugs in the Mono C# compiler, but
they are very very few at this point,
you can also browse the MCS <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FMCS&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time&form_name=query">bugs</a> from Bugzilla.
A test suite is maintained to track the progress of
the compiler and various programs are routinely compiled and
ran.
** Slides
Slides for the Mono C# Compiler presentation at .NET ONE are
The <b>educational</b> way is an interesting one, because you
pick a technology you are interested in, and work on that
technology to learn the technology.
Those are just broad things that need to be worked on, but
something that would help tremendously would be to help with
@@ -95,6 +128,50 @@
You can review the list of current bugs by going <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&product=Mono%2FMCS&product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query">here</a>
<a name="goodbugreport"/>
** How to make good bug reports
A mail from Paolo to mono-devel-list contained this check list:
<ol>
* Submit a test case, the smaller it is, the better
* Use <a href="http://bugzilla.ximian.com">
http://bugzilla.ximian.com</a> to report the bug.
<p>In <b>addition</b> to bugzilla, posting to the list is
fine if the bug merits larger exposure or design
discussions to solve; posting to the list twice or more
is just a way to annoy people and make them waste time,
specially when you start a new thread about it.
* If the test involves libraries or assemblies that are
not part of mono, add info about where to download all
the dependencies, and how to compile/install them.
* If compiling the test case requires more than:
<pre> mcs test.cs </pre>
provide the <b>full command line</b> you used to compile
the test.
* If running the test requires more than:
<pre> mono test.exe </pre>
provide the <b>full command line</b> needed to replicate
the bug.
* Provide info about the version of the software you're
using (both mono and the operating system or relevant
libraries).
* Provide the output you expect the test case to produce.
* Provide the actual output <b>you</b> get from the test case.
</ol>
A good bug report complies with at least 6 items from the list.
If your bug report complies with 3 or less items, it is very
poor and it means it will take much more time to fix (when it's
not ignored).
** Small tasks
A few smaller tasks are here, dropped in no particular order:
This namespace implements the <a href="http://www.w3.org/TR/xmldsig-core/">
XML Digital Signature</a> specification from
<a href="http://www.w3.org/">W3C</a>.
**** Status
<ul>
* All classes are present but some (most Transforms) are only
stubbed.
* Most classes have their unit tests.
</ul>
**** TODO
<ul>
* All the transforms needs to be done. But this requires far
more XML knowledge than crypto. Note: Most tests runs because
the feeded XML is pre-c14n (by hand in the code) before
signing (not because the transforms works). In the short
term <code>libxml2</code> could be used to provide C14N, but
in the long term a fully managed class would be much better.
</ul>
<hr>
** Assembly: Mono.Security
<b>Rational: </b>
This assembly provides the missing pieces to .NET security. On Windows
CryptoAPI is often used to provide much needed functionalities (like
some cryptographic algorithms, code signing, X.509 certificates). Mono,
for platform independance, implements these functionalities in 100%
managed code.
*** Namespace: Mono.Security
<ul>
* Structures (ASN1, PKCS7) and primitives (PKCS1).
</ul>
*** Namespace: Mono.Security.Authenticode
<ul>
* Code signing and verification.
* Support for SPC (Software Publisher Certificate) files and
PVK (Private Key) files.
</ul>
*** Namespace: Mono.Security.Cryptography
<ul>
* Additional algorithms: MD2, ARCFOUR (required for SSL)
* Convertion helpers
</ul>
*** Namespace: Mono.Security.X509
<ul>
* X.509 structures (certificate, CRL...) building and decoding.
</ul>
*** Namespace: Mono.Security.X509.Extensions
<ul>
* X.509 extensions (from public X.509 to private PKIX, Netsapce,
Microsoft, Entrust...).
</ul>
**** Status
<ul>
* Some part of the work has not yet been commited (still cleaning up).
* A big part of this assembly is also included inside Mono's
corlib. The classes are duplicated in this assembly so the
functionalities can be used without a dependency on Mono's
corlib (which depends on Mono's runtime).
* Unit test coverage isn't (yet) complete.
</ul>
<hr>
** Assembly: Mono.Security.Win32
<b>Rational: </b>
This assembly goal is to provide maximum compatibility with CryptoAPI
to application running with Mono's runtime on the Windows operating
system.
<b>This assembly should NEVER be used directly by any application</b>
(e.g. referecing the assembly from a project).
The classes should only be used by modifying the <code>machine.config
</code> configuration file (and then only if this increased
compatibility is required by an application).
See the file <code><a href="http://cvs.hispalinux.es/cgi-bin/cvsweb/~checkout~/mcs/class/Mono.Security.Win32/README?rev=1.1&content-type=text/plain&cvsroot=mono">/mcs/class/Mono.Security.Win32/README</a></code>
for complete instructions.
*** Namespace: Mono.Security.Cryptography
**** Status
<ul>
* A RNGCryptoServiceProvider built on top of CryptoAPI. This
allows Windows users to get around the limitation of the
DataSet ds=DataTools.FillDataSet(conn, "select * from author");
</pre>
<p>Here's some sample code on displaying a list <br>
of configured ADO.NET providers:
<pre>
Console.WriteLine("Configured Providers:");
foreach (Provider p in ProviderFactory.Providers)
Console.WriteLine(p.Description);
</pre>
<p>A Super lazy overload to the FillDataSet method (in <br>
DataTools.cs) that will fill a dataset in one line of code.
<pre>
DataSet ds=DataTools.FillDataSet("PubsConnStr", "select * from authors");
</pre>
** About Configuration Files
<p>Information about <a href="http://msdn.microsoft.com/library/en-us/vbcon/html/vboriintroductiontoapplicationsettingstorage.asp?frame=true">app.config</a> files
can be found at <a href="http://msdn.microsoft.com/">MSDN</a>.
<p>See the mcs/class/Mono.Data/app.config for sample configuration file in<br>
mcs source. Basically, if your application is named blah.exe, <br>
you would create an app.config file named blah.exe.config
<p>Here's a sample app.config file showing the provider <br>
declarations along with sample connection strings:
The <a href="http://msdn.microsoft.com/net">Microsoft.NET site.</a>
The Microsoft .NET Framework 1.0 can be downloaded <a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a>
The Microsoft .NET Framework 1.0 can be downloaded <a
New methods that are not documented in 1.0, are documented <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/framewrkaddend.asp">here</a>
New methods that are not documented in 1.0, are documented <a
Another implementation of the CLI and C# compiler.
* A Free (GFDL) tutorial on C# in Spanish with examples, slides, and extras (under development). Get it <a href="http://geneura.ugr.es/~jaime/csharp/">here</a>.
* A Free (GFDL) tutorial on C# in Spanish with
examples, slides, and extras (under development). Get it <a
@@ -56,15 +56,54 @@ leave: is simply translated into a branch to the target. If the leave
instruction is inside a finally block (but not inside another handler)
we call the finally handler before we branch to the target.
finally/endfinally: is translated into subroutine ending with a "return"
statement. The subroutine does not save EBP/ESP, because we need access to the
local variables of the enclosing method. We have to use a "call"
instruction to execute such finally handlers. This makes it possible to
execute them inside the stack unwinding code.
finally/endfinally, filter/endfilter: is translated into subroutine ending with
a "return" statement. The subroutine does not save EBP, because we need access
to the local variables of the enclosing method. Its is possible that
instructions inside those handlers modify the stack pointer, thus we save the
stack pointer at the start of the handler, and restore it at the end. We have
to use a "call" instruction to execute such finally handlers. This makes it
also possible to execute them inside the stack unwinding code. The exception
object for filters is passed in a local variable (cfg->exvar).
throw: we first save all regs into a sigcontext struct (we pass the
exception object in register ECX), and then call the stack unwinding
code.
throw: we first save all regs into a sigcontext struct and then call the stack
unwinding code.
catch handler: receives the exception object in ECX. They store that
object into a local variable, so that rethrow can access the object.
catch handler: catch hanlders are always called from the stack unwinding
code. The exception object is passed in a local variable (cfg->exvar).
gcc support for Exceptions
==========================
gcc supports exceptions in files compiled with the -fexception option. gcc
generates DWARF exceptions tables in that case, so it is possible to unwind the
stack. The method to read those exception tables is contained in libgcc.a, and
in newer versions of glibc (glibc 2.2.5 for example), and it is called
__frame_state_for(). Another usable glibc function is backtrace_symbols() which
returns the function name corresponding to a code address.
We dynamically check if those features are available using g_module_symbol(),
and we use them only when available. If not available we use the LMF as
fallback.
Using gcc exception information prevents us from saving the LMF at each native
call, so this is a way to speed up native calls. This is especially valuable
for internal calls, because we can make sure that all internal calls are
compiled with -fexceptions (we compile the whole mono runtime with that
option).
All native function are able to call function without exception tables, and so
we are unable to restore all caller saved registers if an exception is raised
in such function. Well, its possible if the previous function already saves all
registers. So we only omit the the LMF if a function has an exception table
able to restore all caller saved registers.
One problem is that gcc almost never saves all caller saved registers, because
it is just unnecessary in normal situations. But there is a trick forcing gcc
to save all register, we just need to call __builtin_unwind_init() at the
beginning of a function. That way gcc generates code to save all caller saved
register on the stack.
Loaded 100 of 6073 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.