* 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
* expression.cs (Binary.ResolveOperator): Catch the case where
DoNumericPromotions returns true,
(Binary.DoNumericPromotions): Simplify the code, and the tests.
svn path=/trunk/mcs/; revision=7915
* debug-mono-symfile.c: Don't emit methods and line numbers for
the dynamic symbol file, just write the type table. We can easily
have an external helper program which creates a symbol file for an
IL file.
svn path=/trunk/mono/; revision=7907
* timed-thread.c: Kludge for CREATE_SUSPENDED thread creation.
Unfortunately libgc uses the same thread suspend technique that I
want to, and the two don't mix: libgc will deadlock when it tries
to stop the world if a thread has already been suspended by
someone else. Just do the simple suspended create rather than the
general purpose thread suspension for now.
* threads.c: Pass create flags to the timed_thread create call, to
implement suspended thread creation. ResumeThread() partially
implemented, to cope with the case where a newly created but
suspended thread is launched.
2002-10-01 Dick Porter <[email protected]>
* threads.c (ves_icall_System_Threading_Thread_Start_internal):
Only add the handle to the cleanup array when we're about to
launch the thread. Bug 31425 deadlocked when the test was run on
mono under w32.
svn path=/trunk/mono/; revision=7905
* System.Data.SqlClient/AllTests.cs: added SqlBoolean test.
2002-10-01 ville <[email protected]>
* System.Data.SqlClient/SqlBooleanTest.cs: new test suite for
SqlBoolean class.
svn path=/trunk/mcs/; revision=7899
* list: added new files in System.Web.
* System.Web/HttpApplication.cs: use the static file handler.
* System.Web/HttpForbiddenHandler.cs: handler to forbid access.
* System.Web/HttpMethodNotAllowedHandler.cs: handler for method not
allowed.
* System.Web/HttpUtility.cs: finished all UrlDecode methods.
* System.Web/MimeTypes.cs: map from file extension to MIME type.
* System.Web/StaticFileHandler.cs: serves static files
svn path=/trunk/mcs/; revision=7897
* FormTest.cs: set label position on test form
* Label.cs: implemented more methods
* makefile: stub no longer links to gc library
svn path=/trunk/mcs/; revision=7893
* DecimalTest.cs: Change from Assert() with == to AssertEquals(). This
gets the tests to pass on linux, but they shouldn't need that. Now
to find out why. This seems deep...
svn path=/trunk/mcs/; revision=7889
* configure.in: Check for semaphore.h. Patch for BSD from
[email protected] (Julio Merino).
2002-09-27 Dick Porter <[email protected]>
* semaphores.c: Only include semaphore.h if it's present. Patch
for BSD from [email protected] (Julio Merino).
svn path=/trunk/mono/; revision=7865
* assembly.h, assembly.c: use a sane API to hook into the assembly
loading process instead of a useless special-purpouse hack
(ngen needs a hook, too, for example).
svn path=/trunk/mono/; revision=7864
* processes.c: Pass environment and working directory to the
daemon when forking. Don't let argv[0] be duplicated when looking
for the program name. Implement EnumProcessModules (simple
version for now, lsof-style later if needed), GetModuleBaseName,
{Get,Set}ProcessWorkingSetSize (just faked, because the vm hints
aren't available on Linux).
* process-private.h: Store the process name, and the working set
min and max
* handles.c:
* handles-private.h: New functions to store and retrieve an array
of strings in the scratch space
* daemon.c: Don't miss deleting some handles when a client exits
(we used to rely on the client doing the final cleanup, but
obviously if the client is no longer there the daemon has to do
it).
Process forking now sets the environment and the working
directory.
* io.c: Don't confuse fd 0 with an unassigned handle struct
* atomic.h: Add a google cache alternative to the msdn URL
2002-09-27 Dick Porter <[email protected]>
* threads.c (mono_thread_init): Call GetCurrentProcess() so
io-layer can set up some process handle info. Not needed on w32,
but doesn't hurt either.
* process.c: Pass the program name in the second parameter to
CreateProcess, so the path is searched. Include the working
directory. Implemented process name, process enumeration, and some
process detail internal calls.
* icall.c: Added internal calls for process lookup, and some
process details
svn path=/trunk/mono/; revision=7858
* interp.c: Tell glib what the program name is, by passing it the
name of the managed file we're executing
2002-09-27 Dick Porter <[email protected]>
* mono.c: Tell glib what the program name is, by passing it the
name of the managed file we're executing
svn path=/trunk/mono/; revision=7857
* Process.cs: Implemented {get_,set_}{Min,Max}WorkingSet,
ProcessName, GetProcessById, GetProcesses, GetProcessesByName.
Pass the working directory to Start. Pass the program and args in
one string to be used with the second arg of CreateProcess, so it
will search the path.
svn path=/trunk/mcs/; revision=7856
* trampoline.c (x86_magic_trampoline): Don't insert the breakpoint
trampoline into the vtable, also use it for non-virtual methods,
remove the breakpoint when done.
svn path=/trunk/mono/; revision=7850
* ecore.cs (ConvertNumericExplicit): It is not enough that the
conversion exists, but it is also required that the conversion be
performed. This manifested in "(Type64Enum) 2".
svn path=/trunk/mcs/; revision=7847
* debug.c: Reworked the whole debugging stuff. We have now one
single `mono_debug_handle' which keeps a hashtable of
`AssemblyDebugInfo's (which may have different debugging formats).
The AssemblyDebugInfo is now created when the assembly is loaded,
but never when adding a class/type.
* mono.c: Initialize debugging stuff after corlib and the assembly
have been loaded.
svn path=/trunk/mono/; revision=7843
* assembly.c (mono_install_open_assembly_hook): New global
function to install a function to be invoked each time a new
assembly is loaded.
(mono_assembly_open): Run this callback function if set.
* debug-mono-symfile.c: Put back line numbers for the dynamic
symbol file and also record the .il file as source file. This
allows us to install the temporary symbol file as `file.dbg' just
like a compiler-generated one.
svn path=/trunk/mono/; revision=7842
* class.cs (TypeManager.AddMethod): The fix is not to change
AddEnum, because that one was using a fully qualified name (every
DeclSpace derivative does), but to change the AddMethod routine
that was using an un-namespaced name. This now correctly reports
the duplicated name.
svn path=/trunk/mcs/; revision=7840
* class.cs: Revert patch until I can properly fix it. The issue
is that we have a shared Type space across all namespaces
currently, which is wrong.
Options include making the Namespace a DeclSpace, and merge
current_namespace/current_container in the parser.
svn path=/trunk/mcs/; revision=7833
* HttpApplication.cs: added some missing methods.
* HttpApplicationFactory.cs: get event handlers for the application.
* HttpAsyncResult.cs: little fixes.
* HttpRequest.cs: make Encoding work even with no worker request.
svn path=/trunk/mcs/; revision=7830
* icall.c: fixed bug #31235 by copying a few lines from GetMethods to
GetProperties. Also avoid calling g_slist_length in GetProperties and
GetMethods.
svn path=/trunk/mono/; revision=7827
* cs-parser.jay: Improve error reporting when we get a different
kind of expression in local_variable_type and
local_variable_pointer_type.
Propagate this to avoid missleading errors being reported.
svn path=/trunk/mcs/; revision=7823
* debug-mono-symfile.h (MonoSymbolFileMethodAddress): Use pointers
instead of guint64 for addresses and added prologue/epilogue info.
svn path=/trunk/mono/; revision=7819
* ecore.cs (ImplicitReferenceConversion): treat
TypeManager.value_type as a target just like object_type. As
code like this:
ValueType v = 1;
Is valid, and needs to result in the int 1 being boxed before it
is assigned to the value type v.
svn path=/trunk/mcs/; revision=7818
* expression.cs (ArrayAccess.EmitAssign): Mimic the same test from
EmitDynamicInitializers for the criteria to use Ldelema. Thanks
to [email protected] for finding the bug and providing a patch.
svn path=/trunk/mcs/; revision=7816
* debug-private.h (DebugLineNumberInfo): Removed. There's now a
MonoDebugLineNumberEntry type in debug-mono-symfile.h which we're
using instead of it.
(DebugMethodInfo): Removed `line_numbers'.
* debug.c: Reworked the line number generation; we're now using
the MonoDebugLineNumberEntry try for all debugging formats. This
type also includes the line number and IL offset, this allows the
JIT to produce better line number info: we only emit line number
information for source lines which actually have code.
svn path=/trunk/mono/; revision=7812
* debug-mono-symfile.h (MonoDebugLineNumberEntry): New type to
store line number info. For the dynamic symbol file, we only need
to provide the JIT generated dynamic line number info for the dynamic
symbol file.
svn path=/trunk/mono/; revision=7811
* debug.h: Removed external declaration of all functions which
should only be called from the Mono Debugger and also made them
static. Since the debugger gets their address from the
`MONO_DEBUGGER__debugger_info' vtable, there's no need to export
these functions.
svn path=/trunk/mono/; revision=7807
Improved breakpoint support, we can now dynamically insert and
remove breakpoints at runtime and when called from withing the
Mono Debugger, we're using a special breakpoint trampoline.
* debug.h (mono_method_has_breakpoint): New method to check
whether to insert a breakpoint for a method.
(mono_insert_breakpoint): New method to insert a breakpoint.
(mono_insert_breakpoint_full): New method to insert a breakpoint,
takes a MonoMethodDesc.
(mono_remove_breakpoint): New method to remove a breakpoint.
* debug.c (mono_debugger_insert_breakpoint): New function for the
debugger. Should only be called from the debugger.
(mono_debugger_remove_breakpoint): Likewise.
* mono.c (main): Use mono_insert_breakpoint() to insert breakpoints.
* trampoline.c (get_breakpoint_trampoline): New static function to
create a special breakpoint trampoline for the debugger.
(x86_magic_trampoline): If we're running inside the Mono Debugger
and a breakpoint was requested for the method, generate a special
breakpoint trampoline.
* jit.c (mono_debug_methods): Removed, use mono_insert_breakpoint()
to insert a breakpoint.
(mono_debug_last_breakpoint_address): Removed.
(match_debug_method): Removed, use mono_method_has_breakpoint().
svn path=/trunk/mono/; revision=7806
The problem was that I incremented gr as if we were on a PPC box. Sparc
doesn't need such "alignment" of the registers.
svn path=/trunk/mono/; revision=7800
* ecore.cs (TryImplicitIntConversion): When doing an
implicit-enumeration-conversion, check if the type is 64-bits and
perform a conversion before passing to EnumConstant.
svn path=/trunk/mcs/; revision=7799
* Reworked Type.cs to support the full range of the monodoc.dtd
* Added support for the full monodoc.dtd to parser.cs
svn path=/trunk/mcs/; revision=7792
* Assembly.cs (MonoDebugger_GetType): New method to get a Type
from its metadata token. This should only be used by the debugger.
svn path=/trunk/mcs/; revision=7784
* debug.c (mono_debug_open): When we're invoked from inside the
Mono Debugger, set mono_debugger_class_init_func (exported in
metadata/class.c) to mono_add_type().
(mono_add_type): Call mono_debug_symfile_add_type().
svn path=/trunk/mono/; revision=7783
* class.c (mono_debugger_class_init_func): New global function
pointer variable.
(mono_class_init): If mono_debugger_class_init_func is non-NULL,
call it.
* debug-mono-symfile.c (mono_debug_symfile_add_type): New
function. This is called via the mono_debugger_class_init_func
hook to add all types to the dynamic type table.
(ves_icall_MonoDebugger_GetType): New interncall to get a class
from its metadata token.
* icall.c ("System.Reflection.Assembly::MonoDebugger_GetType"):
New interncall for the debugger.
svn path=/trunk/mono/; revision=7782
* ArrayList.cs: Make enumerator throw exception if the ArrayList is
mutated (Insert, Delete, etc.). Also, fix bug in InsertRange() when
this was passed as parameter.
svn path=/trunk/mcs/; revision=7775
* ArrayListTest.cs: Add test for InsertRange() for the case where an
ArrayList is passed to itself to be insterted.
svn path=/trunk/mcs/; revision=7774
* Application.cs: Run method now creates the Form
* ContainerControl.cs: no implementation but made sure overridden
methods call the base class
* Control.cs: Implemented several more methods in the implementation
of this class. Implemented ControlCollection, allowing controls
to be added and removed from the Form.
* Form.cs: Implemented more methods of the Form class
* FormTest.cs: Added code to draw and display a Label
* Label.cs: Initial implementation of Label class. The Label can
be added and displayed on a Form.
* NativeWindow.cs: modified debugging (console) output
* ScrollableControl.cs: no implementation but made sure overridden
methods call the base class
* Win32.cs: added more Win32 imports and definitions
* monostub.c: now store the application HINSTANCE
* makefile: added Label.cs to makefile
svn path=/trunk/mcs/; revision=7758
* decl.cs (Error_AmbiguousTypeReference); New routine used to
report ambiguous type references. Unlike the MS version, we
report what the ambiguity is. Innovation at work ;-)
svn path=/trunk/mcs/; revision=7751
* decl.cs (DeclSpace.FindType): Require a location argument to
display when we display an ambiguous error.
* ecore.cs: (SimpleName.DoResolveType): Pass location to FindType.
* interface.cs (GetInterfaceTypeByName): Pass location to FindType.
svn path=/trunk/mcs/; revision=7748
* expression.cs (EmitDynamicInitializers): Apply patch from
[email protected] that fixes the order in which we emit our
initializers.
svn path=/trunk/mcs/; revision=7745
* XslTransform.cs (Laod): Implemented the simple version that
takes one XPathNavigator as argument.
(Save): New private method for recreating the XML in text from a
XPathNavigator
(WriteCurrentNode):
(WriteTree): private methods for generating the text XML from the
XPathNavigator tree.
svn path=/trunk/mcs/; revision=7744
* ArrayListTest.cs: Add check that enumerator is invalidated after a
method that changes the list, such as Add(), Remove(), etc.
svn path=/trunk/mcs/; revision=7735
* XmlConvert.cs: IsInvalid is now internal.
* XmlNamespaceManager.cs: implemented RemoveNamespace
* XmlTextReader.cs: return BaseURI and Encoding from the parser.
* XmlTextWriter.cs: implemented WriteName and WriteNmToken.
svn path=/trunk/mcs/; revision=7725
* debug.c (MonoDebuggerSymbolFileTable): Use an actual typedef for this
instead of writing a byte blob.
(mono_debug_make_symbols): This doesn't touch the symbol tables anymore.
(mono_debug_add_method): Incrementally add the new method to the symbol
table.
* exception.c (arch_handle_exception): If we have debugging support,
call mono_debugger_update_symbol_file_table () as well.
svn path=/trunk/mono/; revision=7686
* debug-mono-symfile.c: Largely reworked the symbol table format.
The symbol table is now incrementally updated each time a new
method is added. We're now also using our own magic and version
so that you don't need to recompile all your classes if the
dynamic table changes.
(mono_debug_update_mono_symbol_file): Removed.
(mono_debug_symfile_add_method): New function to add a method.
svn path=/trunk/mono/; revision=7685
* MonoSymbolTable.cs: Set version number to 26. Removed all the dynamic
stuff, this library now just deals with the compiler generated symbol table.
The dynamic stuff is private between the JIT and the debugger.
svn path=/trunk/mcs/; revision=7684
* constant.cs: Use Conv_U8 instead of Conv_I8 when loading longs
from integers.
* expression.cs: Extract the underlying type.
* ecore.cs (StoreFromPtr): Use TypeManager.IsEnumType instad of IsEnum
svn path=/trunk/mcs/; revision=7679
* Uri.cs (GetObjectData):
(Uri): The key should be "AbsoluteUri", not "Uri".
2002-09-20 Duncan Mak <[email protected]>
* XslTransform.cs (Load): Implemented the methods, not
including the ones that deal with XPathNavigator (hopefully those
will come later).
(Transform): Implemented the version that saves directly to a file.
(Save): New private method for recreating the XML in text from
from an XmlReader
We're now P/Invoking libxslt for doing XSLT work.
svn path=/trunk/mcs/; revision=7675
* Assembly.cs (MonoDebugger_GetLocalTypeFromSignature): New method to
get the type of a local variable from its signature. This should only
be used by the debugger.
svn path=/trunk/mcs/; revision=7669
* icall.c
("System.Reflection.Assembly::MonoDebugger_GetLocalTypeFromSignature"):
New interncall.
* debug-mono-symfile.c (ves_icall_MonoDebugger_GetLocalTypeFromSignature):
New interncall to get a method from its metadata token.
svn path=/trunk/mono/; revision=7668
* ModuleBuilder.cs (ModuleBuilder.symbol_writer): Make this
field internal, not private.
(ModuleBuilder.SymWriter_DefineLocalVariable): Removed.
* LocalBuilder.cs (LocalBuilder.SetLocalSymInfo): Use the
ISymbolWriter's DefineLocalVariable() method instead of the
IMonoSymbolWriter hack.
svn path=/trunk/mcs/; revision=7666
* MonoSymbolTable.cs: Set version number to 24. Added a type index
table. Write the type of a local variable or a parameter as an index
into this table.
svn path=/trunk/mcs/; revision=7660
* Assembly.cs (MonoDebugger_GetMethod): New method to get a MethodBase
from its metadata token. This should only be used by the debugger.
svn path=/trunk/mcs/; revision=7642
* icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethod"):
New interncall.
* debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethod): New
interncall to get a method from its metadata token.
svn path=/trunk/mono/; revision=7641
* class.cs (TypeContainer.DefineType): We can not use the nice
PackingSize with the size set to 1 DefineType method, because it
will not allow us to define the interfaces that the struct
implements.
This completes the fixing of bug 27287
* ecore.cs (Expresion.ImplicitReferenceConversion): `class-type S'
means also structs. This fixes part of the problem.
(Expresion.ImplicitReferenceConversionExists): ditto.
svn path=/trunk/mcs/; revision=7633
* IMonoSymbolWriter.cs: Use fullly qualified name for
System.Diagnostics.SymbolStore.ISymbolWriter rather than `using' this
namespace. This allows us to use the name `ISymbolWriter' in our own
code.
svn path=/trunk/mcs/; revision=7632
* debug-mono-symfile.c: Added a few checks for method->header
being non-NULL. This should never happen, but for the moment
let's use a g_warning() rather than a g_assert().
svn path=/trunk/mono/; revision=7631
* decl.cs (DeclSparce.ResolveType): Only report the type-not-found
error if there were no errors reported during the type lookup
process, to avoid duplicates or redundant errors. Without this
you would get an ambiguous errors plus a type not found. We have
beaten the user enough with the first error.
(DeclSparce.FindType): Emit a warning if we have an ambiguous
reference.
* ecore.cs (SimpleName.DoResolveType): If an error is emitted
during the resolution process, stop the lookup, this avoids
repeated error reports (same error twice).
* rootcontext.cs: Emit a warning if we have an ambiguous reference.
svn path=/trunk/mcs/; revision=7630
* typemanager.cs (LookupType): Redo the type lookup code to match
the needs of System.Reflection.
The issue is that System.Reflection requires references to nested
types to begin with a "+" sign instead of a dot. So toplevel
types look like: "NameSpace.TopLevelClass", and nested ones look
like "Namespace.TopLevelClass+Nested", with arbitrary nesting
levels.
svn path=/trunk/mcs/; revision=7627
* RijndaelManaged.cs: Added dummy GenerateKey until we have a proper RNG.
* SymmetricAlgorithm.cs: Updated comments
svn path=/trunk/mcs/; revision=7625
* codegen.cs (EmitContext.EmitTopBlock): If control flow analysis
says that a method always returns or always throws an exception,
don't report the CS0161.
* statement.cs (FlowBranching.UsageVector.MergeChildren): Always
set `Returns = new_returns'.
svn path=/trunk/mcs/; revision=7623
* Array.cs (CopyTo): Account for Object type and base (primitive) types
* Type.cs (IsAssignableFrom): return false for a null parameter
svn path=/trunk/mcs/; revision=7618
* linear-scan.c (mono_analyze_liveness): we can save 30% of needed
iterations if we visit blocks in reverse order.
svn path=/trunk/mono/; revision=7614
* TraceListenerCollection.cs: Set Indet level and size to default
values. The values from TraceImpl might have been changed.
svn path=/trunk/mcs/; revision=7607
* class.cs (TypeContainer.CheckPairedOperators): Now we check
for operators that must be in pairs and report errors.
svn path=/trunk/mcs/; revision=7603
* ecore.cs (SimpleName.DoResolveType): During the initial type
resolution process, when we define types recursively, we must
check first for types in our current scope before we perform
lookups in the enclosing scopes.
svn path=/trunk/mcs/; revision=7596
* MonoSymbolTable.cs: Set version number to 21. Encode the source file
as a 4-byte length field followed by the UTF8 encoded string.
svn path=/trunk/mcs/; revision=7585
* XmlSerializationReader.cs: implemented a few methods.
* XmlAnyElementAttribute.cs:
* XmlArrayAttribute.cs:
* XmlChoiceIdentifierAttribute.cs:
* XmlElementAttribute.cs:
* XmlMemberMapping.cs:
* XmlMembersMapping.cs: class status based fixes.
svn path=/trunk/mcs/; revision=7578
* expression.cs (Invocation.VerifyArgumentsCompat): Call
TypeManager.TypeToCoreType on the parameter_type.GetElementType.
I thought we were supposed to always call this, but there are a
few places in the code where we dont do it.
svn path=/trunk/mcs/; revision=7577
* UriTest.cs: Fixed some path separator issues for the tests running on
linux.
* TraceTest.cs: Remove extraneous Console.WriteLine().
* ServicePointManagerTest.cs: Convert Console.WriteLine() into a Fail()
* TraceImpl.cs: Add some debug to find the error. Still working on
this one.
svn path=/trunk/mcs/; revision=7563
* TheTests.cs: Removed. Not needed anymore since NUnit runs on linux.
* Syste_test.build: Build a linux version of the unit tests (just a
different linking of dll's)
svn path=/trunk/mcs/; revision=7558
* Fixes the enum values in the following enums
* ContentAlignment.cs:
* FontStyle.cs:
* GraphicsUnit.cs:
* KnownColor.cs:
* RotateFlipType.cs:
* StringAligment.cs:
* StringDigitSubstitute.cs:
* StringFormatFlags.cs:
* StringTrimming.cs:
* StringUnit.cs:
* SolidBrush.cs: Easy implementation
* Brushes.cs: Implementation based on SolidBrush and Color class.
* Brush.cs: Fixes based on the status web).
* CharacterRange.cs: Implemented the missing Lenth property.
svn path=/trunk/mcs/; revision=7547
* ecore.cs (FindMostSpecificSource): Use an Expression argument
instead of a Type, because we might be handed over a Literal which
gets a few more implicit conversions that plain types do not. So
this information was being lost.
Also, we drop the temporary type-holder expression when not
required.
svn path=/trunk/mcs/; revision=7537
* TextWriter.cs (Null): The Null field should be an instance of a
TextWriter class that does nothing, so it is an instance of the
NullTextWriter class.
svn path=/trunk/mcs/; revision=7529
* class.cs (PropertyBase.CheckBase): Make this work for indexers with
different `IndexerName' attributes.
* expression.cs (BaseIndexerAccess): Rewrote this class to use IndexerAccess.
(IndexerAccess): Added special protected ctor for BaseIndexerAccess and
virtual CommonResolve().
svn path=/trunk/mcs/; revision=7526
* cs-tokenizer.cs (consume_string): Track line numbers and columns
inside quoted strings, we were not doing this before.
svn path=/trunk/mcs/; revision=7510
* ecore.cs (MethodGroupExpr.DoResolve): If we have an instance expression,
resolve it. This is needed for the definite assignment check of the
instance expression, fixes bug #29846.
(PropertyExpr.DoResolve, EventExpr.DoResolve): Likewise.
svn path=/trunk/mcs/; revision=7498
* ScrollableControl.cs
* Form.cs: added Win32 implementation to more methods and properties
* MessageBox.cs: fixed typo
* makefile: now using pkg-config for including and linking glib
svn path=/trunk/mcs/; revision=7492
* RijndaelManaged.cs: Added support for CBC-mode, PKCS7/Zero padding.
* SymmetricAlgorithm.cs: IV size must match block size, not key size.
Key property now sets KeySizeValue correctly in bits.
svn path=/trunk/mcs/; revision=7477
* FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
Flush calls fsync().
The API docs show no explicit mention that Flush() should even do
an fsync, I am thinking that we should drop that from the
runtime.
This significantly improves the thumbnail creation in mPhoto
svn path=/trunk/mcs/; revision=7473
* typemanager.cs (TypeManager.IsNestedChildOf): This must return false
if `type == parent' since in this case `type.IsSubclassOf (parent)' will
be false on the ms runtime.
svn path=/trunk/mcs/; revision=7456
* MonoSymbolWriter.cs, IMonoSymbolWriter.cs, MonoSymbolTableWriter.cs:
Make all classes and interfaces which don't need to be public internal.
svn path=/trunk/mcs/; revision=7454
* gc.c: Call GC_unregister_disappearing_link() on all links when
finalizing them, this is necessary to aviod a crash in boehm's
finalize handler.
svn path=/trunk/mono/; revision=7448
* MonoSymbolTable.cs: Use only CLS-compliant types here, bumped version
number to 19.
* MonoSymbolTableReader.cs: Removed, this is now in the debugger.
svn path=/trunk/mcs/; revision=7447
* CodeIdentifiers.cs:
* XmlSchemaExporter.cs:
* XmlSchemaImporter.cs:
* XmlSchemas.cs:
* XmlSerializationWriteCallback.cs:
* XmlSerializationWriter.cs:
* XmlSerializer.cs:
* XmlSerializerNamespaces.cs: some class status based fixed and
implemented a couple of methods.
svn path=/trunk/mcs/; revision=7442
* Parser.cs: commented out non-existent namespace (it compiles fine
with mcs because of a bug that is already on bugzilla).
svn path=/trunk/mcs/; revision=7441
* XmlException.cs: added a new internal constructor for IXmlLineInfo
and output line and position info in Message.
* XmlReader.cs: implemented missing bits.
svn path=/trunk/mcs/; revision=7440
* PropertyItem.cs t
* MetaHeader.cs t
* MetafileHeader.cs t
* Metafile.cs t
* ImageFormat.cs t
* ImageCodecInfo.cs t
* ColorMatrix.cs t
* ColorMap.cs t
* WmfPlaceableFileHeader.cs t
* Added todos back
svn path=/trunk/mcs/; revision=7435
* image.c, image.h: added functions to get the strong name and the
public key of an assembly.
* pedump.c: use them.
svn path=/trunk/mono/; revision=7432
* Tokenizer.cs: fix parsing numbers that start with '.'
* DefaultContext.cs: use MS-compatible formatting of doubles
svn path=/trunk/mcs/; revision=7427
* Iterator.cs: added NullIterator to handle unspecified contexts
* XPathNavigator.cs: use NullIterator insted of SelfIterator when context is unspecified.
* XPathNodeIterator.cs: change default _count to -1 to prevent recalculations for NullIterators
svn path=/trunk/mcs/; revision=7424
* Expression.cs, Parser.jay: allow ExprSLASH to take a generic expression as its left argument.
* Iterator.cs: fix SlashIterator.Clone() when _iterRight is null.
* DefaultContext.cs: fix id() return type.
svn path=/trunk/mcs/; revision=7422
* cfold.cs (ConstantFold.DoConstantNumericPromotions): Check whether an
implicit conversion can be done between enum types.
* enum.cs (Enum.LookupEnumValue): If the value is an EnumConstant,
check whether an implicit conversion to the current enum's UnderlyingType
exists and report an error if not.
* codegen.cs (CodeGen.Init): Delete the symbol file when compiling
without debugging support.
* delegate.cs (Delegate.CloseDelegate): Removed, use CloseType instead.
Fixes bug #30235. Thanks to Ricardo Fern�ndez Pascual.
svn path=/trunk/mcs/; revision=7417
* typemanager.cs (TypeManager.IsNestedChildOf): New method.
* ecore.cs (IMemberExpr.DeclaringType): New property.
(SimpleName.SimpleNameResolve): Check whether we're accessing a
nonstatic member of an outer type (CS0038).
svn path=/trunk/mcs/; revision=7398
* unix.args: Add System.ArgIterator and System.TypedReference
* corlib.build: Adding DecimalConstantAttribute to Decimal (which
corcompare showed as missing) causes a SecurityException in
corcompare, so exclude Decimal from the corlib_cmp build.
2002-09-12 Dick Porter <[email protected]>
* UIntPtr.cs: Remove the [StructLayout(LayoutKind.Auto)]
attribute, as there doesn't appear to be any struct
layout-depending code here (and corcompare says it should be
LayoutKind.Sequential)
* Decimal.cs: Stub out missing methods, add
[DecimalConstantAttribute] to the constant fields (as shown by
corcompare).
* LocalDataStoreSlot.cs:
* Environment.cs:
* Char.cs:
* Array.cs: Stub out missing methods.
* TypedReference.cs:
* ArgIterator.cs: Stub out
* AppDomainSetup.cs:
* AppDomain.cs: Stub out missing methods, add missing
ClassInterface(ClassInterfaceType.None) attribute.
2002-09-12 Dick Porter <[email protected]>
* TypeBuilder.cs: Say _which_ Type has already been created
svn path=/trunk/mcs/; revision=7395
* RijndaelManaged.cs: Implemented ECB-mode Rijndael cipher.
* Rijndael.cs: Set valid key/block sizes.
* SymmetricAlgorithm.cs: Remove throw from ctr so we can instantiate
derived classes. Fixes to key sizes so they are measured in bits.
* KeySizes.cs: Updated comments to emphasize that sizes are in bits.
svn path=/trunk/mcs/; revision=7381
* driver.cs: Activate the using-error detector at warning level
4 (at least for MS-compatible APIs).
* namespace.cs (VerifyUsing): Small buglett fix.
svn path=/trunk/mcs/; revision=7377
* pending.cs (PendingImplementation): pass the container pointer.
* interface.cs (GetMethods): Allow for recursive definition. Long
term, I would like to move every type to support recursive
definitions, not the current ordering mechanism that we have right
now.
The situation is this: Attributes are handled before interfaces,
so we can apply attributes to interfaces. But some attributes
implement interfaces, we will now handle the simple cases
(recursive definitions will just get an error).
svn path=/trunk/mcs/; revision=7375
* gc.c: Call GC_unregister_disappearing_link() on all links when
finalizing them, this is necessary to aviod a crash in boehm's
finalize handler.
svn path=/trunk/mono/; revision=7367
* Mutex.cs:
* ManualResetEvent.cs:
* AutoResetEvent.cs: Use the WaitHandle.Handle property instead of
the private field
* WaitHandle.cs: Hide the os_handle field and the WaitOne_internal
method
svn path=/trunk/mcs/; revision=7361
* DoubleTest.cs: Add test for bad format string passed to ToString().
* Int64Test.cs: Re-enable broad range of test values.
* MulticastDeletegateTest.cs: Re-enable test for correct order of
delegate firing.
svn path=/trunk/mcs/; revision=7360
* class.h, class.c: move field layout code to it's own function and
export it. Get an interface id earlier. Move fields in MonoClass
so they are more cache friendly and align the bitfields.
* loader.c: temporary handle get_param_names() for a runtime method.
* reflection.c, reflection.h: more code to handle runtime creation of
types.
svn path=/trunk/mono/; revision=7348
* ecore.cs (PropertyExpr.Emit): Also check for
TypeManager.system_int_array_get_length so this'll also work when
compiling corlib. Fixes#30003.
svn path=/trunk/mcs/; revision=7339
* expression.cs (ArrayCreation.MakeByteBlob): Added support for enums
and throw an exception if we can't get the type's size. Fixed#30040,
added test-165.cs.
svn path=/trunk/mcs/; revision=7338
* makefile: Reverted Ravi's `Update'. When moving tests from
TESTS_NOPASS to TEST_SOURCES, please make sure that they actually
pass on both platforms and don't do it without a ChangeLog entry.
svn path=/trunk/mcs/; revision=7337
* acconfig.h:
* configure.in: Simplify thread checks, by using canned rules for
particular systems (based on the sleepycat db configure.in).
Tested on linux/x86, freebsd and w32. Solaris also added, but I
don't have a solaris machine to try it on.
svn path=/trunk/mono/; revision=7330
* marshal.c (mono_marshal_get_native_wrapper): We need to use a special
signature with the pinvoke field being set for the actual call.
svn path=/trunk/mono/; revision=7329
* statement.cs (For.Emit): for infinite loops (test == null)
return whether there is a break inside, not always "true".
svn path=/trunk/mcs/; revision=7315
* namespace.cs (UsingEntry): New struct to hold the name of the
using definition, the location where it is defined, and whether it
has been used in a successful type lookup.
* rootcontext.cs (NamespaceLookup): Use UsingEntries instead of
strings.
* decl.cs: ditto.
svn path=/trunk/mcs/; revision=7314
* attribute.cs : Fix incorrect code which relied on catching
a NullReferenceException to detect a null being passed in
where an object was expected.
svn path=/trunk/mcs/; revision=7312
* expression.cs (Cast): Simplified by using ResolveType instead of
manually resolving.
* statement.cs (Catch): Fix bug by using ResolveType.
svn path=/trunk/mcs/; revision=7298
* Console.cs: Specify an encoder, otherwise we will get the UTF8
encoder that by default emits the byte markers.
2002-09-06 Miguel de Icaza <[email protected]>
* StreamReader.cs: Implement detection of byte marks and skipping
of byte marks at the beginning of the stream.
(ReadToEnd): Use buffered read instead of char-by-char
processing.
Correct the default arguments for creating the StreamReader.
2002-09-06 Miguel de Icaza <[email protected]>
* Encoding.cs (UTF8, Unicode): Create with a preamble, that is
what the Microsoft version does.
(UnixConsoleEncoding): New internal method, used to get the
encoding, in the future, this should pull the locale, map to
charset and then code page.
svn path=/trunk/mcs/; revision=7295
* debug.c (debug_update_il_offsets): Fixed a memory corruption bug.
If you were getting random crashes when using the JIT with debugging
turned on, this fixes it.
svn path=/trunk/mono/; revision=7291
* expression.cs (BetterConversion): Special case for when we have
a NullLiteral as the argument and we have to choose between string
and object types - we choose string the way csc does.
* attribute.cs (Attribute.Resolve): Catch the
NullReferenceException and report error #182 since the Mono
runtime no more has the bug and having this exception raised means
we tried to select a constructor which takes an object and is
passed a null.
svn path=/trunk/mcs/; revision=7290
* test-163.cs : Add test to check we select string
over object when we have a Null literal as the argument.
* makefile : Update.
svn path=/trunk/mcs/; revision=7287
checked the automake version.
It seems a bit daft to make sure we've got the latest "unstable" automake
and then not use it, but we have seen builds fail when a slightly older
"unstable" version is installed on the system.
svn path=/trunk/mono/; revision=7282
* ecore.cs (ImplicitNumericConversion): Conversion from underlying
type to the enum type is not allowed. Remove code corresponding to
that.
(ConvertNumericExplicit): Allow explicit conversions from
the underlying type to enum type. This precisely follows the spec
and closes a bug filed by Gonzalo.
svn path=/trunk/mcs/; revision=7271
* attribute.cs (Attribute.Resolve): Ensure we allow TypeOf
expressions too. Previously we were checking only in one place for
positional arguments leaving out named arguments.
svn path=/trunk/mcs/; revision=7265
* expression.cs (Invocation.OverloadResolve): Flag a nicer error
message (1502, 1503) when we can't locate a method after overload
resolution. This is much more informative and closes the bug
Miguel reported.
svn path=/trunk/mcs/; revision=7263
* System.Runtime.Remoting.Channels.CORBA/CORBAChannel.cs:
impl. the channel wrapper.
* System.Runtime.Remoting.Channels.Simple/SimpleChannel.cs:
impl. the channel wrapper.
* System.Runtime.Remoting.Channels.Simple/SimpleServerChannel.cs
(GetUrlsForUri): use all available channel uris.
svn path=/trunk/mcs/; revision=7259
- Added additional "x" formatter test case to test most recent Enum.cs
patch
- Code cleanup so that all TestFormat test cases would be executed
- Change exception types in TestFormat_Args so that it passes on .NET.
(Some ArgumentNullExceptions should be been ArgumentExceptions.)
svn path=/trunk/mcs/; revision=7243
* configure.in: Include <sys/types.h> when checking <sys/un.h> stuff.
Taken from the FreeBSD port by Yukihiro Nakai <[email protected]>, to reduce
the patches needed by that port, once the next release is out.
svn path=/trunk/mono/; revision=7236
* Double.cs, Single.cs, Char.cs, Boolean.cs: Use internal for the actual value
instead of public.
* LocalDataStoreSlot.cs: Make constructor internal.
svn path=/trunk/mcs/; revision=7234
* Int16.cs, UInt16.cs, Int32.cs, UInt32.cs, Int64.cs, UInt64.cs,
SByte.cs, Byte.cs, Char.cs: Use internal for the actual value
instead of public.
svn path=/trunk/mcs/; revision=7233
* statement.cs (SwitchLabel.ResolveAndReduce): In the string case,
it was important that we stored the right value after the
reduction in `converted'.
svn path=/trunk/mcs/; revision=7230
* Brushes.cs : stubbed, added colors. Not sure how to implement,
but this should at least save someone some typing.
* CharacterRange.cs :Implmented
* Region.cs : stub needed for system.windows.forms
svn path=/trunk/mcs/; revision=7227
* threads.h:
* threads.c: Removed PosixKillThread(), because it's not in the
w32 api
2002-09-03 Dick Porter <[email protected]>
* threads.h:
* threads.c: Use MonoThread instead of MonoObject where
apropriate.
Store running thread objects in a hash table, so that we have all
the info to hand when waiting for them to finish
(means we don't need OpenThread() any more, so mingw builds should
be fully functional again.)
* verify.c:
* object.h: Added thread ID to MonoThread
svn path=/trunk/mono/; revision=7208
* System.Runtime.Remoting.Channels.CORBA/CORBAChannel.cs:
impl. the channel wrapper.
* System.Runtime.Remoting.Channels.Simple/SimpleChannel.cs:
impl. the channel wrapper.
* System.Runtime.Remoting.Channels.Simple/SimpleServerChannel.cs
(GetUrlsForUri): use all available channel uris.
svn path=/trunk/mcs/; revision=7206
* ConfigurationSettings.cs (ConfigurationSettings.GetConfig): Use the
correct configuration filename, fixed the TODO.
(GetSectionHanderType): Renamed to GetSectionHandlerType.
* NameValueSectionHandler.cs (NameValueSectionHandler.Create): Allow
whitespaces in the configuration file.
svn path=/trunk/mcs/; revision=7199
* debug.h (MonoDebugFormat): Killed MONO_DEBUG_FORMAT_DWARF2_PLUS.
* debug-dwarf2-plus.c: Removed.
* debug-private.h (DebugMethodInfo): Removed the `method_info' field.
(AssemblyDebugInfo): Removed the old `symfile' field and renamed
`mono_symfile' to `symfile'.
* debug.c (mono_debug_open): Replaced the assembly argument with a
file name argument; you can now call this before loading the assembly.
(debug_generate_method_lines): The MonoDebugILOffsetInfo struct is gone,
we now use MonoSymbolFileLineNumberEntry's and a separate address array
instead; splitted out all MonoSymbolFileLineNumberEntry code into
debug_generate_il_offsets() and debug_update_il_offsets().
(mono_debug_add_method): Don't create the MonoDebugMethodInfo here; it's
created when reading the symbol file or from debug_load_method_lines().
(debug_load_method_lines): Create the MonoDebugMethodInfo for all methods.
* exception.c (arch_handle_exception): Call mono_debug_make_symbols() before
looking up an address.
* debug.c: Don't create the .il files for MONO_DEBUG_FORMAT_MONO.
* mono.c (main): Initialize debugging before loading the first assembly.
svn path=/trunk/mono/; revision=7181
* debug-helpers.c (mono_disasm_code_one): Added `const guchar **endp'
argument to store the end address of the disassembled instruction.
* debug-mono-symfile.h (MonoDebugMethodInfo, MonoDebugVarInfo): Moved
here from debug-symfile.h.
(MonoDebugMethodJitInfo): Moved all fields which are filled out by the
JIT into this struct.
(MonoSymbolFile): Added `char *image_file' field.
(MonoDebugGetMethodFunc): Removed.
(mono_debug_update_mono_symbol_file): Removed the hash table argument.
(mono_debug_create_mono_symbol_file): Removed the `source_file' argument.
(mono_debug_find_method): New method.
* debug-mono-symfile.c (mono_debug_create_mono_symbol_file): Always
create a full symbol file.
(mono_debug_update_mono_symbol_file): Don't distinguish between dynamic
and static symbol files.
(mono_debug_find_method): The symbol file keeps an internal method hash,
call this to get a MonoDebugMethodInfo from a MonoMethod.
* debug-symfile.[ch]: Removed.
svn path=/trunk/mono/; revision=7180
* MonoSymbolTableReader.cs (MonoSymbolTableReader.ImageFile): New
public property.
* MonoSymbolTable.cs: Bumped version number to 18.
svn path=/trunk/mcs/; revision=7179
* doc/ccvs: Added how to convert SSH keys (from SSH Communications
Security) to the OpenSSH keys required by mono CVS
access.
svn path=/trunk/mono/; revision=7178
MessageBox class
* Application.cs: completed implementation of Run methods, implemented
message handler functionality
* Form.cs: implemented the Close event, allows the Application class to
receive notification for shutting down the application
* FormTest.cs: added additional functionality to test most methods
currently implemented in the Application and Form class
* NativeWindowTest.cs: fixed methods which received the MSG structure,
previously was using an integer type instead of the struct
* Win32.cs: added more Win32 imports and definitions
* makefile: added the MessageBox.cs class to the build
svn path=/trunk/mcs/; revision=7174
* configure.in, mono/interpreter/interp.c,
mono/io-layer/handles.c, mono/io-layer/processes.c,
mono/io-layer/threads.c, mono/io-layer/timed-thread.c,
mono/io-layer/wait.c, mono/jit/helpers.c, mono/jit/jit.c,
mono/metadata/appdomain.c, mono/metadata/class.c,
mono/metadata/domain.c, mono/metadata/gc.c,
mono/metadata/object.c, mono/metadata/reflection.c,
mono/metadata/threads.c, mono/os/gc_wrapper.h,
mono/utils/mono-hash.c: Add a new header, gc_wrapper.h, to
wrap inclusion of gc.h for boehm, since from FreeBSD and
OpenBSD ports, gc.h is <gc.h>, but on GNU it seems to be
in <gc/gc.h>. This will reduce the diffs FreeBSD ports has
to apply, and also makes it possible for me to build with
GC on OpenBSD/macppc built by hand.
svn path=/trunk/mono/; revision=7173
* mono/dis/dis-cil.c:
* configure.in: Check for <wchar.h> via autoconf, don't use it if
it isn't there, as it seems to work fine without it on OpenBSD.
svn path=/trunk/mono/; revision=7171
* expression.cs (ComposedCast): Use DeclSparce.ResolveType instead
of the expression resolve mechanism, because that will catch the
SimpleName error failures.
svn path=/trunk/mcs/; revision=7157
is new enough (fixes strangeness reported by Gonzalo.)
The other one now copes with enough system variation to work on Freebsd.
svn path=/trunk/mono/; revision=7140
* CheckArgument.cs: fixed check for empty string.
* Path.cs: various fixes. It passes all the tests in new PathTest.
svn path=/trunk/mcs/; revision=7137
* arch.cs, compiler.cs: Give the interpreter machine a property
for the retrieval of the group count.
* regex.cs: Use the new GroupCount property of the factory to
initialise the current group count, and restructure code to compile
the pattern only the first time it is needed (essentially backing
out the previous revision of regex.cs, to use the new code.)
svn path=/trunk/mcs/; revision=7132
* mono/os/win32/util.c:
* mono/os/unix/util.c:
* mono/os/util.h: mono_set_rootdir() doesnt take any args now.
(It doesn't do anything on unix builds, and the w32 version no
longer needs an arg.)
* configure.in: Add HOST_CC for w32 builds
2002-08-28 Dick Porter <[email protected]>
* Makefile.am: Export HOST_CC for w32 builds
2002-08-28 Dick Porter <[email protected]>
* interp.c: mono_set_rootdir() doesnt take any args now
* Makefile.am: Export HOST_CC and turn on optimisation for w32 builds
2002-08-28 Dick Porter <[email protected]>
* mono.c: mono_set_rootdir() doesnt take any args now
* Makefile.am: Export HOST_CC for w32 builds
svn path=/trunk/mono/; revision=7124
* expression.cs (Binary.ResolveOperator): Don't silently return
but return an error if an operator cannot be applied between two
enum types.
svn path=/trunk/mcs/; revision=7116
* class.cs (Constructor.Define): Set the permission attributes
correctly instead of making all constructors public.
svn path=/trunk/mcs/; revision=7114
* ecore.cs (Expression.DoResolve): Do a TypeManager.MemberLook
for private members before reporting a CS0103; if we find anything,
it's a CS0122.
svn path=/trunk/mcs/; revision=7112
* typemanager.cs (TypeManager.FilterWithClosure): It's not enough
to check whether `closure_start_type == closure_invocation_type',
we also need to check whether `m.DeclaringType == closure_invocation_type'
before bypassing the permission checks. We might be accessing
protected/private members from the base class.
(TypeManager.RealMemberLookup): Only set private_ok if private
members were requested via BindingFlags.NonPublic.
* ecore.cs (MethodGroupExpr.IsExplicitImpl): New property.
* expression.cs (MemberAccess.ResolveMemberAccess): Set
MethodGroupExpr.IsExplicitImpl if appropriate.
(Invocation.DoResolve): Don't report the CS0120 for explicit
interface implementations.
svn path=/trunk/mcs/; revision=7111
* expression.cs (Invocation.DoResolve): If this is a static
method and we don't have an InstanceExpression, we must report
a CS0120.
svn path=/trunk/mcs/; revision=7109
* debug.c: The mono symbol file is installed together with the assembly
it belongs to and it's used on a per-image basis.
svn path=/trunk/mono/; revision=7101
* makefile.gnu:
* class/library.make:
* class/makefile.gnu:
* class/I18N/makefile.gnu
* class/corlib/makefile.gnu:
* class/corlib/Test/ChangeLog:
* class/corlib/Test/corlib_linux_test.args:
* class/corlib/Test/makefile.gnu:
* class/corlib/Test/run_test.sh:
* jay/makefile.gnu:
* mcs/makefile.gnu:
* monoresgen/makefile.gnu:
* nunit/makefile.gnu:
Allow running 'make -f makefile.gnu test' from top directory.
In the libraries makefile.gnu you just have to add TEST_DIR=dirname
with the name where tests reside.
svn path=/trunk/mcs/; revision=7099
* makefile.gnu:
* src/NUnitConsole/makefile.gnu: some modifications to use the other
makefiles and build dll and exe on linux.
* src/makefile.gnu: New file.
* src/NUnitCore/list.unix: New file.
* src/NUnitCore/makefile.gnu: New file.
svn path=/trunk/mcs/; revision=7085
* debug.c (mono_debugger_internal_get_symbol_files): Removed, we need
to use global variables for this since they're stored in a core file.
(mono_debugger_symbol_file_table_generation): New global variable.
(mono_debugger_symbol_file_table): New global variable.
(mono_debugger_update_symbol_file_table): New global function to update
the symbol file table.
svn path=/trunk/mono/; revision=7083
* trampoline.c (mono_generic_trampoline_code): New global variable.
(arch_create_jit_trampoline): Use the new global variable to store the
generic trampoline code instead of using a static one. This allows the
debugger to access this variable to check whether a method is a trampoline.
* debug.h (mono_generic_trampoline_code): Added external declaration.
svn path=/trunk/mono/; revision=7082
2002-08-24 Martin Baulig <[email protected]>
* rawbuffer.c (mono_raw_buffer_load): Added `int is_shared'
argument. This is a flag which specifies whether we do a private
copy-on-write mapping even when a writable mapping was requested.
svn path=/trunk/mono/; revision=7079
* unix.args: added a couple of new files in System.Security.Principal.
* System.Security.Principal/WindowsIdentity.cs:
* System.Security.Principal/WindowsImpersonationContext.cs: stubbed.
svn path=/trunk/mcs/; revision=7072
* debug.c (MonoDebugHandle): Moved the method hash into the
AssemblyDebugInfo struct since we need to use a separate hash for each
MonoImage.
* debug.c: Added special undocumented command line argument to create a
symbol file for IL files on-the-fly. In this case, we also need to create
the IL files and parse them.
(mono_debugger_internal_get_symbol_files): Return something more reasonable.
svn path=/trunk/mono/; revision=7067
* debug-mono-symfile.c: Changed the file format in a way that allows us
open it read-only and to use a specially malloced area for all the
dynamic data. We can now also generate a symbol file on-the-fly if we're
debugging IL code and there is no MCS generated symbol file for it.
svn path=/trunk/mono/; revision=7066
* MonoSymbolTable.cs: Changed the file format in a way that allows us
open it read-only and to use a specially malloced area for all the
dynamic data.
svn path=/trunk/mcs/; revision=7065
* XmlAttribute.cs (InnerText): Implement getting this property.
* XmlNode.cs (InnerText): Ensure that we append only values of
text nodes.
svn path=/trunk/mcs/; revision=7061
* object.c: added a define for a good string and array
creation speedup (not enabled by default because we need to deal with
the synch stuff).
svn path=/trunk/mono/; revision=7052
* XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
that allowed compiling this.
[ FIXME: filed bug #29435. mcs should have failed on this ]
svn path=/trunk/mcs/; revision=7048
* AuthenticationMode.cs:
* ClientTargetSectionHandler.cs:
* FormsAuthPasswordFormat.cs:
* FormsProtectionEnum.cs:
* HttpCapabilitiesBase.cs: fixes base on class status page.
svn path=/trunk/mcs/; revision=7047
* debug.c (mono_debugger_internal_free_symbol_files): New function.
(mono_debugger_internal_symbol_files_changed): New global variable.
svn path=/trunk/mono/; revision=7039
* XmlNode.cs:
Change CreateNavigator to not be virtual.
* XmlElement.cs:
Add set_Prefix and InnerText accessors.
* XmlEntityReference.cs:
Add set_Value accessor.
* XmlTextWriter.cs:
Make objects which should be private private.
* XmlWriter.cs:
Remove WriteStartElementInternal abstract definition.
* XmlValidatingReader.cs:
New stubs added.
svn path=/trunk/mcs/; revision=7034
* SoapCodeExporter.cs:
Fix return value of ExportTypeMapping.
* XmlCustomFormatter.cs:
Change methods to be internal instead of public.
* XmlSerializationWriter.cs:
Modify GetPrimitiveTypeName to build on linux.
Modify GetQualifiedName to return an incrementing prefix
instead of the same one all the time (still need to manage
conflicts)
Modify WriteElementString to only do special stuff is XsiType
is not defined.
Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
an XmlQualifiedName.
svn path=/trunk/mcs/; revision=7023
* Path.cs (GetTempFileName): Make this routine atomic by not
testing and then creating, but using the create call to ensure
that we own the filename.
svn path=/trunk/mcs/; revision=7014
* StringBuilder.cs: improved performace by using String.InternalCopyTo
instead of using ToCharArray all over the place (more that 50% of
speed improvement when using Append).
svn path=/trunk/mcs/; revision=7000
* rawbuffer.c (mono_raw_buffer_load): Added `int is_shared'
argument. This is a flag which specifies whether we do a private
copy-on-write mapping even when a writable mapping was requested.
* debug-mono-symfile.c (mono_debug_update_mono_symbol_file): New
function to update the symbol file. The symbol file is mmap()ed
writable, but private. This allows us to install the symbol file
together with the assembly.
svn path=/trunk/mono/; revision=6998
* mono.c (main): The `--debug' argument now knows about a new
debugging format `mono' which will be used to display source lines
in backtraces.
* debug.h (MonoDebugFormat): Added a new MONO_DEBUG_FORMAT_MONO
which will be used when displaying backtraces. It reads a new
binary symbol file.
svn path=/trunk/mono/; revision=6994
* debug-mono-symfile.[ch]: New files. Similar to debug-symfile.[ch]
but they can read the new symbol file format which mcs is now creating.
* debug-symfile.c (mono_debug_find_source_location): Moved to
debug-mono-symfile.c; this is now operating on the new symbol file.
svn path=/trunk/mono/; revision=6993
* MonoSymbolTable.cs, MonoSymbolTableWriter.cs: New files. This
creates a binary application.dbg file which will be used by the
JIT to display source lines for exceptions.
* list.unix: Disabled the dwarf file writer in the build.
svn path=/trunk/mcs/; revision=6991
* ServerProtocol.cs:
* SoapServerProtocol.cs:
More cleanup, comparison with class status.
* WebServiceHandler.cs:
* HttpServerProtocol.cs:
New stubs added.
svn path=/trunk/mcs/; revision=6986
* MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Added
assembly name argument. Since the symbol writer needs to read the
final assembly, we need to give it its full pathname.
svn path=/trunk/mcs/; revision=6964
* statements.cs (FlowBranching.UsageVector.MergeChildren):
A `finally' block never returns or breaks; improved handling of
unreachable code.
svn path=/trunk/mcs/; revision=6957
* expression.cs (MemberAccess.ResolveMemberAccess): If this is an
EventExpr, don't do a DeclaredOnly MemberLookup, but check whether
`ee.EventInfo.DeclaringType == ec.ContainerType'. The
MemberLookup would return a wrong event if this is an explicit
interface implementation and the class has an event with the same
name.
svn path=/trunk/mcs/; revision=6950
2002-08-12 Martin Baulig <[email protected]>
* attribute.cs (Attribute.Resolve): Call System.Enum.ToObject() on
enum constants so that we encode the value with the enum type and
not its underlying type.
svn path=/trunk/mcs/; revision=6949
* object.c: fixes assertion failure caused by multiple ExecuteAssembly
calls for same domain (patch by Tomi Pakarinen <[email protected]>).
svn path=/trunk/mono/; revision=6947
* attribute.cs (Attribute.Resolve): Don't call System.Enum.ToObject()
on dynamic types since this is currently broken.
svn path=/trunk/mcs/; revision=6946
* statement.cs (Block.AddChildVariableNames): New public method.
(Block.AddChildVariableName): Likewise.
(Block.IsVariableNameUsedInChildBlock): Likewise.
(Block.AddVariable): Check whether a variable name has already
been used in a child block.
* cs-parser.jay (declare_local_variables): Mark all variable names
from the current block as being used in a child block in the
implicit block.
svn path=/trunk/mcs/; revision=6945
2002-08-12 Martin Baulig <[email protected]>
* attribute.cs (Attribute.Resolve): Call System.Enum.ToObject() on
enum constants so that we encode the value with the enum type and
not its underlying type.
svn path=/trunk/mcs/; revision=6940
* System.ComponentModel/BindableSupport.cs:
* System.ComponentModel/Component.cs:
* System.ComponentModel/EventDescriptorCollection.cs:
* System.ComponentModel/ITypeDescriptorContext.cs:
* System.ComponentModel/TypeConverter.cs:
* System.ComponentModel/TypeDescriptor.cs:
* System.Diagnostics/Process.cs: more class status based fixes.
* System.ComponentModel/StringConverter.cs: implemented a couple of
methods.
svn path=/trunk/mcs/; revision=6929
* InternalBufferOverflowException.cs:
* NotifyFilters.cs:
* WatcherChangeTypes.cs: little fixes based on class status page.
svn path=/trunk/mcs/; revision=6928
* ArgumentException.cs: use the field instead of the property for
param_name.
* ArgumentOutOfRangeException.cs: modified Message.
* DateTime.cs:
(_DoParse): throw out of range exception for year. Removed check
for month (it's done in the constructor).
svn path=/trunk/mcs/; revision=6924
* icall.c: re-applied patch to GetValueInternal. Also added R4 and R8
types to it and to SetValueInternal.
* object.c: Moved handle_enum label to its proper place. This was the
f... bug! ;-)
This time i compiled mcs and gtk-sharp and they both work.
svn path=/trunk/mono/; revision=6919
* icall.c:
(ves_icall_MonoField_GetValue): changed to use mono_field_get_value.
(ves_icall_System_Environment_get_MachineName): removed warning when
compiling under cygwin.
svn path=/trunk/mono/; revision=6902
* OutAttribute.cs: TypeID isn't overriden from Attribute here.
* PInvokeMap.cs: Non-existent enum. Must be from beta days.
svn path=/trunk/mcs/; revision=6893
* socket-io.c (ves_icall_System_Net_Sockets_Socket_RecvFrom_internal):
Don't free a buffer while it's still needed. Patch from Jonathan
Liger <[email protected]>
svn path=/trunk/mono/; revision=6884
* System.Data.SqlClient/SqlParameter.cs: flush
* System.Data.SqlClient/SqlParameterCollection.cs: fixes
for the Item property, IndexOf, and Contains.
* Test/SqlSharpCli.cs: added input parameters support.
when a query is executed, if a parameter name matches
a SQL# internal variable name, it uses that value for the parameter; otherwise,
the user is prompted for the parameter value. Currently, it only supports
string parameters.
svn path=/trunk/mcs/; revision=6883
* System.Data.OleDb/libgda.cs: adapted to changes in libgda (get_vtype
and get_type for GdaValue).
* System.Data.OleDb/OleDbDataReader.cs: adapted to changes in
libgda.cs.
svn path=/trunk/mcs/; revision=6870
* Environment.cs: Implemented OSVersion property.
2002-08-21 Miguel de Icaza <[email protected]>
* Path.cs (GetDirectoryName): Fix for filenames with size = 1
* File.cs: Removed all references that threw exceptions when the
paths contains a colon, as this is a valid part of an identifier
on Unix.
Everywhere: The String.Empty return from GetDirectoryName means
that there is no directory information about the path.
svn path=/trunk/mcs/; revision=6868
* marshal.c (mono_marshal_get_remoting_invoke): save lmf, because
we call unmanaged code which throws exceptions.
* exception.c (arch_handle_exception): don't set stack_trace to
null (so that it contains the full trace even when we rethrow the
exception).
svn path=/trunk/mono/; revision=6854
* System.Data.OleDb/OleDbConnection.cs (DataReader): new internal
property.
(Close): set the dataReader to null.
* System.Data.OleDb/OleDbDataReader.cs (OleDbDataReader): set the
connection's DataReader property to this object.
(Close): set it to null here.
(Depth, IsDbNull): implemented.
(this): implemented the Item property with a string indexer.
* System.Data.OleDb/OleDbCommand.cs (ExecuteNonQuery, ExecuteReader,
ExecuteScalar): do nothing if there's already an open data reader.
* System.Data.OleDb/libgda.cs: more API functions.
* System.Data.OleDb/TestOleDb.cs (TestDataReader): close the data
reader before continuing.
svn path=/trunk/mcs/; revision=6847
* skeleton.cs: Fix the code that expanded the arrays dynamically,
it was broken, and instead was copying 0 elements.
svn path=/trunk/mcs/; revision=6838
for DataTable and implemented much of the default ctor behavoir. Also added
nowarn:0679 to the System.Data.build file.
svn path=/trunk/mcs/; revision=6834
* class.cs (MethodData.EmitDestructor): In the Expression.MemberLookup
call, use ec.ContainerType.BaseType as queried_type and invocation_type.
* ecore.cs (Expression.MemberLookup): Added documentation and explained
why the MethodData.EmitDestructor() change was necessary.
svn path=/trunk/mcs/; revision=6832
correct one.
2002-08-20 Martin Baulig <[email protected]>
* class.cs (TypeContainer.FindMembers): Added static check for events.
* decl.cs (MemberCache.AddMembers): Handle events like normal members.
* typemanager.cs (TypeHandle.GetMembers): When queried for events only,
use Type.GetEvents(), not Type.FindMembers().
svn path=/trunk/mcs/; revision=6831
* class.cs (TypeContainer.FindMembers): Always return public events,
even if only queried for non-public ones.
* decl.cs (MemberCache.GetEntryType): Set the flags correctly for
nested types and events.
svn path=/trunk/mcs/; revision=6830
* decl.cs (MemberCache): Added a special method cache which will
be used for method-only searched. This ensures that a method
search will return a MethodInfo with the correct ReflectedType for
inherited methods.
svn path=/trunk/mcs/; revision=6819
code still needs some work.
There are bugs. Send crash reports, as well as .cs code and exe's to
[email protected]
Also, if anyone gets Bus Errors in the code, let me know as well, I've been
hunting down alignment bugs as well.
svn path=/trunk/mono/; revision=6812
* report.cs (Report.Warning): Added overloaded versions which take
a warning level argument and do the warning level check.
* decl.cs (MemberCore.CheckMethodAgainstBase): When reporting a
warning CS0108 or CS0144, add Modifiers.NEW to the ModFlags.
svn path=/trunk/mcs/; revision=6811
* Socket.cs: Fix deadlock when the AsyncResult callback calls
End*(). Set the async request's worker property so it can return
results. These two fixes combined fix bug 28092.
svn path=/trunk/mcs/; revision=6808
* handles.c (_wapi_handle_scratch_store): Made stored byte lengths
multiples of 4 bytes, to keep header structures aligned. Needed
for sparc, at least. (Patch from [email protected])
* handles.c: Removed 'disable_shm' variable (we've defaulted to
building with shm enabled for months now)
svn path=/trunk/mono/; revision=6802
* delegate.cs (DelegateInvocation.DoResolve): Ensure that
we flag error 70 in the event an event is trying to be accessed
directly from outside the declaring type.
svn path=/trunk/mcs/; revision=6784
* WebService.cs:
Change the attribute on Application to Description
instead of WebServicesDescription.2002-08-19 Tim Coleman
svn path=/trunk/mcs/; revision=6779
* object.c:
(mono_print_unhandled_exception): changed g_warning by g_printerr
because g_log has a 1024 characters limit (yeah, i got a big stack
trace). Don't print exception name, that should be in ToString
returned string.
svn path=/trunk/mono/; revision=6777
* BindingCollection.cs:
Use base constructor, remove SetParent call
* FaultBindingCollection.cs:
* ImportCollection.cs:
* MessageCollection.cs:
* MessagePartCollection.cs:
* OperationBindingCollection.cs:
* OperationCollection.cs:
* OperationFaultCollection.cs:
* PortCollection.cs:
* PortTypeCollection.cs:
* ServiceCollection.cs:
* ServiceDescriptionFormatExtensionCollection.cs:
Use base constructor
* ServiceDescriptionCollection.cs:
Use base constructor, Remove SetParent method
* ServiceDescriptionBaseCollection.cs:
Make parent object private as according to
class status page.
* OperationMessageCollection.cs:
Use base constructor
Remove excess break's to avoid compiler warning
Remove TODO attribute (confirmed default retval)
svn path=/trunk/mcs/; revision=6776
* ecore.cs (StandardConversionExists): Return a false
if we are trying to convert the void type to anything else
since that is not allowed.
svn path=/trunk/mcs/; revision=6772
* class.cs (TypeContainer): Implement IMemberContainer.
(TypeContainer.DefineMembers): Create the MemberCache.
(TypeContainer.FindMembers): Do better BindingFlags checking; only
return public members if BindingFlags.Public was given, check
whether members are static.
svn path=/trunk/mcs/; revision=6766
* decl.cs (DeclSpace.Define): Splitted this in Define and
DefineMembers. DefineMembers is called first and initializes the
MemberCache.
* rootcontext.cs (RootContext.DefineMembers): New function. Calls
DefineMembers() on all our DeclSpaces.
* class.cs (TypeContainer.Define): Moved all code to DefineMembers(),
but call DefineMembers() on all nested interfaces. We call their
Define() in our new Define() function.
* interface.cs (Interface): Implement IMemberContainer.
(Interface.Define): Moved all code except the attribute stuf to
DefineMembers().
(Interface.DefineMembers): Initialize the member cache.
* typemanager.cs (IMemberFinder): Removed this interface, we don't
need this anymore since we can use MemberCache.FindMembers directly.
svn path=/trunk/mcs/; revision=6764
* typemanager.cs (MemberCache): When creating the cache for an
interface type, add all inherited members.
(TypeManager.MemberLookup_FindMembers): Changed `ref bool searching'
to `out bool used_cache' and documented it.
(TypeManager.MemberLookup): If we already used the cache in the first
iteration, we don't need to do the interfaces check.
svn path=/trunk/mcs/; revision=6763
* decl.cs (DeclSpace.FindMembers): New abstract method. Moved this
here from IMemberFinder and don't implement this interface anymore.
(DeclSpace.MemberCache): Moved here from IMemberFinder.
* typemanager.cs (IMemberFinder): This interface is now only used by
classes which actually support the member cache.
(TypeManager.builder_to_member_finder): Renamed to builder_to_declspace
since we only put DeclSpaces into this Hashtable.
(MemberLookup_FindMembers): Use `builder_to_declspace' if the type is
a dynamic type and TypeHandle.GetTypeHandle() otherwise.
svn path=/trunk/mcs/; revision=6754
* typemanager.cs (ICachingMemberFinder): Removed.
(IMemberFinder.MemberCache): New property.
(TypeManager.FindMembers): Merged this with RealFindMembers().
This function will never be called from TypeManager.MemberLookup()
so we can't use the cache here, just the IMemberFinder.
(TypeManager.MemberLookup_FindMembers): Check whether the
IMemberFinder has a MemberCache and call the cache's FindMembers
function.
(MemberCache): Rewrote larger parts of this yet another time and
cleaned it up a bit.
svn path=/trunk/mcs/; revision=6753
* MonoType.cs: Add a space before the Assembly name in
AssemblyQualifiedName (needed for resource files so the MS runtime
can load types)
2002-08-19 Dick Porter <[email protected]>
* BinaryWriter.cs: The length of a string is counted in bytes, not
chars
2002-08-19 Dick Porter <[email protected]>
* ResourceWriter.cs: Implemented all methods
* ResourceReader.cs: Cope with our ResourceSet class name, as well
as theirs
svn path=/trunk/mcs/; revision=6748
* x86.brg (mono_llmult_ovf): Simplified the code greatly by refactoring
the algebraic form we are using. This also eliminated a silly overflow
of the intermediate result that was causing troubles.
svn path=/trunk/mono/; revision=6740
* DataGrid.cs - Working on the undocumented protected
method CreateColumnSet. AutoCreateColumns method
stubbed. Left CreateControlHierarchy for the time
being, looks like I'm going insane. ;-)
svn path=/trunk/mcs/; revision=6738
* object.c:
(mono_print_unhandled_exception): after previous commit, i realized
that MS calls ToString on the exception. I changed this function to
do that. This way we get stack_trace for free.
svn path=/trunk/mono/; revision=6733
* object.c:
(mono_print_unhandled_exception): invoke Message property instead of
getting 'message' field from Exception. Don't allocate memory for
'trace' and 'message' if not needed.
svn path=/trunk/mono/; revision=6732
* AppDomain.cs: parameter name when throwing ArgumentNullException.
* ArgumentException.cs: modified Message to do what MS does.
* ArgumentNullException.cs: don't use {0} in message.
* Exception.cs: use Message property in ToString ().
svn path=/trunk/mcs/; revision=6731
* System.Data.OleDb/OleDbDataReader.cs (Close): clear the results
ArrayList after releasing the items.
(GetName, GetDateTime, GetDouble, GetSingle, GetInt16, GetInt32,
GetOrdinal, GetString): implemented.
(GetDataTypeName): made it get the type from the data model, not from
the current value, which could not have been retrieved yet.
(GetValue): call the Get* method corresponding with the data type of
the requested column.
* System.Data.OleDb/libgda.cs: added more libgda functions.
(GdaTimestamp, GdaDate, GdaTime): new marshalled structures.
* System.Data.OleDb/TestOleDb.cs (TestDateReader): display column
titles via OleDbDataReader.GetName ().
(TestOleDb): create temporary table with a date field.
(InsertRow): set current date for the date field.
svn path=/trunk/mcs/; revision=6722
* System.Data.OleDb/OleDbDataReader.cs (this[]): made it just call
GetValue, which will take care of all the work needed.
(Close): implemented basic stuff.
(~OleDbDataReader): implemented.
* System.Data.OleDb/libgda.cs: added more needed functions.
svn path=/trunk/mcs/; revision=6721
* ResourceReader.cs: Finished basic implementation. Some
optimisation in conjunction with ResourceSet still possible though
svn path=/trunk/mcs/; revision=6720
* SoapFormatter.cs:
That should be IRemotingFormatter, not IRemoteFormatter.
Some stubs to make it compile on linux.
* TODOAttribute.cs:
Added this class to this assembly.
svn path=/trunk/mcs/; revision=6701
* WebServicesDescriptionAttribute:
Added Description property. Should've known I spoke
too soon about being complete. :-)
svn path=/trunk/mcs/; revision=6697
* class/library.make: merge back original makefile.gnu behavior
* */makefile.gnu: merge back original makefile.gnu behavior
svn path=/trunk/mcs/; revision=6693
* makefile.gnu: Added SOURCES_INCLUDE and SOURCES_EXCLUDE variables
to get tests to build with the new build system.
svn path=/trunk/mcs/; revision=6692
* System.Data.OleDb/TestOleDb.cs: made it work with a temporary table
we create.
(TestTransaction): added test for transactions.
svn path=/trunk/mcs/; revision=6688
* FormatterServices.cs: implemented GetUninitializedObject.
PopulateObjectMembers needs a working FieldInfo.SetValue (it's
not implemented right now).
svn path=/trunk/mcs/; revision=6684
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.
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.
MCS was able to parse itself on April 2001, MCS compiled itself
for the first time on December 28 2001. MCS became self hosting
on January 3rd, 2002.
The Mono Runtime and the Mono execution engine were able to make
our compiler self hosting on March 12, 2002.
they are very very few at this point (security attributes),
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 <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
Loaded 100 of 4502 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.