* 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
2002-08-14 Cesar Octavio Lopez Nataren <[email protected]>
* regex.cs: Added the ctr for ISerializable implementation and
implemented the GetObjectData function.
2002-08-14 Cesar Octavio Lopez Nataren <[email protected]>
* SoapFault.cs: Added the ctr for ISerializable implementation and
implemented GetObjectData.
2002-08-14 Cesar Octavio Lopez Nataren <[email protected]>
* WeakReference.cs: Changed the constructor and GetObjectData
method needed for ISerializable implementation in order to be
compatible with SOAP generated by MS.
svn path=/trunk/mcs/; revision=6676
* System.Data.OleDb/libgda.cs: added new needed libgda functions.
* System.Data.OleDb/OleDbDataReader.cs (GetBoolean): throw exceptions
when there are errors.
(GetByte, GetChar, GetDataTypeName, GetValue, Read): implemented.
* System.Data.OleDb/TestOleDb.cs: added more testing code for data
readers.
svn path=/trunk/mcs/; revision=6662
* System.Data.OleDb/OleDbParameterCollection.cs (GdaParameterList):
create an empty GdaParameterList.
* System.Data.OleDb/OleDbCommand.cs (ExecuteReader): check values
for NULL before passing them to Marshal.PtrToStructure, which issues
an exception if the value is NULL.
svn path=/trunk/mcs/; revision=6661
* System.Data.OleDb/OleDbCommand.cs (ExecuteReader): check values
for NULL before passing them to Marshal.PtrToStructure, which issues
an exception if the value is NULL.
svn path=/trunk/mcs/; revision=6660
* typemanager.cs (IMemberContainer.Type): New property.
(IMemberContainer.IsInterface): New property.
The following changes are conditional to BROKEN_RUNTIME, which is
defined at the top of the file.
* typemanager.cs (MemberCache.MemberCache): Don't add the base
class'es members, but add all members from TypeHandle.ObjectType
if we're an interface.
(MemberCache.AddMembers): Set the Declared flag if member.DeclaringType
is the current type.
(MemberCache.CacheEntry.Container): Removed this field.
(TypeHandle.GetMembers): Include inherited members.
svn path=/trunk/mcs/; revision=6648
* SqlSharpCli.cs: modified
- implemented the following commands:
\f FILENAME to read a batch of Sql# commands/queries from file.");
\o FILENAME to write out the result of Sql# commands executed to file.");
\load FILENAME to load from file SQL commands into SQL buffer.");
\save FILENAME to save SQL commands from SQL buffer to file.
\print - show what's in the SQL buffer now.
- can save output of result to an html file or text
- entering command "\provider mysql" will dynamically load mysql provider
from its assembly Mono.Data.MySql.dll
svn path=/trunk/mcs/; revision=6646
* class.cs (ConstructorInitializer.Resolve): In the
Expression.MemberLookup call, use the queried_type as
invocation_type.
* typemanager.cs (IMemberContainer.GetMembers): Removed the `bool
declared' attribute, it's always true.
(IMemberContainer.Parent, IMemberContainer.Name): New properties.
(TypeManager.MemberLookup_FindMembers): [FIXME FIXME FIXME] Added
temporary wrapper for FindMembers which tells MemberLookup whether
members from the base classes are included in the return value.
This will go away soon.
(TypeManager.MemberLookup): Use this temporary hack here; once the
new MemberCache is completed, we don't need to do the DeclaredOnly
looping here anymore since the MemberCache will take care of this.
(TypeManager.IsSubclassOrNestedChildOf): Allow `type == parent'.
(MemberCache): When creating the MemberCache for a class, get
members from the current class and all its base classes.
(MemberCache.CacheEntry.Container): New field. This is a
temporary hack until the Mono runtime is fixed to distinguish
between ReflectedType and DeclaringType. It allows us to use MCS
with both the MS runtime and the unfixed Mono runtime without
problems and without accecting performance.
(MemberCache.SearchMembers): The DeclaredOnly looping from
TypeManager.MemberLookup is now done here.
svn path=/trunk/mcs/; revision=6643
* statement.cs (MyStructInfo.MyStructInfo): Don't call
Type.GetFields on dynamic types but get the fields from the
corresponding TypeContainer.
(MyStructInfo.GetStructInfo): Added check for enum types.
* typemanager.cs (MemberList.IsSynchronized): Implemented.
(MemberList.SyncRoot): Implemented.
(TypeManager.FilterWithClosure): No need to check permissions if
closure_start_type == closure_invocation_type, don't crash if
closure_invocation_type is null.
svn path=/trunk/mcs/; revision=6640
* marshal.c (mono_marshal_get_runtime_invoke): unbox value types
* class.c (class_compute_field_layout): set blittable to false for Strings
* appdomain.c (mono_domain_transfer_object): added support for ISerializable
svn path=/trunk/mono/; revision=6637
* appdomain.h, reflection.c, icall.c, object.c, reflection.h:
first chunk of code to create types at runtime. Code to
handle ReflectedType/DeclaringType. Make reflection handles
domain specific.
svn path=/trunk/mono/; revision=6633
* Test/SqlSharpCli.cs: modified
- removed dependency on Mono.Data.MySql assembly and classes
(if you still want to use Mono.Data.MySql, use \loadextprovider to load it).
- added use of provider System.Data.OleDb classes; however, you must
have a working libgda.
- added dynamic loading of .NET Data Provider's assembly and Connection class
which can be loaded via \loadextprovider
- renamed providers: postgresclient to postgresql, oracleclient to oracle
- add new command \exenonquery to execute non queries
- add new command \exescalar to execute and return one row/one column of data
- added beginnings of internal variables by adding new commands: \set, \unset, and
\variable
- add new command \r to reset (clear) the query buffer
- if quiting, need to close database connection if still open
svn path=/trunk/mcs/; revision=6622
* Mono.Data.MySql/MySqlCommand.cs: modified
rowsRetrieved should be rowsAffected in ExecuteNonQuery
because the number is only to show the rows affected
by an INSERT, UPDATE, or DELETE; anything else, the
number is -1
* Mono.Data.MySql/Test.cs: modified
enable retrieving the results from a query. even though
this still does not work for some reason, i thought
i would enable it so others could see the problem.
svn path=/trunk/mcs/; revision=6621
Rewrote TypeContainer.FindMembers to use a member cache. This
gives us a speed increase of about 35% for the self-hosting MCS
build and of about 15-20% for the class libs (both on GNU/Linux).
* report.cs (Timer): New class to get enhanced profiling. This
whole class is "TIMER" conditional since it remarkably slows down
compilation speed.
* class.cs (MemberList): New class. This is an IList wrapper
which we're now using instead of passing MemberInfo[]'s around to
avoid copying this array unnecessarily.
(IMemberFinder.FindMember): Return a MemberList, not a MemberInfo [].
(ICachingMemberFinder, IMemberContainer): New interface.
(TypeManager.FilterWithClosure): If `criteria' is null, the name
has already been checked, otherwise use it for the name comparision.
(TypeManager.FindMembers): Renamed to RealMemberFinder and
provided wrapper which tries to use ICachingMemberFinder.FindMembers
if possible. Returns a MemberList, not a MemberInfo [].
(TypeHandle): New class, implements IMemberContainer. We create
one instance of this class per type, it contains a MemberCache
which is used to do the member lookups.
(MemberCache): New class. Each instance of this class contains
all members of a type and a name-based hash table.
(MemberCache.FindMembers): This is our new member lookup
function. First, it looks up all members of the requested name in
the hash table. Then, it walks this list and sorts out all
applicable members and returns them.
svn path=/trunk/mcs/; revision=6615
* System.Data/Constraint.cs: Implemented
* System.Data/UniqueConstraint.cs: GetHashCode() &
special case Ctor. Still need to be implemented. LAMESPEC tags
added.
* System.Data/ConstraintCollection.cs: Clear() &
AddRange() need to be finished. Several LAMESPEC tags.
* Allow Constraint collection to be created in DataTable.
* System.Data/ForeignKeyConstraint: Added a couple of
helper functions.
* System.Data/DataColumnCollection New/Added DataColumns now have
Table property set.
svn path=/trunk/mcs/; revision=6611
* ServiceDescriptionBaseCollection.cs:
Only add an element to the hashtable if its GetKey ()
method does not return null.
svn path=/trunk/mcs/; revision=6603
In addition to a nice code cleanup, this gives us a performance
increase of about 1.4% on GNU/Linux - not much, but it's already
half a second for the self-hosting MCS compilation.
* typemanager.cs (IMemberFinder): New interface. It is used by
TypeManager.FindMembers to call FindMembers on a TypeContainer,
Enum, Delegate or Interface.
(TypeManager.finder_to_member_finder): New PtrHashtable.
(TypeManager.finder_to_container): Removed.
(TypeManager.finder_to_delegate): Removed.
(TypeManager.finder_to_interface): Removed.
(TypeManager.finder_to_enum): Removed.
* interface.cs (Interface): Implement IMemberFinder.
* delegate.cs (Delegate): Implement IMemberFinder.
* enum.cs (Enum): Implement IMemberFinder.
* class.cs (TypeContainer): Implement IMemberFinder.
svn path=/trunk/mcs/; revision=6602
* ecore.cs (ITypeExpression): New interface for expressions which
resolve to a type.
(TypeExpression): Renamed to TypeLookupExpression.
(Expression.DoResolve): If we're doing a types-only lookup, the
expression must implement the ITypeExpression interface and we
call DoResolveType() on it.
(SimpleName): Implement the new ITypeExpression interface.
(SimpleName.SimpleNameResolve): Removed the ec.OnlyLookupTypes
hack, the situation that we're only looking up types can't happen
anymore when this method is called. Moved the type lookup code to
DoResolveType() and call it.
(SimpleName.DoResolveType): This ITypeExpression interface method
is now doing the types-only lookup.
(TypeExpr, TypeLookupExpression): Implement ITypeExpression.
(ResolveFlags): Added MaskExprClass.
* expression.cs (MemberAccess): Implement the ITypeExpression
interface.
(MemberAccess.DoResolve): Added support for a types-only lookup
when we're called via ITypeExpression.DoResolveType().
(ComposedCast): Implement the ITypeExpression interface.
* codegen.cs (EmitContext.OnlyLookupTypes): Removed. Call
Expression.Resolve() with ResolveFlags.Type instead.
svn path=/trunk/mcs/; revision=6598
* System.Data.OleDb/libgda.cs: added some GdaValue functions.
* System.Data.OleDb/OleDbCommand.cs (OpenReader): removed this
internal method, since we don't need it.
(ExecuteReader): call SetupGdaCommand before executing the command
via libgda functions.
(ExecuteScalar): implemented.
* System.Data.OleDb/OleDbDateReader.cs (OleDbDataReader): removed call
to OleDbCommand.OpenReader.
(GetBoolean): implemented.
svn path=/trunk/mcs/; revision=6597
* Exception.cs (ToString): changed the ouput format.
* ThreadAbortException.cs: impl. ExceptionState property.
* Thread.cs: moved all instance variables to the start of the
class. added support for Thread::Abort()
svn path=/trunk/mcs/; revision=6595
* DataGrid.cs - Added protected method (skeleton)
CreateColumnSet(PagedDataSource, bool)
Still trying to know how will it be used
and what for...
svn path=/trunk/mcs/; revision=6590
* mono.pc.in: Add $includedir to Cflags
* Don't link libtool convenience libs together before linking them
to other stuff (it breaks static builds)
svn path=/trunk/mono/; revision=6588
Added control flow analysis support for structs.
* ecore.cs (ResolveFlags): Added `DisableFlowAnalysis' to resolve
with control flow analysis turned off.
(IVariable): New interface.
(SimpleName.SimpleNameResolve): If MemberAccess.ResolveMemberAccess
returns an IMemberExpr, call DoResolve/DoResolveLValue on it.
(FieldExpr.DoResolve): Resolve the instance expression with flow
analysis turned off and do the definite assignment check after the
resolving when we know what the expression will resolve to.
* expression.cs (LocalVariableReference, ParameterReference):
Implement the new IVariable interface, only call the flow analysis
code if ec.DoFlowAnalysis is true.
(This): Added constructor which takes a Block argument. Implement
the new IVariable interface.
(MemberAccess.DoResolve, MemberAccess.DoResolveLValue): Call
DoResolve/DoResolveLValue on the result of ResolveMemberLookup().
This does the definite assignment checks for struct members.
* class.cs (Constructor.Emit): If this is a non-static `struct'
constructor which doesn't have any initializer, call
Block.AddThisVariable() to tell the flow analysis code that all
struct elements must be initialized before control returns from
the constructor.
* statement.cs (MyStructInfo): New public class.
(UsageVector.this [VariableInfo vi]): Added `int field_idx'
argument to this indexer. If non-zero, check an individual struct
member, not the whole struct.
(FlowBranching.CheckOutParameters): Check struct members.
(FlowBranching.IsVariableAssigned, SetVariableAssigned): Added
overloaded versions of these methods which take an additional
`int field_idx' argument to check struct members.
(FlowBranching.IsParameterAssigned, SetParameterAssigned): Added
overloaded versions of these methods which take an additional
`string field_name' argument to check struct member.s
(VariableInfo): Implement the IVariable interface.
(VariableInfo.StructInfo): New public property. Returns the
MyStructInfo instance of the variable if it's a struct or null.
(Block.AddThisVariable): New public method. This is called from
Constructor.Emit() for non-static `struct' constructor which do
not have any initializer. It creates a special variable for the
"this" instance variable which will be checked by the flow
analysis code to ensure that all of the struct's fields are
initialized before control returns from the constructor.
(UsageVector): Added support for struct members. If a
variable/parameter is a struct with N members, we reserve a slot
in the usage vector for each member. A struct is considered fully
initialized if either the struct itself (slot 0) or all its
members are initialized.
svn path=/trunk/mcs/; revision=6582
hardcoding it to /usr/local/bin. Default test suite to AllTests but
allow it to be overridden from the command line.
* XmlTextWriterTests.cs: Split TestWriteString into multiple tests.
Added encoding parameters to all the StreamReaders in
TestBaseConstructorsAndBaseStream. I think this is a bug in Mono's
StreamReader since these aren't required when testing against
Microsoft's.
svn path=/trunk/mcs/; revision=6572
* DecimalTest.cs: Add try-catch block to find which one is throwing
the Overflow. Also started making each Assert using a unique message
to differentiate those as well.
* MulticastDelegate.cs: Disable tests checking the order that delegates
are executed. There's a bugzilla entry for this already because we do
it in reverse order. See:
http://bugzilla.ximian.com/show_bug.cgi?id=28306
svn path=/trunk/mcs/; revision=6562
* exception.c (arch_handle_exception): simply return and let the
libpthread/kernel restore the context. This should work on recent
versions of linuxthreads.
svn path=/trunk/mono/; revision=6561
* System.Data.IDbComand.cs: IDbCommand now inherits IDisposable
* System.Data.IDbConnection.cs: IDbConnection now inherits IDisposable
* System.Data.SqlTypes.SqlCompareOptions.cs: Enum now set to correct
values.
svn path=/trunk/mcs/; revision=6555
* driver.cs (Driver.MainDriver): Only report an error CS5001
if there were no compilation errors.
* codegen.cs (EmitContext.EmitContext): Use the DeclSpace's
`UnsafeContext' property to determine whether the parent is in
unsafe context rather than checking the parent's ModFlags:
classes nested in an unsafe class are unsafe as well.
svn path=/trunk/mcs/; revision=6553
* statement.cs (UsageVector.MergeChildren): Distinguish between
`Breaks' and `Returns' everywhere, don't set `Breaks' anymore if
we return. Added test17() and test18() to test-154.cs.
svn path=/trunk/mcs/; revision=6550
* typemanager.cs (TypeManager.FilterWithClosure): If we have
Family access, make sure the invoking type isn't a subclass of the
queried type (that'd be a CS1540).
* ecore.cs (Expression.MemberLookup): Added overloaded version of
this method which takes an additional `Type invocation_type'.
* expression.cs (BaseAccess.DoResolve): Use the base type as
invocation and query type.
(MemberAccess.DoResolve): If the lookup failed and we're about to
report a CS0122, try a lookup with the ec.ContainerType - if this
succeeds, we must report a CS1540.
svn path=/trunk/mcs/; revision=6544
* ecore.cs (IMemberExpr): Added `bool IsInstance' property.
(MethodGroupExpr): Implement the IMemberExpr interface.
* expression (MemberAccess.ResolveMemberAccess): No need to have
any special code for MethodGroupExprs anymore, they're now
IMemberExprs.
svn path=/trunk/mcs/; revision=6540
* jit.c (mono_runtime_install_handlers): switch back to use
sigaction from libpthreads. As long as this does not make problems
we should use this instead of syscall.
svn path=/trunk/mono/; revision=6533
Check in for Remco de Jong <[email protected]>
* HorizontalAlignment.cs
* ProgressBar.cs
* ScrollBars.cs
* TextBox.cs
* TextBoxBase.cs
* added new files with some functinality
svn path=/trunk/mcs/; revision=6525
Checked in for John Sohn <[email protected]
* build.sh
* changelog
* monostart.c
* monostub.c
* monostub.exe.dbg.c
* monostub.exe.spec.c
* Test.cs
* test.sh
* Experiment to get first form working using WINELIB
svn path=/trunk/mcs/; revision=6524
* runtest.pl: This is a perl script which runs a testcase, parses the
MCS output and checks whether all errors are reported.
* error-1.cs, error-2.cs: Moved here from ../tests/.
* README.tests: Added (empty) list of all test cases.
svn path=/trunk/mcs/; revision=6523
* class.cs (FieldBase.Initializer): Renamed to `init' and made private.
(FieldBase.HasFieldInitializer): New public property.
(FieldBase.GetInitializerExpression): New public method. Resolves and
returns the field initializer and makes sure it is only resolved once.
(TypeContainer.EmitFieldInitializers): Call
FieldBase.GetInitializerExpression to get the initializer, this ensures
that it isn't resolved multiple times.
* codegen.cs (EmitContext): Added `bool IsFieldInitialier'. This tells
the resolving process (SimpleName/MemberLookup) that we're currently
emitting a field initializer (which must not access any instance members,
this is an error CS0236).
* ecore.cs (SimpleName.Error_ObjectRefRequired): Added EmitContext
argument, if the `IsFieldInitializer' flag is set, we must report and
error CS0236 and not an error CS0120.
svn path=/trunk/mcs/; revision=6521
* ecore.cs (IMemberExpr): New public interface.
(FieldExpr, PropertyExpr, EventExpr): Implement IMemberExpr.
(SimpleName.SimpleNameResolve): Call MemberAccess.ResolveMemberAccess
if the expression is an IMemberExpr.
* expression.cs (MemberAccess.ResolveMemberAccess): Allow `left'
to be null, implicitly default to `this' if we're non-static in
this case. Simplified the code a lot by using the new IMemberExpr
interface. Also fixed bug #28176 here.
svn path=/trunk/mcs/; revision=6515
* WebMethodAttribute.cs:
Remove FIXME and reorganize constructors to all
call this () with the big constructor.
* WebServiceAttribute.cs:
Remove FIXME.
* WebServiceBindingAttribute.cs:
Remove FIXME, and change ns to be String.Empty by
default (this is the MS implementation). Reorganize
constructors.
* WebServicesDescriptionAttribute.cs:
Code reformat.
* TODOAttribute.cs:
Changed namespace.
*** This namespace should now be complete. ***
svn path=/trunk/mcs/; revision=6509
* AllTests.cs:
* ChangeLog:
* System.Web.Services:
* System.Web.Services_test.build:
New files and directories added for test suite.
svn path=/trunk/mcs/; revision=6508
* AllTests.cs:
* ChangeLog:
* WebMethodAttributeTest.cs:
* WebServiceAttributeTest.cs:
New files and directories added for test suite.
svn path=/trunk/mcs/; revision=6507
* DataGridColumn.cs - Added internal methods to get the
various styles (needed in DataGrid.cs)
* DataGrid.cs - Completed the method
PrepareControlHierarchy()
svn path=/trunk/mcs/; revision=6499
* MonoType.cs: moved get_method icall to this class, we can
remove it as soon someone provides a full featured GetMethodImpl.
* Type.cs: use GetMethodImpl everywhere.
* Delegate.cs: new CreateDelegate implementations.
svn path=/trunk/mcs/; revision=6497
* PropertyTabChangedEventArgs.cs
* Minor sytax bug fixes.
* System.Windows.Forms.csproj
* System.Windows.Forms.csproj.user
* System.Windows.Forms.sln
* Added support for System.Windows.Forms.Design
* Builds two dlls instead of one.
* Allows compiling for now, but needs to be fixed
svn path=/trunk/mcs/; revision=6487
* IRegistrationHelper.cs:
* IRemoteDispatch.cs:
* IServicedComponentInfo.cs:
* ITransaction.cs:
Comment out Guid attribute for now
because it doesn't build with CSC unless
you supply a valid Guid.
svn path=/trunk/mcs/; revision=6486
* cs-parser.jay (SimpleLookup): Removed. We need to create
ParameterReferences during semantic analysis so that we can do a
type-only search when resolving Cast, TypeOf and SizeOf.
* class.cs (ConstructorInitializer): Added `Parameters parameters'
argument to the constructor.
(ConstructorInitializer.Resolve): Create a temporary implicit
block with the parameters.
* ecore.cs (SimpleName.SimpleNameResolve): Resolve parameter
references here if we aren't doing a type-only search.
* statement.cs (Block): Added constructor which takes a
`Parameters parameters' argument.
(Block.Parameters): New public property.
* support.cs (InternalParameters.Parameters): Renamed `parameters'
to `Parameters' and made it public readonly.
svn path=/trunk/mcs/; revision=6484
* XmlSerializer.cs:
Some reformatting of code for readability.
Modify to correctly serialize ICollection objects
such as the BindingCollection of a ServiceDescription
for example.
svn path=/trunk/mcs/; revision=6481
* ecore.cs (Expression.Warning): Made this public as well.
* report.cs (Report.Debug): Print the contents of collections.
svn path=/trunk/mcs/; revision=6466
* ecore.cs (Expression.ResolveFlags): New [Flags] enum. This is
used to tell Resolve() which kinds of expressions it may return.
(Expression.Resolve): Added overloaded version of this method which
takes a `ResolveFlags flags' argument. This can be used to tell
Resolve() which kinds of expressions it may return. Reports a
CS0118 on error.
(Expression.ResolveWithSimpleName): Removed, use Resolve() with
ResolveFlags.SimpleName.
(Expression.Error118): Added overloaded version of this method which
takes a `ResolveFlags flags' argument. It uses the flags to determine
which kinds of expressions are allowed.
* expression.cs (Argument.ResolveMethodGroup): New public method.
Resolves an argument, but allows a MethodGroup to be returned.
This is used when invoking a delegate.
* TODO: Updated a bit.
svn path=/trunk/mcs/; revision=6464
* ServerProtocol.cs:
Add new class as implied by class statuc page.
SoapServerProtocol is derived from this.
* SoapServerProtocol.cs:
Change base class to ServerProtocol. Add some
properties shown by class status page.
* SoapClientMethod.cs:
This class should not be sealed. Add some
fields shown by the class status page.
svn path=/trunk/mcs/; revision=6462
Fixed compilation with csc.
* ecore.cs: Expression.Error made public. Is this correct? Should
Warning be made public too?
* expression.cs: use ea.Location instead of ea.loc.
[FIXME: Filed as bug #28607: MCS must report these errors.]
svn path=/trunk/mcs/; revision=6456
* ecore.cs (Expression.loc): Moved the location here instead of
duplicating it in all derived classes.
(Expression.Location): New public property.
(Expression.Error, Expression.Warning): Made them non-static and
removed the location argument.
(Expression.Warning): Added overloaded version which takes an
`int level' argument.
(Expression.Error118): Make this non-static and removed the
expression and location arguments.
(TypeExpr): Added location argument to the constructor.
* expression.cs (StaticCallExpr): Added location argument to
the constructor.
(Indirection, PointerArithmetic): Likewise.
(CheckedExpr, UnCheckedExpr): Likewise.
(ArrayAccess, IndexerAccess, UserCast, ArrayPtr): Likewise.
(StringPtr): Likewise.
svn path=/trunk/mcs/; revision=6452
* assign.cs (Assign.DoResolve): Check whether the source
expression is a value or variable.
* statement.cs (Try.Resolve): Set ec.InTry/InCatch/InFinally
while resolving the corresponding blocks.
* interface.cs (Interface.GetInterfaceTypeByName): Actually report
an error, don't silently return null.
* statement.cs (Block.AddVariable): Do the error reporting here
and distinguish between CS0128 and CS0136.
(Block.DoResolve): Report all unused labels (warning CS0164).
(LabeledStatement): Pass the location to the constructor.
(LabeledStatement.HasBeenReferenced): New property.
(LabeledStatement.Resolve): Set it to true here.
* statement.cs (Return.Emit): Return success even after reporting
a type mismatch error (CS0126 or CS0127), this is what csc does and
it avoids confusing the users with any consecutive errors.
svn path=/trunk/mcs/; revision=6443
* statement.cs (Block.AddVariable): Do the error reporting here
and distinguish between CS0128 and CS0136.
(Block.DoResolve): Report all unused labels (warning CS0164).
(LabeledStatement): Pass the location to the constructor.
(LabeledStatement.HasBeenReferenced): New property.
(LabeledStatement.Resolve): Set it to true here.
* statement.cs (Return.Emit): Return success even after reporting
a type mismatch error (CS0126 or CS0127), this is what csc does and
it avoids confusing the users with any consecutive errors.
svn path=/trunk/mcs/; revision=6440
* statement.cs (Return.Emit): Return success even after reporting
a type mismatch error (CS0126 or CS0127), this is what csc does and
it avoids confusing the users with any consecutive errors.
svn path=/trunk/mcs/; revision=6437
* enum.cs (Enum.LookupEnumValue): Catch circular definitions.
* const.cs (Const.LookupConstantValue): Catch circular definitions.
* expression.cs (MemberAccess.DoResolve): Silently return if an
error has already been reported.
* ecore.cs (Expression.MemberLookupFinal): Silently return if an
error has already been reported.
svn path=/trunk/mcs/; revision=6435
* AppDomainFactory.cs: implemented.
* ApplicationHost.cs: implemented.
* SimpleWorkerRequest.cs: a few little fixes and reformatted. It's now
fully implemented.
svn path=/trunk/mcs/; revision=6429
* HttpApplication.cs: Implemented a state machine to allow handling of HttpModules
and HttpHandlers. Implementation of async handlers.
* HttpApplicationFactory.cs: Factory for creating HttpApplication instances, including caching.
* HttpRuntime.cs: Usage of the new HttpApplicationFactory to get a application instance to
execute requests in and implementation of request execution (still no request queue).
* HttpAsyncResult.cs: New file to handle async module results.
* HttpRequest.cs: Change signature of Dispose
* HttpResponse.cs: new internal method allowing filtering to happen during the request flow in the
state machine.
svn path=/trunk/mcs/; revision=6425
* runtest.pl: This is a perl script which runs a testcase, parses the
MCS output and checks whether all errors are reported.
* error-1.cs, error-2.cs: Moved here from ../tests/.
* README.tests: Added (empty) list of all test cases.
svn path=/trunk/mcs/; revision=6423
* typemanager.cs (TypeManager.GetArgumentTypes): Don't call
PropertyInfo.GetIndexParameters() on dynamic types, this doesn't
work with the ms runtime and we also don't need it: if we're a
PropertyBuilder and not in the `indexer_arguments' hash, then we
are a property and not an indexer.
* class.cs (TypeContainer.AsAccessible): Use Type.IsArray,
Type.IsPointer and Type.IsByRef instead of Type.HasElementType
since the latter one doesn't work with the ms runtime.
svn path=/trunk/mcs/; revision=6414
* SoapProtocolReflector.cs:
Removed SoapBinding property and made the class
not sealed to agree with class reference page.
svn path=/trunk/mcs/; revision=6402
* XmlSerializer.cs:
Changed Implements() to check based on name rather
than FullName. FullName was never working correctly.
svn path=/trunk/mcs/; revision=6386
* class.cs (Method.IsOperator): New public field.
(Method.CheckBase): Report CS0111 if there's already a method
with the same parameters in the current class. Report CS0508 when
attempting to change the return type of an inherited method.
(MethodData.Emit): Report CS0179 if a method doesn't have a body
and it's not marked abstract or extern.
(PropertyBase): New abstract base class for Property and Indexer.
(PropertyBase.CheckBase): Moved here from Property and made it work
for indexers.
(PropertyBase.Emit): Moved here from Property.Emit, Indexer.Emit is
the same so we can reuse it there.
(Property, Indexer): Derive from PropertyBase.
(MethodSignature.inheritable_property_signature_filter): New delegate
to find properties and indexers.
* decl.cs (MemberCore.CheckMethodAgainstBase): Added `string name'
argument and improved error reporting.
* parameter.cs (Parameters.GetEmptyReadOnlyParameters): Renamed to
EmptyReadOnlyParameters and made it a property.
* typemanager.cs (TypeManager.GetArgumentTypes): Added overloaded
version of this method which takes a `PropertyInfo indexer'.
(TypeManager.RegisterIndexer): New method.
* class.cs: Added myself as author of this file :-)
svn path=/trunk/mcs/; revision=6381
* XmlNamespaceManager.cs:
.Net allows the empty namespace to be redefined
at a later point, but the current implementation
did not. This fixes a hashtable conflict.
svn path=/trunk/mcs/; revision=6379
* class.cs (TypeContainer.GetClassBases): Check whether base types
are at least as accessible than the current type.
(TypeContainer.AsAccessible): Implemented and made non-static.
(MemberBase.CheckParameters): Report a CS0051 if
TypeContainer.AsAccessible returns false.
* delegate.cs (Delegate.Delegate): The default visibility is
internal for top-level types and private for nested types.
* enum.cs (Enum.Enum): The default visibility is internal for
top-level types and private for nested types.
(Enum.DefineType): Compute the correct visibility.
* modifiers.cs (Modifiers.TypeAttr): Added a version of this
function which takes a `bool is_toplevel' instead of a TypeContainer.
* typemanager.cs (TypeManager.IsBuiltinType): `void' is also a
builtin type.
svn path=/trunk/mcs/; revision=6372
* reflection.c: fix encoding of named args for custom attrs to match
the ms implementation. Read them back when instantiating custom
attributes.
svn path=/trunk/mono/; revision=6365
* BinaryClientFormatterSink.cs:
* IClientChannelSink.cs: Fixed signature for AsyncProcessResponse.
* MethodCall.cs:
* MethodResponse.cs: More visibility fixes. Hopefully this is the
last of it.
svn path=/trunk/mcs/; revision=6361
* marshal.c (mono_mb_add_data): convert ret value to LE, suggested
by Dietmar as quick fix
(mono_marshal_get_delegate_begin_invoke): use sig->param_count +
16 as stack size, used on more places as quick fix before Dietmar
will fix it properly
svn path=/trunk/mono/; revision=6358
* io.c (GetStdHandle): Add a handle reference when returning a
duplicate console handle. This fixes the unref_handle errors in
NUnit.
svn path=/trunk/mono/; revision=6357
* class.c, class.h: move the code to setup the type vtable in its own
function so that it can be reused also for types created at runtime.
Eliminate the "class" identifier from the header file.
* reflection.c: setup the vtable for enums so that we can create
objects for use in SetConstant ().
svn path=/trunk/mono/; revision=6350
* marshal.c (mono_delegate_to_ftnptr): pass delegate->target
instead of the delegate itself as this pointer (bug #28383)
svn path=/trunk/mono/; revision=6348
* expression.cs (LocalVariableReferenc): Added constructor which
takes additional `VariableInfo vi' and `bool is_readonly' arguments.
(LocalVariableReference.IsReadOnly): New property.
(LocalVariableReference.DoResolveLValue): Report a CS1604 if the
variable is readonly, use our own readonly flag to do this; you can
use the new constructor to get a writable reference to a read-only
variable.
* cs-parser.jay (foreach_statement, using_statement): Get a writable
reference to the local variable.
svn path=/trunk/mcs/; revision=6345
* statement.cs
(Catch.DoResolve, Throw.DoResolve): Throwing the System.Exception
is also fine.
* expression.cs: use brtrue/brfalse directly and avoid compares to null.
svn path=/trunk/mcs/; revision=6343
* BufferTest.cs (TestBlockCopy): BlockCopy uses the number of bytes,
so hard-code some of that info into the test since sizeof() is a very
unsafe thing to do.
svn path=/trunk/mcs/; revision=6340
* makefile: Moved test-66.cs to TEST_NOPASS since there's currently
a bug in the runtime which makes this crash.
* test-155.cs: New test.
svn path=/trunk/mcs/; revision=6338
* MonthCalendar.cs
* ButtonBase.cs
* Form.cs
* MonthCalendar commented out, stubbs need work
* GTK references removed from Buttonbase and form, to make compile easier.
* Replace GTK references as soon as build works on Windows and Linux.
* With this, SWF should compile uder visual studio
svn path=/trunk/mcs/; revision=6333
* TODOAttribute.cs
* ComVisible.cs
* added so the namespace can compile, remove when replaced with mono equivalents.
svn path=/trunk/mcs/; revision=6330
* System.Windows.Forms.csproj
* System.Windows.Forms.csproj.user
* System.Windows.Forms.sln
* AssemblyInfo.cs * Not sure if this file is needed. not a part of the namespace, just visual studio
* Added files to compile using visual Studio
svn path=/trunk/mcs/; revision=6329
* statement.cs (ForeachHelperMethods): Added `enumerator_type' and
`is_disposable' fields.
(Foreach.GetEnumeratorFilter): Set `hm.enumerator_type' and
`hm.is_disposable' if we're using the collection pattern.
(Foreach.EmitCollectionForeach): Use the correct type for the
enumerator's local variable, only emit the try/finally block if
necessary (fixes#27713).
svn path=/trunk/mcs/; revision=6328
* ecore.cs (Expression.report118): Renamed to Error118 and made
it public static.
* statement.cs (Throw.Resolve): Check whether the expression is of
the correct type (CS0118) and whether the type derives from
System.Exception (CS0155).
(Catch.Resolve): New method. Do the type lookup here and check
whether it derives from System.Exception (CS0155).
(Catch.CatchType, Catch.IsGeneral): New public properties.
* typemanager.cs (TypeManager.exception_type): Added.
svn path=/trunk/mcs/; revision=6326
* x86/tramp.c (mono_create_trampoline): also push the value type pointer for
methods returning value types.
(mono_create_method_pointer): support valuetype returns.
* interp.c (ves_pinvoke_method): do not call stackval_from_data if the result
is a value type.
svn path=/trunk/mono/; revision=6311
* interp.c (stackval_from_data): add pinvoke argument
(stackval_to_data): add pinvoke argument. We need consider the
fact that unmanages structures may have different sizes.
* x86/tramp.c (mono_create_method_pointer): allocate space for
value types.
svn path=/trunk/mono/; revision=6308
2002-07-30 Juli Mallett <[email protected]>
* regex.cs: Fixed bug where the expression would not be
re-evaluated for grouping purposes when factory caches were
used, resulting in no groups being recognised after one call
with a given pattern and no change in options.
svn path=/trunk/mcs/; revision=6299
* test-154.cs: New test for the flow analysis code.
* error-1.cs: Each method in this test must produce a compiler
error message.
* makefile (test-unsafe-mono): New target to compile and run all
the --unsafe tests wich MCS and the Mono runtime.
svn path=/trunk/mcs/; revision=6292
Implemented Control Flow Analysis.
* codegen.cs (EmitContext.DoFlowAnalysis): New public variable.
(EmitContext.CurrentBranching): Added.
(EmitContext.StartFlowBranching): Added.
(EmitContext.EndFlowBranching): Added.
(EmitContext.KillFlowBranching): Added.
(EmitContext.IsVariableAssigned): Added.
(EmitContext.SetVariableAssigned): Added.
(EmitContext.IsParameterAssigned): Added.
(EmitContext.SetParameterAssigned): Added.
(EmitContext.EmitTopBlock): Added `InternalParameters ip' argument.
Added control flow analysis stuff here.
* expression.cs (Unary.DoResolve): If the operator is Oper.AddressOf,
resolve the expression as lvalue.
(LocalVariableReference.DoResolve): Check whether the variable has
already been assigned.
(ParameterReference.DoResolveLValue): Override lvalue resolve to mark
the parameter as assigned here.
(ParameterReference.DoResolve): Check whether the parameter has already
been assigned.
(Argument.Resolve): If it's a `ref' or `out' argument, resolve the
expression as lvalue.
* statement.cs (FlowBranching): New class for the flow analysis code.
(Goto): Resolve the label in Resolve, not in Emit; added flow analysis.
(LabeledStatement.IsDefined): New public property.
(LabeledStatement.AddUsageVector): New public method to tell flow
analyis that the label may be reached via a forward jump.
(GotoCase): Lookup and resolve the label in Resolve, not in Emit; added
flow analysis.
(VariableInfo.Number): New public field. This is used by flow analysis
to number all locals of a block.
(Block.CountVariables): New public property. This is the number of
local variables in this block (including the locals from all parent
blocks).
(Block.EmitMeta): Number all the variables.
* statement.cs: Added flow analysis support to all classes.
svn path=/trunk/mcs/; revision=6291
* driver.cs: Added "--mcs-debug" argument if MCS_DEBUG is defined.
To get debugging messages, compile mcs with /define:MCS_DEBUG and
then use this argument.
* report.cs (Report.Debug): Renamed to conditional to "MCS_DEBUG".
* makefile.gnu (MCS_FLAGS): Include $(MCS_DEFINES), the user may
use this to specify /define options.
svn path=/trunk/mcs/; revision=6289
* unix.args: Added interfaces and enumerations from
System.Runtime.Remoting.Channels.
* *.cs: Added all the interfaces in this namespace.
* ServerProcessing.cs: Added.
svn path=/trunk/mcs/; revision=6284
* MethodCallMessageWrapper.cs:
* MethodReturnMessageWrapper.cs: Revert the last patch and made it
work. Thanks to Gonzalo for reminding me to chain the constructors.
svn path=/trunk/mcs/; revision=6282
* interp.c: use the new marshaling code. better delegate/remoting
support.
* debug-helpers.c (mono_method_full_name): only print a number to
indicate wrapper type (so that the output is more readable in traces).
* x86/tramp.c: remove code to handle PInvoke because this is no
longer needed.
svn path=/trunk/mono/; revision=6278
* MethodCallMessageWrapper.cs:
* MethodReturnMessageWrapper.cs: Remove reference to
InternalMessageWrapper. It's probably an MS private class, even
though it's visible in the documentation.
svn path=/trunk/mcs/; revision=6277
* unix.args: Added new classes in
System.Runtime.Remoting.Contexts.
* SynchronizationAttribute.cs: Added more interfaces, it
implements them (via CorCompare), but they're not listed in the docs.
* ContextProperty.cs:
* CrossContextDelegate.cs: Added to CVS.
* ContextAttribute.cs: Added missing constructor.
svn path=/trunk/mcs/; revision=6274
* Calendar.cs: added myself to the list of authors.
* DropDownList.cs: fixed a few properties.
* ListControl.cs: fixed SelectedIndex.
svn path=/trunk/mcs/; revision=6265
* System.Web.UI/Page.cs: request to render postback script can be
after form started rendering.
* System.Web.UI.WebControls/Calendar.cs: lots of fixes. Render days.
Still left to persist selected days when changing month.
* System.Web.UI.WebControls/Unit.cs: fixed Percentage and Pixel.
* System.Web.UI.WebControls/WebControl.cs: a few properties are now
using ControlStyle instead of ViewState to persist.
svn path=/trunk/mcs/; revision=6258
* EnumConverter.cs: new file.
* TypeConverter.cs: implemented a few simple methods.
* TypeDescriptor.cs:
(GetConverter): initial support for converters of well-known types.
svn path=/trunk/mcs/; revision=6254
* attribute.cs (Attribute.Resolve): Explicitly catch a
System.NullReferenceException when creating the
CustromAttributeBuilder and report a different warning message.
svn path=/trunk/mcs/; revision=6250
* support.cs (ParameterData.ParameterName): Added method to
get the name of a parameter.
* typemanager.cs (TypeManager.IsValueType): New public method.
svn path=/trunk/mcs/; revision=6245
* parameter.cs (Parameter.Modifier): Added `ISBYREF = 8'. This
is a flag which specifies that it's either ref or out.
(Parameter.GetParameterInfo (DeclSpace, int, out bool)): Changed
the out parameter to `out Parameter.Modifier mod', also set the
Parameter.Modifier.ISBYREF flag on it if it's either ref or out.
* support.cs (InternalParameters.ParameterModifier): Distinguish
between Parameter.Modifier.OUT and Parameter.Modifier.REF, set the
Parameter.Modifier.ISBYREF flag if it's either ref or out.
* expression.cs (Argument.GetParameterModifier): Distinguish
between Parameter.Modifier.OUT and Parameter.Modifier.REF, set the
Parameter.Modifier.ISBYREF flag if it's either ref or out.
svn path=/trunk/mcs/; revision=6243
2002-07-27 Martin Baulig <[email protected]>
These two changes won't give us any performance or code-size
improvements, but they make my control flow analyis much simpler.
* statement.cs (While.Emit): Did some loop-inversion here; emit the
test, then the body of the while and then a jump back to the test.
(For.Emit): Did some loop-inversion here; emit the initialization,
then the test, then the body, then the incrementation and then a jump
back to the test.
svn path=/trunk/mcs/; revision=6240
* OleDbDataReader.cs (OleDbDataReader constructor): changed to receive
a second argument (ArrayList results).
(NextResult): implemented.
* OleDbCommand.cs: don't store the ArrayList of results, since we'll
pass that to the OleDbDataReader.
(OleDbCommand constructor): don't create the ArrayList of results.
(GdaResults): removed property.
(ExecuteReader): create a temporary ArrayList and pass that to the
OleDbDataReader constructor.
svn path=/trunk/mcs/; revision=6236
* threads.c (ves_icall_System_Threading_Thread_Thread_internal):
use real delegate invoke function to make it work with multicast
delegates (fix bug# 28291).
svn path=/trunk/mono/; revision=6235
* statement.cs (Try): Initialize the location.
* cs-parser.jay: pass location to Try.
* expression.cs (Unary.Reduce): Change the prototype to return
whether a constant fold could be performed or not. The result is
returned in an out parameters. In the case of Indirection and
AddressOf, we want to perform the full tests.
2002-07-26 Miguel de Icaza <[email protected]>
* statement.cs (Statement.Emit): Flag dead code.
svn path=/trunk/mcs/; revision=6233
* OleDbCommand.cs (ExecuteReader):
(CreateParameter): implemented IDbCommand methods.
(CommandText): don't create many GdaCommand's, only one is needed.
(ExecuteNonQuery): set up the internal GDA command object.
(ExecuteReader): use correctly the unique GDA command object.
* libgda.cs: added new libgda calls.
svn path=/trunk/mcs/; revision=6232
* IContributeServerContentSink.cs: Removed.
* IContributeServerContextSink.cs: Replaces IContributeServerContentSink.
* ILease.cs: Add the method part of the interface and renamed the
CurrentState property to it proper name.
* SoapAttribute.cs: Fixed typo, renamed ReflectionInfo to ReflectInfo.
* SoapOption.cs: Fix the namespace.
svn path=/trunk/mcs/; revision=6229
* System.Web/HttpApplication.cs: events were not being initialized.
* System.Web.Caching/CacheDefinitions.cs: fixed a couple of enums.
* System.Web.Caching/CacheDependency.cs: the class is sealed.
* System.Web.UI.WebControls/BaseValidator.cs: it works now.
* System.Web.UI.WebControls/DataGridColumn.cs: added attribute and
made it abstract.
* System.Web.UI.WebControls/RequiredFieldValidator.cs: fixed return
value in EvaluateIsValid.
svn path=/trunk/mcs/; revision=6225
* DerivedPropertyDescriptor.cs: New file.
* PropertyDescriptorCollection.cs: almost fully implemented.
* TypeDescriptor.cs: implemented a couple of GetProperties ().
svn path=/trunk/mcs/; revision=6223
* class.cs (MethodData.Define): Put back call to
TypeManager.AddMethod(), accidentally commented this out.
* report.cs (Debug): New public method to print debugging information,
this is `[Conditional ("DEBUG")]'.
svn path=/trunk/mcs/; revision=6216
2002-07-26 Martin Baulig <[email protected]>
* cs-parser.jay (CSharpParser): Added `Stack switch_stack'.
(switch_statement): Push the current_block to the switch_stack and
pop it again when we're done with the switch.
(switch_section): The new block is a child of the current_block.
Fixes bug #24007, added test-152.cs.
svn path=/trunk/mcs/; revision=6215
These two changes won't give us any performance or code-size
improvements, but they make my control flow analyis much simpler.
* statement.cs (While.Emit): Did some loop-inversion here; emit the
test, then the body of the while and then a jump back to the test.
(For.Emit): Did some loop-inversion here; emit the initialization,
then the test, then the body, then the incrementation and then a jump
back to the test.
svn path=/trunk/mcs/; revision=6213
* expression.cs (Invocation.EmitArguments): When calling a varargs
function with only its fixed arguments, we need to pass an empty
array.
svn path=/trunk/mcs/; revision=6212
* ServiceDescription.cs:
Changed the creation of the XmlSerializer after
consulting the System.Xml.Serialization namespace
and trying to serialize a document. Now works somewhat!
svn path=/trunk/mcs/; revision=6200
* XmlTextWriter.cs:
When given a textwriter, check to see if it has a
null encoding. This was being done for other inputs
than a textwriter.
svn path=/trunk/mcs/; revision=6199
* XmlSerializer.cs:
The constructor now looks for an XmlRootAttribute attribute
if one is not passed in. Various changes to make it emit
proper XML, such as handling an element without a namespace
prefix, and using WriteEndDocument where it should be.
svn path=/trunk/mcs/; revision=6198
* SoapClientMethod.cs:
* SoapServerProtocol.cs:
Add new internal classes as discovered.
* SoapClientMessage.cs:
* SoapMessage.cs:
* SoapServerMessage.cs:
* WebClientAsyncResult.cs:
Add internal constructor, as found on class
status page; modify some properties.
svn path=/trunk/mcs/; revision=6195
* OperationMessageCollection.cs:
Some implementation of this class after consulting a
WSDL reference. Now validates the inputs.
svn path=/trunk/mcs/; revision=6185
* DateTimePickerFormat.cs
* Added values.
* The NAMESPACE NOW COMPILES under windows in Visual Studio using the Microsoft version of the classes.
* Verify.exe reports 600 errors.
svn path=/trunk/mcs/; revision=6184
* cs-parser.jay (CSharpParser): Added `Stack switch_stack'.
(switch_statement): Push the current_block to the switch_stack and
pop it again when we're done with the switch.
(switch_section): The new block is an implicit child of the
current_block. Fixes bug #24007, added test-152.cs.
svn path=/trunk/mcs/; revision=6181
* driver.cs: Rename --resource to --linkres, because that is what
we do currently, we dont support --resource yet.
* cs-tokenizer.cs: Fix test for reporting endif mismatches.
svn path=/trunk/mcs/; revision=6179
* class.cs (MethodData): New public class. This is a `method builder'
class for a method or one accessor of a Property/Indexer/Event.
(MethodData.GetMethodFlags): Moved here from MemberBase.
(MethodData.ApplyAttributes): Likewise.
(MethodData.ApplyObsoleteAttribute): Likewise.
(MethodData.ApplyConditionalAttribute): Likewise.
(MethodData.ApplyDllImportAttribute): Likewise.
(MethodData.CheckAbstractAndExternal): Likewise.
(MethodData.Define): Formerly knows as MemberBase.DefineMethod().
(MethodData.Emit): Formerly known as Method.Emit().
(MemberBase): Moved everything which was specific to a single
accessor/method to MethodData.
(Method): Create a new MethodData and call Define() and Emit() on it.
(Property, Indexer, Event): Create a new MethodData objects for each
accessor and call Define() and Emit() on them.
svn path=/trunk/mcs/; revision=6177
Made MethodCore derive from MemberBase to reuse the code from there.
MemberBase now also checks for attributes.
* class.cs (MethodCore): Derive from MemberBase, not MemberCore.
(MemberBase.GetMethodFlags): Moved here from class Method and marked
as virtual.
(MemberBase.DefineAccessor): Renamed to DefineMethod(), added
`CallingConventions cc' and `Attributes opt_attrs' arguments.
(MemberBase.ApplyAttributes): New virtual method; applies the
attributes to a method or accessor.
(MemberBase.ApplyObsoleteAttribute): New protected virtual method.
(MemberBase.ApplyConditionalAttribute): Likewise.
(MemberBase.ApplyDllImportAttribute): Likewise.
(MemberBase.CheckAbstractAndExternal): Likewise.
(MethodCore.ParameterTypes): This is now a property instead of a
method, it's initialized from DoDefineParameters().
(MethodCore.ParameterInfo): Removed the set accessor.
(MethodCore.DoDefineParameters): New protected virtual method to
initialize ParameterTypes and ParameterInfo.
(Method.GetReturnType): We can now simply return the MemberType.
(Method.GetMethodFlags): Override the MemberBase version and add
the conditional flags.
(Method.CheckBase): Moved some code from Define() here, call
DoDefineParameters() here.
(Method.Define): Use DoDefine() and DefineMethod() from MemberBase
here to avoid some larger code duplication.
(Property.Emit, Indexer.Emit): Call CheckAbstractAndExternal() to
ensure that abstract and external accessors don't declare a body.
* attribute.cs (Attribute.GetValidPieces): Make this actually work:
`System.Attribute.GetCustomAttributes (attr.Type)' does a recursive
lookup in the attribute's parent classes, so we need to abort as soon
as we found the first match.
(Attribute.Obsolete_GetObsoleteMessage): Return the empty string if
the attribute has no arguments.
* typemanager.cs (TypeManager.AddMethod): Now takes a MemberBase instead
of a Method.
svn path=/trunk/mcs/; revision=6175
* ProcessModelInfo.cs:
New class added
* HttpParseException.cs:
* HttpCompileException.cs:
* HttpUnhandledException.cs:
Internal constructors added to these
svn path=/trunk/mcs/; revision=6173
be assigned to before control leaves the current method."
[FIXME: Filed as bug #28186: MCS must report this error.]
svn path=/trunk/mcs/; revision=6172
* attribute.cs: fixed compilation. The error was:
"attribute.cs(571,17): error CS0177: The out parameter 'is_error' must
be assigned to before control leaves the current method."
svn path=/trunk/mcs/; revision=6161
* attribute.cs (Attribute.Conditional_GetConditionName): New static
method to pull the condition name ouf of a Conditional attribute.
(Attribute.Obsolete_GetObsoleteMessage): New static method to pull
the obsolete message and error flag out of an Obsolete attribute.
* class.cs (Method.GetMethodFlags): New public method to get the
TypeManager.MethodFlags for this method.
(Method.ApplyConditionalAttribute, Method.ApplyObsoleteAttribute): New
private methods.
(Method.Define): Get and apply the Obsolete and Conditional attributes;
if we're overriding a virtual function, set the new private variable
`parent_method'; call the new TypeManager.AddMethod().
* typemanager.cs (TypeManager.AddMethod): New static method. Stores
the MethodBuilder and the Method in a PtrHashtable.
(TypeManager.builder_to_method): Added for this purpose.
(TypeManager.MethodFlags): Added IsObsoleteError.
(TypeManager.GetMethodFlags): Added `Location loc' argument. Lookup
Obsolete and Conditional arguments in MethodBuilders. If we discover
an Obsolete attribute, emit an appropriate warning 618 / error 619 with
the message from the attribute.
svn path=/trunk/mcs/; revision=6160
* cs-tokenizer.cs: Eat up trailing whitespaces and one-line comments in
preprocessor directives, ensure that the argument to #define/#undef is
exactly one identifier and that it's actually an identifier.
Some weeks ago I did a `#define DEBUG 1' myself and wondered why this
did not work ....
svn path=/trunk/mcs/; revision=6159
* CodeIdentifier.cs:
* IXmlSerializable.cs:
* XmlSerializationCollectionFixupCallback.cs:
* XmlSerializationFixupCallback.cs:
* XmlSerializationReadCallback.cs:
* XmlSerializationReader.cs:
* XmlSerializationWriteCallback.cs:
Add new classes.
* XmlSchemas.cs
* CodeIdentifiers.cs:
Implement some of these classes
* XmlCodeExporter.cs:
Fix return type of a function
svn path=/trunk/mcs/; revision=6157
* statement.cs (Foreach.ForeachHelperMethods): Added `Type element_type',
initialize it to TypeManager.object_type in the constructor.
(Foreach.GetEnumeratorFilter): Set `hm.element_type' to the return type
of the `hm.get_current' method if we're using the collection pattern.
(Foreach.EmitCollectionForeach): Use `hm.element_type' as the source type
for the explicit conversion to make it work when we're using the collection
pattern and the `Current' property has a different return type than `object'.
Fixes#27713.
svn path=/trunk/mcs/; revision=6153
* delegate.cs (Delegate.VerifyMethod): Simply return null if the method
does not match, but don't report any errors. This method is called in
order for all methods in a MethodGroupExpr until a matching method is
found, so we don't want to bail out if the first method doesn't match.
(NewDelegate.DoResolve): If none of the methods in the MethodGroupExpr
matches, report the 123. Fixes#28070.
svn path=/trunk/mcs/; revision=6147
* ProtocolImporter.cs:
* ProtocolReflector.cs:
Some implementation of these classes. MonoTODO's begone!
* SoapProtocolImporter.cs:
Changed description to literal string "Soap"
* SoapProtocolReflector.cs:
Added a new class based on guesswork and conjecture.
svn path=/trunk/mcs/; revision=6145
* HttpCachePolicy.cs:
Added stubbs to this class.
* HttpCacheability.cs:
* HttpCacheRevalidation.cs:
* HttpValidationStatus.cs:
* ProcessShutdownReason.cs:
* ProcessStatus.cs:
* TraceMode.cs:
Reorder the enumerations (and in some cases make
one-based) in order to agree with the .NET
implementation, based on the class status page.
* ProcessInfo.cs:
Implementation of this class.
svn path=/trunk/mcs/; revision=6133
* marshal.c: added optimisations for blittable types
* class.c (mono_array_class_get): do not set blittable attribute on arrays
(mono_class_setup_mono_type): set blittable attribute for single
and double.
svn path=/trunk/mono/; revision=6131
* SoapException.cs: modified constructors to
call base class correctly.
* WebClientAsyncResult: some implementation
svn path=/trunk/mcs/; revision=6108
* unix.args: Added files from Remoting.Lifetime and
Remoting.Metadata.
* ChangeLog: Moved entries from System.Runtime.Remoting.Activation
and System.Runtime.Remoting.Proxy to their own ChangeLog.
* IsVolatile.cs: change visibility on the constructor.
* LeaseState.cs: Moved here from System.Runtime.Remoting.
* ClientSponsor.cs:
* LifetimeServices.cs: Stubbed out
* ILease.cs:
* ISponsor.cs: Added to CVS.
* OneWayAttribute.cs: Added to CVS.
* SoapAttribute.cs:
* SoapFieldAttribute.cs:
* SoapMethodAttribute.cs:
* SoapParameterAttribute.cs:
* SoapTypeAttribute.cs: Stubbed out.
* SoapOption.cs:
* XmlFieldOrderOption.cs: Moved here from System.Runtime.Remoting
* System.Runtime.Remoting.Proxies/ProxyAttribute.cs: This
implements IContextAttribute.
* LeaseState.cs: Moved to System.Runtime.Remoting.Lifetime.
* SoapMethodOption.cs:
* SoapOption.cs: Removed and merged into System.Runtime.Remoting.Metadata.SoapOption.
svn path=/trunk/mcs/; revision=6107
* expression.cs (ArrayAccess.EmitStoreOpcode): Moved the
TypeManager.TypeToCoreType() to the top of the method so the
following equality checks will work. Fixes#28107.
svn path=/trunk/mcs/; revision=6103
* cfold.cs (ConstantFold.DoConstantNumericPromotions): "If either
operand is of type uint, and the other operand is of type sbyte,
short or int, the operands are converted to type long." -
Actually do what this comment already told us. Fixes bug #28106,
added test-150.cs.
svn path=/trunk/mcs/; revision=6102
* class.cs (MethodBase): New abstract class. This is now a base
class for Property, Indexer and Event to avoid some code duplication
in their Define() and DefineMethods() methods.
(MethodBase.DoDefine, MethodBase.DefineAccessor): Provide virtual
generic methods for Define() and DefineMethods().
(FieldBase): Derive from MemberBase, not MemberCore.
(Property): Derive from MemberBase, not MemberCore.
(Property.DefineMethod): Moved all the code from this method to the
new MethodBase.DefineAccessor(), just call it with appropriate
argumetnts.
(Property.Define): Call the new Property.DoDefine(), this does some
sanity checks and we don't need to duplicate the code everywhere.
(Event): Derive from MemberBase, not MemberCore.
(Event.Define): Use the new MethodBase.DefineAccessor() to define the
accessors, this will also make them work with interface events.
(Indexer): Derive from MemberBase, not MemberCore.
(Indexer.DefineMethod): Removed, call MethodBase.DefineAccessor() insstead.
(Indexer.Define): Use the new MethodBase functions.
* interface.cs (InterfaceEvent.InterfaceEvent): Added `Location loc'
argument to the constructor.
(Interface.FindMembers): Added support for interface events.
(Interface.PopluateEvent): Implemented.
Added test-149.cs for this. This also fixes bugs #26067 and #24256.
svn path=/trunk/mcs/; revision=6101
* test-149.cs: New test.
* test-95.cs: .... and finally, another bug in MCS is fixed and
the syntax error in this test is caught.
svn path=/trunk/mcs/; revision=6098
* class.cs (MethodBase): New abstract class. This is now a base
class for Property, Indexer and Event to avoid some code duplication
in their Define() and DefineMethods() methods.
(MethodBase.DoDefine, MethodBase.DefineAccessor): Provide virtual
generic methods for Define() and DefineMethods().
(FieldBase): Derive from MemberBase, not MemberCore.
(Property): Derive from MemberBase, not MemberCore.
(Property.DefineMethod): Moved all the code from this method to the
new MethodBase.DefineAccessor(), just call it with appropriate
argumetnts.
(Property.Define): Call the new Property.DoDefine(), this does some
sanity checks and we don't need to duplicate the code everywhere.
(Event): Derive from MemberBase, not MemberCore.
(Event.Define): Use the new MethodBase.DefineAccessor() to define the
accessors, this will also make them work with interface events.
(Indexer): Derive from MemberBase, not MemberCore.
(Indexer.DefineMethod): Removed, call MethodBase.DefineAccessor() insstead.
(Indexer.Define): Use the new MethodBase functions.
* interface.cs (InterfaceEvent.InterfaceEvent): Added `Location loc'
argument to the constructor.
(Interface.FindMembers): Added support for interface events.
(Interface.PopluateEvent): Implemented.
svn path=/trunk/mcs/; revision=6097
* HttpGetClientProtocol.cs:
* HttpPostClientProtocol.cs
Implemented the GetWebRequest method
* HttpSimpleClientProtocol:
Some implementation of the EndInvoke method
* HttpWebClientProtocol.cs:
Set the UserAgent string appropriately
Implemented the GetWebRequest method
Implemented the GetWebResponse methods
* SoapHttpClientProtocol.cs:
Removed unused fields
Implemented the GetWebRequest method
* SoapMessage.cs:
Implemented the EnsureStage method
* WebClientProtocol.cs:
Added a static constructor to construct the cache
Implemented the Abort method
Implemented the AddToCache, GetFromCache methods
Implemented the GetWebRequest method
Implemented the GetWebResponse methods
svn path=/trunk/mcs/; revision=6095
* WebService.cs:
Change Description to WebServicesDescription
* WebServicesDescriptionAttribute.cs:
Add back constructor as MS build doesn't
seem to like it missing. Now calls base()
with the string. Also remove the sealed
modifier and change the attribute targets.
svn path=/trunk/mcs/; revision=6091
* LogicalMethodTypes.cs:
* SoapHeaderDirection.cs:
* SoapMessageStage.cs:
* SoapParameterStyle.cs:
* SoapServiceRoutingStyle.cs:
Explicitly define values in enum to match
.NET.
* SoapMessage.cs:
Removed constructor which should not be present.
* SoapException.cs:
Made protected fields private as they should
be.
* SoapHeaderException.cs:
Modifications to constructors to propertly
call base class constructor
svn path=/trunk/mcs/; revision=6087
* WebServicesDescriptionAttribute.cs:
Removed the "guts" because they are defined in
System.ComponentModel.DescriptionAttribute.
* WebService.cs:
Added attributes which were missing based on the
class status page. Also added an HttpApplication
object and modified the properties to use that
object.
svn path=/trunk/mcs/; revision=6084
* ServiceDescription.cs:
Add XmlIgnore attribute to ServiceDescriptions property
* OperationFlow.cs:
* ServiceDescriptionImportWarnings.cs:
Explicitly set values in enumeration to match
.NET.
svn path=/trunk/mcs/; revision=6083
* HttpCompileException.cs:
* HttpParseException.cs:
* HttpUnhandledException.cs:
New stubbs created.
* HttpApplication.cs:
* HttpBrowserCapabilities.cs:
Added missing methods stubbs and attributes based
on the class status page. Also reformatted some
source for consistency.
svn path=/trunk/mcs/; revision=6081
* HttpUtility.cs: Moved entities hashtable into main
class as a static object, so we don't instantiate
a new one every time. Also put the hashtable
building into a lock block.
svn path=/trunk/mcs/; revision=6080
* SoapFormatter.cs: This implements IFormatter and IRemoteFormatter.
* XmlSchemaException.cs: Partiall implement the ISerializable
methods. It's not clear now SourceSchemaObject should be deserialized.
* XmlConvert.cs: Implement the ToDateTime method. ToDateTime
(string, string []) is particularly strange.
* XmlException.cs: Remember to call the base serialization
constructor.
* XmlNodeReader.cs: Keep a new variable to store the Depth.
svn path=/trunk/mcs/; revision=6077
* emit-x86.c (enter_method): use arch_get_argument_info to get
stack layout.
* jit.c (mono_analyze_stack): use arch_get_argument_info to get
stack layout.
(mono_analyze_stack): removed unused code
* emit-x86.c (arch_allocate_arg): impl.
svn path=/trunk/mono/; revision=6076
* ComponentCollection.cs: Added reference to
ReadOnlyCollectionBase to make sure
that we inherit the appropriate methods.
Not sure why the Dispose() method is
required, but left for now.
svn path=/trunk/mcs/; revision=6055
* list.unix: Added files to the build for linux
System.ComponentModel.BindableAttribute.cs,
System.ComponentModel.BindableSupport.cs,
System.ComponentModel.ExpandableObjectConverter.cs,
System.ComponentModel.NotifyParentPropertyAttribute.cs,
System.ComponentModel.ToolboxItemAttribute.cs,
svn path=/trunk/mcs/; revision=6052
* list:
Added System.Security.Permission/ReflectionPermission.cs and
System.Security.Permission/EnvironmentPermission.cs and
svn path=/trunk/mcs/; revision=6046
* class.cs (TypeContainer.AddMethod): Adding methods do not use IsValid,
but this is required to check for a method name being the same as
the containing class.
Handle this now.
svn path=/trunk/mcs/; revision=6040
Implemented the IndexerName attribute in interfaces.
* class.cs (TypeContainer.DefineIndexers): Don't set the indexer
name if this is an explicit interface implementation.
(Indexer.InterfaceIndexerName): New public variable. If we're
implementing an interface indexer, this is the IndexerName in that
interface. Otherwise, it's the IndexerName.
(Indexer.DefineMethod): If we're implementing interface indexer,
set InterfaceIndexerName. Use the new Pending.IsInterfaceIndexer
and Pending.ImplementIndexer methods.
(Indexer.Define): Also define the PropertyBuilder if we're
implementing an interface indexer and this is neither an explicit
interface implementation nor do the IndexerName match the one in
the interface.
* pending.cs (TypeAndMethods): Added `MethodInfo [] need_proxy'.
If a method is defined here, then we always need to create a proxy
for it. This is used when implementing interface indexers.
(Pending.IsInterfaceIndexer): New public method.
(Pending.ImplementIndexer): New public method.
(Pending.InterfaceMethod): Added `MethodInfo need_proxy' argument.
This is used when implementing interface indexers to define a proxy
if necessary.
(Pending.VerifyPendingMethods): Look in the `need_proxy' array and
define a proxy if necessary.
* interface.cs (Interface.IndexerName): New public variable.
(Interface.PopulateIndexer): Set the IndexerName.
(Interface.DefineIndexers): New private method. Populate all the
indexers and make sure their IndexerNames match.
* typemanager.cs (IndexerPropertyName): Added support for interface
indexers.
svn path=/trunk/mcs/; revision=6033
* class/library.make: Oops, the deps weren't right -- touching a .cs
file didn't cause the libraries to be rebuilt.
svn path=/trunk/mcs/; revision=6029
* Control.cs:
(SaveViewState): save state even when control is not visible.
(SaveViewStateRecursive):
(LoadViewStateRecursive): made internal.
svn path=/trunk/mcs/; revision=6017
* codegen.cs (EmitContext.HasReturnLabel): New public variable.
(EmitContext.EmitTopBlock): Always mark the ReturnLabel and emit a
ret if HasReturnLabel.
(EmitContext.TryCatchLevel, LoopBeginTryCatchLevel): New public
variables.
* statement.cs (Do.Emit, While.Emit, For.Emit, Foreach.Emit): Save
and set the ec.LoopBeginTryCatchLevel.
(Try.Emit): Increment the ec.TryCatchLevel while emitting the block.
(Continue.Emit): If the ec.LoopBeginTryCatchLevel is smaller than
the current ec.TryCatchLevel, the branch goes out of an exception
block. In this case, we need to use Leave and not Br.
svn path=/trunk/mcs/; revision=6014
* System.Web.Services.build:
Added reference to new System.EnterpriseServices.dll
which is required for System.Web.Services.WebMethodAttribute
svn path=/trunk/mcs/; revision=6011
* WebMethodAttribute.cs:
Remove comments around TransactionOption bits
because I added that enum.
* WebServiceAttribute.cs:
* WebServiceBindingAttribute.cs:
Added "sealed" to protection level, which I missed
before.
svn path=/trunk/mcs/; revision=6010
* System.EnterpriseServices: New namespace created
to provide enum needed by Web Services
* System.EnterpriseServices.build: New file
* list: New file
svn path=/trunk/mcs/; revision=6007
* verify-1.cs: New test. The verify-XXX.cs tests must be
compiled and then verified - either with `pedump --verify code'
or with PEverify.
svn path=/trunk/mcs/; revision=6005
* statement.cs (Try.Emit): Emit an explicit ret after the end of the
block unless the block does not always return or it is contained in
another try { ... } catch { ... } block. Fixes bug #26506.
Added verify-1.cs to the test suite.
svn path=/trunk/mcs/; revision=6004
* daemon-messages.c: #include <sys/types.h> and <sys/sockets.h> -
these are needed for sendmsg() and also for struct msghdr (at
least on Solaris). Solaris still won't build because struct msghdr
doesn't have msg_flags, msg_control, or msg_controllen members.
(CMSG_SPACE): Define for systems that don't have it.
(CMSG_LEN): Same.
svn path=/trunk/mono/; revision=6002
* appdomain.c (ves_icall_System_Reflection_Assembly_LoadFrom): Use
mono_get_exception_file_not_found now.
* exception.c (mono_exception_from_name_two_strings): New version
that will call a constructor with two string arguments.
(mono_get_exception_file_not_found): New helper routine, used to
report file-not-found errors.
2002-07-21 Miguel de Icaza <[email protected]>
* exception.c (arch_handle_exception): Memory leak fix.
svn path=/trunk/mono/; revision=6001
* statement.cs (Switch.TableSwitchEmit): If we don't have a default,
then we do not always return. Fixes bug #24985.
svn path=/trunk/mcs/; revision=5999
* Page.cs: improved event raising to allow client postback for a wider
variety of actions (clicking an hyperlink, ...).
svn path=/trunk/mcs/; revision=5997
* expression.cs (Invocation.OverloadedResolve): Do the BetterFunction()
lookup on a per-class level; ie. walk up the class hierarchy until we
found at least one applicable method, then choose the best among them.
Fixes bug #24463 and test-29.cs.
svn path=/trunk/mcs/; revision=5994
* typemanager.cs (TypeManager.ArrayContainsMethod): Don't check the
return types of the methods. The return type is not part of the
signature and we must not check it to make the `new' modifier work.
Fixes bug bug #27999, also added test-147.cs.
(TypeManager.TypeToCoreType): Added TypeManager.type_type.
* expression.cs (Invocation.DoResolve): Call TypeManager.TypeToCoreType()
on the method's return type.
svn path=/trunk/mcs/; revision=5992
* makefile.gnu: Disable debugging, there's already the mcs-mono2.exe
target in the makefile for this. The makefile.gnu is primarily intended
for end-users who don't want to debug the compiler.
svn path=/trunk/mcs/; revision=5988
* assign.cs: Make this work if the rightmost source is a constant and
we need to do an implicit type conversion. Also adding a few more tests
to test-38.cs which should have caught this.
svn path=/trunk/mcs/; revision=5987
* daemon-messages.c: #include <sys/types.h> and <sys/sockets.h> -
these are needed for sendmsg() and also for struct msghdr (at
least on Solaris). Solaris still won't build because struct msghdr
doesn't have msg_flags, msg_control, or msg_controllen members.
svn path=/trunk/mono/; revision=5983
* test-38.cs: This test now passes with MCS. Added a few more
test cases to it.
* test-52.cs: The order of the elements returned by
`IDictionary.Keys' is unspecified.
* makefile: The following tests fail under linux and have been
moved to TEST_NOPASS: 45, 53, 91, 106, 107, 122, 132, 133.
(test-compiler-mono): Compile all the TEST_NOPASS tests, but
don't run them.
svn path=/trunk/mcs/; revision=5980
* assign.cs: Improved the Assign class so it can now handle embedded
assignments (X = Y = Z = something). As a side-effect this'll now also
consume less local variables. test-38.cs now passes with MCS, added
a few new test cases to that test.
svn path=/trunk/mcs/; revision=5979
* README.tests: Added (empty) list of all the test cases.
When you add any test cases, please add them to this file.
* test-146.cs: Added test for bug #27977 which is now fixed.
svn path=/trunk/mcs/; revision=5969
* class/library.make: Put $(MONO_PATH_PREFIX) in front of the MONO_PATH.
* class/*/makefile.gnu: Set MONO_PATH_PREFIX=../lib:
svn path=/trunk/mcs/; revision=5963
* Process.cs: Implement file handle redirection
2002-07-20 Dick Porter <[email protected]>
* MonoIO.cs: Added icall to CreatePipe
2002-07-20 Dick Porter <[email protected]>
* MonoIO.cs: Cut down copy of corlib/System.IO/MonoIO.cs, so it
can be used from the System assembly but still not be exposed to
users.
svn path=/trunk/mcs/; revision=5961
* System.Web.UI/AttributeCollection.cs:
(Add): handle 'style' through styleCollection.
* System.Web.UI/CssStyleCollection.cs:
(fillStyle): renamed to FillStyle and made it internal.
* System.Web.UI/Page.cs:
(GetViewStateString): fixed, broken after other recent changes.
(ProcessPostData): allow a second try for postback data after OnLoad.
(ProcessRequest): clear controls collection, removed call to
UnloadRecursive.
* System.Web.UI.HtmlControls/HtmlControl.cs: the attributes must use
ViewState as its StateBag, if not style values are lost between
postbacks.
* System.Web.UI.WebControls/TextBox.cs: default for Wrap is true.
(OnPreRender): don't save Text if there are no listeners on TextChanged.
svn path=/trunk/mcs/; revision=5954
* makefile.gnu: Added makefile for self-hosting compile on GNU/Linux.
Don't add this to the top-level makefile.gnu, this must be run after
everything is compiled.
svn path=/trunk/mcs/; revision=5952
* System.Web.UI/Control.cs: uncommented Dispose.
* System.Web.UI/Page.cs:
(DeterminePostBackMode): more checkings.
(GetPostBackClientHyperLink): implemented.
(GetPostBackEventReference): added some comments with the HTML that MS
generates for that.
(ProcessRequest): fixed processing order. The page is unloaded after
a request and regenerated from view state on subsequents posts.
* System.Web.UI.WebControls/DropDownList.cs:
(ToolTip): fixed.
* System.Web.UI.WebControls/ListItem.cs:
(LoadViewState): fixed.
* System.Web.UI.WebControls/ListItemCollection.cs:
(TrackViewState): use items instead of 'this' in foreach.
* System.Web.UI.WebControls/Style.cs:
(LoadViewState): more checking of parameters.
* System.Web.UI.WebControls/WebControl.cs: implemented LoadViewState
and SaveViewState.
svn path=/trunk/mcs/; revision=5945
* configure.in, Makefile.am, mono.pc.in: add a mono.pc file for use
with pkg-config.
* */Makefile.am: makefile overhaul to create a shared libmono library.
* */*.h: do not include config.h in headers that should be installed.
svn path=/trunk/mono/; revision=5937
* x86.brg: correctly align valuetype arguments on the stack
* jit.c (mono_analyze_stack): do not compute frame size here.
* x86.brg: use macros to avoid code duplication for CALL opcodes,
compute frame size in x86.brg
svn path=/trunk/mono/; revision=5929
Added the super-cool set of makefiles from Peter Williams which run on
GNU/Linux without NAnt. I named them `makefile.gnu' and not `GNUmakefile'
since this won't break the windows build.
To compile stuff on GNU/Linux, just do a `make -f makefile.gnu'.
* mcs-tool, */makefile.gnu, class/library.make: New files.
svn path=/trunk/mcs/; revision=5920
* expression.cs (Invocation.EmitParams): Use TypeManager.LookupType(),
not Type.GetType() to lookup the array type. This is needed when
we're constructing an array of a user-defined type.
(ArrayAccess.EmitDynamicInitializers): Only emit the Ldelema for
single-dimensional arrays, but also for single-dimensial arrays of
type decimal.
svn path=/trunk/mcs/; revision=5917
* expression.cs (New.DoEmit): Create a new LocalTemporary each time
this function is called, it's not allowed to share LocalBuilders
among ILGenerators.
svn path=/trunk/mcs/; revision=5916
* ILGenerator.cs (Emit (OpCode, LocalBuilder)): Throw an exception
when trying to emit a local that was defined in a different ILGenerator.
* LocalBuilder.cs (LocalBuilder): Added `ILGenetator' argument to
the constructor.
svn path=/trunk/mcs/; revision=5914
2002-07-15 Miguel de Icaza <[email protected]>
* expression.cs (MemberAccess.DoResolve): Do not reuse the field
`expr' for the temporary result, as that will fail if we do
multiple resolves on the same expression.
2002-07-05 Miguel de Icaza <[email protected]>
* ecore.cs (SimpleNameResolve): Use ec.DeclSpace instead of
ec.TypeContainer for looking up aliases.
* class.cs (TypeContainer): Remove LookupAlias from here.
* decl.cs (DeclSpace); Move here.
2002-07-01 Miguel de Icaza <[email protected]>
* class.cs (FindMembers): Only call filter if the constructor
bulider is not null.
Also handle delegates in `NestedTypes' now. Now we will perform
type lookups using the standard resolution process. This also
fixes a bug.
* decl.cs (DeclSpace.ResolveType): New type resolution routine.
This uses Expressions (the limited kind that can be parsed by the
tree) instead of strings.
* expression.cs (ComposedCast.ToString): Implement, used to flag
errors since now we have to render expressions.
(ArrayCreation): Kill FormElementType. Use ComposedCasts in
FormArrayType.
* ecore.cs (SimpleName.ToString): ditto.
* cs-parser.jay: Instead of using strings to assemble types, use
Expressions to assemble the type (using SimpleName, ComposedCast,
MemberAccess). This should fix the type lookups in declarations,
because we were using a different code path for this.
* statement.cs (Block.Resolve): Continue processing statements
even when there is an error.
svn path=/trunk/mcs/; revision=5898
* x86.brg (ARG_OBJ): allow zero sized ARG_OBJ
* marshal.c (mono_marshal_get_native_wrapper): we an now return value types
svn path=/trunk/mono/; revision=5895
* Color.cs: implemented SystemColors and NamedColors properties that
are used by ColorConverter, removed public constructor, use
SystemColors, and misc. fixes to make it behave as MS (ToString,
parsing names, FromKnownColor,...).
* ColorConverter.cs: use NamedColors and SystemColors from Color when
trying to get the color from its name.
* SystemColors.cs: new file.
svn path=/trunk/mcs/; revision=5888
* ConvertTest.cs: Commented out line 456 which contains a non-printable
character which mcs does not like. See also bug #27655.
svn path=/trunk/mcs/; revision=5880
* const.cs (Const.LookupConstantValue): Add support for constant
`unchecked' and `checked' expressions.
Also adding test case test-140.cs for this.
svn path=/trunk/mcs/; revision=5875
* statement.cs (Foreach.GetEnumeratorFilter): When compiling corlib,
check whether mi.ReturnType implements the IEnumerator interface; the
`==' and the IsAssignableFrom() will fail in this situation.
svn path=/trunk/mcs/; revision=5872
* Control.cs: fixed related to ViewState. Added RemovedControl.
* ControlCollection.cs: notify owner of control removal.
* CssStyleCollection.cs: almost rewritten to make it render the style
attribute after changes to it.
* Page.cs: follow the guidelines in 'Control execution lifecycle'.
Removed Xml code.
* StateBag.cs: don't use IDictionary.GetEnumerator on the
HybridDictionary: it makes the program give an InvalidCastException at
runtime. Why?
svn path=/trunk/mcs/; revision=5863
* Color.cs: changed static properties to use FromArgbNamed. Also
modified the program included in comments that get the values for
static properties.
(FromArgbNamed): build named colors.
(FromKnownColor): fixed.
(FromName): use a hash to look up colors by name.
(FillColorNames): create the hash of colors.
(Equals): compare values and name.
(ToString): improved.
* ColorTranslator.cs: implemented ToHtml.
svn path=/trunk/mcs/; revision=5831
* Iterator.cs:
- rename UnionIterator to MergedIterator,
- create new UnionIterator to implment uniqueness for '|' operator
- fix position bug in ArrayListIterator.Clone()
* Expression.cs: use new UnionIterator constructor syntax
svn path=/trunk/mcs/; revision=5817
* io.c: Removed bogus console_flush() method, that was just cut
and pasted from file_flush when I separated the two handle types.
svn path=/trunk/mono/; revision=5815
(mono_marshal_get_delegate_end_invoke):
(mono_marshal_get_delegate_invoke): generate a special name for
those methods (including the signature) and associate them whith
the delegate class.
svn path=/trunk/mono/; revision=5813
* AllTests.cs: New file.
* System.Configuration.Install/AllTests.cs: New file.
* System.Configuration.Install/ChangeLog: New file.
* System.Configuration.Install_test.build: modified randomly until it
works.
Fixes 'make test'.
svn path=/trunk/mcs/; revision=5805
* expression.cs (ParameterReference.AddressOf): Patch from Paolo
Molaro: when we are a ref, the value already contains a pointer
value, do not take the address of it.
svn path=/trunk/mcs/; revision=5801
* HttpResponse.cs: quick&dirty hack to make redirection work. Should
be out of there once we have SimpleWorkerRequest.
svn path=/trunk/mcs/; revision=5794
* FontUnit.cs: use a hashtable for mapping size name to value.
* HyperLink.cs: fixed a bug and a typo.
* Unit.cs: some fixes to internal constructor.
svn path=/trunk/mcs/; revision=5790
* ListControl.cs: fixed a couple of range checks.
* WebControl.cs: MS lies! Not all WebControls must be rendered inside
an HtmlForm (p.e., Label).
svn path=/trunk/mcs/; revision=5785
* reflection.[ch]:
(mono_reflection_type_from_name): now it has a MonoImage parameter
which is used as the default image to search the type in. If the image
is NULL or getting the type from it fails, it defaults to corlib.
* icall.c: changed 1 call to mono_reflection_type_from_name to match
new parameter.
svn path=/trunk/mono/; revision=5780
Currently the only class I've seen that belongs here is
System.Configuration.Install.UninstallAction, but there are sure to be more.
Set up NAnt build files to build System.Configuration.Install.Dll, Test cases.
svn path=/trunk/mcs/; revision=5778
* ecore.cs: fix for valuetype static readonly fields: when
initializing them, we need their address, not the address of a copy.
svn path=/trunk/mcs/; revision=5765
* String.cs: make ToLower (culture) and ToUpper (culture) use the
default ToLower and ToUpper and don't throw NotImplemented.
svn path=/trunk/mcs/; revision=5760
* TypeBuilder.cs: better IsValueType.
Sat Jul 13 15:09:01 CEST 2002 Paolo Molaro <[email protected]>
* Type.cs: make GettTypeCode an icall. Test implementation of
GetMember().
svn path=/trunk/mcs/; revision=5755
* expression.cs (ArrayCreation.EmitArrayArguments): use
Conv.Ovf.U4 for unsigned and Conv.Ovf.I4 for signed.
(ArrayAccess.LoadArrayAndArguments): Use Conv_Ovf_I and
Conv_Ovf_I_Un for the array arguments. Even if C# allows longs as
array indexes, the runtime actually forbids them.
* ecore.cs (ExpressionToArrayArgument): Move the conversion code
for array arguments here.
svn path=/trunk/mcs/; revision=5748
* System.Web.build: removed some more excludes.
* System.Web.Hosting/AppDomainFactory.cs:
* System.Web.Hosting/IAppDomainFactory.cs:
* System.Web.Hosting/IISAPIRuntime.cs:
* System.Web.Hosting/ISAPIRuntime.cs: make them compile.
* System.Web.UI/AttributeCollection.cs: added CssStyleCollection.
* System.Web.UI/CssStyleCollection.cs: use a StateBag instead of a
Hashtable. Added internal .ctor.
* System.Web.UI/DataBinding.cs: propertyType is a Type. Implemented
Equals and GetHashCode.
* System.Web.UI/DataBoundLiteralControl.cs:
(LoadViewState):
(SaveViewState): implemented.
* System.Web.UI/Page.cs: FileDependencies is not public.
* System.Web.UI/ParseChildrenAttribute.cs: give a value to Default.
(GetHashCode):
(Equals):
(IsDefaultAttribute): implemented.
svn path=/trunk/mcs/; revision=5743
* statement.cs (Unsafe): Ok, so I got the semantics wrong.
Statements *are* currently doing part of their resolution during
Emit.
Expressions do always resolve during resolve, but statements are
svn path=/trunk/mcs/; revision=5738
* acconfig.h:
* configure.in: Check the size of sockaddr_un.sun_path
2002-07-12 Dick Porter <[email protected]>
* wapi-private.h:
* handles.c:
* daemon.c: Use size of sockaddr_un.sun_path from config.h
svn path=/trunk/mono/; revision=5732
* processes.c (CreateProcess): Send stdin, stdout and stderr
handles if the startup info doesnt specify new ones
* io.c (GetStdHandle): Return the same handle when the same
standard handle is requested
* handles.c: Pass file descriptors when forking
* daemon.c: Use supplied file descriptors when forking a new
process
* daemon-messages.h:
* daemon-messages.c: Pass stdin, stdout and stderr file
descriptors to the daemon (used when forking)
svn path=/trunk/mono/; revision=5731
* debug-helpers.c (mono_method_full_name): print the type of the
runtime wrapper
* metadata.c (mono_signature_hash): better hash algorithm
svn path=/trunk/mono/; revision=5726
* metadata.c (mono_signature_hash): a hash function for signatures
* marshal.c (mono_marshal_get_delegate_invoke): cache methods by signature
svn path=/trunk/mono/; revision=5724
* debug-helpers.c (mono_method_full_name): this can now generate
method names with signatures
* marshal.c (mono_marshal_get_managed_wrapper): bug fix: unmanaged
method dont have this pointers.
svn path=/trunk/mono/; revision=5721
* driver.cs (CSCParseOption): Finish the /r: and /lib: support.
(LoadAssembly): Do not add the dll if it is already specified
svn path=/trunk/mcs/; revision=5714
* expression.cs (ArrayAccess.EmitLoadOpcode): I was using the
wrong opcode for loading bytes and bools (ldelem.i1 instead of
ldelem.u1) and using the opposite for sbytes.
This fixes Digger, and we can finally run it.
svn path=/trunk/mcs/; revision=5711
* libgda.cs: added new libgda functions and some enumerations.
* OleDbParameter.cs (IsNullable): removed explicit implementation
of the set method for this property.
* OleDbDataAdapter.cs (MissingMappingAction): implemented.
(MissingSchemaAction): implemented.
svn path=/trunk/mcs/; revision=5707
* ArrayTest.cs: Disable a test for now. Bugzilla'd this one.
* ConvertTest.cs: Make message unique for this mistaken duplicate.
svn path=/trunk/mcs/; revision=5696
* driver.cs (UnixParseOption): Move the option parsing here.
(CSCParseOption): Implement CSC-like parsing of options.
We now support both modes of operation, the old Unix way, and the
new CSC-like way. This should help those who wanted to make cross
platform makefiles.
The only thing broken is that /r:, /reference: and /lib: are not
implemented, because I want to make those have the same semantics
as the CSC compiler has, and kill once and for all the confussion
around this. Will be doing this tomorrow.
svn path=/trunk/mcs/; revision=5694
* statement.cs (Unsafe.Resolve): The state is checked during
resolve, not emit, so we have to set the flags for IsUnsfe here.
svn path=/trunk/mcs/; revision=5693
* expression.cs (MemberAccess.ResolveMemberAccess): Since we can
not catch the Error_ObjectRefRequired in SimpleName (as it is
possible to have a class/instance variable name that later gets
deambiguated), we have to check this here.
svn path=/trunk/mcs/; revision=5690
* class.cs (TypeContainer.GetFieldFromEvent): Move away from here,
make static and put into Expression.
(Event.Define): Register the private field of the event with the
TypeManager so that GetFieldFromEvent can get at it.
(TypeManager.RegisterPrivateFieldOfEvent): Implement to
keep track of the private field associated with an event which
has no accessors.
(TypeManager.GetPrivateFieldOfEvent): Implement to get at the
private field.
* ecore.cs (GetFieldFromEvent): RE-write to use the above methods.
svn path=/trunk/mcs/; revision=5687
* Activator.cs: some more intermediate results checking in
in CreateInstance and CreateInstanceFrom and use GetConstructor and
Invoke only with Type [] until the other overloaded versions work.
svn path=/trunk/mcs/; revision=5685
* shared.c:
* handles.c:
* daemon.c: Lots of documentation, some added error checking, and
code readability improvements.
* daemon-messages.h: Add the Error request type to improve error
checking.
* daemon-messages.c: Do a bit more error checking on send() and
recv(), and log errors with a higher severity level.
svn path=/trunk/mono/; revision=5683
* expression.cs (Binary.EmitBranchable): this routine emits the
Binary expression in a branchable context. This basically means:
we need to branch somewhere, not just get the value on the stack.
This works together with Statement.EmitBoolExpression.
* statement.cs (Statement.EmitBoolExpression): Use
EmitBranchable.
svn path=/trunk/mcs/; revision=5681
* statement.cs (Break): We can be breaking out of a Try/Catch
controlled section (foreach might have an implicit try/catch
clause), so we need to use Leave instead of Br.
svn path=/trunk/mcs/; revision=5672
2002-07-09 Miguel de Icaza <[email protected]>
* ecore.cs (FieldExpr.AddressOf): Fix for test-139 (augmented
now). If the instace expression supports IMemoryLocation, we use
the AddressOf method from the IMemoryLocation to extract the
address instead of emitting the instance.
This showed up with `This', as we were emitting the instance
always (Emit) instead of the Address of This. Particularly
interesting when This is a value type, as we dont want the Emit
effect (which was to load the object).
svn path=/trunk/mcs/; revision=5671
* statement.cs (Checked): Set the CheckedState during the resolve
process too, as the ConvCast operations track the checked state on
the resolve process, and not emit.
* cs-parser.jay (namespace_member_declaration): Flag that we have
found a declaration when we do. This is used to flag error 1529
svn path=/trunk/mcs/; revision=5662
* reflection.c (method_encode_code): use non-translated values to
compute finally_start, this fixes exception handling on ppc, yay!
svn path=/trunk/mono/; revision=5656
* reflection.c, reflection.h: handle full assembly info in type name.
Handle Type arguments when loading custom attributes.
* icall.c: updated to use new mono_reflection_type_from_name () method.
svn path=/trunk/mono/; revision=5648
* CheckBoxList.cs:
* DataGrid.cs:
* DataList.cs:
* DropDownList.cs:
* ListBox.cs:
* PlaceHolder.cs:
* RadioButton.cs:
* RadioButtonList.cs:
* TableRow.cs:
* WebControl.cs:
* Xml.cs: forgot to add using System.ComponentModel.
* BaseValidator.cs: use explicitly
System.ComponentModel.AttributeCollection as there is another class
with the same name under System.Web.UI.
svn path=/trunk/mcs/; revision=5642
* merged attribute.cs, class.cs, codegen.cs, ecore.cs, expression.cs,
modifiers.cs, namespace.cs, report.cs, rootcontext.cs, statement.cs and typemanager.cs from mcs/mcs, to resync
* changed driver.cs to follow mcs lead on error/warning counting and reporting
svn path=/trunk/mcs/; revision=5637
* Form.ControlCollection.cs
* ImageList.ImageCollection.cs
* LinkArea.LinkAreaConverter.cs
* deleted files. contents now in main class files
svn path=/trunk/mcs/; revision=5635
* XmlTextWriter: In WriteStartElement, if namespace is null and
prefix is null|empty do not write out xmlns=""
* XmlWriter: WriteStartElement calls the virtual method with null
argument instead of empty string.
svn path=/trunk/mcs/; revision=5617
* debug.c (mono_debug_add_method): Fix a bug in the `begin_scope' and
`end_scope' calculations when linear scan register allocation is disabled.
svn path=/trunk/mono/; revision=5612
* System.Web.UI/Page.cs:
(GetViewStateString): new function to give the server access to the
generated view state string.
(Validate): d'oh!
svn path=/trunk/mcs/; revision=5604
* list: updated. Currently mcs cannot compile System.Web because it
cannot find NameObjectCollectionBase.KeysCollection.
* System.Web.build: don't display unused event nor always default value
warnings by now.
* System.Web.UI/Control.cs:
(SaveViewstateRecursive): implemented.
(SaveViewState): fixed.
(IParserAccessor.AddParsedSubObject): don't use 'this'.
* System.Web.UI/Page.cs: added code to save view state to an xml file.
It's not being used right now.
* System.Web.UI.WebControls/AdRotator.cs:
(LoadAdFile): make the dictionary null after every iteration.
* System.Web.UI.WebControls/LinkButton.cs:
* System.Web.UI.WebControls/ListControl.cs:
* System.Web.UI.WebControls/ListItem.cs: fixed warnings.
svn path=/trunk/mcs/; revision=5603
* HtmlContainerControl.cs:
(CreateControlCollection): added. All containers must have a non-empty
control collection.
svn path=/trunk/mcs/; revision=5595
* BitVector32.cs: Implemented 'set' section indexer. Check for
overly large sections. Factored out some helper methods.
svn path=/trunk/mcs/; revision=5593
* XmlSeriailizer: Serialize method can serialize XmlSchema perfectly.
* XmlSerializerNamespaces: Reverted to use of a single Hashtable.
svn path=/trunk/mcs/; revision=5589
* cs-tokenizer.cs (define): We also have to track locally the
defines. AllDefines is just used for the Conditional Attribute,
but we also need the local defines for the current source code.
svn path=/trunk/mcs/; revision=5588
* threads.c (mono_thread_cleanup): Nasty kludge to get this to
compile on mingw. This will cause mingw builds to not wait for
subthreads to terminate after the main thread does. I've lodged a
bug with the mingw developers for them to wrap OpenThread().
svn path=/trunk/mono/; revision=5586
* DateTimeTest.cs: Made tests pass on ms.net. Well, they pass in
timezone JST. Need to test in others. Maybe I'll fly over to GMT
and see how they work. Supposed to be eaiser there.
svn path=/trunk/mcs/; revision=5585
* statement.cs (While, For, Do): These loops can exit through a
Break statement, use this information to tell whether the
statement is the last piece of code.
(Break): Flag that we break.
* codegen.cs (EmitContexts): New `Breaks' state variable.
svn path=/trunk/mcs/; revision=5583
* threads.c: Store thread IDs instead of handles, because
GetCurrentThread() returns a pseudohandle and therefore stores
useless values. mono_thread_cleanup() continues checking the
array of threads until it is empty, to cope with subthreads
spawning new threads after the main thread has finished.
* profiler.h:
* profiler.c:
* profiler-private.h: Pass the thread ID to thread profiler
functions, instead of a handle
2002-07-03 Dick Porter <[email protected]>
* threads.h:
* threads.c: Implement OpenThread(). Define access-control values
for thread handles.
* wapi.h:
* processes.h:
* access.h:
* Makefile.am: Added access.h, to hold shared access-control
definitions
svn path=/trunk/mono/; revision=5578
* ConvertTest.cs: Make the test generate the overflow exceptions on
mono on Linux.
* DecimalTest2.cs: Report exception thrown during subtraction.
svn path=/trunk/mcs/; revision=5576
* Decimal.cs (Divide): Short cut the case where the dividend is 0 (and
the divisor is not) and avoid the icall, which seems to have a bug.
svn path=/trunk/mcs/; revision=5575
* AssemblyBuilder.cs (corlib_object_type, corlib_value_type): Moved
these fields up after the last entry in MonoReflectionAssemblyBuilder
in reflection.h.
* TypeBuilder.cs (IsValueTypeImpl): Use the AssemblyBuilder's
`corlib_value_type' instead of `typeof (System.ValueType)'.
(DefineNestedType): Use the AssemblyBuilder's `corlib_object_type'
instead of `typeof (object)'.
svn path=/trunk/mcs/; revision=5573
* Double.cs (CompareTo): Correctly handle the case where the instance
is NaN. Also return 0 if the values are equal.
svn path=/trunk/mcs/; revision=5572
* class.cs (TypeContainer.MethodModifiersValid): Allow override
modifiers in method declarations in structs. Otherwise, you won't
be able to override things like Object.Equals().
svn path=/trunk/mcs/; revision=5570
* Application.cs
* ControlEventArgs.cs
* Form.cs
* merged changes made by miguel and hestilow in gkt# to system.windows.forms
svn path=/trunk/mcs/; revision=5568
* Button.cs
* ButtonBase.cs
* ContainerControl.cs
* Label.cs
* ScrollableControl.cs
* Copied changes made by miguel and hestilow in gkt# to system.windows.forms
svn path=/trunk/mcs/; revision=5566
* class.cs (Method, Property, Indexer): Do not allow the public
modifier to be used in explicit interface implementations.
(TypeContainer.MethodModifiersValid): Catch virtual, abstract and
override modifiers in method declarations in structs
2002-07-02 Andrew Birkett <[email protected]>
* cs-tokenizer.cs (adjust_int, adjust_real): Do not abort on
integer or real overflow, report an error
svn path=/trunk/mcs/; revision=5564
* Checked in for Richard Baumann ([email protected])
* StatusBar.cs
* StatusBarDrawItemEventArgs.cs
* StatusBarPanel.cs
* StatusBarPanelClickEventArgs.cs
* SystemInformation.cs
* Minor changes by Rich B
svn path=/trunk/mcs/; revision=5561
* class.cs (Method, Property, Indexer): Do not allow the public
modifier to be used in explicit interface implementations.
svn path=/trunk/mcs/; revision=5557
* typemanager.cs (TypeManager.InitCoreTypes): When compiling
corlib, dynamically call AssemblyBuilder.SetCorlibTypeBuilders()
to tell the runtime about our newly created System.Object and
System.ValueType types.
svn path=/trunk/mcs/; revision=5556
* AssemblyBuilder.cs (corlib_object_type, corlib_value_type): New
internal fields. When compiling corlib, they point to the newly
created System.Object and System.ValueType types.
(SetCorlibTypeBuilders): New public function. This will be
dynamically called from MCS when compiling corlib.
* TypeBuilder.cs (DefineInitializedData): Use the AssemblyBuilder's
`corlib_value_type' as parent type instead of `typeof (System.ValueType)'
to make it work when compiling corlib.
* ModuleBuilder.cs (assemblyb): Made this field internal, not private.
svn path=/trunk/mcs/; revision=5555
* expression.cs (ArrayAccess.EmitStoreOpcode): If the type is a
ValueType, call TypeManager.TypeToCoreType() on it.
(Invocations.EmitParams): Call TypeManager.TypeToCoreType() on
the OpCodes.Newarr argument.
svn path=/trunk/mcs/; revision=5551
* expression.cs (Invocation.EmitCall): When compiling corlib,
replace all calls to the system's System.Array type to calls to
the newly created one.
* typemanager.cs (TypeManager.InitCodeHelpers): Added a few more
System.Array methods.
(TypeManager.InitCoreTypes): When compiling corlib, get the methods
from the system's System.Array type which must be replaced.
svn path=/trunk/mcs/; revision=5548
* get.c (dis_stringify_object_with_class): New static function to
stringify an object when we already have its class.
(dis_stringify_object): Get the class and call dis_stringify_object().
(get_method): Call dis_stringify_object_with_class() since we already
have the object's class.
svn path=/trunk/mono/; revision=5546
* typemanager.cs: load unverifiable_code_ctor so we can build
corlib using the correct type. Avoid using GetTypeCode() with
TypeBuilders.
* rootcontext.cs: uses TypeManager.unverifiable_code_ctor and
TypeManager.object_type to allow building corlib.
svn path=/trunk/mcs/; revision=5545
* SortedList.cs: Constructors should use the capacity given regardless
how small. After a Clear() the Capacit should be 16. Since a Dictionary
might be used in the constructor, make sure we trap exceptions thrown
by the Comparer, like in Add().
svn path=/trunk/mcs/; revision=5538
* handles.c (shared_init): Make a second attempt to contact the
daemon if the shared memory attach succeeds, but the connect()
fails. (This copes with the daemon crashing without cleaning up
the shared memory.)
* Makefile.am:
* daemon-private.h:
* daemon.c:
* shared.c (_wapi_shm_attach): Don't exec() anything when we fork
the daemon, it's now built into the library.
svn path=/trunk/mono/; revision=5535
* class.cs: when we build structs without fields that implement
interfaces, we need to add the interfaces separately, since there is
no API to both set the size and add the interfaces at type creation
time.
svn path=/trunk/mcs/; revision=5514
* SortedListTest.cs: Fix some expected/actual value parameters in the
Assert()'s. Disable a part of test until the class is finished.
svn path=/trunk/mcs/; revision=5505
* Double.cs (CompareTo): Just see which is bigger. Don't use the
subtraction trick, it doesn't work when the values have a diference of
less than one.
* Single.cs (CompareTo): same
svn path=/trunk/mcs/; revision=5503
MCS now compiles corlib on GNU/Linux :-)
* attribute.cs (Attribute.ApplyAttributes): Treat Accessors like Method,
ie. check for MethodImplOptions.InternalCall.
* class.cs (TypeContainer.DefineType): When compiling corlib, both parent
and TypeManager.attribute_type are null, so we must explicitly check
whether parent is not null to find out whether it's an attribute type.
(Property.Emit): Always call Attribute.ApplyAttributes() on the GetBuilder
and SetBuilder, not only if the property is neither abstract nor external.
This is necessary to set the MethodImplOptions on the accessor methods.
(Indexer.Emit): Call Attribute.ApplyAttributes() on the GetBuilder and
SetBuilder, see Property.Emit().
* rootcontext.cs (RootContext.PopulateTypes): When compiling corlib, don't
populate "System.Object", "System.ValueType" and "System.Attribute" since
they've already been populated from BootCorlib_PopulateCoreTypes().
svn path=/trunk/mcs/; revision=5501
* System.Web/HttpContext.cs:
(Session): return null instead of throwing an exception.
* System.Web/HttpRequest.cs:
(HttpMethod): return RequestType if not set.
(GetRawContent): return QueryString if we don't have a
HttpWorkerRequest.
* System.Web/HttpUtility.cs: fixed Decode and Encode.
* System.Web.UI/Control.cs: reimplemented FindControls.
* System.Web.UI/Page.cs:
(.ctor): set the page for this control.
(IsPostBack): return valid value.
(DeterminePostBackMode): finished.
(OnFormRender): render __VIEWSTATE (uses GetTypeHashCode()).
(ProcessPostData): implemented. Raises change and postback events.
(ProcessRequest): changed to support reuse of the instance.
(RegisterRequiresPostBack): implemented.
* System.Web.UI/ValidatorCollection.cs: implemented all methods.
* System.Web.UI.WebControls/Button.cs:
(.ctor): fixed to render the correct tag.
(IPostBAckEventHandler.RaisePostBackEvent): fixed.
svn path=/trunk/mcs/; revision=5499
* AsymmetricAlgorithm.cs: Removed a duplicate semicolon to make it compile.
* *.cs (Create (string)): Don't call the non-args version of Create(),
duplicate their contents here. [FIXME: I was too lazy to hunt this bug down
in mcs and it was the last one which prevented us from compiling corlib.]
svn path=/trunk/mcs/; revision=5498
* ecore.cs (Expression.ImplicitReferenceConversionExists): If expr
is the NullLiteral, we also need to make sure that target_type is not
an enum type.
svn path=/trunk/mcs/; revision=5497
* rootcontext.cs (RootContext.ResolveCore): We must initialize
`TypeManager.multicast_delegate_type' and `TypeManager.delegate_type'
before calling BootstrapCorlib_ResolveDelegate ().
svn path=/trunk/mcs/; revision=5496
* MonoDwarfFileWriter.cs, MonoSymbolWriter.cs: Put all TAG_subprogram's into their
corresponding struct/class declarations.
svn path=/trunk/mcs/; revision=5493
* debug.c (debug_generate_method_lines, mono_debug_add_method): Make methods
start on the nop instruction to make single-stepping into an already-JITed
method work.
svn path=/trunk/mono/; revision=5492
* MonoDwarfFileWriter.cs: Use a TAG_string_type when we're using GNU extensions.
Make static struct/class fields actually work. Provide a TAG_typedef for struct's
and classes.
svn path=/trunk/mcs/; revision=5489
* statement.cs (Switch.TableSwitchEmit): Make this work with empty
switch blocks which contain nothing but a default clause.
svn path=/trunk/mcs/; revision=5482
* threads.c: Store the handle in both the parent thread and in the
subthread, to minimise the time between starting a new thread and
storing its ID.
svn path=/trunk/mono/; revision=5479
* ecore.cs (PropertyExpr.PropertyExpr): Call
TypeManager.TypeToCoreType() on the `pi.PropertyType'.
* typemanager.cs (TypeManager.TypeToCoreType): Return if the type
is already a TypeBuilder.
svn path=/trunk/mcs/; revision=5476
* UIntPtr.cs (UIntPtr.Zero): Use an explicit `u' suffix in the
constructor argument. [FIXME: The implicit conversion to an
unsigned integer doesn't work with mcs.]
svn path=/trunk/mcs/; revision=5474
* ecore.cs (Expression.SimpleNameResolve): If the expression is a
non-static PropertyExpr, set its InstanceExpression. This makes
the `ICollection.Count' property work in System/Array.cs.
svn path=/trunk/mcs/; revision=5473
* ecore.cs (Expression.SimpleNameResolve): If the expression is a
non-static PropertyExpr, set its InstanceExpression. This makes
the `ICollection.Count' property work in System/Array.cs.
svn path=/trunk/mcs/; revision=5472
* debug.c (mono_debug_source_location_from_address): Added
`guint32 *line_number' argument. If it's not NULL, store the line number
there and return the file name without the line number.
* exception.c (ves_icall_get_trace): Fill in `sf->filename' and `sf->line'.
(ves_icall_get_frame_info): Likewise.
svn path=/trunk/mono/; revision=5469
* debug-symfile.c (mono_debug_find_source_location): Added
`guint32 *line_number' argument. If it's not NULL, store the line number
there and return the file name without the line number.
svn path=/trunk/mono/; revision=5468
* DecimalFormatter.cs: Removed MSTEST stuff, use `System',
not `S = System'. This file now compiles with mcs.
* String.cs: Removed the already ifdef-outed __arglist Concat function
to make it compile with mcs.
svn path=/trunk/mcs/; revision=5466
* Process.cs: Process forking and waiting, and some support functions
* ProcessStartInfo.cs: Implemented the bits needed for basic
Process forking
* ProcessModule.cs: Implemented
* ProcessModuleCollection.cs: Mostly implemented
* FileVersionInfo.cs: Implemented
svn path=/trunk/mcs/; revision=5451
* handles.c:
* handles-private.h:
* daemon-messages.h:
* daemon.c: Process forking and handle data management
* processes.h:
* process-private.h:
* processes.c: Process forking and other support functions
2002-06-25 Dick Porter <[email protected]>
* icall.c:
* process.h:
* process.c: Process forking and other support functions
svn path=/trunk/mono/; revision=5450
* versioninfo.h: PE resource decoding
* unicode.c (_wapi_unicode_to_utf8): g_utf16_to_utf8 doesnt need
to be told the string length
* io.c: Removed the ACTUALLY_DO_UNICODE option. Fixed some leaks.
Moved _wapi_time_t_to_filetime and the WapiFileTime typedef to
timefuncs.c
2002-06-25 Dick Porter <[email protected]>
* image.c (do_mono_image_open): Set ref_count to 1, so that bad
things dont happen when the image is closed.
(mono_image_lookup_resource): Walk the resource section looking
for a particular entry
* cil-coff.h: PE resource section decoding
svn path=/trunk/mono/; revision=5449
* assembly.h:
* assembly.c:
(mono_assembly_foreach): Accessor functions to walk the list of
loaded assemblies
(mono_assembly_set_main):
(mono_assembly_get_main): Process methods need to know which
assembly is the "main" one
* object.c (mono_runtime_run_main): Record the main assembly
* debug-helpers.c: Fix typo
2002-06-25 Dick Porter <[email protected]>
* interp.c (ves_exec): Pass the assembly to mono_runtime_run_main
2002-06-25 Dick Porter <[email protected]>
* jit.c (mono_jit_exec): Pass the assembly to mono_runtime_run_main
svn path=/trunk/mono/; revision=5446
* Queue.cs (CopyTo): Fix logic for copying the circular array.
(Enqueue): Use actual length of array to determine when to grow
(QueueEnumerator) Fixed Current to use array length, not capacity, and
fixed off-by-one errror in MoveNext().
svn path=/trunk/mcs/; revision=5444
* System.Web.UI/Page.cs: implemented more properties using information
we already have in Context.
(OnFormRender):
(OnFormPostRender):
(VerifyRenderingInServerForm): implemented.
* System.Web.UI.HtmlControls/HtmlForm.cs:
(RenderChildren): use OnFormRender and OnFormPostRender.
* System.Web.UI.WebControls/WebControl.cs:
(AddAttributesToRender): call Page.VerifyRenderingInServerForm. All
WebControl derived classes should be rendered inside a HtmlForm.
svn path=/trunk/mcs/; revision=5434
* Socket.cs: Make SetSocketOption cope with boolean values (they
are passed as objects, not the ints the runtime was expecting)
svn path=/trunk/mcs/; revision=5427
* merged attribute.cs, class.cs, ecore.cs, rootcontext.cs, support.cs and typemanager.cs from mcs/mcs, to resync
* makefile makes csc reference a copy of Mono.GetOptions.dll (mbas.sln now compiles to mbas dir instead of mbas/bin/Debug)
svn path=/trunk/mcs/; revision=5422
* class.cs (TypeContainer.AddMethod, TypeContainer.AddIndexer,
TypeContainer.AddOperator): At the front of the list put the
explicit implementations, so they get resolved/defined first.
svn path=/trunk/mcs/; revision=5416
* Page.cs: changed InvokeEventMethod to use a GetMethod that works with
out runtime. Renamed Page_Init and Page_Load.
After this, we can load a dll and render HTML in linux.
svn path=/trunk/mcs/; revision=5414
* class.cs (TypeContainer.VerifyImplements): Verifies that a given
interface type is implemented by this TypeContainer. Used during
explicit interface implementation.
(Property.Define, Indexer.Define, Method.Define): Validate that
the given interface in the explicit implementation is one of the
base classes for the containing type.
Also if we are explicitly implementing an interface, but there is
no match in the pending implementation table, report an error.
svn path=/trunk/mcs/; revision=5407
* class.cs (Property.Define): Only define the property if we are
not explicitly implementing a property from an interface. Use the
correct name also for those properties (the same CSC uses,
although that is really not needed).
(Property.Emit): Do not emit attributes for explicitly implemented
properties, as there is no TypeBuilder.
(Indexer.Emit): ditto.
Hiding then means that we do not really *implement* a pending
implementation, which makes code fail.
svn path=/trunk/mcs/; revision=5403
* debug.c (mono_debug_source_location_from_address): Small fix, an
unsigned number can never be smaller than zero, make that check
actually work.
svn path=/trunk/mono/; revision=5398
* ecore.cs (Expression.Constantify): Call TypeManager.TypeToCoreType() on
the return value of Object.GetType(). [FIXME: we need to do this whenever
we get a type back from the reflection library].
svn path=/trunk/mcs/; revision=5397
* XmlQualifiedName: Name and Namespaces are never null. If null is passed
to the constructor, set them to empty strings.
Fixed the Operators.
svn path=/trunk/mcs/; revision=5392
* StringBuilder.cs: implemented AppendFormat methods using
String.Format. Thanks Paolo!
This makes xsp generate correct C# output in linux :-). I still need
to do more testing, though.
svn path=/trunk/mcs/; revision=5388
* class.cs (TypeContainer.GetClassBases): Use ExpandInterfaces on
the interface types found.
* interface.cs (Interface.GetInterfaceBases): Use ExpandInterfaces on the
interface types found.
* typemanager.cs (GetInterfaces): Make this routine returns alll
the interfaces and work around the lame differences between
System.Type and System.Reflection.Emit.TypeBuilder in the results
result for GetInterfaces.
(ExpandInterfaces): Given an array of interface types, expand and
eliminate repeated ocurrences of an interface. This expands in
context like: IA; IB : IA; IC : IA, IB; the interface "IC" to
be IA, IB, IC.
svn path=/trunk/mcs/; revision=5381
* typemanager.cs (TypeManager.TypeToCoreType): New function. When compiling corlib
and called with one of the core types, return the corresponding typebuilder for
that type.
* expression.cs (ArrayAccess.DoResolve): Call TypeManager.TypeToCoreType() on the
element type.
svn path=/trunk/mcs/; revision=5379
* StringConverter.cs: stubbed out.
* TypeConverter.cs: stubbed the rest out and added some implementation.
Five errors left when compiling System.Web in linux.
svn path=/trunk/mcs/; revision=5375
* interface.cs (Interface.PopulateIndexer): When creating the setter, we need to
add the "value" parameter to the parameter list.
* statement.cs (Fixed.Emit): Pass the return value of the child block's Emit()
to our caller.
svn path=/trunk/mcs/; revision=5372
* expression.cs (ArrayCreation.ExpressionToArrayArgument): Convert
the argument to an int, uint, long or ulong, per the spec. Also
catch negative constants in array creation.
svn path=/trunk/mcs/; revision=5366
* reflection.c: add all the custom attrs at the end to ensure the
ctors have been properly initialized when the attributes are defined
in the current assembly.
svn path=/trunk/mono/; revision=5361
* System.Web.UI/Control.cs:
(AddedControl): new function that is called whenever a control is
added to a collection of controls in a container. It sets the defaults
except for Page.
* System.Web.UI/ControlCollection.cs: call AddedControl in Add/AddAt.
* System.Web.UI/DataBoundLiteralControl.cs: implemented constructor,
Text, Render, SetStaticString and SetDataBoundString.
* System.Web.UI/Page.cs: removed SetDefaults.
* System.Web.UI.WebControls/Repeater.cs: implemented
CreateControlHierarchy. Fixed some event processing methods.
svn path=/trunk/mcs/; revision=5357
* System.Web.UI/CompiledTemplateBuilder.cs: new file. Used in the
code generated by xsp.
* System.Web.UI/Control.cs:
(BindingContainer): implemented.
(EnsureChildControls): avoid stack overflow.
* System.Web.UI/DataBinder.cs: implemented Eval and PropertyValue.
* System.Web.UI.WebControls/Repeater.cs:
(Controls):
(OnDataBinding): fixed stack overflow.
Still need more work in Repeater.cs to make it render.
svn path=/trunk/mcs/; revision=5345
* modifiers.cs: produce correct field attributes for protected
internal. Easy fix so miguel can work on ther harder stuff:-)
svn path=/trunk/mcs/; revision=5342
* verify.c: add check for System.Exception
* exception.c (ves_icall_get_trace): new method to get the stack
trace from a Exception.
* jit.c (check_inlining): do not inline functions containing
calls to stack query functions
svn path=/trunk/mono/; revision=5337
* checked in for Stefan Warnke ([email protected])
* UICuesEventArgs.cs
* UpDownBase.cs
* Better comments and formatting
svn path=/trunk/mcs/; revision=5332
* pending.cs: New file. Move the code from class.cs here.
Support clearning the pending flag for all methods (when not doing
explicit interface implementation).
svn path=/trunk/mcs/; revision=5331
* Added in a bunch of missing tests. Need to fix some of these
since we get more failures against ms.net. But let's not be shy.
svn path=/trunk/mcs/; revision=5327
* System.Web.UI/HtmlTextWriter.cs: fixed style attributes rendering
(almost the same bug as in regular attributes).
* System.Web.UI.WebControls/ListBox.cs: mono-stylized.
(AddAttributesToRender): also call parent class method.
svn path=/trunk/mcs/; revision=5326
* ArgumentException.cs: Use the message given in the constructor when
accessing the Message property. Thanks to Dietmar for the help with
"base".
svn path=/trunk/mcs/; revision=5323
* XmlSchema: The Read and Write methods are no more [MonoTODO] :)
* XmlSchemaAppInfo: Xml Markup is now being read.
* XmlSchemaDocumentation: Xml Markup is now being read.
* All: Unhandled attributes are being handled properly.
* All: Reordered the properties in all cs files to match with MS
Implementation. This was required since the order is importatnt
for the XmlSerializer.
svn path=/trunk/mcs/; revision=5322
* FileIOPermissionTest.cs: Use Unix paths if it looks like we are not
running the tests on Windows. Need to expand this when we run the
tests on Mac OS's (and others I suppose). Also consolidated some
redundant code.
svn path=/trunk/mcs/; revision=5321
* typemanager.cs (GetConstructor): Use DeclaredOnly to look the
constructor in the type, instead of any constructor in the type
hierarchy. Thanks to Paolo for finding this bug (it showed up as
a bug in the Mono runtime when applying the params attribute).
svn path=/trunk/mcs/; revision=5314
* get.h, get.c: get_marshal_info() to get a marshal descriptor.
* main.c, dump.h, dump.c: added code to dump the FieldMarshl table.
svn path=/trunk/mono/; revision=5310
* reflection.h, reflection.c: change order of nested type emission
to avoid table corruption. The NestedTypes table is sorted.
* icall.c: change order of GetConstructor results to workaround mcs bug.
svn path=/trunk/mono/; revision=5298
* Panel.cs: fixed stack overflow.
* Unit.cs: use Int32.Parse and Single.Parse instead of Int32Converter
and SingleConverter.
svn path=/trunk/mcs/; revision=5293
* TraceImpl.cs: Setting IndentLevel, IndentSize should change the
corresponding properties on all current TraceListeners.
Also, to answer the FIXME message: Yes, the properties in TraceListener
need to be [ThreadStatic] as well.
* TraceListenerCollection.cs: When adding a TraceListener, the TraceListener
should have its properties set to the current TraceImpl property values.
* TraceListener.cs: Make indentSize, lndentLevel [ThreadStatic].
svn path=/trunk/mcs/; revision=5291
* merged assign.cs, attribute.cs, enum.cs and namespace.cs from mcs/mcs, to resync
* namespace.cs needed some fixing, because CSharpParser isn�t available
svn path=/trunk/mcs/; revision=5287
* oops merged expression.cs from mcs/mcs is breaking my make
* driver.cs, assemblyinfo.cs wasn�t ready for prime time (offending lines were commented out)
svn path=/trunk/mcs/; revision=5285
* cs-parser.jay (enum_member_declaration): Pass in the attributes
attached.
* enum.cs (AddEnumMember): Add support to store the attributes associated
with each member too.
* attribute.cs (CheckAttribute, ApplyAttributes): Update to handle
field builders too - this takes care of the enum member case.
svn path=/trunk/mcs/; revision=5271
this patch in the first place ;-)
* typemanager.cs (MethodFlags): returns the method flags
(Obsolete/ShouldIgnore) that control warning emission and whether
the invocation should be made, or ignored.
* expression.cs (Invocation.Emit): Remove previous hack, we should
not do this on matching a base type, we should do this based on an attribute
Only emit calls to System.Diagnostics.Debug and
System.Diagnostics.Trace if the TRACE and DEBUG defines are passed
on the command line.
svn path=/trunk/mcs/; revision=5266
* RadioButton.cs: mono-stylized and some little fixes.
* TextBox.cs: mono-stylized.
(MaxLength): fixed typo.
(AddAttributesToRender): don't render the text between the tags for
SingleLine, use value attribute for it. Don't render the text for
Password.
(OnPreRender): don't throw exception and call base.OnPreRender.
(Render): for MultiLine, render the text between the opening and
closing tags encoded as HTML.
svn path=/trunk/mcs/; revision=5263
* ImageButton.cs:
(AddAttributesToRender): fixer another stack overflow.
* WebControl.cs:
(TagName): modified to use TagKey instead of tagKey as the property
can be overriden.
svn path=/trunk/mcs/; revision=5258
* System.Web.UI/Page.cs:
(Validators): if the collection is null, create one.
(GetPostBackEventReference 2): don't throw exception.
(GetPostBackClientEvent): return a string with containing the method
name, the control name and the argument.
* System.Web.UI.WebControls/LinkButton.cs: mono-stylized.
(AddParsedSubObject):
(RenderControls): little fixes.
* System.Web.UI.WebControls/WebControl.cs:
(AddAttributesToRender): fixed usage of IEnumerator.
svn path=/trunk/mcs/; revision=5256
* daemon.c:
* daemon-messages.c: Handle SIGPIPE in a non-stupid way in the
daemon, if MSG_NOSIGNAL isn't available. Thanks to Jaroslaw
Kowalski <[email protected]> for pointing out the bogosity.
svn path=/trunk/mono/; revision=5255
* System.Web.UI/Page.cs: SetPage is now called SetDefaults and also
sets a default ID for controls that don't have one yet.
* System.Web.UI.WebControls/Literal.cs: beautified.
svn path=/trunk/mcs/; revision=5252
* configure.in: added checks for MSG_NOSIGNAL
2002-06-10 Jaroslaw Kowalski <[email protected]>
* sockets.c, daemon-messages.c: Prevent SIGPIPE from being raised
when writing to a closed socket.
svn path=/trunk/mono/; revision=5251
* Label.cs: beautified and fixed a couple of 'classic' bugs.
* WebControl.cs: use Span as default tag when no other provided in
constructor. That is what MS renders.
svn path=/trunk/mcs/; revision=5249
* ConvertTest.cs: Punt bug in DateTime.Parse() over to that test.
* DateTimeTest.cs: Add test for date format of yyyy-mm-dd which mono
doesn't handle automagically like ms.net does. This smells like a
LAMESPEC, however.
svn path=/trunk/mcs/; revision=5248
* Marshal.c: stubbed out all the methods and filled in some
implementation.
* BINDPTR.cs, ComMemberType.cs, DESCKIND.cs, DISPPARAMS.cs,
EXCEPINFO.cs, INVOKEKIND.cs, TYPEKIND.cs, UCOMTypeInfo.cs,
UCOMTypeLib.cs: enums, interfaces and structs needed in Marshal class.
svn path=/trunk/mcs/; revision=5245
* System.Web.UI/Page.cs:
(GetPostBackClient):
(RegisterRequiresPostBack): don't throw NotImplementedException to
keep going.
(ProcessRequest): set the current page as the Page property for *all*
the controls, not just the direct children of the page.
* System.Web.UI.WebControls/Button.cs:
(AddAttributesToRender): fixed (classic) stack overflow.
* System.Web.UI.WebControls/CheckBox.cs: mono-stylized.
(AutoPostBack): fixed stack overflow.
(Render): fixed alignment issues. Also set the For attribute always
for the label.
svn path=/trunk/mcs/; revision=5239
* checked in for Stefan Warnke ([email protected])
* UICuesEventArgs.cs
* UpDownBase.cs
* Just stubbs
* New files, work in progress, needs cleanup and mono style
svn path=/trunk/mcs/; revision=5235
* System.Web.Caching/CacheDependency.cs: fixed a couple of typos and
don't throw NotImplementedException in constructors.
* System.Web.UI/Control.cs:
(MapPathSecure): until security is implemented, return the same path
received as argument.
(RenderControl): call OnPreRender before rendering the control. So
AdRotator can read its configuration file.Is there any other place
where this should be done?
* System.Web.UI/HtmlTextWriter.cs:
(AddAttribute): fixed. Now it really stores attributes.
(RenderBeginTag): fixed a couple of bugs (little ones but hard to find).
* System.Web.UI.WebControls/AdRotator.cs: GetData does not work as it
should, but now it returns useful data (only the first ad in the file).
Set the NavigateUrl property in the hyperlink if available.
* System.Web.UI.WebControls/HyperLink.cs: fixed constructor and a
couple of stack overflows.
* System.Web.UI.WebControls/Image.cs: added an attribute and fixed
stack overflow.
* System.Web.UI.WebControls/WebControl.cs:
(RenderBeginTag): fixed.
(TagName): don't call Enum.IsDefined twice.
svn path=/trunk/mcs/; revision=5230
* StringReaderTest.cs: Regression test for a bug that we had were
ReadLine() was not returning null when the string ended with newline.
svn path=/trunk/mcs/; revision=5227
* reflection.h, reflection.c: mono_image_get_memberref_token()
takes a type instead of a class, now. Added
mono_image_get_array_token() to create tokens for the special
multi-dim array methods.
svn path=/trunk/mono/; revision=5223
* DateTimeTest.cs: Remove RunTest override and put culture manipulation
in SetUp and TearDown like the other tests.
* TimeZoneTest.cs: Same.
svn path=/trunk/mcs/; revision=5218
* Convert.cs (ToType): Added null field in conversionTable to avoid
IndexOutOfRangeException. Changed what exceptions we throw to match
the spec.
svn path=/trunk/mcs/; revision=5211
* Int64.cs (Parse): Added unique strings to the messages where we throw
a FormatException. Needed these to debug, so just left them in since
they might be useful later. Fixed Currency parsing where we weren't
looking at CurrencyDecimalSeparator, etc.
svn path=/trunk/mcs/; revision=5204
* Int64Test.cs: Set the culture to en-US for testing.
* MathTest.cs: mono is more precise in Log2, so change test to compare
values within a slightly larger margin of error.
svn path=/trunk/mcs/; revision=5202
* XmlSchemaReader: A Wrapper class around XmlReader with customized
methods to suit reading a schema.
* General: Implemented Read() method for the schema. There are only
a few minor bugs remaining.
svn path=/trunk/mcs/; revision=5200
* interface.cs (Interface.PopulateIndexer): Add the indexer's
PropertyBuilder to the `property_builders' list.
* expression.cs (Indexers.GetIndexersForTypeOrInterface): New private method.
(Indexers.GetIndexersForType): Call GetIndexersForTypeOrInterface() on the
`lookup_type' and all its interfaces. Unfortunately, Type.FindMembers() won't
find any indexers which are inherited from an interface.
svn path=/trunk/mcs/; revision=5199
* XmlConstruct.cs : New Internal class with Helper methods for
Checking XmlConstructs
* XmlConvert.cs: Implemented most of the methods
svn path=/trunk/mcs/; revision=5198
* DecimalTest.cs: More culture indepenence. Fixes the problems we were
having with tests failing against MS.NET.
* Int64Test.cs: Same plus some formatting fixes.
* RandomTest.cs: Split Assert into two to figure out which one part is
failing.
svn path=/trunk/mcs/; revision=5197
* System.Web.UI/ControlCollection.cs:
(AddAt): if index is -1 behave as a plain Add.
* System.Web.UI.HtmlControls/HtmlSelect.cs:
(RenderAttributes): new -> override and fixes stack overflow.
(RenderChildren): only 1 option can be selected at any given time
except when Multiple property is true.
(Multiple): the attribute value is either "true" or "false", not
"multiple".
* System.Web.UI.HtmlControls/HtmlTable.cs:
(Add):
(AddAt): allow HtmlTableRow as children, not HtmlTableCell.
* System.Web.UI.HtmlControls/HtmlTableCell.cs:
(RenderEndTag): new -> override.
* System.Web.UI.HtmlControls/HtmlTableRow.cs:
(RenderChildren): fixed another stack overflow.
(RenderEndTag): new -> override.
* System.Web.UI.HtmlControls/HtmlTextArea.cs:
(RenderAttributes): new -> override.
svn path=/trunk/mcs/; revision=5193
* debug.c (mono_debug_open_image): For MONO_DEBUG_FORMAT_DWARF2_PLUS,
the `%s-debug.s' file is in the same directory than its assembly.
svn path=/trunk/mono/; revision=5190
* const.cs (Const.LookupConstantValue): Convert `Expr' to a literal of
the same type as the constant if necessary. There's also a test-130.cs
for this.
* enum.cs (Enum.ChangeEnumType): Moved to typemanager.cs and made public.
* typemanager.cs (TypeManager.ChangeType): Previously known as
Enum.ChangeEnumType().
svn path=/trunk/mcs/; revision=5189
if yy pattern then year values >= 30 are in 20th century
rfc1123 pattern is always in GMT, therefor useutc must be false
made GetNow() internal static so it can be called from TimeZone.
svn path=/trunk/mcs/; revision=5183
* mono-mutex.c (mono_once): New convenience function for my
previous fix.
* handles.c:
* error.c:
* critical-sections.c:
* threads.c:
* sockets.c:
* semaphores.c:
* processes.c:
* mutexes.c:
* io.c:
* events.c:
* atomic.c: Use mono_once() rather than pthread_once().
2002-06-06 Jeffrey Stedfast <[email protected]>
* handles.c (_wapi_handle_new): pthread_once() is not atomic, so
if multiple threads all try to call _wapi_handle_new() before the
shared data has been initialized, it is possible that we could get
into a condition where shared_init() is being executed and later
threads will pass by pthread_once() due to the fact that it has
already been called and so therefor will attempt to use the shared
data before it has been completely initialized. If we instead use
a standard mutex locking mechanism around shared_init(), we can
avoid the situation entirely. By wrapping the mutex locking in a
check to see if we've already initialized the data, we can even
avoid wasting resources by having to lock/unlock the mutex in any
later calls (the only time we'd have to worry about
locking/unlocking is the initial race to call shared_init() at
startup).
svn path=/trunk/mono/; revision=5177
* class.cs (Accessor): Hold attributes information so we can pass
it along.
* cs-parser.jay (get_accessor_declaration, set_accessor_declaration):
Modify to pass in attributes attached to the methods.
(add_accessor_declaration, remove_accessor_declaration): Ditto.
* attribute.cs (ApplyAttributes, CheckAttribute): Update accordingly
to handle the Accessor kind :-)
* class.cs (Property.Emit, Event.Emit): Apply attributes to the accessors
svn path=/trunk/mcs/; revision=5176
* enum.cs (Enum.LookupEnumValue): Don't report an error if the
name can't be found in the `defined_names' - the caller will do a
MemberLookup in this case and thus find methods in System.Enum
such as Enum.IsDefined().
svn path=/trunk/mcs/; revision=5172
* Enum.cs (IsDefined): `value' may be of the enum's type itself, it
doesn't necessarily need to be of the enum's underlying type.
svn path=/trunk/mcs/; revision=5170
* enum.cs (Enum.ChangeEnumType): This is a custom version of
Convert.ChangeType() which works with TypeBuilder created types.
(Enum.LookupEnumValue, Enum.Define): Use it here.
* class.cs (TypeContainer.RegisterRequiredImplementations): Added
`TypeBuilder.BaseType != null' check.
(TypeContainer.FindMembers): Only lookup parent members if we
actually have a parent.
(Method.EmitDestructor): Added `ec.ContainerType.BaseType != null' check.
(ConstructorInitializer.Resolve): Likewise.
* interface.cs (Interface.FindMembers): Added
`TypeBuilder.BaseType != null' check.
* rootcontext.cs (RootContext.ResolveCore): Added
"System.Runtime.CompilerServices.IndexerNameAttribute" to
classes_second_stage.
* typemanager.cs (TypeManager.InitCoreTypes): Don't initialize
debug_type and trace_type when compiling with --nostdlib.
svn path=/trunk/mcs/; revision=5169
* class.cs (TypeContainer): Added `have_nonstatic_fields' field.
(AddField): Set it to true when adding a non-static field.
(DefineType): Use `have_nonstatic_fields' to find out whether we
have non-static fields, not `Fields != null'.
svn path=/trunk/mcs/; revision=5162
* reflection.c (mono_image_get_type_info): Only add a class layout entry
if we actually have a `tb->class_size' (ie. it's not UnspecifiedTypeSize).
svn path=/trunk/mono/; revision=5161
* TypeBuilder.cs (TypeBuilder): Added `PackingSize packing_size' and
`int type_size' fields to the constructor.
(DefineNestedType): Pass packing_size and type_size to the constructor.
* ModuleBuilder.cs (DefineType): Pass the packing_size and type_size
fields to the TypeBuilder's constructor.
svn path=/trunk/mcs/; revision=5160
* TypeBuilder.cs (DefineNestedType): There is no overload for this
method which takes 5 args in the specs, removed it.
svn path=/trunk/mcs/; revision=5158
* HtmlInputHidden.cs: fixed constructor.
* HtmlInputRadioButton.cs:
(RenderAttributes): fixed stack overflow.
(Name):
(RenderedName): new -> override.
(Value): new property.
* HtmlInputText.cs:
(RenderAttributes): fixed the same kind of stack overflow and make
string comparison case insensitive.
svn path=/trunk/mcs/; revision=5155
* cil-coff.h, icall.c, image.c, reflection.c, reflection.h:
rewrote the PE/COFF writing code (our programs are understood by the
ms runtime, now).
svn path=/trunk/mono/; revision=5148
* HtmlForm.cs: fixed name of Enctype property and render enctype
enctype attribute.
* HtmlInputControl.cs: tag type is "input", not "type".
svn path=/trunk/mcs/; revision=5145
* System.Web.UI/Page.cs: for each child control to render, assign
Control.Page. Probably also needed in HtmlContainerControl derived
classes.
* System.Web.UI.HtmlControls/HtmlControl.cs: Render contents moved to
new RenderBeginTag method, defined in MS docs.
* System.Web.UI.HtmlControls/HtmlForm.cs: Render output when no IE
browser.
* System.Web.UI.HtmlControls/HtmlInputButton.cs: added constructor
without arguments. Xsp used it, though now it always use the other
.ctor.
* System.Web.UI.HtmlControls/HtmlInputControl.cs: cosmetic changes and
implemented set_Name.
svn path=/trunk/mcs/; revision=5135
* System.Web.UI/AttributeCollection.cs: don't need a Hastable. StateBag
now works fine and takes care of the details.
* System.Web.UI/Control.cs: added HasChildren property.
* System.Web.UI/StateBag.cs: fixed a couple of nasty bugs.
* System.Web.UI.HtmlControls/HtmlButton.cs: RenderAttributes is an
override, not new.
* System.Web.UI.HtmlControls/HtmlContainerControl.cs: use the new
Render method in HtmlControl.
* System.Web.UI.HtmlControls/HtmlControl.cs: added Render method to
render the tag and its attributes. Works for container and
non-containers.
* System.Web.UI.HtmlControls/HtmlImage.cs: RenderAttributes don't need
to be new. Implemented Height property.
svn path=/trunk/mcs/; revision=5130
* System.Web.build: added /debug flag. I wanna see line numbers in
exceptions thrown.
* System.Web.UI/Page.cs: run OnInit, OnLoad y PreRender before
rendering the page. Invoke Page_Init and/or Page_Load if the user
supplied them (though this should depend on AutoEventWireUp attribute
of Page directive)
* System.Web.UI.HtmlControls/HtmlContainerControl.cs: some formatting
and use HttpUtility.Encode instead of Page.Server to encode InnerText.
svn path=/trunk/mcs/; revision=5126
`/mcs/class/System/System.Diagnostics'.
I didn't know all the information for all the classes (e.g. % complete,
current maintainer), so this list isn't complete, but it should be easier to
update this information now that it's present.
svn path=/trunk/mono/; revision=5121
* copied methods MakeName and CheckDef from mcs\cs-parser.jay to GenericParser.cs
where they are inherited by mb-parser.jay/cs
* put some code on the Module rule in mb-parser.jay to at least generate a class in the assembly,
if I jump over the entry-point check code, while debugging
svn path=/trunk/mcs/; revision=5119
* System.Web.UI/Control.cs: don't throw exception in ControlID. By now,
it returns ID.
* System.Web.UI/Page.cs:
(ProcessRequest): implemented.
* System.Web.UI.HtmlControls/HtmlAnchor.cs:
(RenderAttributes): new -> override and fixed little bug that made
it cause an stack overflow.
* System.Web.UI.HtmlControls/HtmlContainerControl.cs: reformatted and
added tag and its attributes rendering.
* System.Web.UI.HtmlControls/HtmlGenericControl.cs: removed TagName,
which is already in HtmlControl.
* System.Web.UI.HtmlControls/HtmlTable.cs:
(RenderEndTag): new -> override.
svn path=/trunk/mcs/; revision=5117
* System.Web/HttpRequest.cs: implemented Browser property.
* System.Web.UI/Page.cs: finished stubbing out. Implemented some
methods.
* System.Web.SessionState/HttpSessionState.cs:
* System.Web.SessionState/SessionStateModule.cs: new files with some
implementation and the rest stubbed.
svn path=/trunk/mcs/; revision=5116
* Double.cs (Parse): Recognize the group separator string, but still we
don't check the format for the proper number of digits between
separators. Also throw OverflowException when we get Pos or Neg
Infinity from runtime.
svn path=/trunk/mcs/; revision=5109
* System.Web/HttpBrowserCapabilities.cs: stubbed out.
* System.Web.Configuration/HttpCapabilitiesBase.cs: New file.
* System.Web.Security/DefaultAuthenticationEventArgs.cs: New file.
* System.Web.SessionState/IReadOnlySessionState.cs: New file.
* System.Web.SessionState/IRequiresSessionState.cs: New file.
* System.Web.SessionState/SessionStateMode.cs: New file.
* System.Web.UI/Page.cs:
(FileDependencies): now is public public.
(EnableViewStateMAC): uncommented and made protected.
(GetTypeHashCode): added method.
* System.Web.UI.HtmlControls/HtmlForm.cs:
(RenderAttributes): changed new by override.
(Name): allow setting the property.
* System.Web.UI.WebControls/WebControl.cs: added attributes
PersistChildrenAttribute and ParseChildrenAttribute.
* System.Web.Configuration/ChangeLog:
* System.Web.Configuration/HttpCapabilitiesBase.cs:
* System.Web.Security/ChangeLog:
* System.Web.Security/DefaultAuthenticationEventArgs.cs:
* System.Web.SessionState/ChangeLog:
* System.Web.SessionState/IReadOnlySessionState.cs:
* System.Web.SessionState/IRequiresSessionState.cs:
* System.Web.SessionState/SessionStateMode.cs: new files.
Now we are able to compile some files generated by xsp with our
System.Web classes.
svn path=/trunk/mcs/; revision=5102
* Convert.cs (ToInt16): use Convert.ToInt16 (int) instead of a direct
cast from an int so that we throw OverFlowException correctly.
(ToInt64): Use a new 64bit version of ConvertToBase.
(ConvertToBase): Add checks for overflow (checks Int32.MinValue
and Int32.MaxValue).
(ConvertFromBase64): New 64-bit version of ConvertFromBase.
svn path=/trunk/mcs/; revision=5089
* Convert.cs (DBNull): Point it to DBNull.Value.
(IsDBNull): Instead of checking typecodes, just check to see if
it's the same as the DBNull field.
svn path=/trunk/mcs/; revision=5086
* ConvertTest.cs: Use en-US culture since that's all we support in our
corlib right now. Change constants accordingly. Also added a bunch of
try-catch blocks to show which Assert is failing.
svn path=/trunk/mcs/; revision=5085
Char.cs (Parse): Simplify the Exception handling.
* Convert.cs (ToDecimal): Remove call to Math.Round () when
converting from a float.
svn path=/trunk/mcs/; revision=5083
* libgda.cs: added new libgda API functions.
* OleDbConnection.cs (Provider): implemented.
(BeginTransaction): made it overload IDbConnection methods.
(ChangeDatabase): new stub, needs some work on libgda for being
implemented.
(Clone): new stub.
(Close): implemented.
(CreateCommand): implemented.
(GetOleDbSchemaTable): new stub, until I understand what to do here.
(Open): implemented basic stuff, which is just supporting connection
strings that represent a GDA data source name. More to come.
(InfoMessage, StateChange): added events.
* TestOleDb.cs: test program for System.Data.OleDb.
svn path=/trunk/mcs/; revision=5081
* corlib_test.build: Change the order of the builds. Just makes it a
bit faster for my testing since I need the linux dll.
svn path=/trunk/mcs/; revision=5080
* Makefile.am, mono-config.c, mono-config.h: configuration file
support routines.
* loader.c, loader.h: make Dll mapping configurable at runtime in the
config file. Export methods to insert and lookup mappings.
svn path=/trunk/mono/; revision=5042
* debug.c (mono_debug_address_from_il_offset): New public function.
(mono_debug_add_method): Improved local variable info: correctly handle
variables in registers and their start/end scopes.
svn path=/trunk/mono/; revision=5039
* codegen.cs (InitMonoSymbolWriter): Added `string[] args' argument
to take command line arguments. Use reflection to call the new
custom `Initialize' function on the symbol writer and pass it the
command line arguments.
* driver.cs (--debug-args): New command line argument to pass command
line arguments to the symbol writer.
svn path=/trunk/mcs/; revision=5037
* IMonoSymbolWriter (IMonoSymbolWriter): Added custom `Initialize' method.
* MonoSymbolWriter.cs (Initialize): The ISymbolWriter's `Initialize' method
is no longer supported and throws an exception.
(Initialize (string, string[])): New custom initialization function.
* MonoDwarfFileWriter.cs (DwarfFileWriter): Added `string[] args' argument
to the constructor to pass command line arguments.
* gdb-csharp-support.patch: Updated for GDB 5.2.
svn path=/trunk/mcs/; revision=5036
* ModuleBuilder.cs (ModuleBuilder): The constructor now get's the AssemblyBuilder's
`methods' array as third argument.
(OpenMethod): Use this array to get the method builder rather than using an
interncall for it.
(get_method_builder): Removed this interncall.
svn path=/trunk/mcs/; revision=5031
* AssemblyBuilder.cs (methods): Made this internal and don't
initialize it. It will be initialized by the ModuleBuilder's
GetSymbolWriter() method.
(get_next_table_index): Only store the method in the `methods'
array if it's not null.
* ModuleBuilder.cs (GetSymbolWriter): Initialize the AssemblyBuilder's
`methods' field if necessary and pass it as third argument to the
symbol writer's constructor.
svn path=/trunk/mcs/; revision=5030
* debug-dwarf2.c (dwarf2_write_string): Use "0x%lx" as fprintf() format,
not "%p" which seems to be broken on Windows/mingw32.
svn path=/trunk/mono/; revision=5029
* doc/ado-net: update the ado-net web page on go-mono.com
input parameters support, beginnings of Mono.Data.MySQL
and System.Data.OleDb, updated the sample source code,
and output from a PostgresTest
svn path=/trunk/mono/; revision=5024
* System.Data.SqlClient/SqlConnection.cs: modifed -
start to implement the interfaces properly and
properly doing a Close(), Dispose(), and
releasing resources
* Test/SqlSharpCli.cs: modified -
add support for MySQL in Mono.Data.MySql
and OleDb support in System.Data.OleDb. However,
the OleDb support is commented right now.
When the program starts up, a shorter help menu should
display the most important commands: help and quit
svn path=/trunk/mcs/; revision=5023
* Mono.Data.MySql.build: modified
need to copy Mono.Data.MySql.dll to mcs/class/System.Data/Test
so the SqlSharpCli test program can use MySql too
svn path=/trunk/mcs/; revision=5022
* invoke.cs: lookup P/Invoke method address only when needed.
Thu May 30 14:14:16 CEST 2002 Paolo Molaro <[email protected]>
* interp.c: lookup P/Invoke method addr only when needed.
Thu May 30 14:15:02 CEST 2002 Paolo Molaro <[email protected]>
* metadata.c, metadata.h: added mono_metadata_implmap_from_method()
to lookup the implmap row for a P/Invoke method.
* loader.c: added mono_lookup_pinvoke_call(): we only lookup a
P/Invoke method from the runtime on an as needed basis.
svn path=/trunk/mono/; revision=5020
* Test/TestMySqlInsert.cs: added test
to do an SQL INSERT to insert a row into table.
Works on cygwin compiled using mcs and mono and
runs on mint, but it fails running on mono.
* Mono.Data.MySql/MySqlCommand.cs
* Mono.Data.MySql/TODOAttribute.cs
* Mono.Data.MySql/MySqlConnection.cs: added
* list: added
so can build with mcs/mono on linux
I only tested it on Cygwin though.
To work on linux, the library name in the pinvokes
in MySql.cs will need to be changed.
* Mono.Data.MySql.build: modified
exclude files from build. also copy Mono.Data.MySql.dll
to Mono.Data.MySql so you can build and run Test.cs
* Mono.Data.MySql/MySql.cs: modified
tweaks to compile under mcs/mono and run under mint or mono.
Runs under mint, but not mono. Had to comment out
mysql_thread_begin/mysql_thread_end functions because they refused
to load in mono. Until this is fixed, a memory leak will occur.
Can not retrieve field data from MySQL because the PtrToStructure()
needs to be implemented in System.Runtime.InteropServices.Marshal class.
However, this will be very complicated to do. So, we connect to
MySQL and execute SQL Commands, but we can not do Queries yet.
* Mono.Data.MySql/Test.cs: modified
tweaks to test C# bindings with compiling mcs/mono and
running on mint and mono. Runs on mint, but not mono.
svn path=/trunk/mcs/; revision=5018
* libgda.cs: added static constructor.
(GdaClient): new static property to get the underlying GdaClient
object.
* OleDbConnection.cs: removed GDA initialization, which belongs to
the static 'libgda' class.
svn path=/trunk/mcs/; revision=5011
* assign.cs (DoResolve): Forgot to do the implicit conversion to
the target type for indexers and properties. Thanks to Joe for
catching this.
svn path=/trunk/mcs/; revision=5007
* DecimalTest.cs: Use AssertEquals to get nice error report, and mark
each one with a unique message string so we know which one failed.
svn path=/trunk/mcs/; revision=5003
Check in for Paul Osman <[email protected]>
* Menu.cs
* Menu.MenuItemCollection.cs
* MenuItem.cs
* MessageBox.cs
* MonthCalendar.cs
* Stubbed and commented out
* MonthCalendar.cs has bad extra byte from old skeleton, need new corrected version.
* MonthCalendar.HitTestInfo.cs needs to be incorporated into MonthCalendar.
* Menu.MenuItemCollection.cs needs to be incorporated into Menu.cs.
svn path=/trunk/mcs/; revision=4997
Check in for Paul Osman <[email protected]>
* NumericUpDown.cs
* OpacityConverter.cs
* OpenFileDialog.cs
* OSFeature.cs
* PageSetupDialog.cs
* PaintEventArgs.cs
* MonthCalendar.HitTestInfo.cs
* MouseEventArgs.cs
* NativeWindow.cs
* Stubbed and commented out
* NativeWindow.cs, MonthCalendar.HitTestInfo.cs, MouseEventArgs.cs,
* have bad extra byte from old skeleton, need new corrected version.
* MonthCalendar.HitTestInfo.cs needs to be incorporated into MonthCalendar.
svn path=/trunk/mcs/; revision=4996
* Mono.Data.MySql
* Mono.Data.MySql/Mono.Data.MySql: add directories
for the Mono.Data.MySql assembly and namespace. This
will contain the MySql .NET Data Provider which will use
C# bindings to libMySQL
* Mono.Data.MySql/Test.cs: added file to
test the C# bindings to MySQL
* Mono.Data.MySql/MySql.cs
* Mono.Data.MySql/Field.cs: added files
for the beginnings of C# bindings to MySQL
* Mono.Data.MySql/makefile: added file
to build the MySQL C# bindings on csc/Microsoft.NET
These C# bindings to the MySQL libMySQL.dll were created by
Brad Merrill <[email protected]>
and can be downloaded from
http://www.cybercom.net/~zbrad/DotNet/MySql/
and put into the Mono Class Library under the X11/MIT License
with Brad Merril's permission.
svn path=/trunk/mcs/; revision=4983
* XmlDocumentNavigator.cs: Added file to directory.
* XmlNode.cs (CreateNavigator): Implemented.
(InnerText): Implemented.
* XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
throwing exception.
(Load(XmlReader)): Allow for namespace qualified attributes.
* XmlElement.cs: Implemented GetAttribute(string, string) and both
GetAttributeNode overloads.
(SetAttributeNode(XmlAttribute)): Implemented.
* XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
and RemoveNamedItem(string, string).
* XmlLinkedNode.cs (PreviousSibling): Implemented.
* XmlTextReader.cs: Added code to maintain the order of attributes as
they're parsed. XML doesn't require this but Microsoft's parser does it and
matching them makes testing easier so now we have it, too.
In Test:
* XPathNavigatorTests.cs: Added file to directory.
* AllTests.cs: Added XPathNavigatorTests to suite.
* XmlTextReaderTests.cs: Added test to make sure attributes are ordered
like Microsoft's parser does it.
svn path=/trunk/mcs/; revision=4971
* expression.cs (Invocation.Emit): Only emit calls to
System.Diagnostics.Debug and System.Diagnostics.Trace if the
TRACE and DEBUG defines are passed on the command line.
* rootcontext.cs: Global settings for tracing and debugging.
* cs-tokenizer.cs (define): New utility function to track
defines. Set the global settings for TRACE and DEBUG if found.
svn path=/trunk/mcs/; revision=4966
* jit.c (mono_cfg_new): reserve additional space to store ESP when
calling finally handlers.
* exception.c (arch_get_call_finally): save ESP before calling
finally handler.
svn path=/trunk/mono/; revision=4964
* ArrayList.cs (LastIndexOf): Return -1 if searching for null, also
fix check of parameters sent to make sure we don't search beyond the
beginning of the list.
(ListWrapper): Throw exception if called with null.
We now pass all unit tests.
svn path=/trunk/mcs/; revision=4962
* System.Data.SqlClient/SqlCommand.cs: typo
should be CommandBehavior.KeyInfo
* Test/SqlSharpCli.cs: refactored and added a few more
features.
svn path=/trunk/mcs/; revision=4961
* helpers.c (map_arg_type): move some generic helper function into
this file.
* mono.c (usage): new option --breakonex
* exception.c (arch_exc_is_caught): only return FALSE if really
unhandled.
* jit.c (mono_thread_abort): free jit_tls
svn path=/trunk/mono/; revision=4960
* interface.cs (Populate*): Pass in the TypeContainer as well as
the DeclSpace as parameters so that we can create EmitContexts and
then use that to apply attributes etc.
(PopulateMethod, PopulateEvent, PopulateProperty)
(PopulateIndexer): Apply attributes everywhere.
* attribute.cs (CheckAttribute): Include InterfaceMethod, InterfaceEvent
etc.
(ApplyAttributes): Update accordingly.
We now apply interface attributes for all members too.
svn path=/trunk/mcs/; revision=4950
* System.Data/DataRow.cs
* System.Data.Common/DbDataAdapter.cs: fix to
get Test/TestSqlDataAdapter.cs to work again
* Test/TestSqlDataAdapter.cs: removed comment
about SqlDataReader:NextResult() not being implemented; it
bas been implemented
svn path=/trunk/mcs/; revision=4947
* System.Data/DataRow.cs: modified
support setting of DBNull.Value
using the Item indexer this[DataColumn]
* System.Data.SqlClient/SqlCommand.cs: modified
tweaks to show TODO's for other CommandBehavior.
Set AllowDBNull column to true for IsKey row
in schema DataTable.
* System.Data.SqlClient/SqlConnection.cs: modified
if transaction is in progress when a Close() is called,
do a transaction Rollback.
svn path=/trunk/mcs/; revision=4946
* Test/SqlSharpCli.cs: added file
My new toy. SQL# is a command-line tool to enter
SQL commands and queries using Mono System.Data.
It also serves as a test for Mono System.Data.
* System.Data.SqlClient/SqlCommand.cs: modified
- ExecuteNonQuery(), ExecuteScalar(), and ExecuteReader()
should handle the results from SQL Commands and Queries.
- Internal class SqlResult should not create schema Table
for the result from a SQL Command. Also, set the RecordsRetrieved
property for SqlDataReader.
- Closing the SqlDataReader should Close() the SqlConnection for
a CommandBehavior.CloseConnection.
- Set defaults for SqlResult
* System.Data.SqlClient/SqlConnection.cs: modified -
when SqlDataReader is Close()
should Close() the SqlConnection for
a CommandBehavior.CloseConnection. Changed internal Property
from OpenReader get/set to IsReaderOpen get and created
internal methods OpenReader()/CloseReader() for SqlCommand to call.
SqlConnection needs to be prevented from doing while SqlDataReader
is being used.
* System.Data.SqlClient/SqlDataReader.cs: modified -
call SqlCommand's OpenReader() internal method. get
RecordsRetrieved from SqlResult. set/reset default
values for SqlDataReader.
* Test/PostgresTest.cs
* Test/TestExecuteScalar.cs
* Test/TestSqlDataReader.cs: modified
for the Execute...() methods in SqlCommand
to test SQL Queries and Commands
* Test/System.Data_test.build: modified
exclude new file Test/SqlSharpCli.cs from
test build
svn path=/trunk/mcs/; revision=4944
Wooooohooo!
2002-05-26 Miguel de Icaza <[email protected]>
* class.cs (Indexer.Define); Correctly check if we are explicit
implementation (instead of checking the Name for a ".", we
directly look up if the InterfaceType was specified).
Delay the creation of the PropertyBuilder.
Only create the PropertyBuilder if we are not an explicit
interface implementation. This means that explicit interface
implementation members do not participate in regular function
lookups, and hence fixes another major ambiguity problem in
overload resolution (that was the visible effect).
(DefineMethod): Return whether we are doing an interface
implementation.
svn path=/trunk/mcs/; revision=4941
* typemanager.cs: Temporary hack until we get attributes in
interfaces (Ravi is working on that) and we get IndexerName
support in interfaces.
* interface.cs: Register the indexers as properties.
svn path=/trunk/mcs/; revision=4940
* attribute.cs (Attribute.Resolve): Catch the error, and emit a
warning, I have verified that this is a bug in the .NET runtime
(JavaScript suffers of the same problem).
svn path=/trunk/mcs/; revision=4938
* typemanager.cs (MemberLookup): When looking up members for
interfaces, the parent of an interface is the implicit
System.Object (so we succeed in searches of Object methods in an
interface method invocation. Example: IEnumerable x; x.ToString
())
svn path=/trunk/mcs/; revision=4937
* typemanager.cs (MemberLookup); use the new GetInterfaces
method.
(GetInterfaces): The code used to lookup interfaces for a type is
used in more than one place, factor it here.
svn path=/trunk/mcs/; revision=4932
* attribute.cs (ApplyAttributes): Make this function filter out
the IndexerName attribute (as that attribute in reality is never
applied) and return the string constant for the IndexerName
svn path=/trunk/mcs/; revision=4927
* BUGS.txt: New file to keep track of bugs
* ALL: All classes are initialized exactly as in .NET except
1. inclusion of language attribute in schema
2. ComplexContent's Particle is initialized to null whereas .NET
to some internal implementation. IMO Null is more appropriate
* ALL: Changed the Compile methods to return the count of errors.
* ALL: Complile methods are almost complete. Pass 1453 of 3061 tests.
This number should shoot up if we write a parser to read the
Schema instead of using reflection (which is slower too)
svn path=/trunk/mcs/; revision=4926
handling. Now we should support it (modulo interfaces, which are being
worked on now by Ravi).
2002-05-24 Miguel de Icaza <[email protected]>
* attribute.cs (ApplyAttributes): Make this function filter out
the IndexerName attribute (as that attribute in reality is never
applied) and return the string constant for the IndexerName
attribute.
* class.cs (TypeContainer.Emit): Validate that all the indexers
have the same IndexerName attribute, and if so, set the
DefaultName attribute on the class.
* typemanager.cs: The return value might contain other stuff (not
only methods). For instance, consider a method with an "Item"
property and an Item method.
* class.cs: If there is a problem with the parameter types,
return.
svn path=/trunk/mcs/; revision=4921
* ecore.cs (ImplicitConversionExists): Wrapper function which also
looks at user defined conversion after making a call to
StandardConversionExists - we need this for overload resolution.
* expression.cs : Update accordingly the various method calls.
This fixes 2 bugs filed against implicit user defined conversions
svn path=/trunk/mcs/; revision=4912
* System.Data.Common/DbDataAdapter.cs: remove IDbCommands, except
for get accessors. These should be implemented in derived classes. See
SqlDataAdapter for clues.
* System.Data.SqlClient/SqlDataAdapter.cs: implement IDbDataAdapter
* System.Data.Common/DataAdapter.cs:
* System.Data.Common/DataTableMappingCollection.cs:
* System.Data.Common/DataTableMapping.cs:
* System.Data.Common/DataColumnMappingCollection.cs:
* System.Data.Common/DataColumnMapping.cs:
Properly (I hope!) implement all of the appropriate interfaces
for these classes.
svn path=/trunk/mcs/; revision=4908
* ModuleBuilder.cs (symwriter_define_local): New private variable.
(GetSymbolWriter): Look for a custom version of "DefineLocalVariable"
and store it in `symwriter_define_local'.
(SymWriter_DefineLocalVariable): New internal method to call the
symbol writer's custom DefineLocalVariable() method. It is safe to
call this method if there's no symbol writer.
* LocalBuilder.cs (SetLocalSymInfo): Use the MethodBuilder'snew
SymWriter_DefineLocalVariable().
* MethodBuilder.cs (GetParameters): Implemented.
svn path=/trunk/mcs/; revision=4902
* IMonoSymbolWriter.cs (ISourceMethod): Added `FullName' and `Parameters'.
(ITypeHandle): New interface.
* DwarfFileWriter.cs: Largely reorganized the type writing code. Types are
now represented by ITypeHandle objects which are stored in a per-dwarf-writer
hash table. At the moment, all types still need to be in one compile unit due
to lacking support in gdb - but this new type code here already supports this.
* MonoSymbolWriter.cs: Moved all the subclasses to the top-level and made them
public, cleaned up the code, put everything into one compile unit.
(DefineLocalVariable): Added a version of this function which takes useful args.
svn path=/trunk/mcs/; revision=4900
* System.Data.SqlClient/SqlCommand.cs: include
the BaseColumnName in the schema table. Was missed before.
* System.Data.Common/DbDataAdapter.cs: Use DataTable
mappings so that the DataSet and DataTable are more closely tied.
Get schema information from the DataTable using GetSchemaTable ()
Various other little fixes
* System.Data.Common/DataColumnMappingCollection.cs:
* System.Data.Common/DataTableMapping.cs:
* System.Data.Common/DataTableMappingCollection.cs: Some
implementation, enough to be used by DbDataAdapter.
svn path=/trunk/mcs/; revision=4891
* mono.c: remove generated code from hash when benchmarking/testing
method compilation.
* invoke.cs: special case string ctors.
svn path=/trunk/mono/; revision=4885
* exception.c (arch_handle_exception): Don't G_BREAKPOINT() if we get
an unhandled exception.
* jit.c (mono_thread_abort): G_BREAKPOINT() immediately before the
ExitThread().
svn path=/trunk/mono/; revision=4876
* delegate.c: move the thread pool to metadata/threadpool.c, code
cleanup.
* threadpool.[ch]: impl. a threadpool that can
be used by mint and mono.
svn path=/trunk/mono/; revision=4875
* System.Data.SqlClient/SqlCommand.cs: set
the "ProviderType" to the PostgreSQL type oid
* System.Data.SqlClient/SqlDataReader.cs: fix
for various properties and methods that
return meta data: Item indexers this[name] and this[index],
GetFieldType, GetName, and GetOrdinal. SqlDataAdapter
should work again.
svn path=/trunk/mcs/; revision=4873
* Convert.cs (ConvertFromBase): Added additional test for
checking if the digits are valid. Thanks to Miguel for coming
up with this test.
This fixes bug 25071.
svn path=/trunk/mcs/; revision=4872
* Convert.cs (ConvertToBase): Add new 64bit version.
(BuildConvertedString64): New 64bit version of
BuildConvertedString.
This fixes bug 25068.
svn path=/trunk/mcs/; revision=4870
* Convert.cs (ToType): Rearranged to fit the new layout of
conversionTable.
(conversionTable): Rearranged to fit the layout of the
System.TypeCode enum.
This should fix bug 25075.
svn path=/trunk/mcs/; revision=4867
* System.Data/DataRow.cs: change suggested
by tim: in Item indexer, do an EndEdit()
* System.Data.SqlClient/SqlCommand.cs: more
fixes to SqlResult. After setting each item in
the DataRow, do an AcceptChanges() to commit
the changes in the DataRow. For DataType, use a Type
of System.String since System.Type nor System.Object
seems to work.
* Test/TestSqlDataReader.cs
* Test/PostgresTest.cs: updated to to be on
the way schema table is suppose to work
svn path=/trunk/mcs/; revision=4863
* IMonoSymbolWriter.cs (IMonoSymbolWriter): Added `Sources' and `Methods'
properties.
* MonoDwarfFileWriter.cs (WriteSymbolTable): New public method. Moved the
code that writes the "mono_line_numbers" section here from the LineNumberEngine.
svn path=/trunk/mcs/; revision=4861
* reflection.h (MonoArrayList): New typedef.
(MonoReflectionAssemblyBuilder): Added `table_indexes' and `methods'.
* debug-symfile.c (ves_icall_Debugger_MonoSymbolWriter_method_from_token):
The first argument is now a `MonoReflectionModuleBuilder *', the return
value is a `MonoReflectionModuleBuilder *'. Use the AssemblyBuilder's
`methods' field to get the method builder. The `token' argument is the
unfixed token.
* unicode.c (iconv_get_length, iconv_convert): Silently ignore all
invalid characters instead of g_assert_not_reached()ing. This seems
to be the behaviour of mscorlib.
svn path=/trunk/mono/; revision=4860
* IMonoSymbolWriter.cs (IVariable): Replaced Token with `ISourceMethod Method'.
* MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now has an additional
ModuleBuilder argument.
(OpenMethod): Immediately call the `get_method' interncall to get the MethodBase
from the token, then store the MethodBase instead of the token. The token may
still change during the metadata library's fixup process.
(DoFixups): When the image has been written to disk, call the GetToken () method
on all MethodBuilders and all ConstructorBuilders to get the final metadata tokens.
svn path=/trunk/mcs/; revision=4859
* AssemblyBuilder.cs (methods): New field.
(get_next_table_index): Record all methods and constructors
(table 0x06) in the `methods' array. This is read by the
Mono.CSharp.Debugger.MonoSymbolWriter::get_method interncall to
get the MethodBuilder / ConstructorBuilder back from the token.
* *Builder.cs (get_next_table_index): Added `object obj' argument.
(<constructors>): pass the this pointer to get_next_table_index ().
svn path=/trunk/mcs/; revision=4856
* ArrayList.cs: Made count, capacity and dataArray the first three
fields in the class. They're read by the reflection library.
svn path=/trunk/mcs/; revision=4855
* debug-dwarf2-plus.c (mono_debug_open_assembly_dwarf2_plus): Only run
the assembler if necessary, ie. the assembler file is newer than the
symbol file or the symbol file does not exist.
* debug.c: Added "update_on_exit" argument to recreate the symbol file
when the JIT exists.
svn path=/trunk/mono/; revision=4852
* AssemblerWriterI386.cs: Don't use GNU extensions and produce assembler
output which is free of comments and extra whitespaces so that it's suitable
for `as -f'.
svn path=/trunk/mcs/; revision=4851
* debug-dwarf2.c: Produce assembler code which is free of comments and
extra whitespaces so that it's suitable for `as -f'.
svn path=/trunk/mono/; revision=4850
* debug-dwarf2.c (dwarf2_write_section_end): Removed. This is not needed
and not supported by all assemblers.
(dwarf2_write_2byte): Use ".word" instead of ".2byte" since ".2byte" is a
GNU extension.
* mono.c (--debug): Small fix in the argument parsing.
svn path=/trunk/mono/; revision=4849
* monobitset.c: use our own bit_nth_lsf since the glib one is buggy.
Add more tests. mono_bitset_find_first (set, -1) will work correctly
now.
svn path=/trunk/mono/; revision=4848
* interp.c: fixed finally handling. In trace mode show
exception handling operations and the contents of the stack in the same
line as the executing instruction.
svn path=/trunk/mono/; revision=4847
* Convert.cs (ToByte)
(ToSByte): Fixed bug 25074. Added more bits to ConvertFromBase so
that we won't confuse FormatException with OverflowException.
svn path=/trunk/mcs/; revision=4841
* Convert.cs (ToString): Fixed the ToString methods. Previously I had
mixed up the two code paths, one for converting to a specific base
(this case), another from converting from a foreign base to base10
(used by ToInt16|32|64 (string, int)).
svn path=/trunk/mcs/; revision=4837
* debug.c: Added "dont_assemble" and "dont_precompile" argument for dwarf-plus.
* mono.c: Applied patch from Miguel:
(--debug): This is now a `--debug=[FORMAT]' argument where FORMAT defaults
to dwarf-plus.
svn path=/trunk/mono/; revision=4835
* IMonoSymbolWriter.cs (ISourceMethod): Replaced `MethodInfo MethodInfo' with
`MethodBase MethodBase' and added `Type ReturnType'. We're now correctly
dealing with constructors and not crashing anymore.
svn path=/trunk/mcs/; revision=4834
* debug-symfile.c (mono_debug_find_source_location): New function.
Looks up an IL offset in the line number table and returns the source
location as a string.
svn path=/trunk/mono/; revision=4829
* MonoDwarfFileWriter.cs: Write a special line number table which can be read
in by the metadata library to get line number information in backtraces.
svn path=/trunk/mcs/; revision=4828
* debug.c (mono_debug_source_location_from_address): New function.
(mono_debug_il_offset_from_address): New function.
* exception.c (arch_handle_exception): If we have debugging support, include
information about the source location and IL offset in the stack trace.
svn path=/trunk/mono/; revision=4824
* MathTest.cs:
(TestPow): Add try-catch to determine where we are throwing.
(TestLog): Re-enable failing test
(TestLog2): same although this test still fails on mono. Not
sure what the proper value to use here. It works on MS.NET
svn path=/trunk/mcs/; revision=4817
* debug-private.h (MonoDebugFlags): New enum typedef.
* debug.c (mono_debug_open): Added a few useful arguments. See the manpage
for details.
svn path=/trunk/mono/; revision=4811
* mono.1: Updated to reflect my latest changes and beautified this a bit.
(FIXME: There are still command line argument which aren't documented here.)
svn path=/trunk/mono/; revision=4809
* debug.c (mono_debug_open_file): Renamed to mono_debug_open(), now takes
a `MonoAssembly *' argument instead of a `char *filename' one. Also added
`const char **args' argument.
* mono.c (mono_jit_assembly): Renamed to mono_jit_compile_image(), added
`int verbose' argument and made it public.
(mono_jit_compile_class): New public function, moved the code to compile
all methods in a class here from main().
(--compile): The argument can now also be an image (in `@imagename' format).
Updated documentation for this command line argument.
(--precompile): New command line argument to precompile an image/class/method
before executing the main app. This argument can be given multiple times.
(--break): Renamed the "--debug" command line argument to "--break".
(--debug): New command line argument to specify the debugging format.
(--stabs, --dwarf, --dwarf-plus): Removed, obsoleted by "--debug".
(--debug-args): New command line argument. This is a comma-separated list of
additional arguments for the symbol writer.
(usage): Beautified the help text a bit.
* debug-dwarf2-plus.c (mono_debug_open_assembly_dwarf2_plus): Use the new
public mono_jit_compile_image() function rather than duplication this
functionality here.
svn path=/trunk/mono/; revision=4808
* System.Data.SqlClient/ParmUtil.cs: added file - to
provide utility for conversion of input parameters
* System.Data.SqlClient/PostgresTypes.cs: added file -
moved the PostgreHelper class to here. May eventually
move the internal class PostgresTypes that's inside the
SqlConnection to here as well.
Handling of PostgreSQL <-> .NET types need to be though
out more. Also, the PostgreHelper has a method to convert
from .NET types to a string which can be put into used in
an SQL statement to execute against a PostgreSQL database.
This is the beginnings of parameters support. It currently
only supports input parameters. Still need to do output,
input/output, and return parameters.
* Test/TestSqlParameters.cs: new test to test the input
parameters in System.Data.SqlClient against a
PostgreSQL db.
* System.Data.SqlClient/PostgresLibrary.cs: moved
PostgresHelper class to file PostgresTypes.cs. Also
moved struct PostgresType there too.
* System.Data.SqlClient/SqlCommand.cs: added input
parameters support
* System.Data.SqlClient/SqlParameter.cs: got
SqlParameter to work
* System.Data.SqlClient/SqlParameterCollection.cs: got
SqlParameterCollection to work
* Test/System.Data_test.build: added files to exclude
from test build
* System.Data.SqlClient/SqlConnection.cs: release resources
no longer used
svn path=/trunk/mcs/; revision=4805
* debug-dwarf2-plus.c: This is now working again :-)
* debug.c (mono_debug_open_file): When using MONO_DEBUG_FORMAT_DWARF2_PLUS,
we create two MonoDebugHandles: one for MONO_DEBUG_FORMAT_DWARF2_PLUS and
one for the fallback MONO_DEBUG_FORMAT_DWARF2.
svn path=/trunk/mono/; revision=4802
* jit.c (mono_debug_handle): Removed this global variable.
* debug.c (mono_debug_close): Removed.
(mono_debug_cleanup): New global function.
(mono_debug_add_image): New global function.
(mono_debug_handle_from_class): New global function.
(mono_debug_write_symbols): New global function.
(mono_debug_add_type): Removed `MonoDebugHandle *' argument.
(mono_debug_add_method): Likewise.
svn path=/trunk/mono/; revision=4800
Work around a hard-to-fix bug in GDB and create a single dwarf/stabs
file for all assemblies. Currently, the JIT doesn't put all methods
from a single assembly into a continuous region of memory. We were
previously creating valid DWARF 2 files for this, but unfortunately
GDB's symbol tables get messed up when it reads more than one such file.
* debug-private.h (AssemblyDebugInfo): Moved `f', `producer_name',
`next_idx', `methods', `type_hash', `source_files' and `format'
into the MonoDebugHandle.
* debug.c (mono_debug_get_type): This now operates on the MonoDebugHandle,
not on the AssemblyDebugInfo.
(mono_debug_open_file): Moved some stuff here from mono_debug_open_assembly().
* debug-dwarf2.c (mono_debug_write_assembly_dwarf2): Renamed into
mono_debug_write_dwarf2().
(mono_debug_open_assembly_dwarf2): Removed.
(mono_debug_close_assembly_dwarf2): Removed.
* debug-stabs.c (mono_debug_write_assembly_stabs): Renamed into
mono_debug_write_stabs().
(mono_debug_open_assembly_stabs): Removed.
(mono_debug_close_assembly_stabs).
* debug-dwarf2-plus.c: This is currently broken. :-(
svn path=/trunk/mono/; revision=4796
* debug.h (mono_debug_format): New global variable.
(MonoDebugFormat): Added MONO_DEBUG_FORMAT_NONE.
* debug-private.h (MonoDebugHandle): Added `objfiles' field which is
a whitespace separated list of symbol files.
(AssemblyDebugInfo): Added `objfile' filed which is the name of the
symbol file.
* mono.c (main): Pass the assembly file name to mono_debug_open_file().
* debug.c (mono_debug_make_symbols): Link all symbol files into a big
`<assemblyname>.o' symbol file.
svn path=/trunk/mono/; revision=4792
* debug.c (debug_load_method_lines): Check whether the assembly file
is newer than the IL file and recreate the IL file if necessary.
svn path=/trunk/mono/; revision=4791
* typemanager.cs (InitEnumUnderlyingTypes): New helper function
that splits out the loading of just the core types.
* rootcontext.cs (ResolveCore): Split the struct resolution in
two, so we can load the enumeration underlying types before any
enums are used.
svn path=/trunk/mcs/; revision=4789
* mono.c Updated copyright years.
2002-05-20 Miguel de Icaza <[email protected]>
* interp.c: Updated help display.
svn path=/trunk/mono/; revision=4787
* expression.cs (Is): Bandaid until we fix properly Switch (see
bug #24985 for details).
* typemanager.cs (ImplementsInterface): The hashtable will contain
a null if there are no interfaces implemented.
2002-05-18 Miguel de Icaza <[email protected]>
* cs-parser.jay (indexer_declarator): It is fine to have array
parameters
svn path=/trunk/mcs/; revision=4774
* doc/ado-net: updated page to include C# code snippets using
System.Data. Update status: handle reading NULL values, DataSet/DataAdapter
works, executing/reading multiple results, and stored procedures.
And other tweaks about the providers.
svn path=/trunk/mono/; revision=4771
* TypeBuilder.cs (DefineField): Call the new `create_internal_class'
interncall after adding the first field. This is used when creating
enum types to set `klass->enum_basetype'.
svn path=/trunk/mcs/; revision=4769
* reflection.c (mono_reflection_setup_internal_class): Don't crash
if `tb->parent == NULL'.
(mono_reflection_create_internal_class): New function. This is
called from TypeBuilder.CreateType() and sets `klass->enum_basetype'
for enum types.
* icall.c ("System.Reflection.Emit.TypeBuilder::create_internal_class"):
New interncall.
svn path=/trunk/mono/; revision=4768
* System.Xml: added directory for classes with namespace
System.Xml to go into the System.Data.dll assembly
* System.Xml/XmlDataDocument: added file
for stubbed concrete class XmlDataDocument which
inherits from XmlDocument. Its purpose is to provide
a W3C XML DOM Document for relational data and interacting
with a DataSet
svn path=/trunk/mcs/; revision=4754
* FromBase64Transform.cs (TransformFinalBlock): The return value of
`DoTransform' tells us the number of bytes actually written - if it's
smaller than `res', copy it to a smaller array.
svn path=/trunk/mcs/; revision=4752
* unicode.c (ves_icall_iconv_get_bytes): Actually use the `charCount'
argument to get the length, don't default to the array length.
svn path=/trunk/mono/; revision=4751
* Convert.cs (FromBase64CharArray): Convert the char array using
System.Text.UTF8Encoding, not UnicodeEncoding (which is UTF-16) to
a byte array.
svn path=/trunk/mcs/; revision=4750
* System.Data.SqlClient/SqlCommand.cs: handle CommandTypes
Text, TableDirect, and StoredProcedure
* Test/PostgresTest.cs: changed call to version()
stored procedure to use the CommandType of StoredProcedure
* Test/TestSqlDataReader.cs: test all the CommandTypes
svn path=/trunk/mcs/; revision=4743
* System.Data.build: took out all excluded
files except the ones in the Test directory
because all files compile now. It does not
mean they all work or have implementations
though.
* System.Data/DataRelationCollection.cs
* System.Data/DataTableRelationCollection.cs
* System.Data/InternalDataCollectionBase.cs
* System.Data.Common/DbDataPermission.cs
* System.Data.SqlClient/SqlInfoMessageEventArgs.cs
* System.Data.SqlClient/SqlClientPermission.cs
* System.Data.SqlClient/SqlClientPermissionAttribute.cs: changes
to get all System.Data* files to compile.
* System.Data.SqlClient/SqlCommand.cs: started coding
to prevent SqlConnection and SqlCommand from doing
anyting while fetching data using SqlDataReader. Also,
started coding to undo this prevention once the
SqlDataReader is closed.
* System.Data.SqlClient/SqlConnection.cs: get database server
version. Started coding to prevent connection from
doing anything while fetching data and undo once the reader
is closed. Include events SqlInfoMessage and StateChange.
* System.Data.SqlClient/SqlDataReader.cs: start coding to
prevent connection and command from doing anything while
fetching data, and undo when closed.
* Test/PostgresTest.cs: added test to get ServerVersion
property from SqlConnection
svn path=/trunk/mcs/; revision=4742
* System.Data/DataRow.cs: Try to reduce memory
usage by only creating the original and proposed
arrays as required in BeginEdit, and then destroying
proposed during EndEdit, and original during AcceptChanges.
* System.Data.Common/DbDataAdapter.cs: Make the
startRecord and maxRecords parameters work correctly.
svn path=/trunk/mcs/; revision=4736
* System.Data/DataRow.cs: Move the null check in
ItemArray set to above the Invalid Cast check, so
that we don't get null reference exceptions.
svn path=/trunk/mcs/; revision=4734
* System.Data.SqlClient/PostgresLibrary.cs: handle
data value from database being NULL
* System.Data.SqlClient/SqlCommand.cs: for ExecuteReader,
allow multiple result sets. Added new internal class
SqlResult to pass result set data from SqlCommand
to SqlDataReader.
* System.Data.SqlClient/SqlDataReader.cs: allow
multiple result sets.
* System.Data.SqlClient/SqlConnection.cs: moved
things around. Implement IDisposable.
* Test/TestSqlDataReader.cs: test for execution
of multiple result sets and display the results
of these multiple results sets
* Test/TestSqlDataAdapter.cs: tweaks
svn path=/trunk/mcs/; revision=4733
It still fails to compile it though
2002-05-17 Miguel de Icaza <[email protected]>
* typemanager.cs: (RegisterBuilder): New function used to register
TypeBuilders that implement interfaces. Since
TypeBuilder.GetInterfaces (as usual) does not work with lame
Reflection.Emit.
(AddUserType): register interfaces.
(ImplementsInterface): Use the builder_to_ifaces hash if we are
dealing with TypeBuilder. Also, arrays are showing up as
SymbolTypes, which are not TypeBuilders, but whose GetInterfaces
methods can not be invoked on them!
svn path=/trunk/mcs/; revision=4727
* ecore.cs (ExplicitReferenceConversionExists): Made public.
(ImplicitReferenceConversionExists): Split out from
StandardConversionExists.
* expression.cs (As): We were only implementing one of the three
cases for the as operator. We now implement them all.
(Is): Implement the various other cases for Is as well.
* typemanager.cs (CACHE): New define used to control if we want or
not the FindMembers cache. Seems to have a negative impact on
performance currently
(MemberLookup): Nested types have full acess to
enclosing type members
Remove code that coped with instance/static returns for events, we
now catch this in RealFindMembers.
(RealFindMembers): only perform static lookup if the instance
lookup did not return a type or an event.
svn path=/trunk/mcs/; revision=4724
* System.Data.Common/DbDataAdapter.cs:
- More implementation of Fill methods
- Get rid of isDirty flag, because we can just check
if the table exists
- Do *not* remove DataTables before Filling them
- Implicitly open the connection before doing a Fill
if it does not exist.
* System.Data.SqlClient/SqlDataAdapter.cs:
- Minor fixup
* System.Data/DataTableCollection.cs:
- Add DataSet to internal, undocumented constructor
- When a table is created, set its DataSet property
- Default table name for creation is "Table1" (see .NET)
- Inherit the ArrayList list from InternalDataCollecitonBase
and maintain a hashtable between table names and
DataTables
* System.Data/DataTable.cs:
- Add internal dataSet field. This is used by
DataTableCollection when the DataTable is constructed.
* System.Data/DataSet.cs:
- Pass a reference to the DataSet when constructing the
DataTableCollection.
svn path=/trunk/mcs/; revision=4722
* typemanager.cs (CACHE): New define used to control if we want or
not the FindMembers cache. Seems to have a negative impact on
performance currently
svn path=/trunk/mcs/; revision=4720
* emit-x86.c (enter_method): print method signature
* exception.c (arch_handle_exception): set trace info before we
call handlers.
svn path=/trunk/mono/; revision=4712
* UdpClient.cs and TcpClient.cs: modified disposable routines, added
checks for disposed state.
* UdpClient.cs: commented out GetHashCode and Equals as it's not
overriden in ms.net implementation.
2002-05-17 Jaroslaw Kowalski <[email protected]>
* TcpClient.cs: fixed SetTcpClient so that
TcpListener.AcceptTcpClient works and allows
you to call GetStream() on its result
svn path=/trunk/mcs/; revision=4711
* assign.cs (CompoundAssign): We pass more semantic information
now to Compound Assignments than we did before: now we have all
the information at hand, and now we resolve the target *before* we
do the expression expansion, which allows the "CacheValue" method
to have the effect we intended (before, a [x] += 1 would generate
two differen ArrayAccess expressions from the ElementAccess,
during the resolution process).
(CompoundAssign.DoResolve): Resolve target and original_source here.
svn path=/trunk/mcs/; revision=4710
* expression.cs (ArrayAccess): dropped debugging information.
* typemanager.cs: Small bug fix: I was always returning i_members,
instead of one of i_members or s_members (depending on which had
the content).
svn path=/trunk/mcs/; revision=4709
* TestSqlDataAdapter.cs: Added the foreach loop to iterate through
all of the DataRows in the DataSet table "Table", as the
GetEnumerator method of InternalDataCollectionBase has now been
implemented.
svn path=/trunk/mcs/; revision=4707
* System.Data.Common/DbDataAdapter.cs:
Use table.Rows.Add (itemArray) instead of
table.Rows.Add (thisRow) to provide better
abstraction.
* System.Data/DataRowCollection.cs:
Some implementation of this class.
* System.Data/InternalDataCollectionBase.cs:
Some implementation. Most notably, this now
has an enumerator so we can use foreach (DataRow row in table.Rows)
in the test classes.
* System.Data/DataTable.cs:
Since DataRowCollection now accepts a DataTable in
its internal constructor, we must pass one in.
svn path=/trunk/mcs/; revision=4706
* System.Data_test.build: Remove RunTests from the default build. We
can add this later, but it keeps the build from breaking for now.
* TestSqlDataAdapter.cs: Fix build breaker.
svn path=/trunk/mcs/; revision=4705
* assign.cs (IAssignMethod.CacheTemporaries): New method. This
method is invoked before any code generation takes place, and it
is a mechanism to inform that the expression will be invoked more
than once, and that the method should use temporary values to
avoid having side effects
(Assign.Emit): Call CacheTemporaries in the IAssignMethod.
* ecore.cs (Expression.CacheTemporaries): Provide empty default
implementation.
* expression.cs (Indirection, ArrayAccess): Add support for
CacheTemporaries in these two bad boys.
svn path=/trunk/mcs/; revision=4702
* Test/TestSqlDataAdapter.cs: added new test
for SqlDataAdapter, DataSet, DataTableCollection, DataTable,
DataRowCollection, and DataRow. It tests retrieving data
based on a SQL SELECT query. This test is based on Tim Coleman's
test he sent to me.
svn path=/trunk/mcs/; revision=4701
* ecore.cs (LoadFromPtr): figure out on our own if we need to use
ldobj or ldind_ref.
(StoreFromPtr): Handle stobj as well.
* expression.cs (UnaryMutator): Share more code.
svn path=/trunk/mcs/; revision=4699
* typemanager.cs (FindMembers): Thanks to Paolo for tracking this
down: I was not tracking the Filter function as well, which
was affecting the results of the cache.
svn path=/trunk/mcs/; revision=4698
* System.Data.Common/DbDataAdapter.cs:
Use table.Rows.Add (thisRow) instead of
table.ImportRow (thisRow)
* System.Data/DataRowCollection.cs:
Construct the ArrayList before using it
svn path=/trunk/mcs/; revision=4697
* System.Data/DataTable.cs:
Construct the DataRowCollection in the DataTable
constructor. Otherwise, it's a null reference.
svn path=/trunk/mcs/; revision=4692
* interp.c (ves_exec_method): use data.i instead of data.l in i32
case
(ves_exec_method): set type in I64 <--> I32 conversions
svn path=/trunk/mono/; revision=4691
* StreamWriter.cs: Implement buffering. Also implemented dispose
pattern as recommended by the MS docs. Must call Close() now
to ensure the buffer is flushed.
svn path=/trunk/mcs/; revision=4687
* System.Data.SqlClient/SqlDataReader.cs:
Modify GetValues to use Array.Copy() to copy
the results from fields to values, rather than
an assignment, which results in loss of data.
svn path=/trunk/mcs/; revision=4674
* System.Data/DataRow.cs:
More implementation and documentation. It should
work more like expected, although there is no way
to demonstrate this well yet. DataTable requires
more work.
svn path=/trunk/mcs/; revision=4673
* object.c (mono_unhandled_exception): new function to handle
unhandled exceptions.
(mono_unhandled_exception): call the UnhandledException event.
i * interp.c (ves_exec_method): use new mono_unhandled_exception()
svn path=/trunk/mono/; revision=4657
* metadata.h, metadata.c, class.c: mono_metadata_field_info ()
returns the RVA, not the direct pointer to the data. Handle the case
when the class size is fixed.
svn path=/trunk/mono/; revision=4652
* jit.c (mono_analyze_flow): try blocks are followed by handler
blocks, so we need to add all handler blocks as succesors.
* exception.c (arch_handle_exception): correctly save/restore caller
saved regs.
* emit-x86.c (arch_emit_prologue): correctly save/restore caller
saved regs.
* jit.c (mono_cfg_new): allocate space for caller saved registers.
svn path=/trunk/mono/; revision=4644
* System.Data/DataRow.cs:
* System.Data/DataRowBuilder.cs:
* System.Data/DataTable.cs:
More implementation of these classes. DataRow
can now (possibly) do some useful things.
Still not sure what DataRowBuilder is all about,
other than passing a DataTable in.
svn path=/trunk/mcs/; revision=4636
* interp.c: introduced new --noptr option to suppres pointer
address printing. I find this useful for comparing trace outputs
while porting to ppc
svn path=/trunk/mono/; revision=4632
* StreamReaderTest.cs:
* StreamWriterTest.cs:
Make sure invalid file name has invalid characters in it. These are
platform dependant.
svn path=/trunk/mcs/; revision=4627
* Path.cs (GetDirectoryName): Return String.Empty if there is no
directory
* StreamReader.cs: Add some parameter checking on file names.
* StreamWriter.cs: Add some parameter checking on file names.
svn path=/trunk/mcs/; revision=4626
* File.cs: Add parameter checks to most methods. Not completely done,
but all current unit tests pass.
* Path.cs: Implement GetTempFileName().
svn path=/trunk/mcs/; revision=4621
* FileTest.cs: Delete temporary files after each test method; Catch
unexpected exceptions and report them; Make some Assert messages
unique; Make sure temp files exist before trying Move and Delete, etc.
svn path=/trunk/mcs/; revision=4619
* jit.c: only use one TLS slot to store jit data
* exception.c (arch_handle_exception): print function signature,
use thread relative end_of_stack
svn path=/trunk/mono/; revision=4616
* attribute.cs (DoResolve): More uglyness, we now only try to
resolve the attribute partially, to extract the CharSet
information (only if we are a StructLayout attribute). Otherwise
(GetExtraTypeInfo): Add some code to conditionally kill in the
future this. I am more and more convinced that the .NET
framework has special code to handle the attribute setting on
certain elements.
* expression.cs (IsParamsMethodApplicable): Revert my previous
foreach change here, it was wrong.
svn path=/trunk/mcs/; revision=4612
* Double.cs (Parse): Reimplement by cleaning up the string first,
and then passing to strtof in the mono runtime.
* Single.cs (Parse): Use the Double implementation and cast to
float.
svn path=/trunk/mcs/; revision=4609
* ChangeLog: removed empty entry at the top of the file.
* Int32.cs: made static functions used by Parse internal.
* Int64.cs:
* UInt32.cs:
* UInt64.cs: removed static fucntions used by Parse and use the ones
in Int32.cs
svn path=/trunk/mcs/; revision=4607
relying on standard asynchronous delegate features. Added checks for
null strings.
* HttpWebResponse.cs: implemented properties
* FileWebResponse.cs: improved the way resources are disposed.
* FileWebRequest.cs: started implementation of asynchronous methods
* ServicePointManager.cs: implemented properties
svn path=/trunk/mcs/; revision=4604
* cs-tokenizer.cs: (pp_primary): Eat the ')' at the end.
(pp_expr): do not abort on unknown input, just return.
(eval): abort if there are pending chars.
svn path=/trunk/mcs/; revision=4598
* class.cs (DefineType): Call Attribute.GetExtraTypeInfo to fetch
the Ansi/Unicode/Auto information for the type.
(TypeContainer.DefineType): instantiate the EmitContext here, as
we will be using it during the type definition (to resolve
attributes) and during the emit phase.
* attribute.cs (Attribute.GetExtraTypeInfo): This routine is used
to pull type information out of the attributes
(Attribute.Resolve): track the constructor builder, and allow for
multiple invocations (structs and classes will use this).
svn path=/trunk/mcs/; revision=4594
* System.Data/DataTableCollection.cs:
Fix an issue when adding a DataTable and size == 0.
Now explicitly checks if size > 0 before doing Array.Copy ()
* System.Data.Common/DbDataAdapter.cs:
Move closer to a working implementation.
Make the IDbCommand fields protected so that they can
be inherited.
* System.Data.SqlClient/SqlDataAdapter.cs:
This should inherit the IDbCommands instead of having its
own. An explicit cast is used to force conversion between
IDbCommand and SqlCommand
svn path=/trunk/mcs/; revision=4588
* System.Data.build:
include SqlDataAdapter, SqlRowUpdatedEventArgs,
SqlRowUpdatingEventArgs, SqlRowUpdatedEventHandler,
SqlRowUpdatingEventHandler in the build.
svn path=/trunk/mcs/; revision=4583
* jit.c (mono_analyze_stack): we need to generate a temporary var for
SHL/SHR because the tree allocator can fail otherwise
svn path=/trunk/mono/; revision=4582
* exception.c (arch_handle_exception): EIP now points to the call
instruction, not to the instruction after the call. This fixes the
bug reported by Linus Upson (tests/exception8.cs)
svn path=/trunk/mono/; revision=4578
* ecore.cs (MemberLookupFinal): new version with all the
parameters customizable.
* expression.cs (New.DoResolve): Use MemberLookupFinal to locate
constructors. Return if the result value is null (as the error
would have been flagged already by MemberLookupFinal)
Do not allow instances of abstract classes or interfaces to be
created.
(Method.Emit): If the method is marked abstract and has a body,
emit an error.
svn path=/trunk/mcs/; revision=4577
* class.cs: (MethodSignature.InheritableMemberSignatureCompare):
We have to compare the assembly property here when dealing with
FamANDAssem and Assembly access modifiers, because we might be
creating an assembly from *modules* (that means that we are not
getting TypeBuilders for types defined in other modules that are
part of this assembly).
(TypeContainer.DefineMembers): If both the defined member and the
parent name match are methods, then do not emit any warnings: let
the Method.Define routine take care of flagging warnings. But if
there is a mismatch (method overrides something else, or method is
overriwritten by something, then emit warning).
(MethodSignature.MemberSignatureCompare): If the sig.ret_type is
set to null, this means `do not check for the return type on the
signature'.
(Method.Define): set the return type for the method signature to
null, so that we get methods with the same name and parameters and
different return types. This is used to flag warning 114 (you are
hiding a method, and you probably want to use the new/override
keywords instead).
* typemanager.cs (MemberLookup): Implemented proper access
control, closing a long standing set of bug reports. The problem
was that the Framework only has two bits: Public and NonPublic,
and NonPublic includes private and protected methods, but we need
to enforce the FamANDAssem, FamOrAssem and Family.
svn path=/trunk/mcs/; revision=4576
* System.Data.Common/DbDataAdapter.cs:
More implementation.
* System.Data.Common/DataAdapter.cs:
Correction of some of the stubbing, as well as a
little bit more implementation
svn path=/trunk/mcs/; revision=4575
* IComponent.cs
* ISite.cs: added using System
* MarshalByValueComponent.cs: changed all throwing of Not ImplementedException
to // TODOs and added using System. The throwing of the exceptions prevented
System.Data from running.
svn path=/trunk/mcs/; revision=4546
* System.Data.SqlClient/SqlDataAdapter.cs:
* System.Data.Common/DbDataAdapter.cs:
Moved methods that weren't supposed to
be in SqlDataAdapter out. They should be implemented
in DbDataAdapter.
svn path=/trunk/mcs/; revision=4545
* System.Data.SqlClient/SqlDataAdapter.cs:
some implementation of this class. Note
that none of the functionality has been
tested yet, but I felt it should be checked
in at this point as it compiles.
* System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
* System.Data.SqlClient/SqlRowUpdatedEventArgs.cs:
Modified so that they will compile properly.
Needed to include SqlDataAdapter in the build.
svn path=/trunk/mcs/; revision=4544
* System.Data.SqlClient/SqlDataAdapter.cs:
some implementation of this class. Note
that none of the functionality has been
tested yet, but I felt it should be checked
in at this point as it compiles.
* System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
* System.Data.SqlClient/SqlRowUpdatedEventArgs.cs:
Modified so that they will compile properly.
Needed to include SqlDataAdapter in the build.
* System.Data.build:
Add SqlDataAdapter, SqlRowUpdatingEventArgs,
SqlRowUpdatedEventArgs, SqlRowUpdatingEventHandler,
SqlRowUpdatedEventHandler to the build.
svn path=/trunk/mcs/; revision=4543
* System.Data/DataTable.cs (Clear): implemented.
(DataTable): removed repeated code in constructors, and call the
basic constructor from the others.
* System.Data/DataColumn.cs: some tweaks.
* System.Data/DataRow.cs (RowState): implemented.
(CancelEdit): set rowState property back to Unchanged.
(RejectChanges): call CancelEdit.
(Delete): set rowState to Deleted.
svn path=/trunk/mcs/; revision=4534
* System.Data.build: added copy of System.Data.dll to Test directory
for easy testing. Also, added clean for it too.
* System.Data.SqlClient/PostgresLibrary.cs: changed setting of boolean
svn path=/trunk/mcs/; revision=4533
* System.Data.build: added copy of System.Data.dll to Test directory
for easy testing. Also, added clean for it too.
* System.Data.SqlClient/PostgresLibrary.cs: changed setting of boolean
from PostgreSQL data type to .NET type.
* System.Data.SqlClient/SqlDataReader.cs: beginnings
handling of a NULL value from the database
* Test/PostgresTest.cs: added tests for NULL values retrieved
from the database
* Test/ReadPostgresData.cs
* Test/TestExecuteScalar.cs
* Test/TestSqlDataReader.cs
* Test/TestSqlException.cs
* Test/TestSqlIsolationLevel.cs: updated tests to use databas user
"postgres". These tests may eventually be removed since they
are not flexible.
svn path=/trunk/mcs/; revision=4529
* AllTests.cs: needed a using for System.Data and System.Data.SqlClient,
changed SqlTypes.AllTests.Suite to System.Data.SqlTypes.AllTests.Suite
* System.Data/DataColumnTest.cs: changed typeof to DataColumnTest
svn path=/trunk/mcs/; revision=4528
* doc/ado-net: added instructions for installing PostgreSQL on Linux
and for using nant to re-compile just the System.Data.dll assembly
on Windows.
svn path=/trunk/mono/; revision=4519
* statement.cs (GotoCase): Return true: Ammounts to giving up
knowledge on whether we return or not, and letting the other case
be responsible for it.
svn path=/trunk/mcs/; revision=4515
* ecore.cs: Report readonly assigns here as well, as we might have
been resolved only by MemberAccess.
(SimpleName.SimpleNameResolve): Also be useful for LValue
resolution. We need this to propagate assign to local readonly variables
svn path=/trunk/mcs/; revision=4509
* typemanager.cs: Use a ptrhashtable for the criteria, because we
do not want to reuse potential criteria memory.
* class.cs (MyEventBuilder): Set reflected_type;
* ecore.cs (Constantify): Added support for constifying bools.
(RootContext.LookupType): Added a cache for values looked up in
the declaration space.
svn path=/trunk/mcs/; revision=4504
* TestDataColumn.cs: removed.
* System.Data_test.build: removed reference to TestDataColumn.
* TheTests.cs: added RunDataColumnTest class.
(RunAllTests.AddAllTests): added test for RunDataColumnTest.
* System.Data/AllTests.cs: test suite for System.Data.
svn path=/trunk/mcs/; revision=4502
* System.build: don't exclude anymore excluded files in
System.ComponentModel. They compile on Linux, so they might also
on Windows.
svn path=/trunk/mcs/; revision=4501
* EventDescriptorCollection.cs (this[index]): call eventList[index],
not this[index], which issues an 'ambigous call' error on Linux.
svn path=/trunk/mcs/; revision=4499
* typemanager.cs (FindMembers): Now is a front-end to
RealFindMembers, and provides a two-level hashtable-based cache to
the request.
15% performance improvement: from 22.5 to 19.2 seconds.
svn path=/trunk/mcs/; revision=4493
* ValidatorCollection.cs: Fixed typo, ValidatedCollection to ValidatorCollection.
* Page.cs (Validators): return type should be ValidatorCollection,
not ValidatedCollection.
svn path=/trunk/mcs/; revision=4492
* HtmlTableCellCollection.cs (this): Updated the indexer to return
the right type, HtmlTableCell instead of HtmlTableRow.
* TagPrefixAttribute.cs: Added to CVS.
svn path=/trunk/mcs/; revision=4491
* CustomAttributeBuilder.cs: expose internal data for use in
reflection.
* FieldBuilder.cs, TypeBuilder.cs: special case FieldOffset and
StructLayout attributes.
svn path=/trunk/mcs/; revision=4489
* System.Web.build: Include the System.Web.UI.HtmlControls namespace.
* Page.cs:
* ValidatorCollection.cs: Stubs to make things compile for
now. Added one dummy method (RegisterClientScriptFile) that's used
in the existing codebase, but not in MS docs.
* HtmlInputImage.cs (OnServerClick): Commented out parts that
won't compile.
* HtmlForm.cs (RenderAttributes):
(RenderChildren): Commented out code that doesn't compile.
svn path=/trunk/mcs/; revision=4488
* HtmlSelect.cs (TrackViewState): Added 'new' keyword to avoid
clashing with the method defined in the parent class.
(OnDataBinding): Added missing casts.
* HtmlForm.cs (Render): Fixed call too SetAttribute, need to cast
'this' to IAttributeAccessor before calling interface method.
Also renamed some calls to reflect changes in the API.
* HtmlControl.cs (WriteOnClickAttribute): Made it not static and
fixed a typo.
svn path=/trunk/mcs/; revision=4485
* mono.c (usage): the option is called --nols, and it dissables
linear scan.
* x86.brg: better LDIND_R4, LDIND_R8, STIND_R4, STIND_R8
svn path=/trunk/mono/; revision=4472
* StreamWriterTest.cs: Use "resources" directory and use OS friendly
directory separator characters. This makes the tests run correctly
against MS.NET, but not yet in mono on Linux.
svn path=/trunk/mcs/; revision=4471
* FileNotFoundException.cs (ToString): Don't try to use the inner
exception, because it might be null. Use the message instead.
svn path=/trunk/mcs/; revision=4470
* expression.cs (IsParamsMethodApplicable): use foreach.
(Invocation.DoResolve): ditto.
(New.DoResolve): ditto.
(ArrayCreation.DoResolve): ditto.
* ecore.cs (FindMostEncompassingType): use foreach.
* delegate.cs (NewDelegate.DoResolve): Use foreach
* ecore.cs (Expression.FindMostSpecificSource): Use foreach.
(RemoveMethods): use foreach.
* expression.cs (Invocation.MakeUnionSet): Optimization: Use two
nested foreach statements instead of for, and also break out of
the inner loop once a match is found.
(Invocation.OverloadResolve): Use foreach, simplify the code.
svn path=/trunk/mcs/; revision=4469
* System.Data.SqlClient/PostgresLibrary.cs: got
PostgreSQL data types time, date, timestamp (DateTime like)
mapped to .NET System.DateTime working based
on ISO DateTime formatting "YYYY-MM-DD hh:mi:ss.ms"
Also mapped pg type boolean to .net Boolean
* SqlClient/SqlConnection.cs: run SQL command to set
Date style to ISO
* Test/PostgresTest.cs: added test for an UPDATE SQL command,
added tests for aggregates min(), max(), sum(), count(). could
not get avg() to work due to some formatting error; someone claimed
that it was my locale settings. added tests for SELECT of columns
of type boolean, float, double, date, time, and timestamp. They
have not been fully tested, but its a start.
svn path=/trunk/mcs/; revision=4457
* Single.cs: copied ToString() and Parse() methods from
Double to Single and modified a tiny bit for Single.
There is still a FIXME for Double and Single about
passing the format and provider info to the icall too.
svn path=/trunk/mcs/; revision=4456
* System.Data_test.build: exclude file TestDataColumn.cs
test.build files have two places where a file needs to
be excluded
svn path=/trunk/mcs/; revision=4442
* monobitset.c, monibitset.h: bit set data structure.
Not included in the build yet because the jit has some symbol clashes
with it.
svn path=/trunk/mono/; revision=4441
* System.Data.SqlTypes/SqlDecimal.cs: Implementations of
addition, subtraction, and multiplication for the
SqlDecimal type, as well as modification of some other
operations. More to come on this one.
svn path=/trunk/mcs/; revision=4434
Dennis Hayes <[email protected]>
Checking in new System.Windows.forms classe for Paul Osman <[email protected]>
* NavigateEventArgs.cs
* NodeLabelEditEventArgs.cs
* NotifyIcon.cs
Stubbed and commented out
svn path=/trunk/mcs/; revision=4433
Dennis Hayes <[email protected]>
Checking in new System.Windows.forms classe for John Rebbeck <[email protected]>
* UserControl.cs
Stubbed and commented out
svn path=/trunk/mcs/; revision=4432
* cfold.cs (BinaryFold): During an enumeration evaluation context,
we actually unwrap the expression to allow for extra information
to be extracted.
svn path=/trunk/mcs/; revision=4427
* ecore.cs (FindMostEncompass*): Fix trivial bug where the set of
applicable operators was not being considered correctly. This closes
the bug Miguel reported.
svn path=/trunk/mcs/; revision=4418
* interpreter.cs: Moved to an array-based stack representation
for faster captures.
* match.cs, collections.cs: Decoupled capture representation from
interpreter internals.
* cache.cs: Changed Key type from struct to class for speed.
svn path=/trunk/mcs/; revision=4415
* attribute.cs: check that the type derives from System.Attribute
and report the correct error in that case (moved the duplicate code to
its own method, too).
svn path=/trunk/mcs/; revision=4409
* attribute.cs: lookup attribute type name as the spec says: first the
bare attribute name and then name + "Attribute" (nant compiles with
mcs after this fix).
svn path=/trunk/mcs/; revision=4404
* FileTest.cs: Use "resources" directory and use OS friendly
directory separator characters. This makes the tests run correctly
against MS.NET, but not yet in mono on Linux.
svn path=/trunk/mcs/; revision=4403
* handles.c (shared_init): Disable SHM for now, people have too
many problems with this, and the diagnostics are not helping.
svn path=/trunk/mono/; revision=4389
* CompareInfo.cs: new basic stub (compiles on Linux, so I assume
it does not break the build on windows. Sorry if it does).
svn path=/trunk/mcs/; revision=4386
* parameter.cs (ParameterType): Make it a property for now although the
purpose really isn't anything immediate.
* expression.cs (Is*Applicable): Do better checking on the parameter type
of a ref/out parameter. The ones from the system assemblies are already
marked with the correct type so we don't need to do any correction.
* ecore.cs (StandardConversionExists): Conversion from Interface types to
the object type is standard too so include that.
svn path=/trunk/mcs/; revision=4382
* expression.cs (Unary.TryReduceNegative): Ah! Tricky! Tricky!
Because of the way we parse things, we should try to see if a
UIntConstant can fit in an integer.
svn path=/trunk/mcs/; revision=4379
(ConvertReferenceExplicit): When converting from Iface type S to Class
T make sure the rules are implemented as an OR.
svn path=/trunk/mcs/; revision=4378
* StreamWriter.cs: Wrap a try-catch around block of code to find out
what exception is being thrown when it shouldn't.
svn path=/trunk/mcs/; revision=4370
* FileTest.cs: Added TestOpen() from Mike Gray.
* AllTests.cs: Added missing FileTest.Suite as pointed out by Mike
as well.
svn path=/trunk/mcs/; revision=4367
* StreamReader.cs: return the number of chars read even if we diddn't
fill the whole buffer (makes Sergey's ilasm work with mono).
svn path=/trunk/mcs/; revision=4365
* rootcontext.cs (AddGlobalAttributes): Track attributes on the
typecontainer that they are declared, because the
typecontainer/namespace will have the list of using clauses that
need to be applied.
Assembly Attributes were escaping the normal registration
mechanism.
(EmitCode): Apply attributes within an EmitContext that represents
the container they were declared on.
svn path=/trunk/mcs/; revision=4350
* ecore.cs (FindMostEncompassingType, FindMostEncompassedType):
Revamp completely - make much cleaner as we now operate only
on a set of Types.
(FindMostSpecificSource, FindMostSpecificTarget): New methods
to implement the logic detailed in the spec more correctly.
(UserDefinedConversion): Update accordingly.
svn path=/trunk/mcs/; revision=4349
* cs-tokenizer.cs (adjust_real): Share code between LITERAL_DOUBLE
and the default.
(token): Do not consume an extra character before calling
decimal_digits.
svn path=/trunk/mcs/; revision=4338
* MonoSymbolWriter.cs (MonoSymbolWriter.Close): Use Assembly.LoadFrom (), not
AppDomain.Load () to load the assembly.
svn path=/trunk/mcs/; revision=4334
* System.Data.SqlTypes.SqlInt32Test.cs: missing
declaration for SqlInt32 z which was a test build blocker
* PostgresTest.cs: got rid of warning about missing e
* Test/PostgresTest.cs: exclude PostgresTest.cs
from test build
svn path=/trunk/mcs/; revision=4330
* class.cs (Constructor.Emit): Set the IsStatic flag in the
EmitContext during the instance constructor initializer
resolution, to stop access to instance variables.
This is mandated by the spec, last paragraph of the `constructor
initializers' section.
svn path=/trunk/mcs/; revision=4328
* doc/ado-net: i did not format it correctly earlier, i
tried added various tags where appropriate.
* doc/index: added news item for May 5, 2002 - ado.net able
to retrieve data now
svn path=/trunk/mono/; revision=4326
* doc/ado-net: updated to include installation of
PostgreSQL DBMS under cygwin. It is a TODO for Linux though.
Also included notes on running the System.Data/Test/PostgresTest.cs
that should work on a lot of Mono installations that have
PostgreSQL installed. If not please let me, rodrigo, or gonzalo
know.
svn path=/trunk/mono/; revision=4321
* Test/PostgresTest.cs: modified to run completely. There
are many TODOs in System.Data, so not all data types are
included in the SELECT SQL query. Also, I made it to where
it would connect
using "host=localhost;dbname=test;user=postgres"
instead of my userid and password. When more types are included,
update this test.
svn path=/trunk/mcs/; revision=4320
* test-28.cs: Improved test: before we were failing on abstract
indexers invoked in the same class (as the accessor would have no
body).
svn path=/trunk/mcs/; revision=4318
* cs-parser.jay, class.cs (Accessor): new class used to represent
an accessor (get or set). In the past we used `null' to represent
a missing accessor. But this is ambiguous because there was no
way to tell in abstract indexers/properties if one of them was
specified.
Now there is a way of addressing that.
* expression.cs (Indexers.GetIndexersForType): Use TypeManager.MemberLookup
instead of FindMembers.
svn path=/trunk/mcs/; revision=4317
* System.Data.SqlTypes/SqlBinary.cs:
* System.Data.SqlTypes/SqlBoolean.cs:
* System.Data.SqlTypes/SqlByte.cs:
* System.Data.SqlTypes/SqlDateTime.cs:
* System.Data.SqlTypes/SqlDecimal.cs:
* System.Data.SqlTypes/SqlDouble.cs:
* System.Data.SqlTypes/SqlGuid.cs:
* System.Data.SqlTypes/SqlInt16.cs:
* System.Data.SqlTypes/SqlInt32.cs:
* System.Data.SqlTypes/SqlInt64.cs:
* System.Data.SqlTypes/SqlMoney.cs:
* System.Data.SqlTypes/SqlSingle.cs:
* System.Data.SqlTypes/SqlString.cs:
More implementation, and code clean-up for consistency.
Also, I had implemented many conversions as explicit
that should have been implicit. This should remove
many of the red X's and green pluses from the
System.Data.SqlTypes namespace.
svn path=/trunk/mcs/; revision=4314
* class.cs (TypeContainer.EmitFieldInitializer): Do not typecast
the result of Assign.Resolve as Assign, but rather as ExpressionStatement.
* attribute.cs: Treat indexers and properties as the same in terms
of applying attributes
svn path=/trunk/mcs/; revision=4313
excluded from the current build
2002-05-05 Miguel de Icaza <[email protected]>
* System.Data/DataSet.cs: Remove [Serializable] attributes from
methods, those only apply to structs or classes.
Stub out ISerializable, ISupportInitialize, and IListSource methods
* System.Data/DataRowView.cs: Stub out interface methods for
IEditableObject, ICustomTypeDescriptor and IDataErrorInfo
* System.Data/DataView.cs: Comment out non-implemented
interfaces.
* System.Data/DataViewSettingsCollection.cs: Type cast variables
to the correct type to make it compile.
* System.Data/DataViewSettings.cs: remove reference to
non-existance type ApplyDefaultSort, it is a boolean.
svn path=/trunk/mcs/; revision=4310
build file above.
2002-05-05 Miguel de Icaza <[email protected]>
* DataTableMapping.cs, DataTableMappingCollection.cs: comment out
interfaces we do not implement yet.
* DbDataAdapter.cs: Stub IEnumerable, comment out interfaces
we do not implement yet.
* DbDataPermissionAttribute.cs: call base constructor.
svn path=/trunk/mcs/; revision=4309
* wapi-private.h:
* handles-private.h:
* io.c:
* io-private.h:
* mutexes.c:
* mutex-private.h:
* processes.c:
* process-private.h:
* semaphores.c:
* semaphore-private.h:
* sockets.c:
* socket-private.h:
* events.c:
* event-private.h: Simplify the WapiHandleOps struct: take out all
the file-specific entries, leaving just the items that operate on
handles themselves. Split the close operation into shared and
private parts: shared close is called by the daemon.
* handles.c: As above, but also pass handle allocation, ref and
unref operations to the daemon. Populate the handle_ops array at
compile time, because the daemon needs to call ops on handles too.
Don't bother to track open handle counts any more, the daemon does
that.
* threads.c:
* thread-private.h: As above, but also make the thread data
handle-private.
* shared.c: Fork a handle daemon if the calling process created
the shared memory segment.
* daemon.c:
* daemon-messages.c:
* daemon-messages.h:
* Makefile.am: Build a daemon to manage handle allocation and
destruction without needing to lock the shared memory
svn path=/trunk/mono/; revision=4306
* Test/PostgresTest.cs: added - ported
libgda postgres-test.c originally by
Gonzalo Paniagua Javier <[email protected]>
to C#.
svn path=/trunk/mcs/; revision=4305
* ArrayListTest.cs: Test for RankException when constructing from a
multi-dimensional array. Confirmed behavior from MS.NET
svn path=/trunk/mcs/; revision=4303
* ArrayList.cs: Throw RankException when constructing from a
multi-dimensional array. Confirmed behavior from MS.NET
svn path=/trunk/mcs/; revision=4302
bug:
2002-05-05 Miguel de Icaza <[email protected]>
* ecore.cs (FindMostEncompassedType): Use statically initialized
EmptyExpressions()s like we do elsewhere to avoid creating useless
objects (and we take this out of the tight loop).
(GetConversionOperators): Move the code to extract the actual
operators to a separate routine to clean things up.
svn path=/trunk/mcs/; revision=4291
* System.Data.SqlTypes/SqlBinary.cs:
* System.Data.SqlTypes/SqlBoolean.cs:
* System.Data.SqlTypes/SqlByte.cs:
* System.Data.SqlTypes/SqlDecimal.cs:
* System.Data.SqlTypes/SqlDouble.cs:
* System.Data.SqlTypes/SqlGuid.cs:
* System.Data.SqlTypes/SqlInt16.cs:
* System.Data.SqlTypes/SqlInt32.cs:
* System.Data.SqlTypes/SqlInt64.cs:
* System.Data.SqlTypes/SqlMoney.cs:
* System.Data.SqlTypes/SqlSingle.cs:
* System.Data.SqlTypes/SqlString.cs:
Various fixes, including adding the SqlNullValueException
when trying to retrieve the value of a null SqlType,
and when casting values, a Null of type A converts to a
Null of type B.
svn path=/trunk/mcs/; revision=4288
* ecore.cs (FieldExpr): Remove un-needed tests for null, since now
events are always registered FieldBuilders.
* class.cs (FieldBase): New class shared by Fields
svn path=/trunk/mcs/; revision=4287
* System.build: excluded EventDescriptor.cs,
EventDescriptorCollection.cs and ICustomTypeDescriptor.cs.
* System.ComponentModel/AttributeCollection.cs: added a cast to make it
compile
svn path=/trunk/mcs/; revision=4283
* System.Data.SqlClient/PostgresLibrary.cs
* System.Data.SqlClient/SqlCommand.cs
* System.Data.SqlClient/SqlConnection.cs
* System.Data.SqlClient/SqlDataReader.cs
oid should not be hard coded because they
can change from one version of PostgreSQL
to the next. Use the typname's instead.
The PostgreSQL type data retrieves
at database connection time. Any unimplemented
types just default to string. These were things
suggested by Gonzalo.
* Test/ReadPostgresData.cs - stuff
* Test/TestSqlDataReader.cs - stuff
* System.Data.SqlTypes/SqlInt32.cs - added a using
svn path=/trunk/mcs/; revision=4281
* delegate.cs: If we are a toplevel delegate, use our full name.
If we are a nested delegate, then only use our tail name.
svn path=/trunk/mcs/; revision=4279
* XmlSchemaUtil.cs: New file added.
* Parser.cs: New file Added. Unused at the moment.
* XmlSchemaObjectCollection: Fixed GetEnumerator
* General: Preprocessing for Attributes and SimpleTypes completed.
svn path=/trunk/mcs/; revision=4276
* StreamReaderTest.cs: Change location of sample file. Use memory
stream instead of file stream to eliminate reliance on file io
for now. That area is still a bit immature.
* resources: New directory to hold files open/read, etc. by unit
tests.
svn path=/trunk/mcs/; revision=4274
* StreamReader.cs: Throw exceptions where needed. Changed Null field to
use new internal class since null cannot be passed to constructor
anymore. Also, fix a coule of small bugs.
svn path=/trunk/mcs/; revision=4273
* appdomain.c, appdomain.h, assembly.c, assembly.h, image.h,
icall.c, reflection.h: separate assembly loading by pathname and by
assembly name. Use the MONO_PATH env var to search for assemblies.
svn path=/trunk/mono/; revision=4267
him only included four of the changed files. This touches the rest of
the System.Data.SqlTypes. This directory should actually compile (!)
now.
svn path=/trunk/mcs/; revision=4261
* System.Data.build: removed comments
* System.Data.SqlClient/PostgresLibrary.cs: changed
the hard-coded PostgreSQL oid type int's to using an
enum. Also, added PostgreSQL bpchar (character) type.
* Test/TestSqlDataReader.cs: updated test
to include new bpchar PostgreSQL type
svn path=/trunk/mcs/; revision=4260
* Moved then to System.Windows.Forms\System.Windows.Forms\*.cs.
* Bursted them out, puting each enums in its own file.
* used ennumcheck to set correct values.
* Ran Monostyle on them.
* ArrangeDirection.cs enum does not have values for left and right.
svn path=/trunk/mcs/; revision=4256
* x86.brg: use VAROFFSET macro
* emit-x86.c (tree_emit): allocate space for spilled regs in
activation frame instead of pushing them to the stack.
svn path=/trunk/mono/; revision=4249
* Test/TestExecuteScalar.cs: added test for
method ExecuteScalar in class SqlCommand.
* System.Data/DataColumnCollection.cs - it should
inherit properties from base InternalDataCollectionBase
and use them instead of overriding them, such as, List.
* System.Data/DataColumn.cs
* System.Data/DataTable.cs: tweaks to retrieve
meta data from the database
* System.Data.SqlClient/PostgresLibrary.cs -
added method OidToType to convert PostgreSQL oid type
to System.Type. Renamed method OidTypeToSystem
to ConvertPgTypeToSystem for converting the data value
from a PostgreSQL type to a .NET System type.
* System.Data.SqlClient/SqlCommand.cs: implemented
method ExecuteReader which returns a SqlDataReader
for a light forward only read only result set.
It works on types int4 ==> Int32 and
varchar ==> String. Other types
will come later.
* System.Data.SqlClient/SqlConnection.cs: added comment
* System.Data.SqlClient/SqlDataReader.cs: implemented
class. It works, but still lots to do.
* Test/ReadPostgresData.cs: stuff
* Test/TestSqlDataReader.cs: updated test for SqlDataReader
to display meta data and the data
svn path=/trunk/mcs/; revision=4247
* delegate.cs : Handle the case when we have more than one applicable
method. Flag an error only when we finish checking all.
svn path=/trunk/mcs/; revision=4233
* expression.cs (IsApplicable): Ensure that we add the "&" to
ref/out types before comparing it with the type of the argument.
(IsParamsMethodApplicable): Ditto.
(Argument.Type): Use TypeManager.LookupType instead of Type.GetType -
silly me ;-)
svn path=/trunk/mcs/; revision=4231
* MemoryStream.cs: Refrain from allocating array until the space is
really needed. This fixes a bug in the Length property when the
constructor without the byte array is used.
svn path=/trunk/mcs/; revision=4223
* assembly.c, image.h: add some support for assemblies
with multiple modules.
* class.c, class.h: export mono_class_from_typeref().
* loader.c: remove duplicated code and use mono_class_from_typeref(),
instead.
svn path=/trunk/mono/; revision=4221
* ArrayList.cs: make mcs compile again: it's allowed to
call arraylist.CopyTo(array, 0) when the length of the array
is also 0.
svn path=/trunk/mcs/; revision=4218
* System.Data.SqlClient/PostgresLibrary.cs: included new
internal class that will be a helper class in using
PostgreSQL. PostgresLibrary is used for the
pinvoke methods to the PostgreSQL Client
native C library libpq while the class PostgresHelper
is used for wrapper or helper methods. It currently only
has one static method OidTypeToSystem in converting
PostgreSQL types to .NET System.<type>s, such as,
a PostgreSQL int8 becomes a .NET System.Int64.
Only a few types have been added, such as, int2,
int4, int8, varchar, text, bool, and char. Other types
will come later.
* System.Data.SqlClient/SqlCommand.cs: implemented
method ExecuteScalar which allows us to do aggregate
functions, such as, count, avg, min, max, and sum. We
also are able to retrieve the result, convert it to the .NET type
as an object. The user of the returned object must explicitly cast.
* Test/ReadPostgresData.cs: updated sample
to help us learn to retrieve data in System.Data.SqlClient
classes
svn path=/trunk/mcs/; revision=4217
* System.Data.build: added /nowarn: nnnn arguments
so you will not get a ton of warnings. The warnings
being excluded are: 1595, 0067, 0109, 0169, and 0649
svn path=/trunk/mcs/; revision=4214
* PropertyDescriptorCollection.cs: Added the IList explicit
implementation methods.
lots of bug fixes to get the build to compile again.
svn path=/trunk/mcs/; revision=4209
2002-05-01 Miguel de Icaza <[email protected]>
* attribute.cs: Use proper cast for Events, since we use a MyEventBuilder.
* parameter.cs (ComputeParameterTypes,
ComputeAndDefineParameterTypes): Better error handling: now we
clear the `types' cache if we fail during any of the type lookups.
We also return the status code correctly to our caller
* delegate.cs: If we fail to define a delegate, abort the extra
steps.
svn path=/trunk/mcs/; revision=4208
* ListSortDirection.cs: new enumeration. Please, somebody run
EnumCheck on it, as I don't have a windows machine.
* PropertyDescriptorCollection.cs: new class.
* ITypedList.cs:
* IBindingList.cs: new interfaces.
svn path=/trunk/mcs/; revision=4200
* System.Data.SqlClient/SqlClientPermission.cs: added missing
'using's.
* System.Data/MergeFailedEventArgs.cs: new class, contributed
by John Dugaw <[email protected]>.
* System.Data.build: excluded new files from build.
svn path=/trunk/mcs/; revision=4198
* expression.cs (Binary.ResolveOperator): for
operator==(object,object) and operator !=(object, object) we also
have to verify that there is an implicit conversion from one to
the other.
svn path=/trunk/mcs/; revision=4196
* StreamReaderTest.cs:
* StreamWriterTest.cs: Catch and display exception info where it wasn't
being caught before.
svn path=/trunk/mcs/; revision=4192
* ArrayListTest.cs (TestCopyTo) : Make assert messages unique and
avoid possible MS.NET bug when test is run on .NET.
svn path=/trunk/mcs/; revision=4188
* FileLoadException.cs (constructors): Added missing (string,
string) ctor, as well as (string, string, Exception) ctor.
(Message): Added more info to the error message
(ToString): Added. We'll need to add the StackTrace stuff when
that works.
* FileShare.cs: Add a missing field, Inheritable.
* TextReader.cs: Renamed Synchronised method to Synchronized.
* TextWriter.cs: Renamed Synchronised method to Synchronized.
Renamed protected member coreNewLine to CoreNewLine.
svn path=/trunk/mcs/; revision=4182
* assign.cs (CompoundAssign): A new class used as a "flag" that
the assignment actually is happening as part of a compound
assignment operator.
During compound assignment, a few new rules exist to enable things
like:
byte b |= 1 + 2
From the spec:
x op= y can be evaluated as x = (T) (x op y) (ie, an explicit cast
to the type of x) if y is implicitly convertible to the type of x,
and the operator is a builtin operator and the return type of the
operator is explicitly convertible to the type of x.
* rootcontext.cs: Reset warning level to 2. 4 catches various
"interesting" features in mcs, we must clean this up at some
point, but currently am trying to kill other bugs ;-)
svn path=/trunk/mcs/; revision=4179
* icall.c
(ves_icall_System_CurrentTimeZone_GetTimeZoneData): Fixed for
systems that use 'timezone' rather than tm.tm_gmtoff. Also, not
all systems have tm.tm_zone, so use strftime() with %Z to print
the timezone abreviation into a temp string.
* object.c (mono_ldstr): Fixed to use mono_string_chars() macro
rather than mono_array_addr() on a MonoString on Big Endian
machines.
svn path=/trunk/mono/; revision=4176
* Thread.cs: If LocalDataStoreSlot already has data set, remove it
before adding a new one.
Use the Thread object destructor to tell the runtime to close the
thread handle.
svn path=/trunk/mcs/; revision=4171
* atomic.c: Changed to use a normal mutex rather than a spinlock
since a lot of platforms seem to not have them :\
svn path=/trunk/mono/; revision=4170
* ecore.cs (SimpleName.SimpleNameResolve): Perform member lookups
in container classes as well.
* expression.cs (Binary.ResolveOperator): Handle string case
before anything else (as operator overloading does emit an error
before doing anything else).
This code could go away when we move to a table driven model, but
i could not come up with a good plan last night.
svn path=/trunk/mcs/; revision=4169
* Completely rewrote the handle waiting code: removed the helper
thread and its attendant complexity. All handle waiting is now
abstracted into the WaitForSingleObject() and
WaitForMultipleObjects() functions.
* Implemented inter-process sharing of handles using sysv shared
memory. This makes handles even more opaque, with a handle now
just an index into an array.
2002-04-30 Dick Porter <[email protected]>
* socket-io.c: Cope with SOCKET being an integer rather than a
pointer now.
* threads.c: Added Thread_free_internal, to deal with thread
handle cleanup. Moved calls to handle_store() and handle_remove()
to start_wrapper(), so each can only be called once. Allocate
synchronisation blocks with GC_malloc(), and use GC finalisation
to close the handles.
* icall.c: added System.Threading.Thread::Thread_free_internal
2002-04-30 Dick Porter <[email protected]>
* acconfig.h:
* configure.in: Added option to disable using shared memory for
handles
2002-04-30 Dick Porter <[email protected]>
* shmdel.c:
* scratch.c:
* hps.c:
* Makefile.am: Some tools to help debug shared memory handles:
'hps' shows handle status, 'scratch' displays info about scratch
data (such as handle names), 'shmdel' deletes the shared memory
segment.
2002-04-30 Dick Porter <[email protected]>
* interp.c: Tell glib to not abort when g_log() etc print
recursively
2002-04-30 Dick Porter <[email protected]>
* mono.c (main): Tell glib to not abort when g_log() etc print
recursively
svn path=/trunk/mono/; revision=4166
* exception.c (arch_handle_exception): use ctx->SC_EBP in
end_of_stack check as suggested by Linus Upson <[email protected]>
svn path=/trunk/mono/; revision=4159
* typemanager.cs (CSharpName): reimplemented with Lupus
suggestion.
2002-04-28 Miguel de Icaza <[email protected]>
* statement.cs (If): correclty implement Resolve, because we were
not catching sem errors in there. The same process is needed
everywhere else.
(Return, StatementExpression, For, While, Do, Throw, Lock): Implement Resolve
(Statement.Warning_DeadCodeFound): Factorize code.
(While): Report dead code here too.
(Statement): Added Resolve virtual method to allow
for resolution split from the emit code.
svn path=/trunk/mcs/; revision=4158
* ArrayListTest.cs (TestTrimToSize): Change test so that it doesn't
rely on the specific timing of a capacity change. Our corlib doubles
capacity sooner than the reference system does.
svn path=/trunk/mcs/; revision=4156
* object.c, object.h: added mono_runtime_run_main () and
mono_runtime_get_main_args () for use in System.Environment.
svn path=/trunk/mono/; revision=4142
* Test/ReadPostgresData.cs: added - Uses the
PostgresLibrary to retrieve a recordset.
This is not meant to be used in Production, but as a
learning aid in coding
class System.Data.SqlClient.SqlDataReader.
This sample does work.
* Test/TestSqlDataReader.cs: added - used
to test SqlDataReader (does not work yet)
Forgot to add to ChangeLog on last commit.
svn path=/trunk/mcs/; revision=4129
* ArrayListTest.cs (): Remove test on unsorted array. Behavior is
undefined according to docs. Re-added test that was commented out.
svn path=/trunk/mcs/; revision=4125
* configure.in: fix for conditional "THREADS_PTHREAD" was never
defined problem under cygwin with latest version of automake and
autoconf. Patch from Jeroen Janssen <[email protected]>.
svn path=/trunk/mono/; revision=4117
2002-04-28 Miguel de Icaza <[email protected]>
* statement.cs (Statement): Added Resolve virtual method to allow
for resolution split from the emit code.
2002-04-26 Miguel de Icaza <[email protected]>
* statement.cs (EmitBoolExpression): No longer try to resolve the
expression here.
(MakeBoolean): New utility function that resolve, implicitly
converts to boolean and tags the expression.
(If, Do): Implement dead code elimination.
(While): Implement loop inversion
(Do, While, For, If): Resolve the expression prior to calling our
code generation.
svn path=/trunk/mcs/; revision=4116
* CollectionChangeAction.cs: Changed enum layout to fit the MS
implementation. Please use EnumCheck!
* UnauthorizedAccessException.cs: Added the missing
Serializable attribute.
svn path=/trunk/mcs/; revision=4114
* CollectionChangeAction.cs: new enumeration.
* CategoryAttribute.cs: moved the 'return' keyword to the
end of the method, to avoid compilation errors on Linux for
all CategoryAttribute properties.
svn path=/trunk/mcs/; revision=4107
* reflection.c (mono_reflection_setup_internal_class): remove g_assert_not_reached() to allow
mcs selfhosting again (build breaker) and did move the check to class instead. parent is
allowed to be null when it's System.Object class setup.
svn path=/trunk/mono/; revision=4102
* makefile: Make NAnt.exe dependant on all the *.cs in src and each sub
dir. Since we don't remove it on a 'make clean' it doesn't get rebuilt
when a new file is added or an existing one changed.
svn path=/trunk/mcs/; revision=4100
* StringTest.cs: Mark Assert() messages with unique identifiers.
* DecimalTest.cs: Write out more info in the Report method. Need this
to determine why op_Subtraction() is failing in the next line.
* MathTest.cs:
* DoubleTest.cs:
* UInt32Test.cs: Add try-catch blocks to find out where the test is
failing.
svn path=/trunk/mcs/; revision=4099
* System.Data/DataRelation.cs
* System.Data/ForeignKeyConstraint.cs
* System.Data/UniqueConstraint.cs: added more stubs
* System.Data/DataTableRelationCollection.cs: added back to cvs
and modified for compile errors. DataRelationCollection is an
abstract class and there must be a class that implements for
DataTable/DataSet. DataTableRelationCollection was changed
to an internal class.
* System.Data.build: modified - new files added
also wanted to include files/classes in the build
so we can get a compilable forward read only result set.
It compiles now using csc/nant with warnings, but this
is a start for adding functionality for the result set.
Classes associated with/and DataSet are still excluded.
* TODO: modified - updated to do list for System.Data
* System.Data/Constraint.cs
* System.Data/ConstraintCollection.cs
* System.Data/DataRelationCollection.cs
* System.Data/DataRow.cs
* System.Data/DataRowChangeEventArgs.cs
* System.Data/DataRowCollection.cs
* System.Data/DataTable.cs
* System.Data/DataTableCollection.cs
* System.Data/InternalDataCollectionBase.cs
* System.Data/PropertyCollection.cs: modified -
changes to compile SqlDataReader/DataTable and
dependencies
* System.Data/IDbCommand.cs
* System.Data.SqlClient/SqlCommand.cs: modified -
un-commented overloaded methods ExecuteReader
which returns a SqlDataReader
svn path=/trunk/mcs/; revision=4098
* jit.h (MonoFlowGrap): Renamed `epilogue_begin' to `epilogue_end',
there's already `epilog' so we don't need `epilogue_begin'.
* debug.c (mono_debug_add_method): Use `cfg->epilogue_end' to get the
size of the method's code.
svn path=/trunk/mono/; revision=4094
* reflection.c (mono_reflection_setup_internal_class): g_assert_not_reached()
if `tb->parent == NULL' rather than crashing.
svn path=/trunk/mono/; revision=4092
* sysmath.c (ves_icall_System_Math_Asin): Fix copy-paste error. Was
calling acos() where asin() should have been called.
svn path=/trunk/mono/; revision=4091
* corlib.build: Added new "mcs-build" target to compile corlib
with mcs. This doesn't work yet - it's just to test mcs to find
and fix the remaining bugs.
svn path=/trunk/mcs/; revision=4089
* Array.cs (IList.Contains): Should throw a RankException if this is
called on a Rank > 1 array. Not in the docs, but this is what the
MS.NET does.
svn path=/trunk/mcs/; revision=4087
* System.Data/DataTableCollection.cs: more implementation.
(Count): added 'override' keyword, as pointer out by Martin.
* System.Data.Common/DataColumnMappingCollection.cs (Add, AddRange):
only call Array.Copy when there is really stuff to be copied.
(CopyTo): don't create the temporary array, it's not needed.
* System.Data.build: excluded newly added file from build.
svn path=/trunk/mcs/; revision=4084
* System.Data/DataTableRelationCollection.cs: removed, it's not
on MS SDK documentation.
* System.Data/DataTableCollection.cs: new class.
svn path=/trunk/mcs/; revision=4082
* System.Data/DataRowChangeEventArgs.cs
* System.Data/DataRowCollection.cs
* System.Data/DataView.cs
* System.Data/PropertyCollection.cs: added new stubs
* System.Data.build: modified - added new files to exclude
from build
* TODO: modified - removed files from TODO list
that were stubbed above
* System.Data/DataColumn.cs
* System.Data/DataRow.cs: modified - various tweaks
and added internal method SetTable to set the reference
to a DataTable
* System.Data/DataSet.cs: modified - class was not
completely stubbed.
* System.Data/DataTable.cs: modified - temporarily commented
DataSet and DataView references - trying to compile a SqlDataReader,
DataTable, and dependencies for a forward read-only result set.
SqlDataAdapter, DataSet, and DataView will come later once we can get
a forward read only result set working.
* System.Data/IDataRecord.cs: modified - source code lines should
not be > 80
* System.Data/InternalDataCollectionBase.cs: modified - started
implementing this base class for collection of data rows,
columns, tables, relations, and constraints
* System.Data.SqlClient/SqlException.cs: modified -
call base(message) so a unhandled exception displays
the message of a SQL error instead of the
default SystemException message
* Test/TestSqlException.cs: modified -
handle the rollback properly for a SqlException on a
failure to connect
svn path=/trunk/mcs/; revision=4079
* MissingMemberException.cs: Made the message variable 'protected'
instead of 'private', so that we can see it in
MissingMethodException and MissingFieldException.
* MissingFieldException.cs:
* MissingMethodException.cs: Added missing (string, string)
constructor, and also the Message property.
svn path=/trunk/mcs/; revision=4077
2002-04-22 Lawrence Pit <[email protected]>
* class.cs:
- added method Report28 (warning: program has more than one entry point)
- added method IsEntryPoint, implements paragraph 10.1 of the spec
- modified method Method.Define, the part at the end of the method
* rootcontext.cs: added static public Location EntryPointLocation;
* ../errors/cs0028.cs : Add test case for the above warning.
* typemanager.cs:
- modified method CSharpName to allow arrays of primitive type to
be printed nicely (e.g. instead of System.Int32[][] it now prints
int[][])
- added method CSharpSignature: returns the signature of a method
in string format to be used in reporting errors, warnings, etc.
* support.cs: InternalParameters.ParameterDesc variable tmp initialized
with String.Empty.
svn path=/trunk/mcs/; revision=4076
* delegate.cs (Define): Fix extremely silly bug where I was
setting the type of the 'object' parameter of the BeginInvoke
method to System.IAsyncResult instead of System.Object ;-)
svn path=/trunk/mcs/; revision=4072
* class.cs (ConstructorInitializer.Resolve): Also use DeclaredOnly
here.
(Constructor.Emit): return if we fail to initialize the
constructor. Another door closed!
* expression.cs (New.DoResolve): Improve error message (from -6 to
1501). Use DeclaredOnly lookup to find the exact constructor.
* typemanager.cs (MemberLookup): If DeclaredOnly is set, do not
loop. This is useful.
svn path=/trunk/mcs/; revision=4070
* driver.cs (LoadAssembly): If `assembly' contains any characters
which are only valid in path names and not in assembly names
(currently slash, backslash and point), use Assembly.LoadFrom ()
instead of Assembly.Load () on the `assembly' (before iteration
over the link_paths).
svn path=/trunk/mcs/; revision=4067
* CompilerBase.cs (WriteOption): New virtual method. The default
implementation writes CSC-style command line options, but it can
be overridden in derived class to write mcs-style command line
arguments.
(ExecuteTask): Use the new virtual `WriteOption' method to write
options.
* CscTask.cs (WriteOptions): Use the new `WriteOption' method.
* McsTask.cs: New file.
svn path=/trunk/mcs/; revision=4064
* assembly.c (default_assembly_name_resolver): Use G_FILE_TEST_IS_REGULAR
instead of G_FILE_TEST_EXISTS - if you're in mcs/class/corlib/System/Test,
there's a subdirectory called `System', but we don't want to read that
subdirectory as an assembly.
svn path=/trunk/mono/; revision=4060
* gdb-csharp-support.patch: A patch for GDB (against the latest CVS version)
to implement C# support.
* csharp-lang.c, csharp-lang.h, csharp-mono-lang.c: Copy these into your GDB
source directory after applying the patch.
svn path=/trunk/mcs/; revision=4059
* class.cs (Property): use the new typemanager.MemberLookup
(TypeContainer.MemberLookup): Implement using the
TypeManager.MemberLookup now.
* typemanager.cs: Make MemberLookup a function of the TypeManager,
and return MemberInfos, so that these can be used without an
EmitContext (what we had before).
svn path=/trunk/mcs/; revision=4052
* rand.c, rand.h: instance method icalls need to have an explicit
this pointer as first argument in the C implementation.
svn path=/trunk/mono/; revision=4045
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
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
href="http://codigolivre.org.br/projects/monoqle">Project MonoQLE:</a> a C# Message Queue Server.
Sorry only in portuguese, for now.
</ul>
** GNOME Documentation
Documnetation on GNOME, and the GNOME APIs is available from
Documentation on GNOME, and the GNOME APIs is available from
the <a href="http://developer.gnome.org">developer</a> site at
/// The TODO attribute is used to flag all incomplete bits in our class libraries
/// </summary>
///
/// <remarks>
/// Use this to decorate any element which you think is not complete
/// </remarks>
[AttributeUsage (AttributeTargets.All)]
internalclassMonoTODOAttribute:Attribute{
stringcomment;
publicMonoTODOAttribute()
{}
publicMonoTODOAttribute(stringcomment)
{
this.comment=comment;
}
}
}
Loaded 100 of 5612 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.