* cs-parser.jay: Fix grammar wrt. type_parameter_constraints.
* generic.cs (Constraints.Resolve): New public method; this is
called to resolve the constraint types and to check whether all
the constraints are correct.
(Constraints.Types): New public property.
(TypeParameter.Resolve): New public method; resolves all the
type's constraints.
* class.cs (TypeContainer.DefineType): Call
TypeParameter.Resolve() before actually defining the type.
svn path=/trunk/mcs/; revision=18111
* class.cs (TypeContainer.DefineType): Added an error flag to
avoid reporting duplicate CS0146's ("class definition is
circular.").
* driver.cs (Driver.MainDriver): Abort if
RootContext.ResolveTree() reported any errors.
svn path=/trunk/mcs/; revision=18108
* tramp-x86.c (x86_class_init_trampoline): New trampoline function
which calls mono_runtime_class_init and patches the call site to
avoid further calls.
(mono_arch_create_class_init_trampoline): New arch specific function
to create a class init trampoline.
(create_trampoline_code): Generalized so it can create
class init trampolines as well.
* mini.c (helper_sig_class_init_trampoline): New helper variable.
(mono_create_class_init_trampoline): New function to create and cache
class init trampolines.
(mono_find_class_init_trampoline_by_addr): New function to lookup the
vtable given the address of a class init trampoline. Used by the
patching process.
(mono_codegen): Generate a call to a trampoline instead of
mono_runtime_class_init in LDSFLD[A].
(mono_codegen): Add relocations for the new trampoline.
* mini.h mini-x86.c aot.c: Added a new relocation type:
MONO_PATCH_INFO_CLASS_INIT.
* mini.h: Bump AOT version number.
* aot.c: Create a copy of the loaded code instead of using the original
so methods which call each other will be close in memory, improving
cache behaviour.
svn path=/trunk/mono/; revision=18102
* exceptions-x86.c (mono_arch_has_unwind_info): Back out the previous
patch since it breaks the regression tests.
svn path=/trunk/mono/; revision=18101
* exceptions-x86.c (mono_arch_has_unwind_info): Added explicit check
for the register saving instruction sequence since the
frame_state_for function in glibc 2.3.2 don't seem to detect it.
svn path=/trunk/mono/; revision=18100
* AllTests.cs: New. Common methods to compare DateTimes and longs.
* ReceivedCollectionTest.cs: New. Unit tests for ReceivedCollection.
* ReceivedTest.cs: New. Unit test for Received.
* TimestampFormatExceptionTest.cs: Unit test for TimestampFormatException.
* TimestampInputFilterTest.cs: Unit test for TimestampInputFilter.
* TimestampOutputFilterTest.cs: Unit test for TimestampOutputFilter.
* TimestampTest.cs: Unit test for Timestamp.
* WSTimestampTest.cs: Unit test for WSTimestamp.
svn path=/trunk/mcs/; revision=18095
OperationCollectionTest.cs OperationMessageCollectionTest.cs
OperationMessageTest.cs PortTypeCollectionTest.cs PortTypeTest.cs
ServiceCollectionTest.cs ServiceDescriptionCollectionTest.cs
SoapBodyBindingTest.cs SoapOperationBindingTest.cs TypesTest.cs
New test files by Erik LeBel.
svn path=/trunk/mcs/; revision=18080
OperationMessageCollection.cs PortCollection.cs PortType.cs
PortTypeCollection.cs ServiceCollection.cs ServiceDescriptionCollection.cs
SoapBodyBinding.cs SoapOperationBinding.cs: Several fixes by Erik LeBel
* ServiceDescriptionImporter.cs:
* ServiceDescriptionSerializerBase.cs: regenerated after the changes in
the service description changes.
* ServiceDescriptionReflector.cs: Fixed generation of message parts in
bare format.
svn path=/trunk/mcs/; revision=18079
* TabPage.cs (constructor): added a constructor for constructing tab
pages with a title. Patch from Jonathan Hogg
<[email protected]>.
* EnumConverter.cs (ConvertFrom): Removed the special handling for
multiple values. This is done in Enum.Parse already.
* TypeDescriptor.cs (GetConverter): Does not work for enumeration
types because EnumConverter does not have a default
constructor. Fixed by changing the special handling for
enumeration types.
svn path=/trunk/mcs/; revision=18074
* FloatingPointFormatter.cs: Make the method calls more functional
for protecting the values from different threads (make it more
thread safe).
svn path=/trunk/mcs/; revision=18068
* FloatingPointFormatter.cs: Fix a bug with the negative value of
count parameter.
2003-09-12 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Applied a lot of improvements in string
construction, make use of Append/Insert with the "count" parameter.
Thanks to Ben Maurer.
svn path=/trunk/mcs/; revision=18065
* XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
in .ctor().
* XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
add Namespaces immediately, but adds at AddMissingElementXmlns so
that we don't have to have extra check than namespaceManager's
LookupPrefix(). 2) Removed writtenAttributes for performance reason
since it is no more required.
svn path=/trunk/mcs/; revision=18063
* aot.c: Moved the check for MONO_LASTAOT into the initialization
function of the module.
* mini.h mini.c aot.c: Added a new optimization flag OPT_AOT for
turning on/off the usage of AOT code. Got rid of mono_no_aot and the
--no-aot command line option.
svn path=/trunk/mono/; revision=18052
* FloatingPointFormatter.cs: Applied a lot of improvements in string
construction, make use of Append/Insert with the "count" parameter.
Thanks to Ben Maurer.
svn path=/trunk/mcs/; revision=18049
* CallContext.cs: SetCurrentCallContext now returns the old context, so it
can be later restored with new new method RestoreCallContext().
* ReturnMessage.cs: Some fixes in the way the class deals with output parameters,
to match MS.NET behavior.
svn path=/trunk/mcs/; revision=18040
* inssel.brg: Refactor the interface offset table related code into
its separate functions and add support for the AOT case.
svn path=/trunk/mono/; revision=18034
* profiler.c (mono_profiler_load): Added '-time' and '-alloc' options
to the built-in profiler to turn off time and allocation profiling
respectively.
svn path=/trunk/mono/; revision=18033
* XmlReflectionImporter.cs: Changed nullable default for array items to true.
* XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
* XmlSchemaImporter.cs: more support for encoded format.
svn path=/trunk/mcs/; revision=18032
* FloatingPointFormatter.cs: Fix a bug with Custm Format.
* FloatingPointFormatter.cs: Fix a little bug I've introduced the
last change.
svn path=/trunk/mcs/; revision=18023
* aot.c: Added mono_aot_verbose variable and made all debugging
output depend on the value of this variable.
* aot.c (mono_aot_get_method_inner): Avoid dynamic allocation of
method_label and info_label.
* mini.h mini-x86.c aot.c: Added a new relocation type
MONO_PATCH_INFO_IID for klass->interface_id.
* mini.h mini.c driver.c aot.c: Changed mono_aot_get_method to return
the MonoJitInfo structure.
* mini.c (mono_jit_compile_method): Avoid using non-shared AOT in
a non-root appdomain in shared mode.
svn path=/trunk/mono/; revision=18021
* profiler.c (mono_profiler_coverage_alloc): Use NULL instead of
g_direct_equal.
* debug-helpers.c (mono_method_full_name): Print the wrapper type
in human readable form.
svn path=/trunk/mono/; revision=18020
* DoubleFormatter.cs: A few optimizations. Now, only one object
is created to convert all double numbers.
* SingleFormatter.cs: A few optimizations. Now, only one object
is created to convert all float numbers.
* FloatingPointFormatter.cs: Split the "number type parameters" from
the "numver value and format parameters". The first ones are in the
constructor and the others are in a method.
svn path=/trunk/mcs/; revision=18019
parent type if no parent type is specified (this is what PEAPI
does) however if we are assembling corlib the System.Object type
will not have System.Object as its parent type.
svn path=/trunk/mcs/; revision=18009
* Factories.cs (DefaultImplementationNamespace): Change it from
"XrImpl" to "Cairo".
2003-09-08 Duncan Mak <[email protected]>
* gdk-helpers.cs: Remember to call gdk_init before hand.
(gdk_pixbuf_finalize): Removed, as it is no longer available
in the current API.
(Helpers): New class to contain other misc. helper functions.
(Init): Import gdk_init.
(Unref): Import g_object_unref. This should be used in place of
gdk_pixbuf_finalize.
* cairo-api.cs: Updated to reflect recent API changes.
(cairo_copy): New API.
(cairo_surface_put_image): Removed to keep updated with current
API.
(cairo_current_foo): Renamed from the old cairo_get_foo methods.
svn path=/trunk/mcs/; revision=18007
* XmlNamespaceManager.cs : GetEnumerator() should return all of the
available pairs (of prefix and namespace).
* XmlQualifiedName.cs : Quick fix for NullReferenceException in case
of name (or ns) is null. (The description of the immediate previous
changes will be inserted below.)
* XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
* XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
will release resources it had allocated.
svn path=/trunk/mcs/; revision=17996
* mini.c (mono_print_tree_nl): New function callable while debugging.
* mini.c (mono_print_code): Export this.
* mini.h (MonoCompile): Added 'jit_info' field.
* mini.c (mini_method_compile): Save the generated MonoJitInfo into
the cfg structure, since it is needed by the AOT compiler.
* mini.h (MONO_AOT_FILE_VERSION): Bump version number.
* aot.c: A major rewrite. Changes include:
- save exception tables for methods which have them.
- cache failed lookups in aot_get_method () to avoid the (slow) calls
to g_module_symbol.
- reworked the file format so it is now much smaller and needs
fewer relocation entries.
svn path=/trunk/mono/; revision=17993
* image.c (load_class_names): Use a temporary hash table to hold the
namespaces in order to avoid doing many string comparisons.
* image.h: Fix typo.
* image.c class.c rawbuffer.c reflection.c threads.c verify.c domain.c:
Pass NULL instead of g_direct_equal to the GHashTable constructor
since the NULL case is short-circuited inside g_hash_table_lookup,
leading to better performance.
svn path=/trunk/mono/; revision=17992
* metadata.c (mono_metadata_custom_attrs_from_index): New function to
obtain the first custom attribute for a given index. Depends on the
CustomAttribute table being sorted by the parent field.
* reflection.c (mono_custom_attrs_from_index): Use the new function
for better performance.
svn path=/trunk/mono/; revision=17991
* Context.cs: Added constructor and Document field.
* DocumentContext.cs: Added Name field.
* JSParser.cs: Integration of antlr's generated parser with
JSParser public API. ScriptBlock is now the principal data structure that
represents a Jscript .Net program.
* JSScanner.cs: Integration of antlr's generated lexer with
JSScanner public API.
svn path=/trunk/mcs/; revision=17988
* Referral.cs: Oops - didn't compile when WSE1 was defined
* ReferralCollection.cs: Oops - didn't compile when WSE1 was defined
svn path=/trunk/mcs/; revision=17984
* report.cs (Error, Warning): Added overloaded versions which take
a `params object[] args' and call String.Format().
svn path=/trunk/mcs/; revision=17977
* decl.cs (DeclSpace..ctor): Don't call
NamespaceEntry.DefineName() here; do it in RecordDecl() which is
called from Tree.RecordDecl(). Fixes the CS0101 reporting.
(DeclSpace.RecordDecl): New method.
* tree.cs (Tree.RecordDecl): Call ds.RecordDecl().
svn path=/trunk/mcs/; revision=17976
* class.c (mono_class_init): If we're a generic instance, inflate
all our methods instead of loading them from the image.
(mono_class_from_generic): Set `class->methods = gklass->methods'.
svn path=/trunk/mono/; revision=17970
* Microsoft.Web.Services.dll.sources: Added stubbed input/output soap
filters for Routing and Referral so Configuration can be compiled.
svn path=/trunk/mcs/; revision=17962
* DefaultContext.cs, Expresssion.cs, Parser.jay: Rewrite so that
system functions are actually expressions. Will allow for some
nice optimizations.
svn path=/trunk/mcs/; revision=17947
* EncryptedKey.cs: Fixed typo.
* Security.cs: Fixed compilation issues.
* SignedXml.cs: Fixed compilation issues.
* SignedXmlSignature.cs: Copied from System.Security assembly (where
it is known as Signature.cs) as MS duplicate the class (in WSE) to
fixed some issues.
* XmlSignature.cs: Added more missing string used in System.Security.
svn path=/trunk/mcs/; revision=17940
* Makefile: Added reference to System.Security assembly and a define
for WSE1 (required for classes shared between SS and WSE).
* Microsoft.Web.Services.dll.sources: Added (shared) files from
System.Security assembly.
svn path=/trunk/mcs/; revision=17897
* Reference.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* SignedInfo.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* SignedXml.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* TransformChain.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
svn path=/trunk/mcs/; revision=17894
* BitVector32.cs (CreateSection): Check that the new
calculated offset isn't more than 32 and not that the sum of the
new offset and the number of set bits is more than 32.
(this): Perform bitwise and with the complement of the mask
shifted version (~(section.Mask << section.Offset)) and not with
the shifted version of the mask's complement (~section.Mask <<
section.Offset).
(this): Currently doesn't return the correct value when the data
in the BitVector32 instance is negative.
* ListDictionary.cs (CopyTo): If the array is null, it should
throw ArgumentNullException. If the index is less than 0, it
should throw ArgumentOutOfRangeException.
(Remove): Throw ArgumentNullException when the parameter is null.
* BitVector32Test.cs (TestNegativeIndexer, TestSectionIndexer,
TestCreateSection): new tests from Alon Gazit <[email protected]>.
* ListDictionaryTest.cs (CopyTo1, CopyTo2, Remove): New file, with
tests from Alon Gazit <[email protected]>.
svn path=/trunk/mcs/; revision=17885
* decl.cs (DeclSpace.LookupGeneric): New method.
(DeclSpace.CheckAccessLevel): Ignore generic parameters for the
moment.
* generic.cs (TypeParameterExpr): Take a TypeParameter as
argument, not just a string.
(TypeParameter.Define): New public method; this is called to
actually define the generic parameter; after this, you can use the
new `Type' property to get the type.
svn path=/trunk/mcs/; revision=17881
* decl.cs (DeclSpace.SetParameterInfo): The `constraints' argument
is now an ArrayList; initialize the result of the `TypeParameters'
property here.
(DeclSpace.GetGenericData): Removed.
(DeclSpace.LookupGeneric): Temporarily removed; we need to
implement this in a different way.
(DeclSpace.GetTypeParameters): Removed; there's now a
`TypeParameters' property.
(DeclSpace.TypeParameters): New public property.
* ecore.cs (SimpleName.ResolveAsTypeStep): Removed the generic
lookup for the moment.
* generic.cs (Constraints): Make this class public.
(TypeParameter): New public class.
svn path=/trunk/mcs/; revision=17874
* decl.cs (DeclSpace.GetTypeParameters): New method to return the
generic parameters.
* class.cs (TypeContainer.DefineType): Call
TypeBuilder.DefineGenericParameter () on all generic parameters if
this is a generic type.
svn path=/trunk/mcs/; revision=17873
* metadata.c (mono_type_size): Added MONO_TYPE_VAR and MONO_TYPE_MVAR.
* reflection.h (MonoReflectionGenericParam): New typedef.
(MonoReflectionTypeBuilder): Added `num_generic_params' and
`generic_params' fields to get the generic parameters from the
managed TypeBuilder.
* reflection.c (mono_reflection_define_generic_parameter): New function.
(mono_reflection_create_runtime_class): Encode generic parameters.
(mono_reflection_setup_generic_class): New function; this is
called after adding adding all generic params to the TypeBuilder.
(encode_type): Added MONO_TYPE_VAR.
svn path=/trunk/mono/; revision=17871
* TypeBuilder.cs (TypeBuilder.DefineGenericParameter): New public
method. We can now create generic types.
(TypeBuilder.GetGenericTypeDefinition): Override this; call the
`setup_internal_class' interncall before calling our base impl.
svn path=/trunk/mcs/; revision=17870
* aot.c: Move AOT module loading logic here from mono_assembly_open.
* aot.c: Save the optimization flags used to compile the code into
the AOT module.
* mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
support emitting domain specific code.
* mini.h mini.c aot.c: Modified the JIT so the generated AOT code is
no longer domain neutral. It can be made domain neutral by compiling
with --optimize=shared.
* aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
between appdomains.
* driver.c mini.h mini.c: New --no-aot debugging option which disables
loading of AOT code.
* inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.
svn path=/trunk/mono/; revision=17867
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
if there is no domain neutrality information.
svn path=/trunk/mono/; revision=17866
* class.h class.c (mono_class_needs_cctor_run): Moved this method
here from the JIT.
* assembly.h assembly.c: Moved the AOT loading code into an assembly
load hook.
svn path=/trunk/mono/; revision=17865
* ServiceDescriptionImporter.cs: initial implementation.
* ServiceDescriptionReflector.cs: Added support for bare parameter style.
Added support for encoded format.
svn path=/trunk/mcs/; revision=17855
* reflection.h reflection.c class.h class.c: Delete duplicate
definition of mono_type_get_name () from reflection.c and export the
one in class.c.
* class.c: Class loading fixes from Bernie Solomon
([email protected]).
svn path=/trunk/mono/; revision=17841
* class.cs (MethodCore.LabelParameters): Make static and more
generic so that it can be used from other places - like interface
methods, for instance.
* interface.cs (Interface.Emit): Call LabelParameters before
emitting attributes on the InterfaceMethod.
svn path=/trunk/mcs/; revision=17833
* attribute.cs (CheckAttributeTarget): Ensure that we allow return
value attributes to be applied to ParameterBuilders.
svn path=/trunk/mcs/; revision=17831
* AssemblyInfo.cs: Updated version to 0.26.99 (all tools).
* cert2spc.cs: Updated to use Mono.Security.X509.
* chktrust.cs: Tool to validate Authenticode(tm) signatures on PE
files (including assemblies).
* signcode.cs: Tool to sign and timestamp PE files using
Authenticode(tm) compatible certificates.
* README: Updated to include a small tutorial on how to use
Authenticode(tm) to sign/verify assemblies.
* Makefile: Updated to build chktrust.exe and signcode.exe
svn path=/trunk/mcs/; revision=17813
* ITrustAnchors.cs: New. Interface to trust anchors.
* TestAnchors.cs: New. Include 2 tests anchors: Microsoft Root Agency
(for Windows compatibility) and Mono Test Root.
* TrustAnchors.cs: New. Include some widely used (commercial) code
signing root certificates.
* X509CertificateCollection.cs: New. Collection for Mono's X509
certificates.
* X509Chain.cs: New. MINIMAL certificate chaining engine to support
Authenticode(tm). VERY PARTIAL IMPLEMENTATION!!!
svn path=/trunk/mcs/; revision=17811
* AuthenticodeBase.cs: New. Base class including how to hash a
PE file.
* AuthenticodeDeformatter.cs: New. Class to decode Authenticode(tm)
signatures.
* AuthenticodeFormatter.cs: New. Class to encode a Authenticode(tm)
signature, and optionally a timestamp, into a PE file.
* SoftwarePublisherCertificate.cs: Now use Mono.Security.X509.
X509Certificate class.
svn path=/trunk/mcs/; revision=17810
* Encoding.cs (UTF8Unmarked): make it also not error out on
invalid input, that is what the Microsoft default is for the
StreamReader and BinaryReader expect (our main consumers).
svn path=/trunk/mcs/; revision=17807
* aot.c (mono_compile_assembly): Emit a symbol containing the file
format version into the generated library.
* mini-x86.c (mono_arch_patch_code): Do not emit the address of the
callee method into the caller since one of them could be shared.
* mini.h mini-x86.c aot.c: Added two new relocations so throwing
system exceptions from AOT code now works.
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
method if it is domain neutral and the callee is not.
* graph.c (cfg_emit_one_loop_level): Fix warning.
svn path=/trunk/mono/; revision=17800
* assembly.h assembly.c: Define a file format version for AOT
libraries.
* assembly.c (mono_assembly_open): Fix leaking of MonoImage-s.
* appdomain.h (MonoJitInfo): New field to determine whenever the
code is domain neutral.
svn path=/trunk/mono/; revision=17799
* aot.c (mono_compile_assembly): Emit a symbol containing the file
format version into the generated library.
* mini-x86.c (mono_arch_patch_code): Do not emit the address of the
callee method into the caller since one of them could be shared.
* mini.h mini-x86.c aot.c: Added two new relocations so throwing
system exceptions from AOT code now works.
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
method if it is domain neutral and the callee is not.
* graph.c (cfg_emit_one_loop_level): Fix warning.
svn path=/trunk/mono/; revision=17798
* assembly.h assembly.c: Define a file format version for AOT
libraries.
* assembly.c (mono_assembly_open): Fix leaking of MonoImage-s.
* appdomain.h (MonoJitInfo): New field to determine whenever the
code is domain neutral.
svn path=/trunk/mono/; revision=17796
- New questions & answers
- revised answers for compatibility questions
- moved some questions to more sensible categories (e.g. VB questions moved
to "Compatibility" section, away from "Mono & Microsoft").
- Spelling Fixes
Alas, all my editors (gedit & gvim) "fixed" the spelling of some names,
probably because those editors assume UTF-8 encoding... This was seen for
Carlos Perell�� and Lluis S��nchez.
svn path=/trunk/mono/; revision=17780
* win32functions.cs: Added GetUpdateRect function.
* Control.cs: Make sure to call OnPaint even if UserPaint style is not
enabled. Get the appropriate DC for WM_PAINT operations.
svn path=/trunk/mcs/; revision=17769
* interp.c: Use mono_field_from_token () in the appropriate places.
This simplifies the code and also fixes#48051.
svn path=/trunk/mono/; revision=17752
* icall.c (ves_icall_System_Web_Util_ICalls_get_machine_install_dir):
(ves_icall_System_Configuration_DefaultConfig_get_machine_config_path):
Avoid caching the result since strings must be domain specific. Fixes
#48050.
svn path=/trunk/mono/; revision=17743
* mini.c (mini_init): Call mono_marshal_init () explicitly since it
is needed by code which is executed before mono_runtime_init ().
Thanks to Bernie Solomon ([email protected]) for noticing this.
svn path=/trunk/mono/; revision=17727
* marshal.c (mono_marshal_init): Make this callable multiple times
since it is hard to find a correct place to call it.
svn path=/trunk/mono/; revision=17726
* object.c (mono_runtime_class_init): Execute static constructors in
the correct appdomain.
* image.c (build_guid_table): Handle the case when multiple images have
the same GUID.
svn path=/trunk/mono/; revision=17725
* HttpApplication.cs: ensure we do all the EndRequest steps. Don't
filter the output on error.
* HttpResponse.cs: modified DoFilter to allow bypassing filtering.
svn path=/trunk/mcs/; revision=17713
* inssel.brg (OP_UNBOXCAST): Add support for the AOT case.
* cpu-pentium.md: Fix the length of call opcodes so they include the
ESP restoring instruction. Fixes#47968.
svn path=/trunk/mono/; revision=17700
* icall.c (ves_icall_Type_BindGenericParameters): Use
`klass->generic_inst' instead of `&klass->byval_arg' in the
mono_type_get_object() call. The returned type must be
MONO_TYPE_GENERICINST and not MONO_TYPE_CLASS.
svn path=/trunk/mono/; revision=17698
* critical-sections.c: Patch from Bernie Solomon <[email protected]> to emit a warning if locking a critical section fails.
svn path=/trunk/mono/; revision=17697
* OperationMessage.cs: Added default value attribute for Name property.
* ServiceDescription.cs: Changed order of some properties, so they are
serialized in the right order.
Added GetNamespaceList(), which returns the namespaces to add when serializing
the document.
Implemented classes ServiceDescriptionSerializer and ServiceDescriptionWriter,
that extends the XmlSerializer by adding suport for XmlFormatExtensions.
* ServiceDescriptionReflector.cs: Basic implementation (no support for
extensions yet).
* SoapBinding.cs: Fixed namespace name.
* SoapBodyBinding.cs: Added null check in PartsString property.
* SoapOperationBinding.cs: Fixed namespace name.
svn path=/trunk/mcs/; revision=17693
* Methods.cs: Added SoapBindingStyle, SoapBindingUse, InputMembersMapping
and OutputMembersMapping properties in MethodStubInfo.
Use default value defined in TypeStubInfo for RequestNamespace,
ResponseNamespace and other properties.
Added class BindingInfo to store information about class bindings.
In TypeStubInfo added SoapBindingStyle, DefaultBinding, Methods and
Bindings properties.
* SoapRpcMethodAttribute.cs: Use WebServiceAttribute.DefaultNamespace constant
instead of hardcoded namespace name.
* WebServiceHandlerFactory.cs: Create new SoapDocumentationHandler for
documentation requests.
* SoapDocumentationHandler.cs: new handler that generates WS documentation.
svn path=/trunk/mcs/; revision=17692
* XmlSchemas.cs: Find method: make sure the returned object belongs to
the requested type.
* XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
Add null checks for eventSource.
* XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
* XmlSerializationWriter.cs: In Initialize method, initialize the provided
namespece declarations. Virtual method WriteObject not needed any more.
In WriteStartElement, write the provided namespaces.
* XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
Added GetTypeMap method, that returns the map for a given type. Added some
virtual methods, so writer behavior can be extended at several places by
derived classes.
* XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
methods CreateReader and CreateWriter are not called unless no type or
type mapping was provided in the constructor.
svn path=/trunk/mcs/; revision=17690
* mini-x86.c (mono_arch_call_opcode): Added support for
MONO_TYPE_GENERICINST.
* mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.
svn path=/trunk/mono/; revision=17682
* cs-parser.jay (opt_type_argument_list): Use
`OP_GENERICS_LT type_arguments OP_GENERICS_GT'.
(primary_expression): Replace `qualified_identifier' with `type_name'.
(type_parameter_list): Use `OP_GENERICS_LT type_parameters OP_GENERICS_GT'.
* cs-tokenizer.cs (is_punct): When reading a `<', invoke a custom
parser to check whether it is syntactically a type parameter list;
return OP_GENERICS_LT/OP_GENERICS_GT instead of OP_LT/OP_GT in
this case.
svn path=/trunk/mcs/; revision=17675
* Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
a JIT. Patch by Bernie Solomon ([email protected]).
svn path=/trunk/mono/; revision=17670
* interp.c (main): Fix the order of initialization calls so it maches
the order in the JIT.Patch by Bernie Solomon ([email protected]).
Also remove the unused ms mutex.
svn path=/trunk/mono/; revision=17669
* object.c appdomain.h: Get rid of metadata_section.
It is no longer needed and it was causing deadlocks with domain->lock.
* appdomain.c (add_assemblies_to_domain): Make it thread safe.
svn path=/trunk/mono/; revision=17661
* System.Web/HttpApplication.cs: when the request is completed or an
error happens, execute all the delegates attached to EndRequest, not
only the last one. This makes xsp/test/authtest work again.
* System.Web/HttpMethodNotAllowedHandler.cs: fixed description for http
status code.
* System.Web.Security/UrlAuthorizationModule.cs: fixed description for
status code.
* System.Web.Util/UrlUtils.cs: made Reduce work when a "/" is passed.
svn path=/trunk/mcs/; revision=17655
* statement.cs (Using.DoResolve): This is internally emitting a
try/finally clause, so we need to set ec.NeedExplicitReturn if we
do not always return. Fixes#47681.
svn path=/trunk/mcs/; revision=17634
* mini.c (get_basic_blocks): Added `unsigned char **pos' argument;
when reporting an error, set this to the actual error location.
(mono_method_to_ir): Report the correct error location if
get_basic_blocks() returned an error.
svn path=/trunk/mono/; revision=17630
* decl.cs (MemberCore): Moved WarningNotHiding(),
Error_CannotChangeAccessModifiers() and CheckMethodAgainstBase()
into MemberBase.
(AdditionResult): Make this nested in DeclSpace.
(DeclSpace.ctor): The .ctor now takes an additional NamespaceEntry
argument; call NamespaceEntry.Define() unless we're nested in a
class or struct.
* namespace.cs (Namespace.DefineName): New public function. This
is called from DeclSpace's .ctor to add
(Namespace.Lookup): Include DeclSpaces in the lookup.
* class.cs (Operator): Derive from MemberBase, not MemberCore.
* const.cs (Const): Derive from MemberBase, not MemberCore.
svn path=/trunk/mcs/; revision=17627
* mono-hash.h mono-hash.c (mono_g_hash_table_remap): New function used
to remap hashtable values during a copying collection. Not used at the
moment.
* mono-hash.c (g_hash_node_new): Restructured to avoid the global lock
in the common case.
* mono-hash.c (mono_g_hash_table_new_full): Enable the optimization of
the key function even if the client supplied g_direct_equal instead of
NULL.
svn path=/trunk/mono/; revision=17624
* DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
exception. Thanks to Mark Easton <[email protected]>.
svn path=/trunk/mcs/; revision=17622
* System.Web.UI.WebControls/CheckBox.cs: in LoadPostData, only return
true when the new data is different from the one we had. Fixed
conditions to save Checked state. Thanks to [email protected]
(Yaron Shkop).
* System.Web.UI/Page.cs: check if controls that require postback have
been changed by an event and register them to be notified of data
changed event.
Fixes bug #47869.
svn path=/trunk/mcs/; revision=17621
* assembly.c: Reworked assembly loading to make it really thread safe.
After these changes, the assembly returned by mono_assembly_open is
fully initialized, i.e. all its references assemblies are loaded.
* assembly.c (mono_image_load_references): Renamed to
mono_assembly_load_references, and made private, since clients no
longer need to call it.
* class.c: Removed calls to mono_assembly_load_references, since it was
a source of deadlocks.
* loader.h loader.c class.h class.c: Protect data structures using a
new lock, the loader lock.
* class.c (mono_class_setup_vtable): Create temporary hash tables and
GPtrArrays only when needed.
* class.c (mono_class_layout_fields): Ignore the dummy field inserted
into empty structures by mcs. Fixes pinvoke7.cs.
* domain.c (mono_init): Call a new initialization function.
svn path=/trunk/mono/; revision=17617
* appdomain.c (mono_runtime_init): Call the new initializer function
of the marshal module.
* marshal.c (mono_marshal_load_type_info): Ignore the dummy field
inserted into empty structures by mono. Fixes pinvoke7.cs.
* marshal.h marshal.c: Added locks around the wrapper caches to make
this module thread safe.
svn path=/trunk/mono/; revision=17616
* XPathNavigator.cs: "Smart" behavior in Matches. Nice 8x speed
improvement in the method (5ms/call -> .7 ms / call) measured by
monodoc's rendering of N:System.
* Expression.cs: Utility methods to support above.
svn path=/trunk/mcs/; revision=17596
* convert.cs (Convert.ExplicitReferenceConversion): When
converting from an interface type to a class, unbox if the target
type is a struct type. Fixes#47822.
svn path=/trunk/mcs/; revision=17588
enumeration of values. Removed fields to store remote call output values in
MonoAsyncResult. Not needed any more.
* object.c: Initialize call_type and async_result fields in mono_message_init.
* marshal.c: mono_delegate_begin_invoke(): for proxies, set call_type before
dispatching the message.
mono_delegate_end_invoke (): delegate to the proxy the work of waiting for the
async call to finish. To do it use a message with EndInvoke call type.
svn path=/trunk/mono/; revision=17580
* CallContext.cs: Clean current logical context before setting the new
values form LogicalCallContext (SetCurrentCallContext).
* MonoMethodMessage.cs: Added new CallType field and enum.
* StackBuilderSink.cs: Improved error message.
svn path=/trunk/mcs/; revision=17578
* mini.c (mono_type_blittable): OBJECT is not blittable.
(mono_method_blittable): Methods which have marshalling descriptors
are not blittable either. Fixes#47842.
svn path=/trunk/mono/; revision=17573
* XmlValidatingReader.cs : Implemented SchemaType. Added support for
ValidationType.Schema. Added support for XmlResolver. Fixed
ReadTypedValue() not to consume EndElement.
svn path=/trunk/mcs/; revision=17561
* SymmetricAlgorithm.cs: Fixed IV length exception for stream ciphers
(e.g. RC4) which don't uses IV. This needs more tests for small IV...
svn path=/trunk/mcs/; revision=17551
* System.Drawing.dll.sources: Add Cairo implementation.
2003-08-24 Duncan Mak <[email protected]>
Initial checkin of System.Drawing.XrImpl ported to use Cairo.
* Graphics.cs (DrawCurve):
(DrawImageUnscaled):
(IsVisible):Implement the overloads in terms of the other overloads.
(FillClosedCurve): Implement the simple APIs, the default tension
is 0.5, the default FillMode is FillMode.Alternate.
* cairo.cs: A copy of the CairoAPI class from the Mono.Cairo
assembly, with some method parameter/return type changed to better
fit the usage within System.Drawing.
* gdk-helpers.cs: Emulate some of Gdk.Pixbuf's API here,
basically the same as XrImpl's GDKfunctions.cs, but the names of
the functions are nicer, with the help of the DllImportAttribute's
EntryPoint field.
svn path=/trunk/mcs/; revision=17546
* HttpRequest.cs: quick way of checking that the path is within the
root for the application. Thanks to Johannes for reporting.
* HttpRuntime.cs: use the status code from teh exception when it'ss a
HttpException.
* StaticFileHandler.cs: forbidden is 403.
svn path=/trunk/mcs/; revision=17525
* class.cs (MethodData.Define): While checking if a method is an
interface implementation, improve the test a bit more to fix#47654.
svn path=/trunk/mcs/; revision=17523
* get.c (dis_stringify_method_signature): New argument specifying
whenever to return a fully qualified method name.
* dump.c main.c: Updated to work with the new function.
* main.c (dis_property_methods): Print fully qualified method names
for property methods. Fixes#46221.
svn path=/trunk/mono/; revision=17519
to MS.NET).
Removed try/catch from AsyncProcessRequest. If there is an exception it must
flow to the caller.
in AsyncRequestHandler, improved management of exceptions. HttpWebRequest
throws an exception if the result code is 400, 500. Is is not a communication
error, but an application or server error. The content of the body must be
deserialized like in normal responses.
In CreateWebRequest, if the stream being sent is a MemoryStream, use a more
efficient way of writing the content.
In SendAndRecieve, same as in AsyncRequestHandler. Also moved some code to a
new method named ReceiveResponse, so it can be reused from AsyncRequestHandler.
* HttpHelper.cs: Removed some debugging code that is not needed.
* HttpServer.cs: Improved formatting of some code.
In CheckRequest method, send a 100-continue response if the request has
the header: expect:100-continue.
Method SendResponse: the remoting formatter may include the result code and
reason phrase to use in the transport headers. Used them if provided.
* HttpServerChannel.cs: Use ThreadPool to create the thread that will answer
a request.
svn path=/trunk/mcs/; revision=17515
* SoapMessageFormatter.cs: Fixed some problems with out and ref parameters.
* SoapServerFormatterSink.cs: Improved catching of exceptions.
svn path=/trunk/mcs/; revision=17511
to avoid reuse of client proxies.
* CallSeq.cs: Now, "domain ID" is set manually.
* ContextsTest.cs: Added initialization of common domain id. Other small fixes.
* ReflectionCalls.cs: Get the method for the invoke for the correct type.
GetType() for a proxy to interface always return MarshalByRefObject.
* TcpCalls.cs, HttpCalls.cs: Added delegate tests.
* DelegateCalls.cs: New test suite for calls using delegates.
svn path=/trunk/mcs/; revision=17507
The following two fixes bug #40315.
* Tds.cs (ProcessEndToken): RecordsAffected was not filled
correctly. I've found out that the record count was submitted for
TdsPacketSubType.Done. So I changed the behaviour to include this
(without deeper knowledge of the TDS protocol). Patch from J�rg
Rosenkranz <[email protected]>.
* SqlCommand.cs (ExecuteNonQuery): Return
Connection.Tds.RecordsAffected if it is successful. Patch from
J�rg Rosenkranz <[email protected]>.
* ListControl.cs (DataSource): Implementation by Brian Takita
<[email protected]>.
svn path=/trunk/mcs/; revision=17498
* expression.cs (UnaryMutator.ResolveVariable): If the target is a
LocalVariableReference, ensure it's not read-only. Fixes#47536.
* statement.cs (Fixed.DoResolve): Make all variables read-only.
svn path=/trunk/mcs/; revision=17494
* ecore.cs (FieldExpr.DoResolveLValue): Static read-only fields
can only be assigned in static constructors. Fixes#47161.
svn path=/trunk/mcs/; revision=17493
Rewrote and improved the flow analysis code.
* flowbranching.cs (FlowBranching): Make this class abstract.
(FlowBranching.CreateBranching): New static function to create a
new flow branching.
(FlowBranchingBlock, FlowBranchingException): New classes.
(FlowBranching.UsageVector.Type): New public readonly field.
(FlowBranching.UsageVector.Breaks): Removed the setter.
(FlowBranching.UsageVector.Returns): Removed the setter.
(FlowBranching.UsageVector): Added Break(), Return(),
NeverReachable() and Throw() methods to modify the reachability.
(FlowBranching.UsageVector.MergeChildren): Removed, this is now
done by FlowBranching.Merge().
(FlowBranching.UsageVector.MergeChild): New method; merges the
merge result into the current vector.
(FlowBranching.Merge): New abstract method to merge a branching.
svn path=/trunk/mcs/; revision=17491
* XslVariable.cs : use newly introduced XmlNodeWriter.ctor(false) to
support for tree fragment, not only for single element.
svn path=/trunk/mcs/; revision=17476
* inssel.brg: 64bit fixes from Laurent Morichetti <[email protected]>.
* linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
regalloc.c, regalloc.h: specify available registers in arch-specific
code and support floats in the regallocator (patch by Laurent Morichetti
<[email protected]>)
svn path=/trunk/mono/; revision=17474
* object.c (mono_object_isinst): Fix casts to TransparentProxy in
the interpreter. Patch by Bernie Solomon ([email protected]).
svn path=/trunk/mono/; revision=17467
* String.cs: Created method FormatHelper that does formatting,
using a StringBuilder.
* StringBuilder.cs
(AppendFormat) Use FormatHelper in System.String to avoid
allocating an extra StringBuilder.
(Append string, int, int), (Append char, int): Both were
allocating extra strings.
svn path=/trunk/mcs/; revision=17466
* rawbuffer.c rawbuffer.h: Make this module thread safe.
* domain.c: Make this module thread safe.
* domain.c (mono_init): Call new initialization function.
svn path=/trunk/mono/; revision=17465
* image.c (mono_image_init): Fixed warnings.
* class.c (mono_class_from_typeref): Handle assembly load failure
correctly.
* appdomain.c (add_assemblies_to_domain): Handle the case when
the references of an assembly are not yet loaded.
* metadata.c image.c assembly.c: Moved initialization of global
variables to a separate function called at startup since lazy
initialization of these variables is not thread safe.
* image.c assembly.c: Made this module thread safe by adding locks in
the appropriate places.
* domain.c (mono_init): Call the new initialization functions of the
three modules.
svn path=/trunk/mono/; revision=17458
* mini.c: mono_thread_current() can be called only after
mono_runtime_init(): rearrange code to not call it early on.
svn path=/trunk/mono/; revision=17448
make a direct call. It is proxy's work to make the call asynchronous.
mono_delegate_end_invoke(): If the targe is a proxy, just collect
the return values.
* object.cs: mono_method_call_message_new(): read AsyncResult and
state object from parameters list, if this info is requested.
* object.h: Added fields to store remote call output values in
MonoAsyncResult. Added AsyncResult field in MonoMethodMessage.
svn path=/trunk/mono/; revision=17446
TcpCalls.cs: new test suite for remoting. It tests sync calls, async calls
and reflection calls using tcp and http channels.
* CallSeq.cs, ContextHookAttribute.cs: Add methods for getting a context and
domain ids that are the same between tests runs.
* ContextsTest.cs: unregister channel on test shutdown.
svn path=/trunk/mcs/; revision=17441
* object.h: add needed fields to MonoThread.
* threads.c, threads.h: allow registering a function to cleanup data
allocated per thread by the JIT.
svn path=/trunk/mono/; revision=17437
* FieldDef.cs: Stub method for adding data values
* TypeDef.cs: Implement long form overrides, fix some backwords
variable naming, add a method to lookup data definitions.
svn path=/trunk/mcs/; revision=17434
Rosenkranz <[email protected]>. Currently, if a connection is
closed by an external event (network problem, etc.) it is pushed
back into the connection pool. The next Open call retrieves this
invalid connection which leads to exceptions when executing
statements.
This patch fixes this problem. This closes bug #47429.
svn path=/trunk/mcs/; revision=17431
* Hashtable.cs (PutImpl): Fix my previous checkin, see details
posted on bug #47692.
I really hope I don't mess up this time, because, if I do again,
it will be really embarrassing.
svn path=/trunk/mcs/; revision=17430
* ControlCollection.cs:
* EmptyControlCollection.cs: create a minimum ArrayList for this.
* BaseParser.cs: added setter for BaseVirtualDir.
* Page.cs: fixed message when restoring view state fails.
* UserControlParser.cs: set the BaseVirtualDirectory to handle the case
when a relative path to the control is given. Fixes bug #47685.
svn path=/trunk/mcs/; revision=17424
* Style.cs: the MARKED bit is not send set in ViewState unless something
is changed. Fixed TrackViewState condition.
* WebControl.cs: save the base ViewState *after* ControlStyle is done,
because it uses the same ViewState as the control. Fixes bug #47725.
svn path=/trunk/mcs/; revision=17421
* XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
infinite loop.
* XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
Commented out Console.Error.WriteLine().
* XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
escape and unescape for relative URI string.
svn path=/trunk/mcs/; revision=17414
* Compiler.cs : Fixed XslNameUtil.FromString() so that unprefixed name
won't have default namespace. See http://www.w3.org/TR/xslt#qname
svn path=/trunk/mcs/; revision=17412
* XslTransformProcessor.cs: add support for resolving documents.
* XsltCompiledContext: add support for document () function.
svn path=/trunk/mcs/; revision=17410
* Outputter.cs, TextOutputter.cs, XmlOutputter.cs: Implement some
of the abstract methods in Outputter, making them call other
functions with default values, remove impl's in derived classes.
svn path=/trunk/mcs/; revision=17407
* Outputter.cs: s/Close/Done
* TextOutputter.cs, XmlOutputter.cs: Flush, don't close the backing.
* XslTransformProcessor.cs: Flush output when popping, pop at end.
svn path=/trunk/mcs/; revision=17406
* Outputter.cs: Add support for namespaces.
* XslCopyOf.cs, XslLiteralElement: Use namespace support in Outputter.
svn path=/trunk/mcs/; revision=17405
* Compiler.cs, XslOutput.cs, XslStylesheet.cs,
XslTransformProcessor.cs: move output logic from XslStylesheet to
Compiler.
* XslVariable.cs: sync to API changes
* ManagedXslTransform.cs: sync to API changes
svn path=/trunk/mcs/; revision=17404
* XslOutput.cs: add support for encoding.
* ManagedXslTransform.cs, XslTransformImpl.cs: Add support for
encoding.
svn path=/trunk/mcs/; revision=17395
* MethodDef.cs: Make some properties public, Add method to get a
list of parameter types. This is used to build signatures. Alow
sentinels in signatures and in param lists. Fix some tabbing.
* ParamDef.cs: Expose the parameters type so they can be used when
building signatures.
* TypeDef.cs: Add and emit overrides.
svn path=/trunk/mcs/; revision=17391
* HttpException.cs: make the unhandled error more like the MS one.
* HttpRuntime.cs: set a 500 error code on unhandled exceptions.
svn path=/trunk/mcs/; revision=17390
* HttpResponse.cs: flush headers when the body length is 0.
* StaticFileHandler.cs: added If-Modified-Since handling patch slightly
modified from the original by Piers Haken <[email protected]>.
svn path=/trunk/mcs/; revision=17387
* System.Xml.dll.source: add System.Xml/HighWaterStack.cs
* XmlChar.cs (IsWhitespace): Spare enumerator allocation.
* XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
fat, use low-fat loops instead. Even better, call the function
inside XmlChar for code reuse.
* HighWaterStack.cs (added): New class that acts like a Stack, but
helps with memory allocation.
* XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
HighWaterStack.
* XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
use a variable that stores the position in the ArrayList.
svn path=/trunk/mcs/; revision=17385
* XmlTextWriter.cs: Begin diet. String.Format has too much
saturated fat, lets replace with the fat-free .Write ()
calls. Effects best seen when Paolo's StreamWriter patch is
applied.
svn path=/trunk/mcs/; revision=17384
* Control.cs: when we load the viewstate for a control that has children
viewstates and the child is not found, keep its viewstate around and
wait until the child is added to load the viewstate. Fixes bug #47697.
svn path=/trunk/mcs/; revision=17381
* interp.c: Get rid of duplicate definition of CHECK_MUL_OVERFLOW.
* interp.h interp.c: Get rid of VAL_VALUETA, use VAL_MP instead. Fix
the INITOBJ opcode which was the only user of VALUETA.
svn path=/trunk/mono/; revision=17380
Currently Hashtable.PutImpl has an incorrect test which causes the
key chain search to terminate as soon as a free slot is found,
causing key duplication.
svn path=/trunk/mcs/; revision=17376
* XslComment.cs, XslTemplateContent.cs: remove dead variables.
* XsltCompiledContext.cs, Compiler.cs: copy the XPathNavigator
from the stylesheet for correct namespace resolution.
* XslTransformImpl.cs: close XmlTextWriter when we create it.
svn path=/trunk/mcs/; revision=17374
* reflection.h reflection.c (mono_param_get_objects): Changed this to
return a MonoArray. This simplifies the code and also ensures that
the cache allways contains an object reference as a value.
* icall.c (ves_icall_get_parameter_info): Simplified using the new
function.
svn path=/trunk/mono/; revision=17367
* interp.c (ves_exec_method): Implemented mul.ovf correctly for int32
and int64. Implemented the conv.ovf opcodes for all argument types.
2003-08-15 Zoltan Varga <[email protected]>
(ves_exec_method): Added support for the synchronized flag to the
interpreter. Also fixed the CALLI opcode, and made exception handling
work though the managed-unmanaged barrier.
svn path=/trunk/mono/; revision=17366
* HyperLinkColumn.cs: patch from David Pickens <[email protected]>
that fixes databinding when only DataTextField or DataNavigateUrlField
is set.
svn path=/trunk/mcs/; revision=17365
* socket-io.c: patch by Bernie Solomon <[email protected]> that
fixes a problem with byte ordering when getting the address family for
a socket.
svn path=/trunk/mono/; revision=17364
* Microsoft.CSharp/CSharpCodeGenerator.cs:
- fixed support for method references where target
object is null
- fixed CodeThrowExceptionStatement
- disabled member access modifiers for private method
implementations
- disabled generation of empty method body for interface
declarations
- disabled generation of empty property accessor bodies
in interface declarations
- added support for indexers (properties named "Item")
- added support for chained constructor arguments and
base constructor arguments
* System.CodeDom/CodeTypeDeclaration.cs:
- TypeAttributes of CodeTypeDeclaration now defaults to
TypeAttributes.Public (same as MS implementation)
svn path=/trunk/mcs/; revision=17363
correct ByteFX.Data.MySqlClient (note the change in
capitalization). Thanks to Tom Wagner <[email protected]> for
spotting the error.
svn path=/trunk/mono/; revision=17360
* reflection.h reflection.c loader.c: Added support for parameter
marshalling to dynamically created types. Fixes#47295.
svn path=/trunk/mono/; revision=17356
* Report.cs: New file - All error/warning/progress reporting will
go through here.
* ilasm.exe.sources: Add report to build
svn path=/trunk/mcs/; revision=17353
* HttpResponse.cs: another patch from totte and me. This one prevents
writing output if the client have disconnected and filters the data
when there's a non-final Flush in the middle of the process.
svn path=/trunk/mcs/; revision=17343
ContextLevelActivator.cs, RemoteActivationAttribute.cs,
RemoteActivator.cs: Changed class from public to internal.
svn path=/trunk/mcs/; revision=17336
* ListControl.cs: patch by Yaacov Akiba Slama <[email protected]> that
fixes selection of values before assigning a data source and other
issues.
svn path=/trunk/mcs/; revision=17333
2003-07-17 Peter Williams <[email protected]>
* DTMXPathDocumentBuilder.cs: csc.exe is more stringent about namespaces
than mcs. We need to disambiguate System.Math from Mono.Math here.
svn path=/trunk/mcs/; revision=17331
* DTDValidatingReader.cs : Added SchemaType.
Read() Assures to return to element.
* DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
* XmlReader.cs : ReadString() should be virtual in NET_1_1.
* XmlTextReader.cs : 1) Depth should consider Attribute and its values.
Introduced insideAttribute field to support them.
2) ReadAttributeValue() should consider empty string.
* XmlValidatingReader.cs :
Fixed several properties which premised as if it was already read.
Encoding and Namespaces now throws NotSupportedException for other
than XmlTextReader.
Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
svn path=/trunk/mcs/; revision=17330
* DTMXPathDocument.cs,
DTMXPathDocumentBuilder.cs,
DTMXPathNavigator.cs :
- Implemented ID support using XmlValidatingReader.
- Prefix should be String.Empty even if XmlReader.Prefix is null.
svn path=/trunk/mcs/; revision=17328
* Compiler.cs : 1) Changed public .ctor() to receive Evidence argument
introduced in .NET 1.1. 2) XmlResolver object is required for 'res'.
svn path=/trunk/mcs/; revision=17324
* XslApplyTemplates.cs,
XslCallTemplate.cs : Should accept other than element content such
as comment and PI.
* XslNumber.cs : In Compile(), 'value' might not exist. (Think about
it later if how it should be.)
* XslTemplateContent.cs : "comment" and "number" support. (I know they
are still incomplete.)
svn path=/trunk/mcs/; revision=17323
* mb-parser.jay: ReDim statement parses many variables now (but initializers aren't allowed)
Erase statement implemented
Lots of garbage (never reduced rules) deleted
Reduce/Reduce problems eliminated (where due to having opt_modifiers duplicated inside property_declaration rule)
* statement.cs : class Redim is prepared to have ReDim Preserve copying code called,
but we need to check if that code is lying in Microsoft.VisualBasic.dll
New class Erase
svn path=/trunk/mcs/; revision=17309
* expression.cs (Indirection.CacheTemporaries): Create the
LocalTemporary with the pointer type, not its element type.
svn path=/trunk/mcs/; revision=17301
name (Cairo) is the same as the class name (also Cairo). To resolve
this ambiguity while keeping the code looking decent, the Cairo.Cairo
class is now Cairo.CairoAPI.
svn path=/trunk/mcs/; revision=17295
the enums no longer need to be nested inside the Cairo class.
* Mono.Cairo/Matrix.cs:
* Mono.Cairo/Object.cs:
* Mono.Cairo/Surface.cs: I never liked having the word 'Object' in
the name of a class, esp. now that we have namespaces. So I have
decided to rename them.
svn path=/trunk/mcs/; revision=17284
* HttpApplicationFactory.cs: use the correct Delegate.CreateDelegate
overload. The previous one only admits static methods.
svn path=/trunk/mcs/; revision=17267
* threadpool.c: when mono_async_invoke was called, no one took care of
monitoring the queue. So if the method invoked took some time and we
got new async invoke requests after 500 ms (the thread created waited
that long in WaitForSingleObject), the new async invoke was not called
until the previous one finished.
This is fixed now. Thanks to Totte for helping with it.
svn path=/trunk/mono/; revision=17266
* UdpClient.cs (Receive): Fix Bug 45633; We should do a blocking
call until a datagram is arrives from the remote host. This
removes the 512 "magic" buffer size when we did not have any data.
svn path=/trunk/mcs/; revision=17237
* Array.cs: Applied patch from Thong (Tum) Nguyen; Removed
replicated tests, and have a routine that does the heavy lifting.
2003-08-10 Miguel de Icaza <[email protected]>
* ArrayTest.cs: New test from Thong (Tum) Nguyen.
svn path=/trunk/mcs/; revision=17236
* ModifiableType.cs: Modify a types signature when the type is
modified instead of waiting untill the end. Signatures need to be
modified immediatly because they are used in method signatures and
would fail for overloaded operations if sigs weren't modified
right away.
* ExternTypeRef.cs: Add signature modifications, fix some tabbing
* GenericTypeInst.cs: Use ModifiableType as a base
* GenericTypeRef.cs: Use ModifiableType as a base
* PeapiTypeRef.cs: No longer take or modify type names.
* PrimitiveTypeRef.cs: Add signature modifications, fix some tabbing.
* Sentinel.cs: Add signature modifications, fix some tabbing.
* TypeRef.cs: Add signature modifications, fix some tabbing.
svn path=/trunk/mcs/; revision=17231
* cs-parser.jay: FIRST_KEYWORD, LAST_KEYWORD: used to know if a
token was a keyword or not.
Add `error' options where an IDENTIFIER was expected; Provide
CheckToken and CheckIdentifierToken convenience error reporting
functions.
Do not use `DeclSpace.Namespace', use `DeclSpace.NamespaceEntry'.
* decl.cs: Rename `NamespaceEntry Namespace' public field into
NameSpaceEntry NameSpaceEntry.
(LookupInterfaceOrClass): Avoid creating a full qualified name
from namespace and name: avoid doing lookups when we know the
namespace is non-existant. Use new Tree.LookupByNamespace which
looks up DeclSpaces based on their namespace, name pair.
* driver.cs: Provide a new `parser verbose' to display the
exception thrown during parsing. This is turned off by default
now, so the output of a failure from mcs is more graceful.
* namespace.cs: Track all the namespaces defined in a hashtable
for quick lookup.
(IsNamespace): New method
svn path=/trunk/mcs/; revision=17230
* DTDObjectModel.cs : added XmlResolver related members. Added
invalid entity recursion logic. Added encodingdecl check on textdecl.
* DTDValidatingReader.cs : It now implements IHasXmlParserContext.
* XmlChar.cs : IsPubidChar() should not allow TAB(	).
* XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
to receive DTDObjectModel to support other than XmlTextReader.
2) Most of its public member is now based on DTDObjectModel.
* XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
2) ReadNode() now considers XmlParserContext's DTDObjectModel for
other than XmlTextReader (such as XmlValidatingReader).
* XmlNode.cs : code cleanup only.
* XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
* XmlTextReader.cs : 1) Illegal entity reference check logic was moved
from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
change on ReadEntityReference(). 3) ReadAttribute() now checks
reference to external entity reference. 4) Added textdecl encoding
check. 5) DTDObjectModel fields are now set correctly. 6) added
PERef markup nest check. 7) If PEDecl was not found, it might be WFC
violation, not only be VC violation. 8) ReadEntityDecl() now receives
its declared entity itself, and this method checks IsInternalSubset.
* XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
2) ValidationType.None should be the same as Auto, not DTD (in the
future it should keep xml schema's default values).
Pending Stuff in XmlTextReader which breaks some NUnit tests;
1) SetEntityReferenceProperies() has check for illegal references.
2) ReadAttribute(bool) has similar check for illegal references.
svn path=/trunk/mcs/; revision=17218
* namespace.cs: Remove redundant call; Avoid using MakeFQN when
we know that we need to concatenate (full typename can never be
null).
* class.cs: ditto.
svn path=/trunk/mcs/; revision=17205
* XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation
and supplied SkipWhitespace() as they needed. It broke monodoc.
Fixed ReadEntityValueDecl() to get correct value.
svn path=/trunk/mcs/; revision=17203
* XmlInputStream.cs :
Fixed Initialize() that might result in incorrect buffer.
CanRead and Position should consider buffer (especially when the
stream was EOF).
CanSeek should use stream's CanSeek.
* XmlChar.cs : added GetPredefinedEntity().
* DTDObjectModel.cs :
- Modified ComputeDefaultValue() to use it.
- Fixed NormalizedDefaultValue not to expect parsed value as string.
- ResolveExternalEntity now detects invalid standalone specification.
- DTDParameterEntityDeclaration.Value is now changed to property and
keep its resolved value of literal value of external value using
new Resolve (XmlResolver) method (called only by XmlTextReader).
* DTDValidatingReader.cs :
- It now handles entity-expanded Whitespace and SignificantWhitespace
correctly. Does not raise unexpected text not allowed error.
- Fixed MoveToAttribute()s to move internal reader correctly, and
should be able to move in other cases than on element node.
- On Read()ing document type and ResolveEntity(), it now sets
XmlResolver on text reader.
- On ID constraints check and type verification, it now uses
normalized attribute or its tokenized value(s).
- Fixed ValidateAttributes() to add default values when
ValidationType is Auto.
* XmlParserContext.cs : added internal Dtd setter.
* XmlParserInput.cs :
InsertParameterEntityBuffer() should add surrounding whitespaces.
Removed unused code block.
* XmlTextReader.cs :
- Modified ReadReference(), ReadAttribute() and Dereference() to use
XmlChar.GetPredefinedEntity().
- When returning entity reference, it checks extity declaration
existence in certain conditions.
- ReadAttribute() now skips general entity replacement on reading
entity value.
- ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
- ReadXmlDeclaration() holds isStandalone, which might be used in
entity reference's well-formedness check.
- internal 'DTD' now uses XmlParserContext.Dtd.
- isInternalSubset was meaningless. Now uses input stack's Count.
- Added some required SkipWhitespace().
- Several parameter entity handling changes. Added GetPEValue(name).
TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
now uses its Resolve() when it was external PE. Now it uses value
buffer instead of currentTag, to efficiently read (included) PE.
CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
ImportAsPERef() simply inserts the value to currentInput.
ReadEntityDecl() also uses value buffer. Removed non-used methods.
- Default attributes are now stored in normalized form.
- Dereference() now considers non-expanding predefined entities.
* XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
is more correctly supported.
* XmlAttributeCollection.cs :
When removing default attribute, it immediately inserts the attribute.
RemoveAll() should consider default (not-removable) attributes.
* XmlDocument.cs :
Should have its default XmlResolver. Added Internal Resolver.
Some Load() should use its XmlResolver.
ImportNode() should copy its children in node level, not value level.
It also have to consider not to copy default attribute on importing
XmlElement.
* XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
* XmlAttribute.cs,
XmlDocumentFragment.cs.
XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
* XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
ResolveEntity() uses XmlResolver on entityReader.
svn path=/trunk/mcs/; revision=17202
* cs-parser.jay: bug fix, parameter was 4, not 3.
* expression.cs: Just use the property;
* statement.cs: No need for GetVariableInfo method.
svn path=/trunk/mcs/; revision=17199
the return type of a method. Since parameter positions are
zero-based, the position of the return type must be is -1.
svn path=/trunk/mcs/; revision=17192
* TypeTranslator.cs: Added support for more primitive types. Added
GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
maps by default.
* XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
are different from the type ns and name.
Generate class and field comments.
Fixed default attribute generation. In elements with ref attribute, it has to be
generated in the referred attribute.
* XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
Added suport for text nodes in members of type "any".
* XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
content.
* XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
* XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
that have already been declared.
WriteStartElement(): elements from schema namespace are always written with ns prefix.
* XmlTypeMapMember.cs: Added documentation property.
* XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
represents a simple type.
svn path=/trunk/mcs/; revision=17175
* flowanalysis.cs (FlowReturns): This is now nested in the
`FlowBranching' class.
(MyBitVector): Moved this here from statement.cs.
(FlowBranching.SiblingType): New enum type.
(FlowBranching.CreateSibling): Added `SiblingType' argument.
svn path=/trunk/mcs/; revision=17172
a given id is a C# keyword, and returns the same if if it is not,
or @id if it is a keyword. This method is used everywhere
a name is rendered.
svn path=/trunk/mcs/; revision=17168
* DTDObjectModel.cs :
- Added validation error check (and AddError(), Errors).
- Fixed ComputeDefaultValue() to handle various references correctly.
- DTDEntityDeclaration.EntityValue became property, and added
LiteralEntityValue. The new one holds resolved value.
Added ResolveExternalEntity(). It now required root in .ctor().
* DTDValidatingReader.cs :
- Now it handles namespaced attributes (as input to xsd validator).
- Added XmlResolver property as usual XmlReader.
- Added currentEntityHandling field so that it can stand changing
XmlValidatingReader's EntityHandling dynamically.
- FilterNormalization() now requires name for getting datatypes and
can stand for non-current attribute normalization.
- Splitted ReadContent() from Read() that can be called recursively
when expanding entities.
- Now handles Entity not found error *after* resolution of entities,
as MS.NET does.
- Read()ing DTD checks its Errors and raises validation error events.
In some situations, DTD parsing may detect VC error, not WFC error.
It also strictly checks NData existence.
- Handling of entity-resolved text is a bit changed and Read()ing
element, endElement, cdata now changed to switch collecting text
and collected text.
- content type ANY should allow texts.
- Added enumerated attribute validity check.
- Added Name/Names creation rule check for ID/IDREF/IDREFS.
- Added entity existence check for ENTITY/ENTITIES attributes.
- Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
- Fixed to remove extraneous #REQUIRED check.
- Contributing default attribute is now only applied to the case
ValidationType is DTD or None.
- ResolveEntity() now handles external entities.
Added Mono.Xml.IXmlParserContext interface support.
* XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
* XmlTextReader.cs :
- Fixed ReadAttributeValue() to reset returnEntityReference.
- Added bool MaybeTextDecl only for ResolveEntity().
- Fixed ReadWhitespace(). In fact its value is considered even if it
is in the end of the XML.
- Fixed ReadXmlDeclaration(). Now skips text declaration.
- CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
- ReadContentSpec() should set OrderType = OR for mixed model.
Fixed to set content element name correctly.
- ImportAsPERef() now skips Text declaration.
- Type of enumerated default attributes shold be string.
- Undeclared PE error is now handled as DTD's VC error, not
XmlTextReader's WFC error.
* XmlValidatingReader.cs : BaseURI should provide that of
original XmlReader's when read was not started yet.
Fixed XmlResolver to delegate to DTDValidatingReader.
* XmlAttributeCollection.cs : Acquiring attList declaration is
insufficient especially in case of lack of elementdecl.
* XmlChar.cs : (Maybe this is compact than XmlConstructs.)
added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
* XmlInputStream.cs : Removed "version" declaration check. It should
be done by XmlTextReader.
* XmlNodeReader.cs : added internal GetInternalParserContext() and now
it can be used in XmlValidatingReader.ResolveEntity().
ResolveEntity() sets XmlTextReader.MaybeTextDecl.
svn path=/trunk/mcs/; revision=17167
* flowanalysis.cs (FlowBranchingType): This is now nested in the
`FlowBranching' class and called `BranchingType'.
svn path=/trunk/mcs/; revision=17163
* assign.cs (Assign.DoResolve): `target' must either be an
IAssignMethod or an EventAccess; report a CS0131 otherwise. Fixes
#37319.
svn path=/trunk/mcs/; revision=17160
* XslTransformProcessor.cs: Add a table to detect when an object
is busy.
* XslAttributeSet.cs: Use the above table. Dont throw nullref
exception when no use-attribute-sets are specified.
svn path=/trunk/mcs/; revision=17159
* expression.cs (BinaryMethod): This kind of expression is created by the
Binary class if it determines that the operator has to be handled
by a method.
(BinaryDelegate): This kind of expression is created if we are
dealing with a + or - operator on delegates.
(Binary): remove method, argumetns, and DelegateOperator: when
dealing with methods,
* ecore.cs (EventExpr.EmitAddOrRemove): Update to new layout.
* statement.cs (Block): use bitfields for the three extra booleans
we had in use. Remove unused topblock parameter.
* codegen.cs: Remove unecessary argument to Block.EmitTopBlock
* assign.cs: Drop extra unneeded tests.
svn path=/trunk/mcs/; revision=17153
corresponding explicit interface implmentations.
* wine/Bitmap.cs (InitFromStream): cast to an IImage before calling
properties defined in the interface.
* wine/Bitmap.cs:
* wine/Image.cs: Reformatted.
svn path=/trunk/mcs/; revision=17152
commented out. Added missing methods that were in
System.Drawing.Image but not the interface.
* ItfBitmap.cs: Reformatted.
* Image.cs: Reformatted. Make all methods defined in the interface
non-public, and expose them only as explicit interface implementations.
* Graphics.cs (FromImage): cast xrImage to IImage.
* Bitmap.cs (InitFromStream): cast to an IImage before calling
properties defined in the interface.
* Image.cs: Reformatted.
* Graphics.cs (DrawImage): Cast wineImage to IImage before calling
interface properties.
svn path=/trunk/mcs/; revision=17148
* iterators.cs (Mapvariable): provide a mechanism to use prefixes.
* statement.cs (Foreach): Use VariableStorage instead of
LocalBuilders.
* codegen.cs (VariableStorage): New class used by clients that
require a variable stored: locals or fields for variables that
need to live across yield.
Maybe provide a convenience api for EmitThis+EmitLoad?
svn path=/trunk/mcs/; revision=17108
* CryptoStream.cs: Closing bug #40689. The Write method was re-written.
* SymmetricAlgorithm.cs: Removed Lluis previous patch (it fails a unit
test) and corrected a bug in FinalDecrypt.
* RSACryptoServiceProvider.cs: Fixed different exceptions from .NET 1.0
and 1.1.
svn path=/trunk/mcs/; revision=17090
* codegen.cs (RemapLocal, RemapLocalLValue, RemapParameter,
RemapParameterLValue): New methods that are used to turn a
precomputed FieldInfo into an expression like this:
instance.FieldInfo
The idea is to use this instead of making LocalVariableReference
have more than one meaning.
* cs-parser.jay: Add error production to BASE.
* ecore.cs: Deal with TypeManager.GetField returning null, which
is now a valid return value.
(FieldExprNoAddress): New expression for Fields whose address can
not be taken.
* expression.cs (LocalVariableReference): During the resolve
phases, create new expressions if we are in a remapping context.
Remove code that dealt with remapping here.
(ParameterReference): same.
(ProxyInstance): New expression, like the `This' expression, but
it is born fully resolved. We know what we are doing, so remove
the errors that are targeted to user-provided uses of `this'.
* statement.cs (Foreach): our variable is now stored as an
Expression; During resolution, follow the protocol, dont just
assume it will return this.
svn path=/trunk/mcs/; revision=17087
* mono-debug-debugger.c: Don't store the MonoString's vtable to
make this work for applications with multiple application domains.
svn path=/trunk/mono/; revision=17085
* StrongNameMembershipCondition.cs:
* UrlMembershipCondition.cs: (FromXml): Throw exceptions when the
headers do not match.
svn path=/trunk/mcs/; revision=17083
* StreamReader.cs (DiscardBufferedData): Do the same like on the
ms runtime: just discard the buffered data, but don't modify the
BaseStream.Position.
svn path=/trunk/mcs/; revision=17081
* support.cs (SeekableStreamReader.cs): New public class.
* cs-tokenizer.cs, cs-parser.jay, driver.cs: Use the new
SeekableStreamReader instead of the normal StreamReader.
svn path=/trunk/mcs/; revision=17080
stuff.
* SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
* TypeData.cs: Added property that returns a TypeData that represents an array of
the given TypeData.
* TypeTranslator.cs: Added GetArrayName() method.
Added TypeDatas for missing primitive types.
* XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
XmlRootAttribute. Added the namespace to all attributes being generated.
Other fixes in the generation of code.
* XmlReflectionImporter: store the namespace of the type in the maps.
* XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
class can generate text. Do not export inherited attributes of a class.
Use the new root namespace stored in the map when generating the root element.
* XmlSerializationWriter: Always write a prefix when writing a qname, even if the
namespace is the default namespace.
* XmlSerializationWriterInterpreter.cs: fixed missing "else".
* XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
namespace instead of the map namespace (which can be different if the type
has a XmlRoot element).
* XmlTypeMapMember.cs: Set the default value of the DefaultValue property
to System.DBNull.Value.
* XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
the collection if it has not yet been created.
* XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
of the type. It may be different from the namespace of the map if the type
has a XmlRoot element. Also added IsSimpleType property.
In ClassMap, added AllMembers property.
svn path=/trunk/mcs/; revision=17075
In Compile(): ignore included schemas that do not have a value
in SchemaLocation. It means that FindElement can return null
if the referred schema was ignored. Added check for that case.
Compile schema after reading it.
* XmlSchemaCollection.cs: The targetNamespace of a schema may
be null. Make XmlSchemaCollection work for this case.
* BuiltInDataType.cs, XmlSchemaDataType.cs: added new primitive
types: float, base64Binary, boolean.
svn path=/trunk/mcs/; revision=17074
* XmlReaderCommonTests.cs : Its XmlValidatingReader.EntityHandling
should be ExpandCharEntities.
* XmlValidatingReaderTests.cs : added ResolveEntity(),
ResolveEntity2() and ResolveEntityWithoutDTD().
svn path=/trunk/mcs/; revision=17073
* DTDValidatingReader.cs :
Added full ExpandEntities support for text node and entity reference
node (although require many usage tests). Almost all methods and
properties now have currentTextValue != null check, that field means
that there are cached (entity-resolved) text.
Implemented default attribute aware XmlLang and XmlSpace.
* XmlNodeReader.cs : ResolveEntity() should not require DTD.
svn path=/trunk/mcs/; revision=17072
Demakov <[email protected]> to fix formatting for Big power of 10
floating point values. This fixes bug #46175.
* FloatingPointFormatterTest.cs: New file. Added with one test by
Aleksey Demakov <[email protected]>.
svn path=/trunk/mcs/; revision=17057
* cs-parser.jay (CLOSE_PARENS_CAST, CLOSE_PARENS_NO_CAST,
CLOSE_PARENS_OPEN_PARENS, CLOSE_PARENS_MINUS): New tokens to
deambiguate casts and delegate invocations.
(parenthesized_expression): Use the new tokens to ensure this is
not a cast of method invocation.
* cs-tokenizer.cs (is_punct): Return one of the new special tokens
when reading a `)' and Deambiguate_CloseParens () was previously
called.
* expression.cs (ParenthesizedExpression): New class. This is
just used for the CS0075 test.
(Binary.DoResolve): Check for CS0075.
svn path=/trunk/mcs/; revision=17052
* mono-debug-debugger.c: Completely reworked the type support; the
most important thing is that we're now just using one single
`MonoType' instance per type.
svn path=/trunk/mono/; revision=17049
* ExternTypeRef.cs: Add functionality for valuetypes
* MethodDef.cs: Handle Vararg signatures individually. Fixes for
new Sentinel type in vararg signatures
* MethodRef.cs: Use new SentinelTypeRef instead of Sentinel type
ref constant.
* ParamDef.cs: New method to check if this parameter is the sentinel
* TypeRef.cs: Add some functionality for creating valuetypes
* Sentinel.cs: New type represents the sentinel
svn path=/trunk/mcs/; revision=17042
* Compiler.cs: Add method LocalNameOf, to get the local name of a
string.
* XslTransformProcessor.cs: Support for setting the XmlResolver.
* XslElement.cs, XslAttribute.cs: Better support for namespaces.
* XslAvt.cs: When precalculating, if the AVT is null (ie, the
attribute was not specified), just return null, that will be the
result.
* ManagedXslTransform.cs: use the resolver given.
svn path=/trunk/mcs/; revision=17040
* ArrayList.cs: added / so that gvim syntax highlight doesn't go crazy.
* CollectionBase.cs: fixed several bugs reported by Carlos Barcenilla
([email protected]). Most of the patch is also his.
svn path=/trunk/mcs/; revision=17036
types use LabelInfos for label references now.
* BranchInstr.cs: Take a LabelInfo instead of information on a label.
* HandlerBlock.cs: Take a LabelInfo instead of information on a label.
* MethodDef.cs: Return LabelInfo from AddLabel methods. New method for
adding a reference to a label.
svn path=/trunk/mcs/; revision=17022
* DTDObjectModel.cs : Added BaseURI (but not used yet).
DTDAttListDeclaration.ctro() now requires root dtd object model.
* DTDValidatingReader.cs : Read() now expands EntityReference if
entity handling of validating reader is ExpandEntities.
* XmlReader.cs,
XmlTextReader.cs,
XmlNodeReader.cs,
XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
ReadOuterXml which are modified in MS.NET 1.1.
* XmlConstructs.cs : added int version of IsValid, IsInvalid,
IsContent, IsMarkup and IsNCNameStart.
Fixed int version of IsXXX() to check array index range.
Added IsValidName (string).
* XmlTextReader.cs :
- Read() handles document with non document element as an error.
- ReadText() and ReadCharacterReference() checkes illegal characters.
- ReadEntityReference() checks name validity.
- ReadProcessingInstruction() rejects such name that starts with
"xml" ignoring case, and checks attributes more strictly.
- ReadDeclaration() rejects unrecognized kind of declaration.
- In many places, added "required whitespace" check in DTD markup.
- DTD content model now disallows mixing use of '|' and ','.
svn path=/trunk/mcs/; revision=17012
* MethodDef.cs: Less elegant but more bugfree method of doing explicit
offsets for labels. Just put the offset labels in another list and
define them in another loop.
svn path=/trunk/mcs/; revision=17007
needed so the call conv can be modified for the newobj operation which
is implicitly instance.
* ExternMethodRef.cs: Expose call conv. Don't resolve vararg methods
more then once.
* GlobalMethodRef.cs: Expose call conv
* TypeSpecMethodRef.cs: Expose call conv
* MethodInstr.cs: For newobj operations set the call conv to instance
svn path=/trunk/mcs/; revision=17005
shift the words of a float64 value on ARM.
* icall.c: new icall ves_icall_System_Double_AssertEndianity to utilise
above macro.
svn path=/trunk/mono/; revision=17002
* XmlDocumentFragment.cs : I missed to add it in relation to the
previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
* XmlNodeReader.cs : removed some TODO attributes.
* DTDValidatingReader.cs,
XmlValidatingReader.cs : Implemented ResolveEntity().
svn path=/trunk/mcs/; revision=17001
* XmlSchema.cs :
- Changed missingElementTypeRefs from Hashtable to ArrayList.
- Added internal XmlSchemas for keeping imported schemas.
- Added private Compile() that takes the original rootSchema and
schema location stack for nested inclusion check.
- Added basic xs:import and xs:include support.
- Compile() is now aware of included XmlSchemaObject items.
- Changed Compile() to fill missing elements' types and that of
referencing elements.
- Read() now adds SourceUri property (although only to itself).
* XmlSchemaCollection.cs : Implemented Add().
* XmlSchemaCollectionEnumerator.cs :
Changed .ctor() to use schema collection as its argument.
Fixed Current to return hashtable's Value, instead of Current
(which returns DictionaryEntry).
* XmlSchemaComplexType.cs :
Added internal static AnyType.
Compile() is now searches for its base type into other schemas.
* XmlSchemaElement.cs : anyType is supported.
It now searches for type information after Compile().
SetReferedElementInfo() is now changed to SetSchemaType().
* XmlSchemaObjectTable.cs :
It had problems similar to schema collection. Now it uses internal
class XmlSchemaObjectTableEnumerator to support GetEnumerator().
* XmlSchemaParticle.cs : added internal class XmlSchemaParticleEmpty
and internal static Empty.
svn path=/trunk/mcs/; revision=17000
the site name.
* IsolatedStorageInfo.cs (CreateAssemblyFilename):
(CreateDomainFilename): Replace String.Format with Path.Combine.
svn path=/trunk/mcs/; revision=16967
NET_1_1.
* DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
* XmlDataDocument.cs (BaseURI):
(InnerXml):
(IsReadOnly):
(this):
(LocalName):
(Name):
(OwnerDocument):
(WriteContentTo):
(WriteTo): Removed, these do not need to be redefined, as
they are inherited from XmlDocument already.
svn path=/trunk/mcs/; revision=16966
* Compiler.cs: Add support for key, utility function to parse
QName's from the XsltContext. Store keys in the CompiledStyle, not
in the Stylesheet.
* XslKey.cs: Real implementation
* XslStylesheet.cs: Move the keys to CompiledStyle.
* XsltCompiledContext.cs: Implement the key function
* Iterator.cs: Allow creation of an EnumeratorIterator with an
XmlNamespaceManager
svn path=/trunk/mcs/; revision=16959
* unicode.c (ves_icall_System_Char_IsPunctuation): The set of
classes that are a punctuation character in .NET is not the same a
g_unichar_ispunct.
svn path=/trunk/mono/; revision=16958
* CryptoStreamTest.cs: New. Very basic test for CryptoStream + the
test case from bugzilla #46143 from Joerg Rosenkranz.
* RSACryptoServiceProviderTest.cs: Fixed some exceptions that are
different from .NET 1.0 and 1.1.
svn path=/trunk/mcs/; revision=16954
* Parser.jay:
Nested predicates (uses ExprFilter instead)
more type safety
make grammar look more like w3c spec
* Expression.cs:
remove ExprStep, ExprPredicates
NodeTest is now a NodeSet
more type-safety
* Iterator.cs:
PredicateIterator now only takes a single predicate expression
more type-safety
* XPathNavigator.cs:
simplified SelectTest
* XPathException.cs:
fixed indenting
svn path=/trunk/mcs/; revision=16953
* XmlParserContext.cs,
XmlAttribute.cs,
XmlElement.cs : Added internal Dtd and new internal XmlParserContext
.ctor() that takes DTDObjectModel. And then rewrote classes which
uses DTD information. Changed DocTypeName, InternalSubset, PublicId
and SystemId to use DTDObjectModel.
* DTDObjectModel.cs :
Added DTDObjectModel.InternalSubsetHasPEReference.
Added DTDEntityDeclaration.IsInternalSubset.
* XmlTextReader.cs :
Added internal GetInternalParserContext (to build entity reader).
Added private isIntSubset to check if the DTD subset is internal or
external, which might affect well-formedness constraints.
Changed GenerateDTDObjectModel to return the resulting DTD model.
* XmlEntityReference.cs : implemented BaseURI.
* XmlNodeReader.cs :
- Implemented ResolveEntity() and CanResolveEntity(). In fact
it leads too many changes on almost all methods and properties,
since they now must be aware of entityReader.
- fixed ownerElement that might be used to return from attribute
value to the element through parent attribtues.
- Now changed indexer to call GetAttribute() and moved actual logic
to the matching GetAttribute() methods.
svn path=/trunk/mcs/; revision=16946
* XslVariable.cs: Add IsEvaluated.
* Compiler.cs: To resolve a variable you now need to pass the
processor, so that it can be passed to IsEvaluated. A local will
only be resolved if it has already been evaluated.
* XsltCompiledContext.cs: Pass along the processor.
svn path=/trunk/mcs/; revision=16942
* configure.in, etc.: portability fixes and support for
buidling outside the srcdir from Laurent Morichetti <[email protected]>.
svn path=/trunk/mono/; revision=16937
* ManagedXslTransform.cs: Hold reference to CompiledStyle, not the
XslTransformProcessor. Will help with thread safty.
* Compiler.cs, XslTemplate.cs, XslTransformProcessor.cs: Store
variable values in the XslTransformProcessor.
* XsltCompiledContext.cs: If the scope is null, don't look there!
* Debug.cs: New method Assert
* XslApplyTemplates.cs, XslCallTemplate.cs, XslCompiledElement.cs,
XslTemplateContent.cs, XslVariable.cs:
Store variable values in the XslTransformProcessor
svn path=/trunk/mcs/; revision=16917
(GetStore): Update storage_scope accordingly.
(GetUseStoreForAssembly): Include IsolatedStorageScope.User.
(GetUseStoreForDomain): Include IsolatedStorageScope.User and
IsolatedStorageScope.Assembly.
* IsolatedStorage.cs:
(CurrentSize):
(MaximumSize): throw InvalidOperationExceptions. This is a
subclass responsibility.
(Scope): Implemented using a static field, storage_scope.
(SeparatorInternal)
(SeparatorExternal): Implemented. Use Path.DirectorySeparatorChar
for SeparatorExternal.
svn path=/trunk/mcs/; revision=16915
* CryptoStream.cs: Fixed bug #46143 (exception) - however we dont
returns the same result as MS. Class needs to be re-written.
svn path=/trunk/mcs/; revision=16908
a TypeData without a Type. Added ListItemTypeData property.
* XmlTypeMapping.cs: Added property for checking if a ListMap represents an
array of arrays. Added also a property to get the nested array map.
* XmlCodeExporter.cs: First implementation of code exporter.
svn path=/trunk/mcs/; revision=16901
* AssemblyInfo.cs: Updated version to 0.25.99 (all tools).
* MakeCert.cs: Added support for Extended Key Usage (-eku).
It's now possible to create SSL certificate with the tool.
svn path=/trunk/mcs/; revision=16897
* Makefile.am, cpu-sparc.md, exceptions-sparc.c, mini-sparc.c,
mini-sparc.h, tramp-sparc.c: Beginning of sparc support
from Mark Crichton <[email protected]> and Christopher Taylor
([email protected]).
svn path=/trunk/mono/; revision=16892
* UserControl.cs: Added attribute
* BasePartialCachingControl.cs: New class and paritally implemented
* DesignerDataBoundLiteralControl.cs: New class and implemented
* DesignTimeTemplateParser.cs:
* PartialCachingControl.cs:
* StaticPartialCachingControl.cs: New class and paritally implemented
svn path=/trunk/mcs/; revision=16883
* IntPtrStream.cs (Read): Use correct offset here; Change the
code to use a byte* instead of an IntPtr to reduce the number of
casts used.
svn path=/trunk/mcs/; revision=16858
* expression.cs (Invocation.MakeUnionSet): Patch from Lluis
Sanchez : use TypeManager.ArrayContainsMethod instead of a direct
reference comparison.
(TypeManager.ArrayContainsMethod): When we have a MethodInfo, also
examine the ReturnType for equality - this is necessary in the
cases of implicit and explicit operators whose signature also
includes the return type.
svn path=/trunk/mcs/; revision=16857
* conv-lib.cs: New Multi stage compilation test for bug #47043.
* conv-main.cs: Main for the above.
* Makefile: Update.
svn path=/trunk/mcs/; revision=16856
* ArrayList.cs: Deployed ArrayList from Tum; Fixed iterator to
allow nulls, and inline a few calls to make profiling more useful.
svn path=/trunk/mcs/; revision=16849
* IntPtrStream.cs (Read): Use Marshal.Copy instead of the now
deprecated MemCopy.
(IntPtrStream): New stream implementation, it maps to a region in
memory.
svn path=/trunk/mcs/; revision=16846
* icall.c: Add new MemCopy internalcall.
(ves_icall_System_Reflection_Assembly_GetManifestResourceInternal):
Simplified code; It is not necessary to handle all the cases here,
as the C# code takes care of it. Only handle the case of the name
resource embedded into the assembly.
Changed signature to return the data pointer and the size of the
data.
2003-07-26 Miguel de Icaza <[email protected]>
* reflection.c (mono_image_get_method_info): Allow for 0x40 to be
encoded. (Partition II.22.1.7: PInvokeAttribute:SupportsLastErr).
svn path=/trunk/mono/; revision=16843
doesn't have the mehod, look at the parent of the parent.
* object.c: mono_message_init(): use the attribute PARAM_ATTRIBUTE_OUT
to check if a parameter is an in or out parameter
(PARAM_ATTRIBUTE_IN is not set by default).
mono_method_return_message_restore(): Use mono_class_value_size to
get the size of a value type. mono_type_stack_size (parameterType)
does not return the correct value if parameterType is byRef.
mono_load_remote_field(), mono_load_remote_field_new(),
mono_store_remote_field(), mono_store_remote_field_new():
raise exception if the remote call returns an exception.
svn path=/trunk/mono/; revision=16837
* Type.cs, MonoType.cs, ArgIterator.cs: pass the handles values
to icalls, to avoid special cases in some call conventions.
svn path=/trunk/mcs/; revision=16832
makes it easier to create filters using braces, labels, or offsets
* HandlerBlock.cs: Allow handler blocks to be created using positions,
offsets, and labels.
* MethodDef.cs: Add methods to create labels all 3 ways, and emit
labels created by each of the methods.
* TryBlock.cs: Use a handler block instead of label strings. This
allows all three methods of label creation to be used.
svn path=/trunk/mcs/; revision=16828
2003-07-26 Miguel de Icaza <[email protected]>
* namespace.cs: Cache the result of the namespace computation,
instead of computing it every time.
2003-07-24 Miguel de Icaza <[email protected]>
* decl.cs: Use a global arraylist that we reuse over invocations
to avoid excesive memory consumption. Reduces memory usage on an
mcs compile by one meg (45 average).
* typemanager.cs (LookupTypeReflection): In .NET pointers are
private, work around that.
2003-07-23 Miguel de Icaza <[email protected]>
* literal.cs (IntLiteral): Define Zero and One static literals.
* cs-parser.jay (integer_literal): use static literals to reduce
memory usage for the most used literals (0, 1 and -1). 211kb
reduced in memory usage.
Replace all calls to `new ArrayList' with `new
ArrayList(4)' which is a good average number for most allocations,
and also requires only 16 bytes of memory for its buffer by
default.
This reduced MCS memory usage in seven megabytes for the RSS after
bootstrapping.
svn path=/trunk/mcs/; revision=16808
* DefaultContext.cs: count() should return a double
* Expression.cs: better support for handling non-double numbers
svn path=/trunk/mcs/; revision=16799
grammar changes
2003-07-28 Miguel de Icaza <[email protected]>
* codegen.cs: Compute IsGeneric correctly.
* cs-parser.jay: Introduce OP_GENERIC_LT for the grammar ambiguity
resolution.
Bring back (temporarily) OP_LEFT_SHIFT, OP_RIGHT_SHIFT,
OP_SHIFT_RIGHT_ASSIGN, OP_SHIFT_LEFT_ASSIGN. There were too many
regressions, and I was chasing more bugs than I required.
* interface.cs: Use expressions for base type names (like classes
and structs have been doing for a while now), and resolve that.
This patch should probably go into head as well.
This makes it one less user of FindType.
svn path=/trunk/mcs/; revision=16794
* UnionCodeGroup.cs:
* Url.cs: Added to CVS, basic functionality implemented, except
for CreateIdentityPermission (Site, Url) and the Resolve methods
in UnionCodeGroup.
svn path=/trunk/mcs/; revision=16789
* expression.cs (Invocation.OverloadResolve): Fix the algorithm to
handle params methods the correct way by forming only one
applicable set with params and normal methods in them. Earlier we
were looking at params methods only if we found no normal methods
which was not the correct thing to do.
(Invocation.BetterFunction): Take separate arguments indicating
when candidate and the best method are params methods in their
expanded form.
This fixes bugs #43367 and #46199.
svn path=/trunk/mcs/; revision=16788
* System.Xml.dll.sources: Add new files
* XslTransform.cs: Use the new XslTransformImpl class
* XslTransformImpl.cs: An abstract class for Xsl transforms
* UnmanagedXslTransform.cs: Contains the code that was in
XslTransform.cs
svn path=/trunk/mcs/; revision=16786
* DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
attribute declaration should be got independently of elementdecl.
* XmlAttribute.cs :
Added internal SetDefault() to mark as default.
Removed InnerText implementation that is just the same as XmlNode.
* XmlDocument.cs : id shouldn't be removed from table at 'trying' to
get matching elements. ReadAttributeNode() now sets default mark.
* XmlElement.cs : WriteTo() should ignore default attributes.
* XmlTextWriter.cs : shuold allow valid name char such as digits.
svn path=/trunk/mcs/; revision=16783
* class.cs (TypeContainer.DefineMembers): Use the base type's full
name when looking up the base class of a nested class. Fixes#46977.
svn path=/trunk/mcs/; revision=16782
* mono-debug-debugger.c (mono_debugger_runtime_invoke): New
method. This is a wrapper around mono_runtime_invoke() which
boxes the instance object if neccessary.
svn path=/trunk/mono/; revision=16779
* cs0075.cs: This test case was incorrect; according to the spec,
`(double) -1' is allowed since `double' is a builtin type.
However, `(A) -1' is not allowed where `A' is a valuetype and has
an implicit conversion from int.
svn path=/trunk/mcs/; revision=16776
* cs-parser.jay: Solve the abiguities with casts; fixes bugs
#46923 and #35459.
(CAST_FOLLOWING_TOKEN, NO_CAST_FOLLOWING_TOKEN): New tokens;
they're returned by the tokenizer in some cases to resolve
ambiguities with casts.
(invocation_expression): Tell the tokenizer to check whether the
following token may follow a cast.
(cast_expression): A cast is only a cast if it's followed by a
token which may actually follow a cast.
* expression.cs (ParenthesizedExpression): New class.
(Binary.DoResolve): Fix#35459.
svn path=/trunk/mcs/; revision=16774
* XmlDsigC14NTransformTest.cs: Corrected test for .NET 1.1 (that was a
bug in .NET 1.0). There are no more unit test failures on Windows.
svn path=/trunk/mcs/; revision=16773
fixes the problem with ilasm creating blank files if their is a
failure in the parsing phase.
* ExternTable.cs: Do not reference the assemblies untill after the
PEFile untill the Resolve phase.
svn path=/trunk/mcs/; revision=16765
sure to not resolve more then once.
* ExternMethodRef.cs: Resolve as a typespec method if neccasary
* ExternTypeRef.cs: Use modifiable type as base class
* FieldRef.cs: Make sure to not resolve more then once.
* GlobalFieldRef.cs: Make sure to not resolve more then once.
* GlobalMethodRef.cs: Make sure to not resolve more then once.
* ITypeRef.cs: Types no longer need the AsClassRef method
* MethodDef.cs: Only decriment param count for vararg methods if there
is an ellipsis on the end of the param list.
Fix little bug so return types allways get resolved.
* PeapiTypeRef.cs: Use TypeRef.Ellipsis for a place holder in bound
arrays instead of null
* PrimitiveTypeRef.cs: Use modifiable type as a base
* TypeRef.cs: Use modifable type as base, and let it do all the
modifications
* TypeSpecFieldRef.cs: Make sure to not resolve more then once.
* ModifiableType.cs: New base class for all types. This class will
handle all of the typemodification and determine whether methods
should be added to the type or the types typespec.
svn path=/trunk/mcs/; revision=16764
sure to not resolve more then once.
* ExternMethodRef.cs: Resolve as a typespec method if neccasary
* ExternTypeRef.cs: Use modifiable type as base class
* FieldRef.cs: Make sure to not resolve more then once.
* GlobalFieldRef.cs: Make sure to not resolve more then once.
* GlobalMethodRef.cs: Make sure to not resolve more then once.
* ITypeRef.cs: Types no longer need the AsClassRef method
* MethodDef.cs: Only decriment param count for vararg methods if there
is an ellipsis on the end of the param list.
Fix little bug so return types allways get resolved.
* PeapiTypeRef.cs: Use TypeRef.Ellipsis for a place holder in bound
arrays instead of null
* PrimitiveTypeRef.cs: Use modifiable type as a base
* TypeRef.cs: Use modifable type as base, and let it do all the
modifications
* TypeSpecFieldRef.cs: Make sure to not resolve more then once.
* ModifiableType.cs: New base class for all types. This class will
handle all of the typemodification and determine whether methods
should be added to the type or the types typespec.
svn path=/trunk/mcs/; revision=16761
* XmlQualifiedName.cs : fields should never be null
* Expression.cs:
* Tokenizer.cs:
don't pass null to XmlQualifiedName constructor
* XsltArgumentList.cs:
fix type conversions in ValidateParam
allow creating params with null namespaceUri
svn path=/trunk/mcs/; revision=16753
* jscript-lexer-parser.g: Changed the namespace to
Microsoft.JScript.Tmp.
* jscript-lexer-parser.g: Fixwd a typo at source_elements rule.
* jscript-lexer-parser.g: Got the name of a
global_function_declaration and also its return type if
available.
* jscript-lexer-parser.g: Added syntatic rule for print_statement.
* jscript-lexer-parser.g: Initial construction of AST for
enum_statement and package_statement.
* jscript-lexer-parser.g: Fixed the enum_statement to accept
empty enum declarations.
* jscript-lexer-parser.g: Got the type of a
veriable_declaration.
* jscript-lexer-parser.g: Initial construction of AST for
primary_expression (in particular literal).
svn path=/trunk/mcs/; revision=16738
* driver.cs: Modified the driver structure to be compatible
with our new CodeGenrator and SemanticAnalizer. I
removed the builders from Reflection.Emit to the
CodeGenerator. Added an ASTList, SemanticAnalizer and
CodeGenerator here. Adde methods Run, GenerateCode
svn path=/trunk/mcs/; revision=16737
* Decided to change temporarly namespace name
Microsoft.JScript to Microsoft.JScript.Tmp in order to be able
to run the code generated by our CIL code generator (on next
commit will come). The problem is that we don't have the
runtime support for our compiler, this involve VsaEngine class
and its "friends", which I have not found a lot of
doumentation for. If someone knows a docs place for them,
don't hesitate to send me a email pointing to them.
* Changed from public to internal Visit function at some
classes.
* Package.cs: Added Name and Members fields.
* SemanticAnalizer.cs: Added methods VisitPrint and
VisitStringLiteral.
* VariableDeclaration.cs: Added Type field.
* Visitor.cs: Changed from public to internal. Added
VisitPrint and VisitStringLiteral methods.
* VsaEngine.cs: Fixed namespace name from Microsoft.JScript to
Microsoft.JScript.Vsa and then to Microsoft.JScript.Vsa.Tmp.
svn path=/trunk/mcs/; revision=16731
for OwnerElement.IsRooted to fix the build..
* SoapServices.cs (XmlNsForClrTypeWithNsAndAssembly):
Fixed typo. It's 'Ns', but 'Ms'.
svn path=/trunk/mcs/; revision=16721
* DTDValidatingReader.cs :
- Added ID support in ValidateAttributes().
- More refined ReadAttributeValue() support for non-expanding entity
situation
- It should handle LocalName, Name, Prefix, NamespaceURI and Value
correctly when the reader is on each of the value nodes of an
attribute. Now XmlDocument.ReadNode() should work well.
* XmlDocument.cs :
- added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
RemoveIdenticalAttribute()
- Implemented GetAttributeById().
* XmlAttributeCollection.cs :
- added private ownerDocument property and replaced
ownerElement.OwnerDocument with it.
- Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
It calls XmlDocument.{Add|Remove}IdenticalAttribute().
- Added RemoveIdenticalAttribute() and it is used in Remove().
(I also added AddIdenticalAttribute() but is not used.)
svn path=/trunk/mcs/; revision=16717
* XmlDocumentType.cs :
modified private DTD to dtd and added internal DTD (the same thing).
* XmlElement.cs :
Fixed SetAttributeNode() to check if specified attribute is already
set to the other element. In fact it is W3C DOM's specification but
MS.NET 1.0 failed to catch it.
* XmlTextReader.cs :
ReadAttributeValue() should check if the value of the attribute is
already read when the whole value is entity reference.
Also, Name of text nodes should be "", not "#text"
svn path=/trunk/mcs/; revision=16716
* BuiltInDatatype.cs : XsdIDRefs.ParseValue () should be implemented.
* XmlSchemaDatatype.cs : public Whitespace and protected Normalize()
should be internal.
svn path=/trunk/mcs/; revision=16715
* error-6.cs: New test for bug #46907.
* Makefile.am (test-multi-local): Run the multi-test tests.
(all-local): Run run-test-local and test-multi-local.
svn path=/trunk/mcs/; revision=16711
* expression.cs (Indexers.Indexer): New nested struct; contains
getter, setter and the indexer's type.
(Indexers.Properties): This is now an ArrayList of
Indexers.Indexer's.
(IndexerAccess.DoResolveLValue): Correctly set the type if the
indexer doesn't have any getters.
* assign.cs (Assign.DoResolve): Also do the implicit conversions
for embedded property and indexer assignments.
svn path=/trunk/mcs/; revision=16709
* cs-tokenizer.cs (Tokenizer.xtoken): Report a CS1040 if a
preprocessor directive is not the first non-whitespace character
on a line.
svn path=/trunk/mcs/; revision=16707
* namespace.cs (NamespaceEntry.Lookup): New method; rewrote the
namespace parsing, follow the spec more closely.
* rootcontext.cs (RootContext.NamespaceLookup): Use the new
NamespaceEntry.Lookup().
svn path=/trunk/mcs/; revision=16706
* FormatterServices.cs:
(GetSerializableMembers): check that all base types are serializable
when getting their fields. Fixes bug #46875.
svn path=/trunk/mcs/; revision=16705
* XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
with http://www.w3.org/XML/1998/namespace.
* XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
* XmlNode.cs : InnerText should handle CDATA and whitespaces.
* XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
* XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
attributes (as MS.NET does). It isn't good way and I may change it.
svn path=/trunk/mcs/; revision=16702
a toplevel 'make run-test' doesn't recurse through all the directories twice
(once to make test, once to run-test).
svn path=/trunk/mcs/; revision=16692
* expression.cs (Invocation.OverloadResolve): Perform the check
which disallows Invoke to be directly called on a Delegate.
(Error_InvokeOnDelegate): Report error cs1533.
svn path=/trunk/mcs/; revision=16683
* everywhere: Remove uses of direct invocation of the 'Invoke'
method on a delegate type - that is error cs1533 now flagged by
mcs.
svn path=/trunk/mcs/; revision=16681
* cpu-g4.md, cpu-pentium.md: updates for new instructions.
* mini.c, mini.h: first cut at generics support: some new instructions
added and changed the behaviour of some of the existing ones.
svn path=/trunk/mono/; revision=16678
* MethodCore.cs (OverridesSomething): New public field; it's set
from TypeContainer.DefineMembers if this method overrides
something (which doesn't need to be a method). Fix#39462.
svn path=/trunk/mcs/; revision=16673
* expression.cs (Indexers.GetIndexersForType): Only look in the
interface hierarchy if the requested type is already an
interface. Fixes#46788 while keeping #46502 fixed.
svn path=/trunk/mcs/; revision=16667
* interface.cs (Populate*): Get rid of code which emits attributes
since the stage in which we emit attributes is the 'Emit' stage,
not the define stage.
(Emit): Move attribute emission for interface members here.
svn path=/trunk/mcs/; revision=16665
out parameter.
* MethodCall.cs: Improved checking if the requested client type for the target
object can be casted to the server type. Now not only checks type name,
but also the type hierarchy and implemented interfaces. Also implemented
method ToString().
* MethodResponse.cs: Imlemented ToString().
* ReturnMessage.cs: In the exception constructor, allow the request to be null.
Implemented ToString().
* StackBuilderSink.cs: Check type of parameters before calling the target method.
(a wrong type would make the runtime to crash).
svn path=/trunk/mcs/; revision=16659
* class.cs (TypeContainer.DefineMembers): Check whether all
readonly fields have been assigned and report warning CS0649 if
not.
* statement.cs (LocalInfo.IsFixed): Always return true if this is
a valuetype.
svn path=/trunk/mcs/; revision=16655
* XmlDsigC14NTransformTest.cs: New tests from Aleksey Sanin.
* XmlDsigC14NWithCommentsTransformTest.cs: New tests from
Aleksey Sanin.
svn path=/trunk/mcs/; revision=16636
* decl.cs (MemberCache.AddMethods): Reverse the order of the array
returned from GetMethods to make things consistent with the
assumptions MCS makes about ordering of methods.
This should comprehensively fix bug #45127 and it does :-)
* ecore.cs (MethodGroupExpr.DeclaringType): Correct bug - the
ordering is actually reverse.
* Clean up some debug messages I left lying around.
svn path=/trunk/mcs/; revision=16627
This compiler can not self host currently. Need to fix that.
* Makefile: compile to `gmcs.exe'
* driver.cs: Turn on v2 by default on gmcs.
* generic.cs (ConstructedType): Does no longer take a container
type argument; That will be taken care of later.
(ConstructedType.DoResolve, ConstructedType.ResolveAsTypeStep):
Use SimpleName to resolve for now, so we can continue the work on
the parser, until we get Type.GetType that understands generics.
(ConstructedType.ToString): Implement
(TypeArguments.Resolve): Resolve the child expressions as types.
* cs-parser.jay: Rename interface_constraints to
type_parameter_constraints
(namespace_or_type_name): Only use constructed types for the basic
construction, we will deal with identifier<...> later.
(type/type_name): No longer call DecomposeQI, as
namespace_or_type_name is always decoded now.
svn path=/trunk/mcs/; revision=16624
* DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
DTDNotationDeclarationCollection and replaced Hashtables with them.
Added NormalizedDefaultValue property for DTDAttributeDefinition.
* DTDValidatingReader.cs :
- It now reads attribute values into value collection.
- Renamed consumedDefaultAttribute to consumedAttribute, and
inContent to insideContent.
- GetAttribute() should allow reader's other node state than element.
- MoveToNextAttribute() should move when reader is placed other than
the first attribute.
- HandleError() now supports ValidationType.None (i.e. does nothing).
- ValidateAttribute() now collects and resolves attribute value
entity references. (On the other hand, it doesn't support
EntityHandling.ExpandCharEntity.)
- NodeType shouldn't return Attribute after ReadAttributeValue().
Now only Text is supported, but must also support EntityReference.
- Add FilterNormalization() and partially support Normalization.
svn path=/trunk/mcs/; revision=16615
2003-07-20 Miguel de Icaza <[email protected]>
* cs-parser.jay (namespace_name): do not use
namespace_or_type_name, use qualified_identifier, because
namespace_or_type_name will soon return a composed expression
instead of a string.
(namespace_or_type_name): Instead of returning a string, now this
production returns an expression.
* codegen.cs (EmitContext): Setup IsGeneric property based on
whether our DeclSpace is generic, our the method is generic.
* modifier.cs (Modifiers.METHOD_GENERIC): New definition, use if
the method is generic.
* cs-parser.jay (type_arguments, opt_type_argument_list,
type_parameters, type_parameter_list, opt_type_parameter_list,
type_parameter,, opt_type_parameter_constraints_clauses,
type_parameter_constraints_clauses,
type_parameter_constraint_clause, type_parameter_constraint,
interface_constraints): Add new production
* decl.cs (DeclSpace): IsGeneric, flag to track whether this
DeclSpace is generic or not.
(DeclSpace.SetParameterInfo): New routine, used to set the
parameter info for a type.
(DeclSpace.LookupGeneric): Lookups a name, and if it is a generic,
returns a GenericTypeExpr
* ecore.cs (SimpleName.ResolveAsTypeStep): If our container is
generic, lookup the generic argument.
* attribute.cs: Do not allow TypeParameterExpressions in
Attributes.
* class.cs: Do not allow the Main method to be defined in a
Generic container.
* expression.cs (SizeOf): Do not allow generic types to be used as
arguments to sizeof.
* typemanager.cs (IsGeneric): Wrapper for Reflection when we have
it: whether a type is generic or not. Only works for types we are
currently building for now.
2003-01-21 Miguel de Icaza <[email protected]>
* generic.cs: New file, contains support code for generics.
* cs-parser.jay: Remove OP_SHIFT_LEFT, OP_SHIFT_RIGHT,
OP_SHIFT_LEFT_ASSIGN, OP_SHIFT_RIGHT_ASSIGN.
Update parser for the above removals.
* cs-tokenizer.cs: Do not handle <<= or >>= specially. This is
now taken care of in the parser.
svn path=/trunk/mcs/; revision=16612
This directory is only for the development of the generics version of MCS,
we will later fold all those changes into the main branch. But wanted to
share the code with others in the meantime instead of keeping a separate
tree.
svn path=/trunk/mcs/; revision=16611
* XmlTextReader.cs :
Read() now handles parser context stuff (BaseURI, XmlLang and
XmlSpace) correctly for an empty element.
Normalization property now doesn't throw an error. Will be used soon.
* XmlValidatingReader.cs : added ValidationType.None support (wait for
the next DTDValidatingReader update for "not firing event handler).
* XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
svn path=/trunk/mcs/; revision=16609
* expression.cs (Invocation.OverloadResolve): Follow the spec more
closely: we eliminate methods in base types when we have an
applicable method in a top-level type.
Please see section 14.5.5.1 for an exact description of what goes
on.
This fixes bug #45127 and a host of other related to corlib compilation.
* ecore.cs (MethodGroupExpr.DeclaringType): The element in the
array is the method corresponding to the top-level type (this is
because of the changes made to icall.c) so we change this
accordingly.
(MethodGroupExpr.Name): This too.
* typemanager.cs (GetElementType): New method which does the right
thing when compiling corlib.
* everywhere: Make use of the above in the relevant places.
svn path=/trunk/mcs/; revision=16599
* Makefile: Boo-yah! Add corlib_plattest.dll, which is a
corlib test library built against the platform corlib. This
lets us test our corlib tests. On a non-mono-native platform
(Windows) we run those tests only; on a mono-native platform, we
run the full corlib test suite on our own tests.
* corlib_plattest.dll.excludes: Add this. (The result of
'grep Mono corlib_test.dll.sources')
* corlib_test.dll.sources: Extraneous newline was messing things
up.
svn path=/trunk/mcs/; revision=16597
* Makefile (SUBDIRS): Add System.Drawing.Design.dll to the
2003-07-23 Peter Williams <[email protected]>
* System.Drawing.dll.sources: Add Pens.cs
svn path=/trunk/mcs/; revision=16595
be public.
* StreamReader.cs (Initialize): This method is not exposed in the
API, mark as internal.
* SignatureHelper.cs: This class does not have the
SerializableAttribute.
* WaitHandle.cs (CheckDisposed): This method is not in the public
API, mark it as 'internal'.
* Environment.cs (SpecialFolder): Added 'Desktop' and 'MyComputer'
as values for NET_1_1.
(GetFolderPath): Return the empty string ("") for values of
SpecialFolder that have no corresponding equivalents in
Linux. Return "$HOME/Desktop" for SpecialFolder.DesktopDirectory
and "$HOME" for SpecialFolder.Personal.
* IntPtr.cs (GetObjectData): Mark it as an interface
implementation, instead of a public method.
* Guid.cs (NewGuid): Remove MonoTODOAttribute.
* TypeLoadException.cs (GetObjectData):
Create stubs for the fields that are being serialized.
* UIntPtr.cs: Removed erroneous CLSCompliantAttributes.
svn path=/trunk/mcs/; revision=16594
* win32functions.cs: Move functions that do not exist in WineLib
over to Win32_Wineless, so we do not trigger the warning messages
until a function tries to use them.
Win32() constructor: Set a hint on the appdomain that we would
prefer to have the System.Drawing API use the Win32 implementation
of the API.
* *.cs: Updated sources to use this.
svn path=/trunk/mcs/; revision=16591
* class.c: Fixes from Paolo in response to bug #45415 (Subclass
relationship between TypeBuilders while compiling corlib) and bug
45993 (Array types returned from the runtime while compiling
corlib were from the loaded corlib).
svn path=/trunk/mono/; revision=16588
* shared.c:
* daemon.c (maybe_exit): Avoid the race condition when the daemon is
closing but another client comes along when the shared data is still
visible. Should fix bugs 33671 and 35213.
svn path=/trunk/mono/; revision=16586
* cs-parser.jay: Replace all calls to `new ArrayList' with `new
ArrayList(4)' which is a good average number for most allocations,
and also requires only 16 bytes of memory for its buffer by
default.
This reduced MCS memory usage in seven megabytes for the RSS after
bootstrapping.
svn path=/trunk/mcs/; revision=16562
* rules.make (withmcs): Add this developer utility target.
'make withmcs' will build 'all' using $(INTERNAL_MCS) as its compiler
no matter what, for testing corlib builds or on Windows. As requested
by Ravi.
svn path=/trunk/mcs/; revision=16558
IVsaItem.cs, IVsaItems.cs, IVsaPersistSite.cs, IVsaReferenceItem.cs,
IVsaSite.cs: InterfaceTypeAttribute can only be applied to interfaces,
no to interface members. Build failed on windows.
svn path=/trunk/mcs/; revision=16549
* cs-parser.jay (invocation_expression): Moved
`OPEN_PARENS expression CLOSE_PARENS unary_expression' here from
`cast_expression', but create a InvocationOrCast which later
resolves to either an Invocation or a Cast.
* ecore.cs (ExpressionStatement.ResolveStatement): New virtual
method; call this before EmitStatement() to make sure that this
expression can be used as a statement.
* expression.cs (InvocationOrCast): New class; resolves to either
an Invocation or a Cast.
* statement.cs (StatementExpression): Call ResolveStatement() on
the ExpressionStatement before emitting it.
svn path=/trunk/mcs/; revision=16537
xml serialization. Modified method of writing schema. Now it creates
a XmlSchema object and serializes it using XmlSerializer.
* XmlConstants.cs: Added constants for data type names.
* XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
type specified in the column.
svn path=/trunk/mcs/; revision=16530
* mono/tests/Makefile.am: Add missing test. Make tests interruptable
by Ctrl-C. Add testinterp target to run the tests with the interpreter.
Do not try to build vararg.cs under mcs.
svn path=/trunk/mono/; revision=16524
* class.c (mono_class_layout_fields): Fix gc aware auto layout by
initializing real_size only once. Also fix bug #46602.
svn path=/trunk/mono/; revision=16522
* interp.c: Use the new metadata_section lock instead of metadata_lock.
Patch by Bernie Solomon ([email protected]).
svn path=/trunk/mono/; revision=16520
* syntax0068.cs, syntax0069.cs, syntax0071.cs, syntax0116.cs:
These are syntax errors which we'd need to catch in cs-parser.jay;
separate them from the other errors.
* cs0572.cs: New test.
svn path=/trunk/mcs/; revision=16497
* test-206.cs: New test for bug #46502.
2003-07-20 Martin Baulig <[email protected]>
* test-205.cs: New test for some namespace stuff.
svn path=/trunk/mcs/; revision=16496
* expression.cs (Invocation.VerifyArgumentsCompat): Check whether
`ref' and `out' attributes match; fixes#46220.
(MemberAccess.ResolveMemberAccess): You can't reference a type
through an expression; fixes#33180.
(Indexers.GetIndexersForType): Don't return the indexers from
interfaces the class implements; fixes#46502.
svn path=/trunk/mcs/; revision=16495
* decl.cs (AdditionResult): Added `Error'.
* enum.cs (AddEnumMember): Report a CS0076 if name is `value__'.
* typemanager.cs (TypeManager.ChangeType): Catch exceptions;
makes cs0031.cs actually work.
2003-07-20 Martin Baulig <[email protected]>
* namespace.cs: Fixed that bug which caused a crash when compiling
the debugger's GUI.
svn path=/trunk/mcs/; revision=16486
* object.c (mono_runtime_class_init): Take the metadata_section
mutex before obtaining the domain mutex.
* appdomain.h: Added definition of metadata_section mutex here.
* object.c: define metadata_mutex here.
2003-07-21 Miguel de Icaza <[email protected]>
* mini.c: Removed definition of metadata_shared mutex here.
2003-07-21 Miguel de Icaza <[email protected]>
* jit.c: Remove definition of metadata_section mutex from here
svn path=/trunk/mono/; revision=16485
empty array if the type is an array. Fixed.
ves_icall_MonoMethod_get_base_definition: if the base method
is abstract, get the MethodInfo from the list of methods of
the class.
* reflection.c: ParameterInfo.PositionImpl should be zero-based
and it was 1-based. Fixed in mono_param_get_objects.
svn path=/trunk/mono/; revision=16484
* CheckBoxList.cs: fixes bug reported on the list about the state of
the CheckButtons not being preserved across posts.
svn path=/trunk/mcs/; revision=16473
* Makefile: Add in corlib_res.dll, which we use as a basis
for tests on non-linux platforms. Nearly identical rules to
corlib_cmp: corlib - some files that cause the MS runtime to
barf.
* corlib_res.dll.excludes: Added.
svn path=/trunk/mcs/; revision=16462
of a generic type. ie Set<int32>
* TypeSpecFieldRef.cs: New File - A field ref that is attached to
a typespec. This can be used with modified types, and generic types.
* TypeSpecMethodRef.cs: New File - A method ref that is attached
to a typespec. This can be used with modified types, and generic types.
* GenericTypeRef.cs: Create method refs and field refs using the
new typespec classes.
* ITypeRef.cs: Types should now be able to have methods and fields
attached to them
* PeapiTypeRef.cs: Set UseTypeSpec to true if the type is modified
* PrimitiveTypeRef.cs: Add methods to attach fields and
methods. This just uses the TypeSpec* classes so I don't need to
create classrefs.
* TypeRef.cs: Set UseTypeSpec to true if a type is modified.
svn path=/trunk/mcs/; revision=16459
be added to type specs. This fixing bah-zillions of little
problems in ilasm. We can now add fields and methods to arrays,
reference types, and most importantly generics.
Add the GenericTypeInst class. This is an instance of a generic
type. ie Hash<int32, string>. GenericTypeSpecs now write their id
number as a compressed number, this matches the way the runtime
loads them and will allow generic types to have more then 255 type
parameters.
svn path=/trunk/mcs/; revision=16458
2003-07-20 Peter Williams <[email protected]>
* README.platforms: Update docs for changes below.
* platforms/win32.make (PLATFORM_CORLIB): Set this variable
to 'mscorlib.dll', instead of $(corlib) which everything links
against. *Almost* everything should link against our corlib --
with the exception of corlib_cmp and corlib_res.
* platforms/linux.make: Same here: corlib.dll
* rules.make: Define $(corlib) here.
class/corlib:
2003-07-20 Peter Williams <[email protected]>
* Makefile: Don't use real_corlib; use $(PLATFORM_CORLIB).
svn path=/trunk/mcs/; revision=16457
* nunit20/nunit-console/Makefile (PROGRAM): Put nunit-console.exe
in $(topdir)/class/lib so we can find our DLL's.
build:
2003-07-20 Peter Williams <[email protected]>
* config-default.make (TEST_RUNTIME): Use the platform runtime
to run tests, by default.
* profiles/default.make (TEST_RUNTIME): If our test runtime is
mono, use the --debug flag.
* executable.make (sourcefile): Add a basename so that we can
find the nunit sources and so we behave a bit more like
library.make
* config-default.make (TEST_HARNESS): Find nunit-console in its
new home.
svn path=/trunk/mcs/; revision=16456
* library.make ($(response)): Do a "Creating ..." line here.
* executable.make ($(response)): Same.
* config-default.make: Make warning more forceful.
* rules.make: Define a useful 'PLATFORM_MONO_NATIVE' that is
set if the platform does not have a native runtime (ie, linux).
Also reorder some definitions.
2003-07-20 Peter Williams <[email protected]>
* Created. See ../ChangeLog for entries earlier than
this.
svn path=/trunk/mcs/; revision=16453
* mono-debug.h: Set version number to 31.
(mono_debug_init): Added `MonoDomain *' argument.
* mono-debug-debugger.c: Reworked the type support; explicitly
tell the debugger about builtin types; pass the `klass' address to
the debugger.
svn path=/trunk/mono/; revision=16448
* typemanager.cs (LookupTypeReflection): Never expose types which
are NotPublic, NestedPrivate, NestedAssembly, or
NestedFamANDAssem. We used to return these, and later do a check
that would report a meaningful error, but the problem is that we
would not get the real match, if there was a name override.
svn path=/trunk/mcs/; revision=16444
* ChunkStream.cs:
(WantMore): true if we've not received the last chunk yet. Fixes
bug #45463. Thanks to Miguel for tracking this down and providing a
test case.
* WebConnection.cs: removed bogus ^M's.
* WebHeaderCollection.cs: provide more info when the header or value is
wrong.
svn path=/trunk/mcs/; revision=16441
* XmlSchema.cs : added support for collecting missing type references
at compilation-time.
* XmlSchemaType.cs, XmlSchemaComplexType.cs, XmlSchemaSimpleType.cs:
- Renamed qName to QNameInternal.
- Added BaseSchemaType and ContentTypeParticle support.
svn path=/trunk/mcs/; revision=16437
* XmlSchema.cs, XmlSchemaAll.cs, XmlSchemaAnnotated.cs,
XmlSchemaAnnotation.cs, XmlSchemaAny.cs, XmlSchemaAnyAttribute.cs,
XmlSchemaAttribute.cs, XmlSchemaAttributeGroup.cs,
XmlSchemaAttributeGroupRef.cs, XmlSchemaChoice.cs,
XmlSchemaComplexContent.cs, XmlSchemaComplexContentExtension.cs,
XmlSchemaComplexContentRestriction.cs, XmlSchemaComplexType.cs,
XmlSchemaElement.cs, XmlSchemaGroup.cs, XmlSchemaGroupRef.cs,
XmlSchemaIdentityConstraint.cs, XmlSchemaImport.cs,
XmlSchemaInclude.cs, XmlSchemaKey.cs, XmlSchemaKeyref.cs,
XmlSchemaNotation.cs, XmlSchemaObject.cs, XmlSchemaRedefine.cs,
XmlSchemaSequence.cs, XmlSchemaSimpleContent.cs,
XmlSchemaSimpleContentExtension.cs,
XmlSchemaSimpleContentRestriction.cs, XmlSchemaSimpleType.cs,
XmlSchemaSimpleTypeList.cs, XmlSchemaSimpleTypeRestriction.cs,
XmlSchemaSimpleTypeUnion.cs, XmlSchemaUnique.cs,
XmlSchemaXPath.cs,
As to Compile() and Validate(),
- Added CompilationId and check it while compiling schema components.
- Code refactory. Replaced literal xmlns with XmlSchema.Namespace
- Replaced XmlSchemaInfo with compiling XmlSchema itself (XmlSchema
also has PSVI components inside it, so passing itself seems enough).
- Related to above change, IDCollection was moved to XmlSchema, and
blockDefault/finalDefault/blockResolved/finalResolved resolution
was changed to reference only to schema.BlockDefault/FinalDefault.
- The similar change has done against XmlSchemaForm related stuff.
- Changed compilation order of schema type definitions (it is
workaround). First it compiles types, and then it compiles others.
* XmlSchemaElement.cs : added ElementType PSVI contribution support.
svn path=/trunk/mcs/; revision=16435
* DTDValidatingReader.cs :
changed base class to XmlReader and implemented IXmlLineInfo members.
changed .ctor() argument from event handler to validating reader.
Removed some #if ... #else ... #endif blocks.
Added validation event support for Read() using HandleError().
* XmlValidatingReader.cs : added internal OnValidationEvent().
* XmlDocument.cs : ReadNode() now checks reader's state more strictly.
svn path=/trunk/mcs/; revision=16430
* namespace.cs (Namespace, Name): Do not compute the namespace
name dynamically, compute it in the constructor. This reduced
memory usage by 1697 KB.
* driver.cs: Use --pause to pause at the end.
svn path=/trunk/mcs/; revision=16417
* build/library.make (dist-local): Fancy make dist magic gives
way to boring old 'for'.
* build/executable.make (dist-local): Ditto.
class/corlib:
2003-07-18 Peter Williams <[email protected]>
* Makefile (dist-local): The fancy shell script was neat, but
ultimately unnecessary and counterproductive. Alas.
svn path=/trunk/mcs/; revision=16380
* Test/Mono.Directory.LDAP/BindSimpleTest.cs: csc interprets the bare LDAP
as a namespace, not as the class. Give it the fully qualified name.
* Test/Mono.Directory.LDAP/QueryRootDSETest.cs: Same.
svn path=/trunk/mcs/; revision=16375
* Npgsql/AssemblyInfo.cs: Don't strongname the assembly, because
we can't unless corlib is strongnamed too. Not a wonderful solution,
but I don't think this ever worked anyway.
svn path=/trunk/mcs/; revision=16374
* Mono.Data.SybaseTypes/SybaseDecimal.cs: csc.exe is more
stringent about namespaces than mcs. We need to disambiguate
System.Math from Mono.Math here.
svn path=/trunk/mcs/; revision=16373
* DTMXPathDocumentBuilder.cs: csc.exe is more stringent about namespaces
than mcs. We need to disambiguate System.Math from Mono.Math here.
svn path=/trunk/mcs/; revision=16372
* FieldInfo.cs, MonoField.cs: cleanups. Cache some info and use
finer-grained icalls. Requires a matching runtime.
svn path=/trunk/mcs/; revision=16350
getting it from the "this" socket instance. Did not work
if the socket is a subclass of Socket.
Also fixed bug #35371.
svn path=/trunk/mono/; revision=16343
not necessary to query them for every object.
* ObjectWriter.cs: If the value being serialized is a value type (not boxed)
then there is no need to register it in the ObjectIDGenerator, because it is
not possible to have two references to the same value type object.
svn path=/trunk/mcs/; revision=16342
number of calls to GetType(). (Patch by Paolo).
Also added a NextId property that returns a new Id without registering
an object.
svn path=/trunk/mcs/; revision=16341
* metadata.c: fixed size for TypedByRef.
* loader.c: when searching for a method, consider the vararg amrker.
* unicode.c, decimal.c: constify some arrays.
svn path=/trunk/mono/; revision=16340
* expression.cs (LocalVariableReference.Emit, EmitAssign,
AddressOf): Do not use EmitThis, that was wrong, use the actual
this pointer.
svn path=/trunk/mcs/; revision=16323
* build/profiles/default.make: Try to make this smarter so
that we can build on Windows. Specifically, don't require
the mono runtime. Combined with the corlib $(BOOT_COMPILE) change,
this should make corlib build out of the box, I think.
2003-07-17 Peter Williams <[email protected]>
* Makefile ($(testlib)): Build with $(BOOT_COMPILE), not $(CSCOMPILE),
which sort of makes sense and is needed on Windows too.
($(corlib)): same.
$(cmplib): Don't include the makefrag to save the Windows build and some
time.
svn path=/trunk/mcs/; revision=16321
* interface.cs (Define): Do nothing here since there are no
members to populate etc. Move the attribute emission out of here
since this was just totally the wrong place to put it. Attribute
application happens during the 'Emit' phase, not in the 'Define'
phase.
(Emit): Add this method and move the attribute emission here
* rootcontext.cs (EmitCode): Call the Emit method on interface
types too.
svn path=/trunk/mcs/; revision=16308
A whole passel of build system changes. Doc updates:
* build/README.makefiles: Doc updates.
* build/profiles/net_1_0.make: Doc changes.
* INSTALL.txt: A few more touchups.
Better defaults:
* build/config-default.make (prefix): Default install prefix
should be /usr/local.
* build/profiles/bootstrap.make: This profile ...
* build/profiles/default.make: ... is now the default.
* build/profiles/atomic.make: And the default is now this.
Fixes for pre-build checks:
* Makefile: Do the platform and (new) profile checks
before the build, which took some infrastructure changes.
* build/rules.make: Allow a Makefile to specify its own all/install/etc
targets.
* build/profiles/default.make (profile-check): Add a blank
target here.
* build/profiles/atomic.make: Check for a full MCS install to
build against.
HP/UX fixes with help from Bernie Solomon:
* build/config-default.make (ECHO_ESCAPE): HP/UX 'echo'
doesn't need a -e parameter to interpret escape codes. Test for
that and define a configuration parameter.
* build/library.make ($(makefrag)): Use $(ECHO_ESCAPE)
instead of assuming that 'echo -e' will interpret escape
codes.
* build/executable.make ($(makefrag)): Here too.
A make distcheck fix:
* Makefile: Inherit the current prefix so that the build can
find the right System.Xml.dll.
And Windows build fixes with the invaluable help of Sebastian
Pouliot (in various subdirectories).
class/Mono.Data.SqliteClient:
2003-07-16 Peter Williams <[email protected]>
* Makefile (LIB_MCS_FLAGS): Add /r:System.dll here. Why wasn't
this necessary with MCS? (csc.exe needs it.)
class/System:
2003-07-16 Peter Williams <[email protected]>
* Makefile (SCARY_LIB): Flip around since what was bootstrap
is now default.
class/System/Test/System.Net:
2003-07-16 Peter Williams <[email protected]>
* IPAddressTest.cs: #if NET_1_1 for some IPv6 tests that
rely on some NET_1_1-only features.
class/System/Test/System.Net.Sockets:
2003-07-16 Peter Williams <[email protected]>
* TcpListenerTest.cs: Initialize outSock to null to
prevent an mcs compile error.
class/System.Data:
2003-07-16 Peter Williams <[email protected]>
* Makefile: Flip around for the new default build
profile. (In a separate commit)
class/System.Windows.Forms:
2003-07-16 Peter Williams <[email protected]>
* System.Windows.Forms.dll.sources: Don't build with two
AssemblyInfo.cs files.
class/corlib:
2003-07-16 Peter Williams <[email protected]>
* Makefile ($(test_makefrag)): Use $(ECHO_ESCAPE) for HP/UX
portability fixes.
(all-local): Don't build $(cmplib) by default, it's not something
most people need, and the build is broken on Windows right now anyway.
ilasm:
2003-07-16 Peter Williams <[email protected]>
* Makefile (ILParser.cs): Move this from parser/ so we avoid
slash direction issues on the Windows build.
* .cvsignore: Add ILParser.cs here.
ilasm/parser:
2003-07-16 Peter Williams <[email protected]>
* .cvsignore: ILParser.cs has been moved.
tools:
2003-07-16 Peter Williams <[email protected]>
* Makefile (DIST_ONLY_SUBDIRS): Don't build SqlSharp, it's
very old and doesn't build on Windows.
svn path=/trunk/mcs/; revision=16292
* class.cs (MethodData.Define): While checking if a method is an
interface implementation, improve the test: If we are not public
(use new test here: use the computed MethodAttributes directly,
instead of the parsed modifier flags) check if the `implementing'
method comes from an interface or not.
* pending.cs (VerifyPendingMethods): Slightly better error
message.
* makefile: add test target that does the mcs bootstrap.
svn path=/trunk/mcs/; revision=16286
* socket-io.c: Fixed compilation for gcc < 3.2.
Fixed compilation for machines that don't have AF_INET6 (thanks to
Bernie Solomon <[email protected]> for that part.)
Fixed compile warnings.
Fixed formatting and line endings.
svn path=/trunk/mono/; revision=16270
* XmlAttribute.cs :
.ctor() should reject xml- or xmlns-prefixed node.
* XmlNamespaceManager.cs :
added some xmlns validity check.
* XmlNode.cs :
optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
avoiding XmlNamespaceManager creation.
* XmlNodeReader.cs :
doctype node should return PUBLIC and SYSTEM for its indexer,
and Value should be internal subset,
svn path=/trunk/mcs/; revision=16266
maps with the same name and namespace. To avoid this, maps must be registered
using the real map namespace, not the default namespace (the namespace can
change if the type has a XmlType or SoapType attribute).
* XmlArrayItemAttribute.cs: Set IsNullable to true by default.
* XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
Other small fixes.
* XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
is null.
svn path=/trunk/mcs/; revision=16262
* Makefile: Make sure that we use the newly generated compiler
to run the tests, not the installed one.
Modify targets to compile and run in one go instead of separate
targets for each task.
* test-196.cs: Fix careless error - returning a value from a void
Main ().
Add it back to the test suite.
svn path=/trunk/mcs/; revision=16253
* expression.cs (OverloadResolve): Report error only if Location
is not 'Null' which means that there was a probe going on.
svn path=/trunk/mcs/; revision=16252
* Hashtable.cs: Patch from [email protected], GetEnumerator should be
returning DictionaryEntrys, instead of just the Key of the table.
svn path=/trunk/mcs/; revision=16251
* build/rules.make (dist-recursive): Fix recursive rules
to work on HP/UX /bin/sh. Patch from Bernie Solomon
<[email protected]>.
svn path=/trunk/mcs/; revision=16244
* TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
* XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
* XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
* XmlSchemaExporter.cs: Implemented.
* XmlSchemas.cs: Support schemas with TargetNamespace set to null.
* XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
* XmlSerializationWriterInterpreter.cs: Fixed management of default values.
GetStringValue() returns null if the value is null, instead of empty string.
(attributes with null values are not written).
* XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
* XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
DataType value can is now in TypeData.
* XmlTypeMapMemberElement.cs: Small fix.
* XmlTypeMapping.cs: Added FindMember method and BaseMap property.
svn path=/trunk/mcs/; revision=16235
* test-204.cs: User defined conditional logical operators; bug #40505.
2003-07-14 Martin Baulig <[email protected]>
* test-203.cs: Added test for bug #33026.
svn path=/trunk/mcs/; revision=16226
* expression.cs (ConditionalLogicalOperator): New public class to
implement user defined conditional logical operators.
This is section 14.11.2 in the spec and bug #40505.
svn path=/trunk/mcs/; revision=16224
* codegen.cs (EmitContext.InFixedInitializer): New public field.
* ecore.cs (IVariable.VerifyFixed): New interface method.
* expression.cs (Unary.ResolveOperator): When resolving the `&'
operator, check whether the variable is actually fixed. Fixes bug
#36055. Set a variable definitely assigned when taking its
address as required by the spec.
* statement.cs (LocalInfo.IsFixed): New field.
(LocalInfo.MakePinned): Set `IsFixed' to true.
svn path=/trunk/mcs/; revision=16214
* attribute.cs (Attribute.Resolve): While doing a Member lookup
for .ctors, ensure that we only ask for members declared in the
attribute type (BindingFlags.DeclaredOnly).
Fixes bug #43632.
* expression.cs (Error_WrongNumArguments): Report error 1501
correctly the way CSC does.
svn path=/trunk/mcs/; revision=16210
* ServicePoint.cs: Removed Connect and GetEndPoint methods.
Removed reverse resolution when uri is literal IP address.
* WebConnection.cs: IPv6 compatibility update: Try to connect
to all addresses returned by IPHostEntry.
* WebConnectionGroup.cs: Removed unused parameter.
svn path=/trunk/mcs/; revision=16209
* DiagnosticsConfigurationHandler.cs: Removed a never used variable
* EventLog.cs: Small update to prevent a warning
* EventLogPermission.cs: Implemented or implementation added
* EventLogPermissionAttribute.cs: Implemented or implementation added
* EventLogPermissionEntry.cs: Implemented or implementation added
* EventLogPermissionEntryCollection.cs: Implemented or implementation added
* EventLogTraceListener.cs: Implemented or implementation added
* PerformanceCounterManager.cs: Implemented or implementation added
* PerformanceCounterInstaller.cs: Made internal
* PerformanceCounterCategory.cs: Implemented few members
* PerformanceCounterPermission.cs: Implemented or implementation added
* PerformanceCounterPermissionAttribute.cs: Implemented or implementation added
* PerformanceCounterPermissionEntry.cs: Implemented or implementation added
* PerformanceCounterPermissionEntryCollection.cs: Implemented or implementation added
svn path=/trunk/mcs/; revision=16177
* interp.c: Keep alloca()-d data on a free list to prevent stack
overflow errors when valuetypes are allocated in a loop. Fixes
#27420. Is the new code still faster than using malloc/free ?
* interp.c (interp_mono_runtime_invoke): Unbox value type instances
before calling the method. Fixes appdomain2.exe.
* interp.c: Fix warnings.
* interp.c: Report unhandled exceptions correctly.
* interp.c: Implement CEE_ISINST and CEE_CASTCLASS using
mono_object_isinst. Fixes bug #45539 and reflection-enum.exe.
svn path=/trunk/mono/; revision=16170
* mono/tests/cattr-object.cs: Make it run under both mono and MS.NET.
* mono/tests/struct.cs: Add test for unboxing trampolines.
* mono/tests/bug-27420.cs: new regression test.
* mono/tests/Makefile.am: skip vararg test since it does not compile
under mono. Add testinterp target. Add new tests.
svn path=/trunk/mono/; revision=16168
* test-202.cs: Added test for bug #41975.
2003-07-13 Martin Baulig <[email protected]>
* test-201.cs: Added test for bug #35631.
2003-07-12 Martin Baulig <[email protected]>
* test-200.cs: Added test for bug #45854.
svn path=/trunk/mcs/; revision=16165
* expression.cs (MemberAccess.ResolveAsTypeStep): Try to do a type
lookup on the fully qualified name, to make things like "X.X" work
where "X.X" is a fully qualified type name, but we also have a
namespace "X" in the using list. Fixes#41975.
svn path=/trunk/mcs/; revision=16164
* assign.cs (Assign.GetEmbeddedAssign): New protected virtual
function. If we're a CompoundAssign, we need to create an embedded
CompoundAssign, not an embedded Assign.
(Assign.DoResolve): Make this work for embedded CompoundAssign's.
Fixes#45854.
svn path=/trunk/mcs/; revision=16163
* class.cs (Operator.Emit): Do not emit attributes here - it is
taken care of by the Method class that we delegate too. This takes
care of bug #45876.
svn path=/trunk/mcs/; revision=16161
* interp.c: Keep alloca()-d data on a free list to prevent stack
overflow errors when valuetypes are allocated in a loop. Fixes
#27420. Is the new code still faster than using malloc/free ?
* interp.c: Fix warnings.
* interp.c: Report unhandled exceptions correctly.
svn path=/trunk/mono/; revision=16160
* class.c (mono_class_is_assignable_from): New function to implement
the is_assignable_from logic. Used by mono_object_isinst,
Type::IsAssignableFrom () and the interpreter.
* class.c (mono_class_is_subclass_of): Make all classes a subclass of
Object, even interfaces.
* object.c (mono_object_isinst): Implement in terms of
is_assignable_from.
* icall.c (ves_icall_type_is_assignable_from): New icall.
svn path=/trunk/mono/; revision=16155
* MissingNameSpace.cs: Fixed the case where a private/ internal class that per chance has a class with the same name
in the compared assembly gets compared -> now only public classes are compared.
* MissingType: Internal nested types were always compared -> internal nested types are never compared
svn path=/trunk/mcs/; revision=16149
* XmlAttribute.cs,
XmlElement.cs : Fixed CloneNode() for bug #46129.
* XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
String.Format arguments, and basically XmlException.ctor(
IXmlLineInfo, message) seems good idea to use.
* XmlTextReader.cs :
- Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
required non-null context which don't have to exist.
- Added state check. Introduced 'currentState' and 'maybeTextDecl'
(for external entity) and removed hasEnteredDocument. Added
state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
- Replaced throw ReaderError() with throw new XmlException() and
fixed that some error hadn't thrown, only created.
- ResetState() should re-initialize existing private members other
than some specified fields.
- Private AddAttribute() should check if the same-named attribute
already exists.
* DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
svn path=/trunk/mcs/; revision=16131
* AssemblyFlagsAttribute.cs: Added new constructor from NET 1.1.
* AssemblyFlagsAttribute.cs: Added new property from NET 1.1.
svn path=/trunk/mcs/; revision=16124
* AssemblyBuilder.cs: Added argument checking to all methods according
to the MSDN docs. Also marked DefineUnmanagedResource and its friends
as not implemented.
* ModuleBuilder.cs: Added new property FileName used by AssemblyBuilder.
svn path=/trunk/mcs/; revision=16121
Fix for this case.
* SoapHttpClientProtocol.cs: Implemented support for asynchronous calls
(BeginInvoke and EndInvoke).
svn path=/trunk/mcs/; revision=16097
* image.h image.c: Store the metadata version string in MonoImage.
* icall.c: New icall to retrieve the image version.
* reflection.c (create_dynamic_image): Fill in the image version field
* reflection.c (build_compressed_metadata): Use the image version
from the image structure.
svn path=/trunk/mono/; revision=16088
* rootcontext.cs (RootContext.NamespaceLookup): Take a DeclSpace,
not a NamespaceEntry, so we can use DeclSpace.CheckAccessLevel().
* decl.cs (DeclSpace.FindType): Use DeclSpace.CheckAccessLevel().
* typemanager.cs (TypeManager.IsAccessibleFrom): Removed.
svn path=/trunk/mcs/; revision=16087
* expression.cs (ArrayCreation): Don't use a byte blob for arrays
of decimal. Fixes#42850.
NOTE: I also fixed the created byte blob, but this doesn't work on
the MS runtime and csc never produces any byte blobs for decimal
arrays.
svn path=/trunk/mcs/; revision=16083
* SoapClientFormatterSink.cs, SoapClientFormatterSinkProvider.cs SoapServerFormatterSink.cs, SoapServerFormatterSinkProvider.cs, SoapMessageFormatter.cs: Support for the soap serialization added to the remoting infrastructure
svn path=/trunk/mcs/; revision=16062
Added support for soap extensions. Moved some code to
WebServiceHelper. Implemented support for the two types of RoutingStyle. Added support
for In and Out headers. Improved management of exceptions.
* SoapClientMessage.cs: code to retrieve soap headers moved to SoapMessage.
* SoapExtension.cs: Added methods for getting and creating soap extensions.
* SoapMessage.cs: Added methods for getting and assigning headers to an object.
* SoapServerMessage.cs: Added setter for MethodStubInfo. Other minor fixes.
* WebServiceHandler.cs: Added support for In and Out headers. Fixed management of exceptions.
* WebServiceHandlerFactory.cs: Check if the request protocol is supported.
* WebServiceHelper.cs: Added method for reading a soap request.
svn path=/trunk/mcs/; revision=16057
* jscript-lexer-parser.g: Added conditional_compilation_directive,
which is the beginning of our support for conditional compilation
statements and directives in our parser. Added
cc_on_statement, and some lexer rules for getting the needed
tokens (COND_SET, COND_DEBUG, COND_POSITION, COND_POSITION,
COND_IF, COND_ELIF, COND_ELSE, COND_END and CC_ON.
svn path=/trunk/mcs/; revision=16049
function and it no longer works with my change; ie. we're now using my
version.
2003-07-07 Miguel de Icaza <[email protected]>
* rootcontext.cs (NamespaceLookup): Accept a DeclSpace, so we can
call the CheckAccessLevel routine. Only use types that pass the
CheckAccessLevel
svn path=/trunk/mcs/; revision=16046
* BaseCompiler.cs: first look for cached items, then generate the tree.
This should speed things up.
* CachingCompiler.cs: when compiling web services, use the full path of
the .asmx file as key when caching.
* WebServiceCompiler.cs: first look for cached items, then generate
the source file.
svn path=/trunk/mcs/; revision=16045
function and it no longer works with my change; ie. we're now using my
version.
2003-07-07 Miguel de Icaza <[email protected]>
* decl.cs (DeclSpace.FindType): CheckAccessLevel on the type as
well. Sorry, this fixes the bug Gonzalo tried to fix.
svn path=/trunk/mcs/; revision=16044
* appdomain.c: modified comment.
* gc.c: finalizer_thread can call finalizers even when finished == TRUE.
That will be its last iteration when mono_gc_cleanup is called from
mono_runtime_cleanup and before the domain is unloaded.
Fixes bug #45962.
svn path=/trunk/mono/; revision=16039
* System.Web/HttpContext.cs: Session doesn't have a setter.
* System.Web/HttpResponse.cs: Request is private.
* System.Web.SessionState/SessionDictionary.cs: locking.
* System.Web.SessionState/SessionInProcHandler.cs: use the new method
instead of the setter.
svn path=/trunk/mcs/; revision=16029
2003-07-07 Miguel de Icaza <[email protected]>
* decl.cs (DeclSpace.FindType): CheckAccessLevel on the type as
well. Sorry, this fixes the bug Gonzalo tried to fix.
* rootcontext.cs (NamespaceLookup): Accept a DeclSpace, so we can
call the CheckAccessLevel routine. Only use types that pass the
CheckAccessLevel
svn path=/trunk/mcs/; revision=16027
Rewrote the handling of namespaces to fix a lot of the issues
wrt. `using' aliases etc.
* namespace.cs (Namespace): Splitted this class into a
per-assembly `Namespace' and a per-file `NamespaceEntry'.
* typemanager.cs (TypeManager.IsNamespace): Removed.
(TypeManager.ComputeNamespaces): Only compute namespaces from
loaded assemblies here, not the namespaces from the assembly we're
currently compiling.
svn path=/trunk/mcs/; revision=16025
* typemanager.cs: Reverted patch from Gonzalo, my previous patch
already fixed it.
I thought about the memory savings here, but LookupTypeReflection
is used under already very constrained scenarios. Compiling
corlib or mcs only exposes one hit, so it would not really reduce
any memory consumption.
svn path=/trunk/mcs/; revision=16022
* EventLog.cs: Removed unneccesary attribute according to corecompare
* EventLogEntry.cs: Removed unneccesary attribute according to corecompare
* Process.cs: Removed unneccesary attributes according to corecompare, added attribute
* ProcessModule.cs: Removed unneccesary attribute according to corecompare
* ProcessStartInfo.cs: Removed unneccesary attribute according to corecompare
* ProcessThread.cs: Removed unneccesary attribute according to corecompare, fixed signature
svn path=/trunk/mcs/; revision=16010
* CodeDomProvider.cs: Removed unneccesary attribute according to corecompare
* Executor.cs: Fixed signature with ref calls according to corecompare and made neccessary changes
svn path=/trunk/mcs/; revision=16008
* corlib_linux_test.args:
* corlib_test.args: added AppDomainSetupTest and fixed a couple of typos
to make this compile.
* System/AppDomainSetupTest.cs: new tests.
svn path=/trunk/mcs/; revision=16000
* VBCodeGenerator.cs: Added and nearly completely implemented
(it compiles, but the functionallity is completely untested)
(also without a working mbas the compilaton options will fail)
(once all command line arguments for mbas are final and the warning output is final
change the apropriate code to generate these options)
* VBCodeProvider.cs: Added and implemented
svn path=/trunk/mcs/; revision=15995
* CodeCompiler.cs: Nearly completely implemented
* CodeDomProvider.cs: Added missing Attribute, restyled according to style guidelines
* CodeGenerator.cs: Fixed visibilies, added missing members, implemented members, stubbed out missing member, restyled according to style guidelines
* CodeParser.cs: Added and implemented (ok no real implementation needed ;)
* CompilerErrorCollection.cs: Removed unneeded MonoTODOs, restyled according to style guidelines
* CompilerParameters.cs: Fixed wrong properties, Added Initializers, restyled according to style guidelines
* CompilerResults.cs: Added Evidence property, added initial values
* Executor.cs: Added and partially implemented (should probably be used by CodeCompiler)
* CompilerOptions.cs: Deleted this file (such a class does not exist)
svn path=/trunk/mcs/; revision=15992
* XmlDocument.cs : Load(string filename) should close its stream.
Small change for the latest DTDObjectModel change.
* XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
changed methods are only related to DTD stuff).
Now uses XmlSchemaDatatype for attribute type definition.
* XmlValidatingReader : initial (limited) support for DTD validation.
It can handle only XmlTextReader.
* DTDObjectModel.cs : changed radically for initial validation support.
* added DTDAutomata.cs and DTDValidatingReader.cs.
svn path=/trunk/mcs/; revision=15983
* XmlElement.cs : Removed extraneous xmlns output support (it should
be done by XmlTextWriter).
* XmlNode.cs : InsertBefore() now checks validity of the newChild (and
most of the changes are in fact indentation changes).
* XmlWriter.cs : WriteAttributes() now can write entity references.
WriteNode() now writes xmldecl attributes correctly.
Removed namespaceManager and xmlns check logic, since it should be
done by individual XmlTextWriter.
* XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
written multiple xmlns declarations.
Moved namespaceManager from abstract XmlWriter.
Write{Start|End}Attribute() and WriteString() now checks xmlns
attribute value. (MS.NET holds value only with this write method).
svn path=/trunk/mcs/; revision=15982
* DSACryptoServiceProviderTest.cs: Added news unit tests for Dispose/Clear
and better test coverage (based on Zoltan's logs).
* DSATest.cs: Converted to NUnit2 format. Added new tests for better unit
test coverage (import incomplete public keys).
* RSACryptoServiceProviderTest.cs: Added news unit tests for Dispose/Clear
and better test coverage (based on Zoltan's logs).
* RSATest.cs: Converted to NUnit2 format. Added new tests for better unit
test coverage (import incomplete public keys).
svn path=/trunk/mcs/; revision=15974
* AsymmetricAlgorithm.cs: Removed AsymmetricParameters (IReader) class.
Now uses the new Mono.Xml.SecurityParser (xml -> SecurityElement)
* CryptoConfig.cs: Removed CorlibHandler and CorlibReader classes. Now
uses the new Mono.Xml.SecurityParser (xml -> SecurityElement)
* DSA.cs: Removed DSAHandler (IHandler) class. Now uses the new
Mono.Xml.SecurityParser (xml -> SecurityElement)
* DSACryptoServiceProvider.cs: Added ObjectDisposedException support
and fixed bugs found in new unit tests.
* RSA.cs: Removed DSAHandler (IHandler) class. Now uses the new
Mono.Xml.SecurityParser (xml -> SecurityElement)
* RSACryptoServiceProvider.cs: Added ObjectDisposedException support
and fixed bugs found in new unit tests.
svn path=/trunk/mcs/; revision=15971
* DSAManaged.cs: Fixed bugs that appeared with the new unit tests.
* RSAManaged.cs: Fixed bugs that appeared with the new unit tests.
svn path=/trunk/mcs/; revision=15970
* pending.cs (PendingImplementation.ParentImplements): Don't
create the proxy if the parent is abstract.
* class.cs (TypeContainer.DefineIndexers): Process explicit
interface implementations first. Fixes#37714.
svn path=/trunk/mcs/; revision=15963
* XslTransform.cs : fixed WriteTree() and WriteCurrentNode() to follow
the recent changes of XPathNavigator implementations.
svn path=/trunk/mcs/; revision=15959
* expression.cs (MemberAccess.ResolveMemberAccess): Events are
defined recursively; but since we modify the input parameters
(left is set to `this' temporarily), we reset this value if the
left_is_explicit is false, which gives the original semantics to
the code.
svn path=/trunk/mcs/; revision=15953
* literal.cs (NullPointer): new class used to represent a null
literal in a pointer context.
* convert.cs (Convert.ImplicitReferenceConversion): Is the target
type is a pointer, use a NullPointer object instead of a
NullLiteral. Closes 43687
svn path=/trunk/mcs/; revision=15951
* convert.cs (ExplicitConversion): Convert pointer values using
the conv opcode to the proper type.
* ecore.cs (New): change ValueTypeVariable property into a method,
that returns whether the valuetype is suitable for being used.
* expression.cs (Binary.DoNumericPromotions): Only return if we
the int constant was a valid uint, and we can return both left and
right as uints. If not, we continue processing, to trigger the
type conversion. This fixes 39018.
svn path=/trunk/mcs/; revision=15950
* statement.cs (Block.EmitMeta): During constant resolution, set
the CurrentBlock property on the emitcontext, so that we resolve
constants propertly.
svn path=/trunk/mcs/; revision=15941
then the result object array only contain output parameters.
* Methods.cs: In class MethodStubInfo, added support from some server properties
taken from WebMethodAttribute. Now MethodStubInfo can be created without SoapDocument*
or SoapRpc* attributes, in which case takes default values from TypeStubInfo.
Added method for getting header info.
In class Fault: added constructor for creating a fault from a SoapException.
In class TypeStubInfo: new way to manage serializers for headers. Now it is possible to
get a header using a name and namespace (used when deserializing).
* SoapHttpClientProtocol.cs: moved WriteSoapEnvelope method to WebServiceHelper (so it can be shared).
Also moved other serialization stuff to WebServiceHelper.
* SoapMessage.cs: Added some convenient constructors and internal properties.
Implemented GetOutParameterValue and GetReturnValue.
* SoapServerMessage.cs: Implemented.
* WebServiceHandler.cs: Implemented method Invoke.
* WebServiceHandlerFactory.cs: Basic implementation.
* WebServiceHelper.cs: Added. Has some methods shared between client and server classes.
* HttpSoapWebServiceHandler.cs: Added. IHttpHandler implementation for HttpSoap requests.
svn path=/trunk/mcs/; revision=15909
* System.Web.Compilation/BaseCompiler.cs: made Compiler property
virtual.
* System.Web.Compilation/CachingCompiler.cs: added support for compiling
web services.
* System.Web.Compilation/WebServiceCompiler.cs: implemented.
* System.Web.UI/SimpleWebHandlerParser.cs: updated to new compilation
interface.
* System.Web.UI/TemplateParser.cs: use the new parameter when compiling.
svn path=/trunk/mcs/; revision=15892
* PKCS1.cs DSAManaged.cs: Changed strange characters in comments to
human-readable ones, since they break XML export in monocov.
svn path=/trunk/mcs/; revision=15888
* MailAddress.cs: return null instead of exception when the address is
empty.
* MailAddressCollection.cs: ignore null addresses.
* SmtpMail.cs: add the exception we get as inner exception so we know
where the error is.
Fixes bug #45746.
svn path=/trunk/mcs/; revision=15886
* codegen.cs (EmitContext.NeedExplicitReturn): New public variable.
(EmitContext.EmitTopBlock): Emit an explicit return if it's set.
* statement.cs (Try.Resolve): Set ec.NeedExplicitReturn rather
than emitting it here.
* statement.cs: Fixed some more flow analysis bugs.
svn path=/trunk/mcs/; revision=15877
* class.cs (MethodData.Define): When implementing interface
methods, set Final unless we're Virtual.
* decl.cs (MemberCore.CheckMethodAgainstBase): Make the CS0506
check work for interface methods.
svn path=/trunk/mcs/; revision=15876
* ecore.cs (EmitContext.This): Replaced this property with a
GetThis() method which takes a Location argument. This ensures
that we get the correct error location for a CS0188.
svn path=/trunk/mcs/; revision=15874
* timed-thread.c (_wapi_timed_thread_exit):
* threads.c: Let the timed thread code deal with deleting the
thread info struct. (Valgrind noticed that the join_mutex could
be locked when it was being deleted.)
svn path=/trunk/mono/; revision=15862
* XslTransform.cs (Transform): Call xsltSaveResultToFilename instead
of first reading the result into a string to conserve memory.
svn path=/trunk/mcs/; revision=15857
* object.h, reflection.h, verify.c: fixes for some 64bit issues,
mostly from a patch by Laramie Leavitt <[email protected]>.
svn path=/trunk/mono/; revision=15852
* ChangeLog: Sorry it seems that I couldn't find the right combinaison
just to commit the change to changelog (probably due to convertion to
windows).
* GenericPrincipal.cs: Fixed issues found during unit testing.
svn path=/trunk/mcs/; revision=15836
* threadpool.c (mono_async_invoke): Use mono_g_hash_table_remove when
using MonoGHashTables. Fixes threadpool bug posted to list.
svn path=/trunk/mono/; revision=15820
* ISessionHandler.cs:
* SessionInProcHandler.cs:
* SessionStateModule.cs: UpdateContext returns a bool indicating if we
started a new session. Only call session start event if that is true.
svn path=/trunk/mcs/; revision=15812
* HttpApplication.cs: prevent nullref if an error happens before context
is set.
* HttpException.cs: small fix in the stack trace sent.
* HttpUtility.cs: the lock is not needed.
svn path=/trunk/mcs/; revision=15811
* StackFrameTest.cs (TestGetMethod): Remove test for method name, since
it is not guaranteed to be 'InternalInvoke'.
svn path=/trunk/mcs/; revision=15807
* image.h, image.c: added support to load an assembly from a byte array.
* Makefile.am, assembly.c, make-bundle.pl, sample-bundle: added
assembly bundle support.
svn path=/trunk/mono/; revision=15804
* TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
can have other names.
* TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
* XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
Fix support for DataType in class members.
* XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
Added support for array of primitive types in attributes.
svn path=/trunk/mcs/; revision=15791
* class.cs (Constructor.Define): Turn off initlocals for unsafe
constructors.
(MethodData.Define): Turn off initlocals for unsafe methods.
svn path=/trunk/mcs/; revision=15784
* mini.c, mini-ops.h, inssel.brg, mini-x86.c: optimized access to fields.
Moved inlined mempcy code to its own function so that is can be
reused. Added an inline memset function as well (optimized initobj).
* cpu-pentium.md, inssel-x86.brg: add and use lea_membase.
svn path=/trunk/mono/; revision=15780
* XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
essentially changed most of the property handling (e.g. removed attribute
enumerator and it now became really cloneable).
* XmlNodeReader.cs : ReadInnerXml() changes its state as error
when the method is called at Initial state.
svn path=/trunk/mcs/; revision=15773
* XslTransform.cs (GetStringFromDocument): Read the result using
xsltSaveResultToString, since the XML document returned by
applyStylesheet is missing the output processing done due to the
usage of the xsl:output directive.
svn path=/trunk/mcs/; revision=15770
* SimpleWorkerRequest.cs:
-adds PATH_INFO support
- updates GetFilePathTranslated() to make use of Path.Combine()
- gets rid of the null check in GetPathInfo() (we're setting
_PathInfo to String.Empty now)
- fixed CreatePath() so that it doesn't return String.Empty if
the _AppVirtualPath is not "/" (to match MS runtime -- does
anyone know why it was returning String.Empty?)
svn path=/trunk/mcs/; revision=15758
* Console.cs: Turn off buffering for the streams returned by
OpenStandardOutput () and OpenStandardError () if the buffer size is 0.
svn path=/trunk/mcs/; revision=15744
* FileStream.cs (Dispose): Flush the buffer even if we don't own the
handle.
* FileStream.cs: Add a new constructor parameter to turn off buffering.
This is used by the Console.OpenStandard...() methods. Also fix
argument checking in InitBuffer(), so a zero buffer size is also
rejected.
svn path=/trunk/mcs/; revision=15743
* WebConnection.cs: fixed header writing the reusing a connection and
the server does not send 100-continue response.
svn path=/trunk/mcs/; revision=15726
* decl.cs (DeclSpace.CheckAccessLevel): Make this routine
complete; Fixes#37521.
* delegate.cs: Use Modifiers.TypeAttr to compute the
TypeAttributes, instead of rolling our own. This makes the flags
correct for the delegates.
svn path=/trunk/mcs/; revision=15722
* CodeAccessPermission.cs: Added missing methods. Removed old XML
documentation (present in monodoc). Added missing MonoTODO attrs.
* NamedPermissionSet.cs : Changed some code from result of unit
tests. Updated MonoTODO attributes.
* PermissionSet.cs: Added missing methods. Removed old XML
documentation (present in monodoc). Added missing MonoTODO attrs.
Added code to some methods.
* SecurityManager.cs: Added missing MonoTODO attributes.
svn path=/trunk/mcs/; revision=15710
called with maxvalue==0 or minvalue==maxvalue, MS.NET internally generates
a new random number (although it is not needed), while mono did not.
As a result, the sequence of random numbers could be different for the
same seed.
svn path=/trunk/mcs/; revision=15702
be overlodaded, so it is not good for this.
* XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
svn path=/trunk/mcs/; revision=15698
* ListControl.cs: save viewstate data when any of the 3 values is not
null. Fixed condition to save selection indices. Closes bug #45493.
svn path=/trunk/mcs/; revision=15661
a hashtable from which one element has been deleted. The Object instance
used as a removed marker is not detected as a such, since the
serializer creates a different instace.
svn path=/trunk/mcs/; revision=15641
* DateTime.cs: Fixed _DoParse() so it correctly applies the utc offset
to the resulting date. Also fixed _ToString so now correctly formates the
UTC offset.
svn path=/trunk/mcs/; revision=15640
* XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
as non-empty, and XmlElement's IsEmpty is designed as such.
Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
doctype node.
* XmlNode.cs : Fixed XPathNodeType. It should throw an exception
instead of returning undefined enum value.
Modified some code comments.
* XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
when XmlReader's node is not at empty element or at EndElement.
Fixed XmlDeclaration's standalone check.
svn path=/trunk/mcs/; revision=15632
* threadpool.c (mono_thread_pool_add): Don't set up a finaliser
for the async object, the WaitHandle object will close the handle.
Fixes bug 45321.
svn path=/trunk/mono/; revision=15630
* class.c: in mono_array_class_get (), lookup from the hash with the
same type we insert: this works around a bug in
mono_metadata_type_hash() with SZARRAY and fixes a leak reported by
lluis. The real fix will have to wait for after the release.
svn path=/trunk/mono/; revision=15629
* mini.c, mini.h, mini.x86.c, mini-ppc.c: added facility so that
arch code can setup the cpu for CLR execution, if needed.
We use it on x86 to set the precision of FP operations.
svn path=/trunk/mono/; revision=15622
* cs-parser.jay: Applied patch from Jackson that adds support for
extern and unsafe modifiers to destructor declarations.
svn path=/trunk/mcs/; revision=15616
before asyncWrite.SetCompleted, to make sure that the waiting thread
does not start to send more information before SendRequestHeaders has
finished.
svn path=/trunk/mcs/; revision=15612
* XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
array if the namespace is not specified in XmlArrayItemAttribute.
svn path=/trunk/mcs/; revision=15611
* class.cs (TypeContainer.Emit): Only call EmitFieldInitializers
if we do not have a ": this ()" constructor initializer. Fixes 45149
svn path=/trunk/mcs/; revision=15599
* class.c: handle field offset correctly when class size
is set (bug# 45182, partially from a patch by [email protected] (Jerome Laban)).
svn path=/trunk/mono/; revision=15570
* namespace.cs: Add some information to reduce FAQs.
2003-06-13 Miguel de Icaza <[email protected]>
* cfold.cs (BinaryFold): BitwiseAnd, BitwiseOr: handle other
underlying enumeration types. Fixes#43915.
* expression.cs: Treat ushort/short as legal values to be used in
bitwise operations.
svn path=/trunk/mcs/; revision=15569
* System.ComponentModel/IExtenderProvider.cs: mono-stylized.
* System.ComponentModel/IComNativeDescriptorHandler.cs:
* System.ComponentModel/SyntaxCheck.cs: new files from Andreas Nahr.
svn path=/trunk/mcs/; revision=15567
* ResourceReaderTest.cs: Put it back the way it was, doesn't work on
.NET, and it works fine on both if you cd to the proper dir before
running these tests.
svn path=/trunk/mcs/; revision=15564
* DecimalTest.cs: Make pass on .NET 1.1
* MarshalByRefObjectTest.cs: Avoid port conflict with other tests.
* SingleFormatterTest.cs: Ignore user overridden settings.
svn path=/trunk/mcs/; revision=15563
* DateTimeTest.cs (TestOA): Compare DateTime values instead of strings
to avoid "culture shock". Made a new AssertEquals() that is more
DateTime-friedly.
svn path=/trunk/mcs/; revision=15561
* NameTable.cs: Now uses a custom hashtable to implement. As a
result, when Get (char[], int, int) is called, a string is only
allocated if it is actually a new entry.
(StrEqArray) Compares a string and a char[]
(AddEntry) Adds a new entry to the hashtable
(Entry) Represents a hashtable entry.
svn path=/trunk/mcs/; revision=15551
* HttpWebClientProtocol.cs: handle cookies if the request is a
HttpWebRequest. It gets the cookies set in the response and sends them
on subsequent requests.
* SoapHttpClientProtocol.cs:
(GetWebRequest): just calls the base method.
(SendRequest): set the method here.
(Invoke): call GetWebResponse instead of request.GetResponse.
* WebClientProtocol.cs:
(GetWebRequest): set some properties of the request.
(GetWebResponse): if we get a WebException containing a response, return
that as the response and ignore the exception.
(GetWebResponse (req, async)): only call EndGetResponse.
svn path=/trunk/mcs/; revision=15536
* ThreadPool.cs: correctly create a TimeSpan with provided the number of
milliseconds.
* WaitHandle.cs: fixes for WaitAny/All and TimeSpan.
svn path=/trunk/mcs/; revision=15535
HttpServerChannel.cs, HttpThread.cs: added new implementation of the HttpChannel
by Ahmad Tantawy, Ahmad Kadry and Hussein Mehanna.
svn path=/trunk/mcs/; revision=15533
* XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
svn path=/trunk/mcs/; revision=15530
* mono-debug.h (MONO_DEBUG_VAR_ADDRESS_MODE_STACK): Removed. We
just distinguish between variables in registers and variables at
an offset relative to a register.
svn path=/trunk/mono/; revision=15509
* RemotingServicesTest.cs: Lazy fix/workaround for "can't reuse
channel" errors. Tests now pass.
* RemotingConfigurationTest.cs: Don't rely on test order, and wrap some
.NET 1.1 stuff.
svn path=/trunk/mcs/; revision=15490
* FileSystemInfoTest.cs: Works on .NET 1.1 now. If these values are
different on 1.0 then we need to wrap with a #if NET_1_1.
svn path=/trunk/mcs/; revision=15469
* XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
is not specified in the xsi attribute.
* XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
* XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
svn path=/trunk/mcs/; revision=15459
* io.c (SetFileAttributes): Implement the ReadOnly attribute, and
ignore the unsupported ones ("fixes" bug 44977).
2003-06-17 Dick Porter <[email protected]>
* file-io.h:
* file-io.c: File attributes need to be tweaked slightly when
passed from the managed to the w32 world.
svn path=/trunk/mono/; revision=15458
* profiler.h profiler-private.h profiler.c: Added infrastructure for
instruction level coverage data collection.
* profiler.h profiler.c (: Added new callback function which can be
used by the profiler to limit which functions should have coverage
instrumentation.
* profiler.c (mono_profiler_load): Call g_module_build_path to
generate the file name of the profiler library.
svn path=/trunk/mono/; revision=15448
* OptionDetails.cs :
- Now handles correctly options specifiying maxOccurs != 1 (that was preventing mbas from being useable)
- Now indicates if option parsing consumed a parameter or not (also checks if it is available first)
- Now multivalued options can either be given as many pairs option/parameter and also as a pair option/comma-separated-list, and both
Example: -r System.Data -r System.Xml or /r System.Data,System.Xml
- Now it is more lax in the form matching: -r /r -reference --reference /reference are valid for a ('r',"reference") option
* Options.cs : new BreakSingleDashManyLettersIntoManyOptions field to make more GNUish parsing of single letter options.
Makes -zxf become -z -x -f if set to true
svn path=/trunk/mcs/; revision=15443
* XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
this method set current node null.
* XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
String.Empty instead of null (expected value).
* XmlTextReader.cs,
XmlUrlResolver.cs,
XmlInputStream.cs : fixed BaseURI problem (bug #44231).
svn path=/trunk/mcs/; revision=15440
* driver.c, mini-ppc.c, mini-x86.c, mini.c, mini.h: the coverage stuff
is now implemented in the profiling API. Get rid of a couple of
unnecessary global variables.
svn path=/trunk/mono/; revision=15438
* System.Data.Common/DbDataAdapter.cs:
Add the DataTable to the result set even if it contains
no rows. Based on report by Krieg Andreas.
svn path=/trunk/mcs/; revision=15436
* RSAManaged.cs: Now includes CRT (Chinese Remainder Theorem)
optimization when using the private key (DecryptValue). This
cut more than 5 seconds of nunit on my system (out of 14 sec
for complete asymmetric tests). Thanks to Ben Maurer for help!
svn path=/trunk/mcs/; revision=15431
* added XmlCharTests.cs(separated XmlChar tests from XmlTextReaderTests)
* XmlTextReaderTests.cs : added ExternalDocument() which will result
in BaseURI test and DTD parameter entity test.
svn path=/trunk/mcs/; revision=15427
* XmlNodeReader.cs : this [name] and this [name, ns] (and
GetAttribute() methods in turn) returns null instead of String.Empty.
* XmlTextWriter.cs : WriteStartAttribute() should try to use specified
prefix before auto-generating prefixes.
Implemented WriteBase64().
svn path=/trunk/mcs/; revision=15412
* .cvsignore: Ignore generated files (remove with make clean).
* CertificateFormatter.cs: Commented 2 lines as it didn't compile
with MCS (but did compile with CSC).
* gcertview.cs: Change app.ico (non-existing) to mono.bmp (16x16).
* gcertview.exe.config: New. Configuration file for gcertview (same
as certview.exe.config except it reference gcertview.exe instead of
certview.exe).
* makefile: Updated for linux by Ben Maurer.
svn path=/trunk/mcs/; revision=15410
in TypeStubInfo so serializers for headers they can be shared by several methods.
* SoapClientMessage.cs: Headers added in the constructor.
* SoapMessage.cs: Added header list initialization.
* SoapHttpClientProtocol.cs: Added support soap headers.
svn path=/trunk/mcs/; revision=15382
* threads.c (start_wrapper): Remove the reference to the thread
object in the TLS data, so the thread object can be finalized.
This won't be reached if the thread threw an uncaught exception,
so those thread handles will stay referenced :-( (This is due to
missing support for scanning thread-specific data in the Boehm GC
- the io-layer keeps a GC-visible hash of pointers to TLS data.)
svn path=/trunk/mono/; revision=15381
* HttpWebRequest.cs: if CookieContainer has not been set, make HttpWebResponse ignore
Set-Cookie* headers.
* HttpWebResponse.cs: Set-Cookie and Set-Cookie headers removed if CookieContainer have
been provided to the request.
svn path=/trunk/mcs/; revision=15379
* reflection.c: ensure streams and tables are first allocated with
ALLOC_ATOMIC (GC_realloc uses plain GC_malloc otherwise).
svn path=/trunk/mono/; revision=15378
2003-06-13 Herve Poussineau <[email protected]>
* SortedList.cs: Can enumerate on DictionaryEntries, not only on
keys on values. Enumerate by default on DictionaryEntries.
2003-06-14 Duncan Mak <[email protected]>
* SortedListTest.cs
(TestIndexer):
(TestEnumerator): Incorporated these two tests from Philippe
Lavoie <[email protected]>.
svn path=/trunk/mcs/; revision=15376
* reflection.c (mono_reflection_create_runtime_class): Add support for
properties to dynamically created classes.
* reflection.c: Fix a few places where non-MonoObjects were inserted
into the tokens hashtable.
svn path=/trunk/mono/; revision=15371
* XmlNodeReader.cs : LookupNamespace () has refered invalid current
node for attributes. Modified to use private "document" property.
svn path=/trunk/mcs/; revision=15370
* System.Net/AuthenticationManager.cs: get the list of authentication
modules from the configuration files. Added Clear and fixed Unregister.
* System.Net/BasicClient.cs: fully implemented.
* System.Net/HttpWebRequest.cs: added support for Basic authentication
when credentials are set.
* System.Net/NetworkCredential.cs: fixed GetCredential.
* System.Net.Configuration/NetAuthenticationModuleHandler.cs: register
the modules using AuthenticationManager.
svn path=/trunk/mcs/; revision=15367
* HttpWebRequest.cs: *really* take care of requestSent to prevent
sending the same request twice.
* WebAsyncResult.cs: don't close the handle. Just Reset.
* WebConnectionStream.cs: removed unneeded line.
svn path=/trunk/mcs/; revision=15354
* HttpWebRequest.cs: use InternalClose when we are not going to send the
rest of the request stream because of an error after sending the
headers.
* WebConnection.cs: check for completion after setting the response.
Enable reading in NextRead.
* WebConnectionStream.cs: re-fixed the count for partially buffered
reads. If the network stream returns 0 bytes, we're done.
svn path=/trunk/mcs/; revision=15351
* object.h, object.c: more portability stuff from Bernie Solomon.
Unexport mono_object_allocate(). Added mono_object_unbox ().
Set exitcode when an unhandled exception is thrown.
svn path=/trunk/mono/; revision=15338
* FileStream.cs: Fix errors in previous checkins:
(Write): Only take the shortcut route if the data is longer than the
buffer length.
(Write): Flush the buffer before writing out the new data
(Write): Flush the buffer after writing out a segment since otherwise
we will go into an infinite loop.
(FlushBuffer): Remove my last change since it was clearly wrong.
(Seek): Run FlushBuffer () after the in-buffer seek optimization.
(Seek): Only use the in-buffer optimization if the buffer is not
empty.
(Length): Call FlushBuffer () since buffer data might change the size
of the stream.
svn path=/trunk/mcs/; revision=15336
* CommandTests.cs: Changed code to use parameter names starting with ':'. Added test for empty query.
* DataReaderTests.cs: Added test for parameter names overlap. Added test for nonexistent parameter name.
svn path=/trunk/mcs/; revision=15333
* NpgsqlCommand.cs: Fixed parameter replace bug when parameter names overlap. Thanks Ishpal Singh. Cleaned up the code.
* NpgsqlDataReader.cs: Fixed NPE bug when handling queries which doesn't return anything.
* NpgsqlParameter.cs: Added code to format parameter names to start with ':'.
* NpgsqlParameterCollection.cs: Added code to format parameter names to start with ':'.
svn path=/trunk/mcs/; revision=15332
* DSACryptoServiceProvider.cs: Refactored from orginal by splitting
much core functionalities into DSAManaged.
* RSACryptoServiceProvider.cs: Refactored from orginal by splitting
much core functionalities into RSAManaged.
* RSAPKCS1SignatureDeformatter.cs: Updated to use the new PKCS#1 API.
Now works with any hash algorithm (which OID is defined in machine.config)
* RSAPKCS1SignatureFormatter.cs: Updated to use the new PKCS#1 API.
Now works with any hash algorithm (which OID is defined in machine.config)
svn path=/trunk/mcs/; revision=15330
* DSAManaged.cs: Refactored from DSACryptoServiceProvider.cs. Cannot
be reused outside [ms]corlib because DSA constructor is internal :-(
* PKCS1.cs: Now support any hash algorithm when encoding PKCS 1.5
(i.e. not limited to pre-calculated values for known hashes). Some
other API changes to ease the use of other hash algorithms.
* RSAManaged.cs: Refactored from RSACryptoServiceProvider.cs. This
class is required for custom PKCS#1 padding in SSL (which is not
possible using RSACryptoServiceProvider).
svn path=/trunk/mcs/; revision=15328
* BigInteger.cs: Added Clear to zeroize big integers and code to allow
compares with null (because operators == and != are re-defined). Note:
The class may still leak some private info in temp arrays (thanks Ben).
svn path=/trunk/mcs/; revision=15327
Added support for DefaultValueAttribute.
* XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
the value of an enum.
* XmlTypeMapMember.cs: Added DefaultValue attribute.
* XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
integer values.
svn path=/trunk/mcs/; revision=15326
* SybaseConnection.cs:
Make connection parameter parsing "more correct"
and throw appropriate exceptions, similar to MS SqlClient
* SybaseBinary.cs:
* SybaseBoolean.cs:
* SybaseByte.cs:
* SybaseDateTime.cs:
* SybaseDecimal.cs:
* SybaseDouble.cs:
* SybaseMoney.cs:
* SybaseString.cs:
Mass import of code from SqlClient to make this behave
better.
svn path=/trunk/mcs/; revision=15324
* MonoType.cs: don't throw nullref when the return type for a property
is specified and the property doesn't have a get accessor.
svn path=/trunk/mcs/; revision=15293
* XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
* XmlCustomFormatter.cs: small fixes.
* XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
* XmlSerializationWriter.cs: Implemented TopLevelElement().
WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
* XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
root elements.
svn path=/trunk/mcs/; revision=15288
generated, and a namespace declaration must be added.
* XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
svn path=/trunk/mcs/; revision=15287
* acconfig.h:
* configure.in: Check for struct ip_mreq if struct ip_mreqn isn't
available.
2003-06-10 Dick Porter <[email protected]>
* socket-io.c: Don't assume that one of struct ip_mreqn or struct
ip_mreq is available
2003-06-10 Dick Porter <[email protected]>
* atomic.c: Delete the useless compile warning
svn path=/trunk/mono/; revision=15284
* Added Paolo's comments about CVS commits and changing code.
Also reorganized it a bit. Hopefully this is a more logical ordering.
svn path=/trunk/mono/; revision=15283
* configure.in: Make the libgc stuff actually work; we now create
a shared libmonogc.so when using the included libgc.
svn path=/trunk/mono/; revision=15264
* XmlDocumentNavigator.cs (GetNode): Make it implement
IHasXmlNode.
Hopefully I fixed the space/tab thing. Let's just all use
spaces, it's just easier....
svn path=/trunk/mcs/; revision=15262
* WebConnectionStream.cs: when the read is partially filled from the
initial buffer, add those bytes too. Thanks to Lluis for debugging this.
svn path=/trunk/mcs/; revision=15256
* CryptoConfig.cs: Now support OID in machine.config.
* DSACryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
* KeySizes.cs: Changed USE_VERSION_1_0 for NET_1_0.
* MD5CryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
* RNGCryptoServiceProvider.cs: Changed USE_VERSION_
svn path=/trunk/mcs/; revision=15255
* HttpWebRequest.cs: added ExpectContinue property.
* WebConnection.cs: allow 100 Continue to be delayed after waiting for
it.
svn path=/trunk/mcs/; revision=15252
* class.c: ensure instance size always includes the parent's size
even whem class size is set explicitly (fixes bug#44294).
svn path=/trunk/mono/; revision=15248
* Makefile.am, mini-x86.c: rename cpu description array to
pentium_desc, since some compilers define the 'pentium' preprocessor
symbol.
svn path=/trunk/mono/; revision=15247
* daemon.c: Lookup env as a string array. Fixes bug 44289. Also
make setting the process handle value in the environment actually
work.
* processes.c: Pretty up the process name, if it happens to be
"mono" such as when another mono process forks "mono foo.exe"
svn path=/trunk/mono/; revision=15246
* Array.cs: Revert the last revert. I fixed it.
Here's a lesson: only commit the patches that you're absolutely
sure about. See, I committed 3 changes below, the Sort change
being the last one, and I was the least confident with it. But I
committed them all anyway. Big mistake.
So here we go again:
(Sort): Put a try-catch block around qsort, and wrap whatever
Exception we get into a InvalidOperationException.
svn path=/trunk/mcs/; revision=15228
* Array.cs: Throw more exceptions. This fixes the errors we see
from the Rotor testsuite.
(CreateInstance): Throw ArgumentNullException when the input are
null. Throw ArgumentOutOfRangeException when bounds + length is
greater than Int32.MaxValue.
(LastIndexOf): Throw ArgumentOutOfRangeException if index is outside
the valid range of indices of array.
(Sort): Throw InvalidOperationException when comparer is null and
none of the elements in keys implements IComparable.
svn path=/trunk/mcs/; revision=15209
* StringCollection.cs: Rewrote. Now uses ArrayList. Fixes up quite
a few Rotor bugs.
* ArrayList.cs, Hashtable.cs, SortedList.cs: Enumerator fixes, error
checking
We are now passing 37% of the System.Collections.* tests that were failing!
svn path=/trunk/mcs/; revision=15207
* FeatureAttr.cs: New file - Attributes for features (events and
properties)
* MethodRef.cs: Only resolve methods once.
* TypeDef.cs: Allow Events to be added to types. Also add
functionality to add generic type parameters to types. The
actually emission of these type parameters is commented out untill
I commit my patches to PEAPI and work out the syntax of constraints.
svn path=/trunk/mcs/; revision=15202
* libgc/: Integrate the libgc module here.
[Note: A simple `cvs update' won't work this time; you either need
to re-checkout the `mono' module or manually move the `libgc'
module here.]
* configure.in (--with-gc): Added `included' option to use the
included libgc. This is now also the default.
(LIBGC_CFLAGS, LIBGC_LIBS): Put the libgc stuff here and AC_SUBST it.
(INCLUDED_LIBGC): New automake conditional.
(USE_INCLUDED_LIBGC): #define this if appropriate.
* autogen.sh: Run libgc/autogen.sh.
* Makefile.am (SUBDIRS): Added libgc.
svn path=/trunk/mono/; revision=15185
Length of the input array 'lengths' is greater than 255 so that we
won't see the g_assert that is in mono_array_class_get in class.c.
svn path=/trunk/mcs/; revision=15183
* HttpWebRequest.cs: don't send "Expect: 100-continue" is the server
is known not to respond to that.
* ServicePoint.cs: added SendContinue property.
* WebConnection.cs: only wait 2 seconds for a continue reply. If it
timeouts, set SendContinue to false and proceeed sending data.
* WebConnectionStream.cs: if 100-continue is not received and instead we
get a 417 or anything else, don't send the data.
* WebClient.cs: implemented all missing properties and methods except
UploadFile.
svn path=/trunk/mcs/; revision=15180
* Stack.cs: Contains (null) works correctly. We never have the
array sized less than 16, so that the doubling logic works no
matter what. The enumerator is IClonable, like in ms. The
Enumerator correctly throws an exception if Current is called
before the enumerator is started. We now pass all the Rotor tests
for this file!
svn path=/trunk/mcs/; revision=15179
- Throw was added
- Multi-line statements partly implemented (still choking on some constructs)
- Fixed line continuation character ('_')
- Fixed Mod operator
- New runtime conversion (String -> CharArray) supported
- Array declaration code was completely rewritten to allow for expressions
to be used in a declaration
- Many sparse grammar fixes
- Started work to make the resolver case-insensitive (partially working)
svn path=/trunk/mcs/; revision=15176
* list.unix: added files.
* System.Net/FileWebRequestCreator.cs: splitted from WebRequest.
* System.Net/HttpRequestCreator.cs: splitted fromWebRequest.
* System.Net/WebRequest.cs: added methods that are used by the new
configuration handler to set prefix/type name requests creators.
* System.Net.Configuration/WebRequestModuleHandler.cs: handles
system.net/webRequestModules configuration section.
svn path=/trunk/mcs/; revision=15160
* mini.c (mini_select_instructions): add explicit branch if the
following block is not the false target of a conditional branch -
we need this with any optimization that reorder or remove bblocks
* mini.c (optimize_branches): bug fixes
svn path=/trunk/mono/; revision=15159
* driver.c: Set the glib log levels to not abort if g_message
recurses.
g_set_prgname() has to happen before mini_init() so that the
process handle gets the info.
svn path=/trunk/mono/; revision=15139
* processes.c (process_set_current): Don't do an expensive handle
search at application startup, check the environment to see if the
process handle has already been created.
* io.c: Don't do an expensive handle search when creating stdin,
stdout and stderr handles, just create them all the first time one
is requested.
* wapi-private.h:
* shared.c:
* shared.h:
* handles.c:
* handles-private.h:
* daemon-messages.h:
* daemon-private.h:
* daemon.c: Support for "unlimited" number of handles and scratch
data.
Speed up application startup by passing process handle in the
environment, rather than let the app scan all handles (which gets
really slow when there are more than a few thousand to check.)
Initialise some structs passed to syscalls, noticed by valgrind.
svn path=/trunk/mono/; revision=15137
* TypeTranslator.cs: added IsPrimitive() method
* TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
used by that one. Also added Format property, that can be literal or encoded.
* XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
* XmlReflectionMember.cs: added constructor that accepts SoapAttributes
* XmlSerializationReader.cs: implemented many methods needed to support encoded format.
* XmlSerializationReaderInterpreter.cs: added support for encoded format.
* XmlSerializationWriter.cs: added support for encoded format.
* XmlSerializationWriterInterpreter.cs: added support for encoded format.
* XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
* XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
and a map is needed for them).
* XmlTypeMapMemberElement.cs: small fixes.
* XmlTypeMapping.cs: added some properties and methods needed to support encoded format
* ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
svn path=/trunk/mcs/; revision=15130
* profiler.h, profiler.c: made the simple profiler thread-safe,
get more accurate timing info. Allow the loading of an
externally-developed profiler module.
svn path=/trunk/mono/; revision=15128
* delegate.cs: transfer custom attributes for paramenters from
the delegate declaration to Invoke and BeginInvoke.
svn path=/trunk/mcs/; revision=15099
* ArrayList.cs: nullify the array in Clear ().
* Queue.cs: nullify the array in Dequeue ().
* Stack.cs: nullify the array in Pop ().
svn path=/trunk/mcs/; revision=15094
* RandomTest.cs: Added a test to compare Mono's random streams with
MS implementation (framework and Rotor). Converted to NUnit2 format.
svn path=/trunk/mcs/; revision=15078
* KeyInfoRetrievalMethodTest.cs: Changed RetrievalElement to
RetrievalMethod to match W3C specification and framework 1.1.
svn path=/trunk/mcs/; revision=15075
* Queue.cs: Added argument checking in constructors according to
specs. Also changed default size to 32 as required by the specs.
svn path=/trunk/mcs/; revision=15074
* mini.c (mono_find_block_region): bug fix in region code
(mini_method_compile): enable removing unreachable code again, but
only in methods without exception clauses.
svn path=/trunk/mono/; revision=15068
* DoubleFormatterTest.cs: added the last changes from the author of
this test (Patrick Kalkman <[email protected]>).
* SingleFormatterTest.cs: added the first release of this test from
the same author: Patrick Kalkman <[email protected]>.
svn path=/trunk/mcs/; revision=15063
form [assembly]name first check if the assembly is this
assembly. Implement scope_blocks, and implement scope block form
exception handling.
svn path=/trunk/mcs/; revision=15045
* HandlerBlock.cs: Make label fields public so they can be
accessed in a TryBlocks constructor.
* MethodDef.cs: Allow random labels to be inserted at the current
position. These are use for scope blocks.
* TryBlock.cs: New constructor takes from and to labels as a HandlerBlock
svn path=/trunk/mcs/; revision=15044
but my response serializer still can not cope with the <return> feature of the RPC
model.
2003-06-01 Miguel de Icaza <[email protected]>
* Methods.cs (MethodStubInfo): If creating an RPC call, pass an
optional XmlElementAttribute with the namespace set to null; Use
this on each element of the request and response serializers.
(MakeRequestSerializer, MakeResponseSerializer): Use the empty
element for the return values.
* SoapRpcMethodAttribute.cs: Drop the default name on the
SoapRpcMethodAttribute, it was incorrectly given a default name.
svn path=/trunk/mcs/; revision=15043
* BitArray.cs: Rewrote, as it was failing most of the Rotor
tests. It now passes them 100%. Also fixes bug #43667.
svn path=/trunk/mcs/; revision=15036
is actually a primitive object type (System.String,
System.Object). Add custom attributes to types. Handle the il
keyword the exact same way as cil. Add ellipsises to param and sig
lists. Add an optional name to typelists, this is just parsed it
is not implemented properly. Add custom attributes to
methods. Implement custom types (just methodrefs to ctors).
svn path=/trunk/mcs/; revision=15027
* InstrTable.cs: Add stelem.r4 and stelem.r8 instructions. Add
. tail to unaligned modifier.
* LdtokenInstr.cs: Add type tokens.
* MethodDef.cs: Fix IsVararg, add method to add custom attributes,
emitting custom attributes when writing code, allow for Ellipsises
in param lists, add coma between args in signatures.
* ParamDef.cs: Add the Ellipsis pseudo param
* PrimitiveTypeRef.cs: System.String and System.Object can be
referenced without an [mscorlib] assembly prefix.
* TypeDef.cs: Add Custom attributes.
svn path=/trunk/mcs/; revision=15025
attributes. Attributes can now be added to ClassDefs and
MethodDefs. Still need to implement for other metadata elements.
Added the stele.r4 and stelem.r8 instructions, this should also
shift the stelem.ref instruction to the proper value (0xA2)
svn path=/trunk/mcs/; revision=15020
* RegisteredWaitHandle.cs: check that the callback is not null before
invoking.
* ThreadPool.cs: fixed timeout -> TimeSpan conversions (closes bug
#43963). Queue the item before setting the handle. If there's a timeout,
avoid trying to Dequeue, getting the exception et al, just continue the
loop.
svn path=/trunk/mcs/; revision=15016
not the parameters. So still confused. Only needed for Google
2003-05-30 Miguel de Icaza <[email protected]>
* Methods.cs (MethodStubInfo): Start support for RPC style as well
as Literal style. Take an object instead of a
SoapDocumentMethodAttribute, and allow the value to be also a
SoapRpcMethodAttribute. Pull data from both.
Kill SoapBindingUse, we only use this during validation.
Turn out Google uses RPC/Literal, and its a good demo.
svn path=/trunk/mcs/; revision=15014
* Methods.cs (MakeResponseSerializer): OneWay is not the only
condition to catch; Also void return types are not required to
have a response.
(MakeRequestSerializer): InParameters *might* be ref parameters,
deal with that here too.
Add some debugging code for tracking down missing implementation
details in serialization creation.
svn path=/trunk/mcs/; revision=15013
* Methods.cs (MakeResponseSerializer): DUH. Use the
ResponseName/ResponseNamespace for the member import, not the
RequestName and RequestNamespace. The bugs of cut-and-paste.
svn path=/trunk/mcs/; revision=15011
* mini.c, mini-ops.h, cpu-pentium.md, inssel.brg, mini-x86.c, mini.h:
Implemented arglist opcode and handling of TypedReference type.
Fixed x86 call convention when a structure is returned.
Minimal support for calling static vararg methods.
svn path=/trunk/mono/; revision=15009
* class.c, domain.c, icall.c, metadata.h, object.h: support for
handling TypedReference and ArgIterator.
* loader.c, loader.h: added function to get signature at call site.
svn path=/trunk/mono/; revision=15005
* mini.c (mini_method_compile): always remove unreachable code,
because the code in them may be inconsistent (access to dead
variables for example).
svn path=/trunk/mono/; revision=15004
a Soap invocation.
The result is still not handled though.
2003-05-29 Miguel de Icaza <[email protected]>
* SoapHttpClientProtocol.cs (CreateMessage): Kill. Move
functionality to Invoke.
(Invoke): Use new TypeStubInfo/MethodStubInfo instead.
* SoapClientMessage.cs: Drop old mechanism, use MethodStubInfo instead.
* Methods.cs: New file. Contains the managed for TypeStubs and
MethodInfoStubs.
A MethodInfoStub contains the serializers we use for the SOAP
request.
* SoapClientMessage.cs: Drop parameters from the clientmessage, it
does not belong here. Drop oneway, we canextract that from the
SoapDocumentMethodAttribute class that we pass.
svn path=/trunk/mcs/; revision=15003
* HttpWebRequest.cs (Close): Move the code that accumulates the
output to Close from Flush. Flush could have been called in the
middle of the processing, and would have generated invalid results
(which it did).
svn path=/trunk/mcs/; revision=15000
* PKCS1MaskGenerationMethodTest.cs: Added [Ignore] to vector test
(as it's result isn't valid on both framework 1.0 and 1.1).
* RSAPKCS1SignatureDeformatter.cs: Splitting the test for NUnit2
cloned the previous error into many more tests. Hopefully fixed.
svn path=/trunk/mcs/; revision=14999
* XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
* XmlMapping.cs: Added internal property.
* XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
* XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
* XmlReflectionMember.cs: XmlAttributes are now created by default
* XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
* XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
Implemented support for XmlMembersMapping.
* XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
svn path=/trunk/mcs/; revision=14997
* metadata.c, metadata.h, private.h, tokentype.h, loader.c: make more
data readonly. Buglets and warning fixes. Some MethodSpec support.
svn path=/trunk/mono/; revision=14987
* Array.cs: Added better argument checking to Array.Sort () (approved by Gonzalo)
* DBNull.cs: Made the conversions throw like they do in MS.
svn path=/trunk/mcs/; revision=14983
* RSAPKCS1SignatureDeformatter.cs: Fixed (well I hope so) a test
which doesn't throw the same exception under 1.1. Also converted
the tests to NUnit2 format.
svn path=/trunk/mcs/; revision=14982
from xml type to clr type.
* XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
* XmlReflectionMember.cs: Added default constructor.
* XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
* XmlSerializationWriter.cs: Several fixes.
* XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
Added support for enums. Added support for XmlElement and XmlNode.
Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
svn path=/trunk/mcs/; revision=14977
position, since MoveToNextAttribute may be called after it.
SetProperties(): attributes do not "inherit" the namespace.
* XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
svn path=/trunk/mcs/; revision=14975
* XslTransform.cs: fixed NullReferenceExceptions after the last
change (which, btw, should have included a ChangeLog entry).
svn path=/trunk/mcs/; revision=14970
* XslTransform.cs: Initial support for extension objects.
Known issues:
Extension method signatures must match exactly to the
types of parameters that the method is called with from the stylesheet.
Node set parameters are converted to an ArrayList of strings.
* makefule.gnu: Added -unsafe flag, required by the above stuff.
* System.XML.build: Added /unsafe flag. Hope this is the right place.
svn path=/trunk/mcs/; revision=14951
* expression.cs (ArrayAccess.GetStoreOpCode): For System.IntPtr,
we use the stobj opcode.
(ArrayCreation.EmitDynamicInitializers): Revert Miguel's patch
since it wasn't the correct fix.
It still is puzzling that we are required to use stobj for IntPtr
which seems to be a ValueType.
svn path=/trunk/mcs/; revision=14944
* test-45.cs : Enable code which tests IntPtr array
initialization. This automatically serves as a test case for bug
#36030.
Improve test.
svn path=/trunk/mcs/; revision=14943
* mini.c: thread-static fields are registered in mono_class_vtable(),
so ensure the function is called before checking for them.
svn path=/trunk/mono/; revision=14937
* NativeWindow.cs : don't use CS_VREDRAW and CS_HREDRAW flags
* ImageList.cs
* ImageListStreamer.cs : small fixes
* TabControl.cs
* TabPage.cs : image list support was added
svn path=/trunk/mcs/; revision=14931
* ecore.cs (SimpleName.SimpleNameResolve): Consider using aliases
during regtular simple name resolution. Now, the trick is that
instead of returning for processing the simplename, we do a
TypeManager.LookupType (ie, a rooted lookup as opposed to a
contextual lookup type). If a match is found, return that, if
not, return for further composition.
This fixes long-standing 30485.
svn path=/trunk/mcs/; revision=14916
* X509CertificateTest.cs: Commented some tests in Certificate13 (the
DSA certificate without any key parameters) because MS implementation
cannot use the X509Certificate(X509Certificate) to instance it.
svn path=/trunk/mcs/; revision=14914
2003-05-26 Miguel de Icaza <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): For now, do not
free the string, until we get a chance to fix Gtk#
svn path=/trunk/mono/; revision=14909
* basic-long.cs: add regression test for (long)int * (long)int
* cpu-pentium.md: add op_bigmul specification
* inssel-long32.brg: add OP_BIGMUL rule
* mini-ops.h: add OP_BIGMUL
* mini-x86.c: register allocator: handle case where src1 needs to be
in EAX.
* mini.c: substitute special BIGMUL opcode in the tree for
(long)int * (long)int
svn path=/trunk/mono/; revision=14907
* DataViewTest.cs: Added new test from
Patrick Kalkman
* data_linux_test.args: Updated for new test in System.Data
svn path=/trunk/mcs/; revision=14902
* expression.cs (IndexerAccess.Emit, IndexerAccess.EmitAssign):
Pass `is_base_indexer' to Invocation.EmitCall instead of false.
Because if we are a BaseIndexerAccess that value will be true.
Fixes 43643.
svn path=/trunk/mcs/; revision=14897
* expression.cs (PointerArithmetic.Emit): If our operand is a
long, convert our constants to match the operand before
multiplying. Convert to I type before adding. Fixes 43670.
svn path=/trunk/mcs/; revision=14895
* NameTable.cs : Add() sets the given name string interned.
* XmlParserContext.cs : added internal PushScope() and PopScope() to
hold stacks of xml:base, xml:lang and xml:space.
* XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
property for stacked attributes). Renamed Initialize() to Initialize-
Context(). Modified to use XmlParserContext.PushScope()/PopScope().
svn path=/trunk/mcs/; revision=14891
* win32functions.cs : added some prototypes required for ImageList impl.
* win32strcuts.cs : added new structs, switched to CharSet.Ansi for TCITEM struct
* win32Enums.cs : use ansi messages for tab control
svn path=/trunk/mcs/; revision=14888
* mini.h, mini.c: ensure correct initialization order for types that
require it. Prepare for lazy compilation of jit icall wrappers.
Provide a name for opcode emulation to reduce unneeded mallocing.
svn path=/trunk/mono/; revision=14880
* XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
to match framework 1.1 (this was a bug in framework 1.0).
svn path=/trunk/mcs/; revision=14876
* ExternMethodRef.cs: Resolve vararg methods
* GlobalMethodRef.cs: Set calling conventions, add vararg methods
* MethodDef.cs: Set calling conventions, add vararg methods
* MethodRef.cs: Set calling conventions, add vararg methods
* TypeDef.cs: Resolve vararg methods
* TypeRef.cs: Add Ellipsis pseudo type, this should never really
be used as a type, but is stored in arrays with other types. Pass
call convs to methodref constructor.
svn path=/trunk/mcs/; revision=14869
from labels.
* FaultBlock.cs: Remove typo causing to labels to be the same as
from labels.
* FilterBlock.cs: Remove typo causing to labels to be the same as
from labels.
* MethodDef.cs: Allow for multiple labels to point to the same
line. ie:
END_BLOCK:
PASS:
do stuff
svn path=/trunk/mcs/; revision=14853
block
* FaultBlock.cs: New file - Initial implementation of a fault
block
* FilterBlock.cs: New file - Initial implementation of a filter
block
* FinallyBlock.cs: New file - Initial implementation of a finally
block
* HandlerBlock.cs: New file - A handler block is the block
assosciated with a SEH clause
* ISehClause: New file - Interface that structured exception
handling clauses must implement.
* TryBlock.cs: New file - Initial implementation only supports
label form SEH. This TryBlock is added to a method as an
instruction out of convenience, tryblock is not an instruction.
svn path=/trunk/mcs/; revision=14826
referenced in the grammar. need to check if these keywords work on
MS ilasm.
* NumberHelper.cs: Parse numbers as Unsigned then cast to long
otherwise an overflow exception is thrown. (is this a classlib bug?)
svn path=/trunk/mcs/; revision=14822
only INT_I8 instruction is ldc.i8 so this new code does more
checks then needed but is written in anticipation of some new long
instructions being found. Implement signature instructions, token
instructions, and signatures. Convert INT32s masquerading as
INT64s to Int64.
svn path=/trunk/mcs/; revision=14789
* Ldtoken.cs: New file - The ldtoken instruction
* InstrTable.cs: ldc.i8 is a TOKEN_I8 and should be given the
MiscToken.ldc_i8 value.
svn path=/trunk/mcs/; revision=14787
* enum.cs (ImplicitConversionExists) : Rename to
ImplicitEnumConversionExists to remove ambiguity.
* ecore.cs (NullCast): New type of cast expression class which
basically is very similar to EmptyCast with the difference being
it still is a constant since it is used only to cast a null to
something else
(eg. (string) null)
* convert.cs (ImplicitReferenceConversion): When casting a null
literal, we return a NullCast.
* literal.cs (NullLiteralTyped): Remove - I don't see why this
should be around anymore.
The renaming (reported was slightly wrong). Corrections:
ConvertImplicitStandard -> ImplicitConversionStandard
ConvertExplicitStandard -> ExplicitConversionStandard
* expression.cs (StaticCallExpr.MakeSimpleCall): Resolve arguments
before passing them in !
* convert.cs (ImplicitConversionStandard): When comparing for
equal expr and target types, ensure that expr is not a
NullLiteral.
In general, we must not be checking (expr_type ==
target_type) in the top level conversion methods
(ImplicitConversion, ExplicitConversion etc). This checking is
done in the methods that they delegate to.
svn path=/trunk/mcs/; revision=14773
* mini-x86.c (mono_arch_get_allocatable_int_vars): dont allocate
I1 to registers because there is no simply way to sign extend 8bit
quantities in caller saved registers on x86.
* inssel-float.brg: set costs of some rules to 2 so
that monobure always select the arch. specific ones if supplied,
regardless of the order we pass the files to monoburg.
svn path=/trunk/mono/; revision=14757
* icall.c (ves_icall_System_Reflection_Module_GetGlobalType): New icall
to return the invisible global type for a module.
* reflection.c (mono_image_build_metadata): Emit global fields too.
svn path=/trunk/mono/; revision=14755
* ModuleBuilder.cs:
- Implement DefineInitializedData in terms of DefineUninitializedData
- Name the types of global fields $ArrayType$<len> to cut back on the
number of types created
- Add argument checking
svn path=/trunk/mcs/; revision=14752
* FloatingPointFormatter.cs: Take care with the explicit precision
and round the number to that precision.
* DoubleFormatter.cs: Adapt to the two level precision (15 - 17).
* SingleFormatter.cs: Adapt to the two level precision (7 - 8).
svn path=/trunk/mcs/; revision=14742
* main.c (print_skel_dir): New function called when jay is
passed '-p'; prints the directory where the default skeleton
files are installed ($(prefix)/share/jay).
* makefile (CFLAGS): Add a -DSKEL_DIRECTORY to support
print_skel_dir.
* jay.1: Document the -p parameter.
svn path=/trunk/mcs/; revision=14732
* win32Enums.cs : added some error codes for common dialogs
* win32functions.cs : added prototype for CommDlgExtendedError
svn path=/trunk/mcs/; revision=14727
* reflection.c (mono_reflection_lookup_dynamic_token): Intern dynamic
literal strings.
* appdomain.c (set_domain_search_path): Recalculate search path when
AppDomainSetup.PrivateBinPath changes.
* object.c (mono_class_compute_gc_descriptor): It turns out some
parts of the class libs (like System.Thread) holds pointers to
GC_MALLOC()-d memory in IntPtrs, which is wrong. The workaround is
to treat native int a pointer type here.
svn path=/trunk/mono/; revision=14726
* mini.c, mini-x86.c: since the magic trampoline for jumps
can't patch the code directly, we do it as soon as the
method gets compiled.
svn path=/trunk/mono/; revision=14725
* mini-x86.c, mini.h: introduce a new patching method
to support CEE_JMP and tail calls.
* mini.c: obey tail.call. Don't precompile methods target
of CEE_JMP.
* tramp-x86.c: new trampoline code to handle methods
reached through a jump.
svn path=/trunk/mono/; revision=14722
* Assembly.cs (GetManifestResourceStream): Moved handling of
linked resources into managed code using the newly implemented
GetManifestResourceInfo () method.
svn path=/trunk/mcs/; revision=14717
* FileTest.cs:
* StreamReaderTest.cs:
* StreamWriterTest.cs: Workaround for process holding on to directory
that prevented cleanup and deletion.
svn path=/trunk/mcs/; revision=14715
* ConstructorBuilder.cs MethodBuilder.cs: Remove unnecessary MonoTODO
attributes.
* TypeBuilder.cs: "Implement" various methods not supported under
MS.NET.
* AssemblyBuilder.cs: Implement GetDynamicModule. "Implement" various
methods not supported under MS.NET.
svn path=/trunk/mcs/; revision=14706
* threads.c: Set the new thread's stack size to 2M. Fix needed
for BSD, reported by Martin Dvorak <[email protected]>
svn path=/trunk/mono/; revision=14699
* reflection.h reflection.c icall.c: Added new icalls
GetManifestResourceInfoInternal, GetModulesInternal and support
infrastructure.
svn path=/trunk/mono/; revision=14696
* FileStream.cs (FlushBuffer): After a flush, the buffer should be
advanced by buf_offset bytes, not buf_length bytes.
svn path=/trunk/mcs/; revision=14693
* statement.cs (TypeInfo.StructInfo): Made this type protected.
(TypeInfo): Added support for structs having structs as fields.
* ecore.cs (FieldExpr): Implement IVariable.
(FieldExpr.DoResolve): Call VariableInfo.GetSubStruct() to get the
VariableInfo for the field.
svn path=/trunk/mcs/; revision=14686
methods using array methods if owners are arrays, resolve methods
named <init> as .ctor.
* ExternTable.cs: Add method to get value classes.
* ExternTypeRef.cs: Add AsClassRef method, GetMethodRef now takes
calling conventions.
* IClassRef.cs: GetMethodRef now takes calling conventions
* ITypeRef.cs: Add IsArray IsRef and AsClassRef methods
* MethodRef.cs: Change <init> to .ctor
* PeapiTypeRef.cs: This class is no longer an ITypeRef because it
cannot be converted to a IClassRef. Add IsArray and IsRef, use new
Class::GetArray* methods to convert to arrays.
* PrimitiveTypeRef.cs: Add method to convert to an IClassRef
* TypeRef.cs: Add IsArray and IsRef, add method to convert to
IClassRef. GetMethodRef now takes calling conventions
svn path=/trunk/mcs/; revision=14682
* test-154.cs: Added the contents of test-189.cs as a new testcase
to this test.
* test-189.cs: Removed, let's keep the flow analysis tests in one
single test file.
svn path=/trunk/mcs/; revision=14678
* test-154.cs: Added the contents of test-189.cs as a new testcase
to this test.
* test-189.cs: Removed, let's keep the flow analysis tests in one
single test file.
svn path=/trunk/mcs/; revision=14674
* expression.cs (This.ResolveBase): New public function.
(This.DoResolve): Check for CS0188.
* codegen.cs (EmitContext.This): Just call This.ResolveBase(), not
This.Resolve().
* ecore.cs (MethodGroupExpr.DoResolve): Set the
`instance_expression' to null if we don't have any non-static
methods.
svn path=/trunk/mcs/; revision=14671
* RdpPattern.cs : Some method name capitalization.
Fixed RdpInterleave.StartTagOpenDeriv() which is logically incorrect.
svn path=/trunk/mcs/; revision=14666
Reworked the way how local variables and parameters are handled by
the flow analysis code.
* statement.cs (TypeInfo, VariableMap): New public classes.
(VariableInfo): New public class. This is now responsible for
checking whether a variable has been assigned. It is used for
parameters and local variables.
(Block.EmitMeta): Take the InternalParameters as argument; compute
the layout of the flow vectors here.
(Block.LocalMap, Block.ParameterMap): New public properties.
(FlowBranching): The .ctor doesn't get the InternalParameters
anymore since Block.EmitMeta() now computes the layout of the flow
vector.
(MyStructInfo): This class is now known as `StructInfo' and nested
in `TypeInfo'; we don't access this directly anymore.
* ecore.cs (IVariable): Added `VariableInfo VariableInfo'
property and removed IsAssigned(), IsFieldAssigned(),
SetAssigned() and SetFieldAssigned(); we now call them on the
VariableInfo so we don't need to duplicate this code everywhere.
* expression.cs (ParameterReference): Added `Block block' argument
to the .ctor.
(LocalVariableReference, ParameterReference, This): The new
VariableInfo class is now responsible for all the definite
assignment stuff.
* codegen.cs (EmitContext.IsVariableAssigned, SetVariableAssigned,
IsParameterAssigned, SetParameterAssigned): Removed.
svn path=/trunk/mcs/; revision=14661
* XmlSerializerTests.cs : fixed some AssertEquals() argument orders.
and replaced some Assert() with AssertEquals().
Applied USE_VERSION_1_1 to TestConstructor().
svn path=/trunk/mcs/; revision=14660
* AssemblyBuilder.cs (corlib_void_type): New internal field.
(SetCorlibTypeBuilders): Added overloaded version which takes 4
arguments to set the `corlib_void_type'.
* TypeBuilder.cs: Use `pmodule.assemblyb.corlib_void_type' instead
of `typeof (void)' to make this work when compiling corlib.
svn path=/trunk/mcs/; revision=14659
* typemanager.cs (InitCoreTypes): Try calling
SetCorlibTypeBuilders() with 4 args; if that fails, fall back to
the 3-args-version. Corlib now also needs our `void_type'.
(GetMethod): Added overloaded version which takes an optional
`bool report_errors' to allow lookups of optional methods.
svn path=/trunk/mcs/; revision=14658
* XmlTextWriterTests.cs : added FlushDoesnTCloseTag() and
WriteWhitespaceCloseTag() (patch by Jonathan Hogg).
added more tests to AttributeWriteAttributeString().
* XmlAttributeTests.cs : SetInnerTextAndXml() rewrite.
svn path=/trunk/mcs/; revision=14657
* XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
any open attributes or elements. WriteWhitespace() checks state and
closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
when it is called inside attribute value.
* XmlException.cs : added .NET 1.1 .ctor.
* added XmlSecureResolver.cs (only stubbing).
* XmlAttribute.cs : set_InnerXml() should remove children.
* XmlAttribute.cs,
XmlElement.cs,
XmlDocumentFragment.cs,
XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
* XmlNode.cs : RemoveAll() should also remove all attributes.
* XmlTextRader.cs : .ctor() for attribute value reader should add
quotations at initialization, since it requires quote chars.
* XmlWriter.cs : WriteAttributeString() more correct xmlns check.
svn path=/trunk/mcs/; revision=14655
* Array.cs Fixed SyncRoot to behave like MS (return this). Removed
MonoTODO from SyncRoot (because fixed) and IsSynchronized (it was
behaving correctly).
svn path=/trunk/mcs/; revision=14652
* X509CertificateTest.cs: Added DSA certificate without any key
parameters (shared group is available in the issuer certificate).
svn path=/trunk/mcs/; revision=14642
* debug-mini.c (mono_init_debugger): New function to initialize
the debugger. This is not in the debugger since it needs to
access some of mini's internals.
svn path=/trunk/mono/; revision=14637
* makefile (install): Call the install in makefile.gnu
* makefile.gnu (install): Actually install jay and its skeleton
files. (and docs, and manpage...)
svn path=/trunk/mcs/; revision=14635
* UnixEndPoint.cs: New property to get and set the filename, like
the IPEndPoint has for the IP address. Also implement ToString().
svn path=/trunk/mcs/; revision=14626
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added
svn path=/trunk/mcs/; revision=14614
* changed XPathNodeType modifier to internal *protected* override.
* XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
* XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
* XmlAttributeCollection.cs : removed some incorrect TODO attributes.
* XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
when the argument is "xmlns".
* XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
* XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
* XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
* XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
not to set error state for non-started XmlNodeReader.
* XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
BaseURI support. Fixed Initialize() to handle Attribute correctly.
SetProperty for attribute auto-completes xmlns NSURI.
Attribute and whitespace handling became more correct.
Don't parse external DTD if XmlResolver is null.
* XmlTextWriter.cs : implemented WriteEntityRef().
WriteStartAttribute() checks if ns does not equal to that of xmlns.
* XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
svn path=/trunk/mcs/; revision=14613
* XmlSerializerTests.cs : fixed some argument orders and fixed
timezone dependent part of TestSerializeDateTime().
svn path=/trunk/mcs/; revision=14612
* XmlAttributeTests.cs : added NamespaceAttributes() and WriteTo().
* XmlDocumentTests.cs : fixed invalid xml of DocumentWithDoctypeDecl()
and not well-formed xml of OuterXmlWithDefaultXmlns().
* XmlElementTests.cs : added IsEmpty(). fixed not well-formed xml of
WriteToWithDefaultNamespace().
* XmlNodeReaderTests.cs : fixed incorrect result expectation of
ReadInnerXmlWrongInit().
* XmlNodeTets.cs : applied USE_VERSION_1_1 for InsertBefore()/-After().
* XmlReaderCommonTests.cs,
XmlTextReaderTests.cs : moved EntityReference() and EntityReference-
InsideText() to XmlTextReaderTests.cs, since XmlNodeReader is expected
to resolve these entity references.
* XmlTextWriterTests.cs : removed English-dependent error message check.
fixed incorrect state-check ignorant blocks of WriteAttributes ().
* XmlWriterTests.cs : modified WriteNodeFullDocument() and WriteNode-
XmlDecl() as MS.NET results in.
svn path=/trunk/mcs/; revision=14610
* MethodBuilder.cs: off by one in CreateMethodBody().
* TypeBuilder.cs: if the return type for a method is null, use void.
svn path=/trunk/mcs/; revision=14609
* mini-ops.h, mini.c, inssel.brg: optimize access to 2D arrays.
* jit-icalls.c, exceptions.cs: fixed index out of range checks, added
test case.
svn path=/trunk/mono/; revision=14598
Wed May 14 12:40:31 CEST 2003 Paolo Molaro <[email protected]>
* inssel-x86.brg: fixed thinko in int to double conversions.
svn path=/trunk/mono/; revision=14595
* DirectoryInfo.cs: fixed bug #42991.
* Path.cs:
(CanonicalizePath): store the value of the trimmed input string. Make it
work with paths such as "/home/xxx/.".
svn path=/trunk/mcs/; revision=14585
* System.Web.UI/BaseParser.cs: fixed MapPath for non-rooted files.
* System.Web.UI/PageParser.cs: don't pass a non-virtual file around.
* System.Web.UI/TemplateControlParser.cs: InputFile uses MapPath now.
Take care of the exception teh may be throw by MapPath on an invalid
path.
* System.Web.UI/TemplateParser.cs: removed unused method.
* System.Web.UI/UserControlParser.cs: modified inputfile. The result is
the same, but this one is better.
* System.Web.Util/UrlUtils.cs: fixed Combine and reworked Reduce.
svn path=/trunk/mcs/; revision=14566
deserialized object and the headers.
* MessageFormatter.cs: The result of the call to the HeaderHandler delegate is
now interpreted as the uri of the target object. This seems to be MS.NET
behavior.
* BinaryFormatter.cs: Deserialize now calls the HeaderHandler delegate,
if provided.
svn path=/trunk/mcs/; revision=14559
* PKCS1MaskGenerationMethodTest.cs: Uncommented PKCS#1 v.2.1 vector
unit test (will work on Mono but fails with MS implementation).
* RSAOAEPKeyExchangeDeformatterTest.cs: Updated tests vectors for
both Mono and MS (under Windows XP) generated OAEP results.
* RSAOAEPKeyExchangeFormatterTest.cs: Update exception handling.
svn path=/trunk/mcs/; revision=14524
* PKCS1MaskGenerationMethod.cs: Added comment to justify why
the class is no more compatible with MS implementation (the bug
was preventing OAEP to work properly).
svn path=/trunk/mcs/; revision=14523
* gc.c: Don't run finalizers when the finalizer thread is
finishing up, because the default domain has already been
destroyed.
svn path=/trunk/mono/; revision=14518
2003-05-12 Miguel de Icaza <[email protected]>
* support.cs (InternalParameters.ParameterType): Return the
ExternalType of the parameter.
* parameter.cs (Parameter.ExternalType): drop the two arguments,
they were unused.
svn path=/trunk/mcs/; revision=14509
* class.cs (MethodData.Define): Do not set the `newslot' on
interface members, if they are also flagged as "override".
* expression.cs (UnaryMutator.EmitCode): Simple workaround to emit
better code for ++i and i++. This only works for static fields
and local variables.
svn path=/trunk/mcs/; revision=14506
* string-icalls.c (ves_icall_System_String_ctor_chara_int_int): if
value is null, we should throw an exception. This is slightly
different than the other conventions used for the constructor.
svn path=/trunk/mono/; revision=14505
positions. Add method to get named local variables slot
number. Make sure param_lists aren't null when defining them. Add
specialname and rtspecialname attributes if the method being
defined is named '.ctor' or '.cctor'. Add new method for creating
signatures using a list of typerefs.
* GlobalMethodRef.cs: Use new CreateSignature method that takes an
array of typerefs.
* MethodRef.cs: Use new CreateSignature method
* InstrTable.cs: Use INSTR_LOCAL and INSTR_PARAM tokens for
instructions that take local and param operands.
svn path=/trunk/mcs/; revision=14503
positions. Add method to get named local variables slot
number. Make sure param_lists aren't null when defining them. Add
specialname and rtspecialname attributes if the method being
defined is named '.ctor' or '.cctor'. Add new method for creating
signatures using a list of typerefs.
* GlobalMethodRef.cs: Use new CreateSignature method that takes an
array of typerefs.
* MethodRef.cs: Use new CreateSignature method
* InstrTable.cs: Use INSTR_LOCAL and INSTR_PARAM tokens for
instructions that take local and param operands.
svn path=/trunk/mcs/; revision=14501
* typemanager.cs (LookupDeclSpace): Add new method, sometimes we
want to pull the DeclSpace out of the builder_to_declspace instead
of the TypeBuilder (like in TypeContainer.FindMembers).
* class.cs (TypeContainer.FindMembers): Use LookupDeclSpace
instead of LookupTypeContainer. Fixes the crash on .NET for
looking up interface members.
svn path=/trunk/mcs/; revision=14499
* const.cs: Create our own emit context during the Definition
stage, so that constants are evaluated in the proper context, when
a recursive definition happens.
svn path=/trunk/mcs/; revision=14498
* statement.cs (Block.CreateSwitchBlock): New method. Creates a
new block for a switch section.
(Block.AddLabel, Block.LookupLabel): If we're a switch section, do
the adding/lookup in the switch block. Fixes#39828.
svn path=/trunk/mcs/; revision=14495
+2003-04-30 Miguel de Icaza <[email protected]>
+
+ * SoapHttpClientProtocol.cs: Flag the methods in the chain that
+ gets the caller method as non-inlineable.
svn path=/trunk/mcs/; revision=14490
* inssel-long32.brg, basic-long.cs, exceptions.cs: handle
a couple of missing operations for long casts, with test cases.
svn path=/trunk/mono/; revision=14484
* Binder.cs (ChangeType): Very simplistic change. Am not sure if
it is correct, but it makes RemotingCorba move along a bit more
(Remoting.Corba invokes Binder.ConvertArgs, which calls
Binder.ChangeType with an Attribute [] to Object []).
svn path=/trunk/mcs/; revision=14482
* ExternFieldRef.cs: New file - Reference to a field in another
assembly
* FieldRef.cs: New file - Reference to a field in this assembly
* GlobalFieldRef.cs: New file - Reference to a global field
* FieldInstr.cs: New file - Instruction that takes a field
instruction
* CodeGen.cs: Add method to resolve global methods
* ExternTypeRef.cs: Add method to get method references
* FieldDef.cs: Allow methods to be resolved before being defined
* IClassRef.cs: Add method to get field references.
* TypeDef.cs: Add method to resolve member fields.
* TypeRef.cs: Add method to get field references
svn path=/trunk/mcs/; revision=14476
* Encoding.cs (GetEncoding): Add all the aliases documented in the
framework. We were missing a few.
Reorganize the table. Also, convert the input name into the
lower-case - to _ before we compare against our table.
svn path=/trunk/mcs/; revision=14472
* CodeGen.cs: Store global methods and fields in hashtables to
make lookup easier. Add method to resolve global methods.
svn path=/trunk/mcs/; revision=14465
implement
* ExternMethodRef.cs: New file - Reference to a method in another
assembly
* Local.cs: New file - A Local variable
* MethodInstr.cs: New file - an instruction that takes a method
reference operand
* IClassRef.cs: Add method to get a method reference from a class
reference
* MethodDef.cs: Add ability to resolve methods before defining
them, add max stack, locals, and entry point. Make CreateSignature
method public and static so other classes can use it.
* TypeDef.cs: Store methods and fields in hashtables so they can
be easily retrieved, add method to resolve member methods.
* TypeRef.cs: Add method for resolving member methods.
svn path=/trunk/mcs/; revision=14458
* SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
documentation (no public declaration).
* Transform.cs: Added property XmlResolver Resolver as per framework 1.1
documentation (no public declaration).
svn path=/trunk/mcs/; revision=14454
* TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
reporting.
svn path=/trunk/mcs/; revision=14448
* io.c (CopyFile): Copy file mode as well as file data. Based on
suggestion by Giuseppe Greco <[email protected]>, bug
42706.
svn path=/trunk/mono/; revision=14447
* DSACryptoServiceProvider.cs: Class is now sealed in v.1.1.
* KeySizes.cs: Class is now sealed in v.1.1.
* MD5CryptoServiceProvider.cs: Class is now sealed in v.1.1.
* RNGCryptoServiceProvider.cs: Class is now sealed in v.1.1.
svn path=/trunk/mcs/; revision=14438
* AllowPartiallyTrustedCallersAttribute.cs: New. Class was missing
from original 1.0 documentation (but inclufed in framework 1.0)
svn path=/trunk/mcs/; revision=14435
* list.unix: added missing file.
* System.Xml.Serialization/XmlReflectionImporter.cs: created an
instance field because GetTypeData method of TypeTranslator is not
static.
This just fixes the build, but the changes may NOT be correct.
svn path=/trunk/mcs/; revision=14432
* Added TypeTableEntry.cs.
* TypeTranslator.cs : changed for non-static use.
* XmlAttributes.cs : XmlType attribute support for GetAttributeName()
and GetElementName(). Bugfix so that if any XmlElementAttribute
exists after non-typed XmlElementAttribute then it might be ignored.
Added GetElementIsNullable().
* XmlSerializer.cs :
Introduced TypeTablePool and TypeTableEntry and erased ambiguous
Object memberObj[4].
Deserialize() now uses XmlReader.Depth to check its depth.
Serialize() for non-XmlReader arguments now always write xmldecl.
SerializeBuiltin() now explicitly requires Type to support xsi:nil,
and handles XmlQualifiedName.
Separated SerializeType () from Serialize().
Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
IsPropertyTypeSerializable() from SerializeMembers().
SerializeMembers() is now capable of null value and actual type,
which should be included by XmlIncludeAttribute and so on.
Renamed SerializeArray() to SerializeArrayContent(), and added
SerializeCollectionContent().
SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
FillTypeTable() is now aware of XmlInclude attributes.
FillEnum() should not have different type table content from others.
svn path=/trunk/mcs/; revision=14429
* expression.cs (UnaryMutator.LoadOneAndEmitOp): Missing
functionality: I needed to convert the data after I had performed
the add/sub operation into the operands type size.
svn path=/trunk/mcs/; revision=14427
* ecore.cs (ImplicitReferenceConversion): When boxing an interface
pass the type for the box operation, otherwise the resulting
object would have been of type object.
(BoxedCast): Add constructor to specify the type to box as.
svn path=/trunk/mcs/; revision=14426
* DataGridColumnCollection.cs: fixed LoadViewState for the columns.
Don't save ViewState is the number of columns is 0.
svn path=/trunk/mcs/; revision=14421
* MulticastDelegate.cs (GetInvocationList): Avoid ArrayList
construction if the delegate list only has one element.
svn path=/trunk/mcs/; revision=14420
* class.c (mono_class_layout_fields): Add experimental GC aware
auto layout facility. Requires class library changes to work correctly.
(mono_class_setup_vtable): Avoid overriding explicit interface
method implementations. Fixes iface3.exe test.
* object.c (mono_class_compute_gc_descriptor): Type I can't hold an
object reference.
(mono_array_new_specific): Add MONO_ARCH_SAVE_REGS.
(mono_string_new_wrapper): Add MONO_ARCH_SAVE_REGS.
* metadata.h: Add new type classification macro which determines
whenever the type holds an object reference.
svn path=/trunk/mono/; revision=14419
* Added many new properties to Combo.cs
* Fixed the TextBox.Text get property
* Fixed some properties in Form.cs
* Small code cleanups
svn path=/trunk/mcs/; revision=14409
* mono/tests/Makefile.am:
- Compile with mcs.
- Disable some warnings.
- Added executables to clean target.
- Make testjit the default target.
- Print list of failed tests at the end of a test run.
- Abort tests when Ctrl-C is pressed.
* mono/tests/test-driver: Return with a special exit code when
SIGINT is detected.
* mono/tests/checked.cs: Make it compile.
svn path=/trunk/mono/; revision=14406
* Path.cs
(GetPathRoot) Added support for UNC paths.
(CanonicalizePath) Added optimizations per Miguel's requests.
* PathTest.cs
Even more GetFullPath () tests. Includes UNC tests.
svn path=/trunk/mcs/; revision=14383
Patches from Igor Nosyryev <[email protected]>
* TdsComm.cs: (GetString): GetString adds extra byte to a string
at end. It suppose to be '\0', but '\0' is valid value in .NET
string, so this byte must not be used.
* Tds.cs (GetDecimalValue):Method reads extra byte if a DECIMAL
field contains NULL. As a result server's response is parsed
incorrectly and this method fires an exception.
svn path=/trunk/mcs/; revision=14378
* ScrollableControl.cs : registration of "mono_scrollable_control" was moved to Control class
* win32functions.cs : new constant DEFAULT_WINDOW_CLASS
* PictureBox.cs : implemented
svn path=/trunk/mcs/; revision=14371
* BufferedStream.cs:
- Removed unusefull code.
- Added ObjectDisposedException to Position
- Dont flush if stream is allready closed.
- Flush throws also ObjectDisposedException.
* Directory.cs:
- GetFileSystemEtries: ArgumentNullException if pattern is null
* DirectoryInfo.cs: Fixed little MoveTo () bug.
* FileInfo.cs:
- Exists: If file does not exists when instance is created the
value of the Exists property does not change even if file is created
afterwards.
- Delete: If path is a directory UnauthorizedException is thrown.
- CopyTo: Now we can overwrite file if wanted.
* Path.cs:
- GetFullPath: Now throws exception when path is " ".
svn path=/trunk/mcs/; revision=14370
* TextBox.cs : use styles provided by TextBoxBase
* TextBoxBase.cs : more methods and properties were implemented
* win32enums.cs : messages and notifications for EDIT control
svn path=/trunk/mcs/; revision=14367
* CompilationException.cs: don't add duplicated lines in the case that
mcs reports several errors for the same one.
svn path=/trunk/mcs/; revision=14344
* attribute.cs (Attribute.Resolve): Params attributes are encoded
by creating an array at the point where the params starts and
putting all those arguments there, then adjusting the size of the
array.
svn path=/trunk/mcs/; revision=14343
* System.Web/HttpException.cs: encode as HTML the inner exception that
is appended as a comment at the end of error pages.
* System.Web.Compilation/AspGenerator.cs: fully support including files,
ie., treat them just as C treats #includes.
* System.Web.UI/RootBuilder.cs: throw exception when the tagprefix
is not valid or not found.
svn path=/trunk/mcs/; revision=14316
because we need to implement the method on Windows.
* Path.cs
(CanonicalizePath) Added new function to get
rid of . and .. in path names. Need to figure out what
other functions should call this.
(GetFullPath) Added call to the above function. Fixes
bug 42303
svn path=/trunk/mcs/; revision=14314
* expression.cs (New.AddressOf): Implement interface
IMemoryLocation. This is used when the `new' operator is used in
the context of an invocation to a method on a value type.
See http://bugzilla.ximian.com/show_bug.cgi?id=#42390 for an
example.
svn path=/trunk/mcs/; revision=14311
* namespace.cs: Also check the using aliases here.
* driver.cs: Move the test for using validity after the types have
been entered, so we do a single pass that also includes the using
aliases.
svn path=/trunk/mcs/; revision=14310
* statement.cs (Try.Resolve): Avoid crashing if there is a failure
in the regular case. CreateSiblingForFinally is doing extra
error checking.
svn path=/trunk/mcs/; revision=14309
* attribute.cs (GetAttributeArgumentExpression): Store the result
on an out value, and use the return value to indicate failure
instead of using null (which is a valid return for Constant.GetValue).
* statement.cs: Perform the analysis flow for the increment
portion after the statement, because this will be the real flow of
execution. Fixes#42385
svn path=/trunk/mcs/; revision=14307
* io-layer/handles.c: added some debugging code. Call GC_gcollect
before creating a new handle. It makes Lupus' test run smoother and
faster (from 62 to 83 request per second). Notice that calling
GC_finalizer_notifier if needed (GC_should_invoke_finalizer ()) does
not improve nor degrade the performance, so i don't do it.
* metadata/socket-io.c:
(Select_internal): allow NULLs, don't create arrays if not needed.
Coupled with Socket.cs changes.
* metadata/threadpool.c:
(mono_thread_pool_add): use GC_MALLOC to allocate the ASyncCall and
register a finalizer for it that will close the semaphore handle. This
fixes the leak and make Lupus' test run with > 4080 loops.
svn path=/trunk/mono/; revision=14297
* codegen.cs (EmitContext.EmitArgument,
EmitContext.EmitStoreArgument): New helper functions when the
RemapToProxy flag is set.
* expression.cs (ParameterReference.EmitLdarg): Expose this useful
function.
Add support for remapping parameters.
* iterators.cs: Propagate parameter values; Store parameter
values in the proxy classes.
* ecore.cs (FieldExpr): Fix an obvious bug. static fields do not
need a proxy reference; I do not know what I was thinking
svn path=/trunk/mcs/; revision=14290
* cs-parser.jay (field_declaration): catch void field declaration
to flag a better error.
* class.cs (MemberBase.CheckBase): Report an error instead of a
warning if a new protected member is declared in a struct.
(Field.Define): catch the error of readonly/volatile.
* ecore.cs (FieldExpr.EmitAssign): reuse the field lookup.
(FieldExpr.AddressOf): ditto. Catch error where the address of a
volatile variable is taken
svn path=/trunk/mcs/; revision=14286
* MiscInstr.cs: New file - Just an enum that gives me constant
values for instructions PEAPI does not define in an enum
* InstrTable.cs: Use new MiscInstr constants instead of string values.
svn path=/trunk/mcs/; revision=14272
* ChangeLog : Added missing ChangeLog of 2003-04-25.
* XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
separators. Added experimental method ToEnum().
* XmlSerializationReader.cs : unconfirmed implementation of
ReadSerializable() and ToEnum().
* XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
is null then no output will be written.
Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
to use custom formatted name.
svn path=/trunk/mcs/; revision=14268
* System.Reflection/Assembly.cs: implemented GetSatelliteAssembly.
* System.Resources/ResourceManager.cs: enabled the code that calls
GetSatelliteAssembly and ignore the exception thrown if the assembly
cannot be loaded.
svn path=/trunk/mcs/; revision=14252
* debug-mono-symfile.h
(MonoSymbolFile): Moved declaration into mono-debug.h.
(MonoDebugMethodJitInfo): Likewise.
(mono_debug_open_mono_symbol_file): Take the MonoDebugHandle as
argument.
(_mono_debug_address_from_il_offset): Take a
MonoDebugMethodJitInfo instead of a MonoDebugMethodInfo.
* mono-debug.h
(MonoDebugDomainData): New struct.
(mono_debug_get_domain_data): New function.
(mono_debug_add_method): Take an additional `MonoDomain *'
argument.
(mono_debug_source_location_from_address): Likewise.
(mono_debug_il_offset_from_address): Likewise.
(mono_debug_address_from_il_offset): Likewise.
svn path=/trunk/mono/; revision=14245
* System.Web.Compilation/AspGenerator.cs:
* System.Web.Compilation/AspParser.cs:
* System.Web.Compilation/TagType.cs:
* System.Web.UI/TemplateParser.cs: Added support for server side
includes.
svn path=/trunk/mcs/; revision=14242
* ResourceManager.cs: fixed the name for the file when the culture is
not de invariant culture. Commented out the GetSatelliteAssembly code
to avoid NotImplementedException being thrown.
svn path=/trunk/mcs/; revision=14234
* System.Web.Compilation/CSCompiler.cs: actually add the list of
referenced assemblies to the compiler options. Throw a
CompilationException if there's an error.
* System.Web.Compilation/CachingCompiler.cs: added a method to compile
directly from a source file.
* System.Web.UI/TemplateControl.cs: fixed the flags used to find the
methods that are automatically hooked up on events.
* System.Web.UI/TemplateParser.cs: don't compile a source file directly.
Use the cache instead.
svn path=/trunk/mcs/; revision=14231
Added methods to support IList wrappers
* ArrayListTest.cs
Tests for the above* ArrayList.cs
Added methods to support IList wrappers
svn path=/trunk/mcs/; revision=14229
* Makefile.am: avoid linking libmono with GMODULE_LIBS, because
that contains -export-dynamic and it makes using the ld script
useless.
* mini.h, main.c, driver.c: s/mini_main/mono_main/g.
svn path=/trunk/mono/; revision=14216
* runtime/Makefile.am ($(monobins_DATA)): Use explicit file names
for the target exe binaries.
Copy cilc.exe and secutil.exe from the right paths to the right
location.
Add missing assemblies.
svn path=/trunk/mono/; revision=14214
* sockets.c: Rearrange closesocket() and socket_close_private(),
and remember to unref the handle, so we don't leak socket handles.
Fix from Pelle Johnsen <[email protected]>
svn path=/trunk/mono/; revision=14211
been resolved, this avoids the infinite loop that would occur if a
type was a member of its base type.
* TypeDef.cs: Method to define contents after being defined.
svn path=/trunk/mcs/; revision=14204
* Environment.cs: Changed the method GetFolderPath because it must
return at least a directory name (not null).
* Convert.cs: In ToType, if the destination type is unknown, try to
cast the value to object (then, the calling method will downcast it
to the type it wants).
svn path=/trunk/mcs/; revision=14199
* System.Web/HtmlizedException.cs: added more virtual methods.
* System.Web/HttpException.cs: some work on the output when there's
a source file present.
* System.Web.Compilation/AspGenerator.cs: copy the location before
setting the value for the control builders.
* System.Web.Compilation/BaseCompiler.cs: changed parameters for
CompilationException.
* System.Web.Compilation/CompilationException.cs: it takes now line
numbers and error descriptions from the CompilerErrorCollection.
* System.Web.Compilation/Location.cs: used when a copy of an ILocation
is needed.
* System.Web.Compilation/ParseException.cs: implemented new methods
to provide line numbers and souce file.
* System.Web.Compilation/TemplateControlCompiler.cs: throw a
ParseException where appropiate.
* System.Web.UI/BaseParser.cs: Location property is now here. Added a
couple of convenience methods to throw a ParseException.
* System.Web.UI/TemplateParser.cs:
* System.Web.UI/TemplateControlParser.cs:
* System.Web.UI/PageParser.cs: throw ParseException where appropiate.
svn path=/trunk/mcs/; revision=14191
* mini.c: make sure leave calls all the needed finally blocks,
even when the target jumps out of multiple exception clauses.
svn path=/trunk/mono/; revision=14183
* ldscript, Makefile.am: add linker script to reduce the number of
exported symbols (should also fix the issues with libwine defining
some of the same symbols in io-layer).
svn path=/trunk/mono/; revision=14182
* CodeGen.cs: Fix typo
* IInstr.cs: New file - Interface for instructions that are added to methods
* IntInstr.cs: New file - Instruction that takes a single int
param
* LdstrInstr.cs: New file - ldstr instruction (the only
instruction that takes a string parameter)
svn path=/trunk/mcs/; revision=14173
* System.Web.Compilation/AspGenerator.cs: also support data bind syntax
inside tags not processed as controls. Added debugging method.
* System.Web.Compilation/TemplateControlCompiler.cs: reset the number
of data binding handlers in the proper place. Small fix when getting the
container type.
* System.Web.UI/ApplicationFileParser.cs: use the generator to actually
parse the file.
* System.Web.UI/ControlBuilder.cs: small fix in NamingContainerType
because TemplateBuilders have a null ControlType. When a control is
appended to a parent, assign the child's parent.
* System.Web.UI/UserControlParser.cs: fixed the value of InputFile.
IBuySpy works again!
svn path=/trunk/mcs/; revision=14170
* System.Web.Compilation/TemplateControlCompiler.cs: correctly set
the TemplateSourceDirectory value.
* System.Web.UI/ApplicationFileParser.cs: store the Context and
override BaseVirtualDir so that it's the application path.
* System.Web.UI/BaseParser.cs: removed CurrentVirtualPath property.
* System.Web.UI/TemplateControlParser.cs: use BaseVirtualDir.
* System.Web.UI/UserControlParser.cs: removed CurrentVirtualPath.
svn path=/trunk/mcs/; revision=14168
* AspGenerator.cs: handle code render syntax in tag attributes.
* AspParser.cs: the constructor now takes a TextReader.
* TemplateControlCompiler.cs: removed comment.
svn path=/trunk/mcs/; revision=14166
- Compound operators added
- Member access now work correctly
- A lot of array fixes/improvements
- LateIndexGet/Set calls are generated correctly
- Overloading in constructors fixed
- Array access when the array is a parameter fixed
- Invocation resolution improved
- Added readonly modifier for properties
- Many more little and not-so-little things I can't remember :-(
svn path=/trunk/mcs/; revision=14162
* mini.c, basic-calls.cs: when inlining, save arguments to locals according
to the type in the method signature (fixes bug#42134).
svn path=/trunk/mono/; revision=14156
* HtmlImage.cs:
* HtmlInputControl.cs:
* HtmlSelect.cs: added control builder attribute.
* HtmlSelectBuilder.cs: builder for HtmlSelect.
* HtmlControlBuilder.cs: common builder for all HtmlControls.
svn path=/trunk/mcs/; revision=14143
* ApplicationFileParser.cs: it works now. Prior to these changes, we
were using the compiler directly.
* BaseParser.cs: added some useful properties and methods.
* CodeBuilder.cs: use ILocation.
* CodeRenderBuilder.cs: use ILocation.
* CollectionBuilder.cs: use the RootBuilder to map tag names into Types.
* ControlBuilder.cs: made it useful.
* DataBindingBuilder.cs: the control type for data bound text is
DataBoundLiteralControl now.
* ObjectTagBuilder.cs: store some object tag attributes.
* PageParser.cs: handle page-only directives.
* RootBuilder.cs: bah.
* SimpleWebHandlerParser.cs: made it dummy.
* TemplateControl.cs: Modified file.
* TemplateControlParser.cs: handle directives that are common to pages
and user controls.
* TemplateParser.cs: utility methods and handling of directives that
are common to app, page and user controls.
* UserControl.cs: added ControlBuilderAttribute.
* UserControlControlBuilder.cs: builder for user controls.
* UserControlParser.cs: use the new interfaces.
svn path=/trunk/mcs/; revision=14142
* AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
instead of their names.
* AspElements.cs: removed. No longer needed.
* AspGenerator.cs: this file is now in charge of interfacing between
the parser and the compiler. It manages the creation of the
ControlBuilder tree and the compilation of the CodeDOM tree.
* AspParser.cs: tag handling is simpler now. Instead of a whole bunch
of different Types, tags are just and id and a set of attributes.
Implement ILocation interface.
* AspTokenizer.cs: added a few methods to help the parser implementing
ILocation.
* BaseCompiler.cs: handles the portions of the CodeDOM tree that are
common to appliaction, page and user control, including the actual
compilation and error handling.
* CSCompiler.cs: compiles C# files using CodeDOM interfaces.
* CachingCompiler.cs: simplified to use the new interfaces.
* CompilationException.cs: it's now using CompilationResult to report
errors.
* CompilationResult.cs: Removed file.
* Directive.cs: to check for the validity of a directive.
* GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
in BaseCompiler.
* ILocation.cs: interface used to now the exact place where a parse
error happens.
* PageCompiler.cs: generates a couple of methods that are only used in
pages.
* ParseException.cs: use the ILocation interface.
* TagAttributes.cs: handles the attributes of the tags parsed.
* TagType.cs: an enum for the different kinds of tags.
* TemplateControlCompiler.cs: this is the one that does most of the
conversion from teh ControlBuilder tree into a CodeDOM tree.
* UserControlCompiler.cs: simplified as most of the work is done in
its base classes.
* WebServiceCompiler.cs: dummy.
svn path=/trunk/mcs/; revision=14140
* HtmlizedException.cs: simplified to cope with the new interface.
* HttpApplicationFactory.cs: use the application file parser to get the
application Type.
* HttpException.cs: small changes. Needs some more work on
ParseExceptions.
svn path=/trunk/mcs/; revision=14139
* SoapHttpClientProtocol.cs (CreateMessage): Extract information
from the method to be called.
* SoapDocumentMethodAttribute.cs: Do not initialize all the fields
on the attribute at bootstrap, for default values, just compute
them when queried.
* SoapMessage.cs (SetStage): New internal method, used to register
the stage as we move along the soap pipeline.
svn path=/trunk/mcs/; revision=14130
* LogicalMethodInfo.cs: Most of this is implemented. Its only
missing a few bits in the Create() method.
* SoapHttpClientProtocol.cs: Begin implementation of Invoke, which
lead to other dependencies to be implemented.
* LogicalMethodInfo.cs: Mostly complete. It is only missing the
async features (BeginInvoke/EndInvoke) on a LogicalMethodInfo.
* WebClientProtocol.cs (GetWebRequest): Track the web request, so
we can abort it later.
(Abort): Call abort on the underlying transport.
svn path=/trunk/mcs/; revision=14129
* attribute.cs (Attribute.GetAttributeArgumentExpression): Moved
the functionality for testing whether an expression is valid for
an attribute here. Also handle the case of arrays of elements
being stored.
* expression.cs (ArrayCreation.EncodeAsAttribute): Add support for
encoding a linear array into an array of objects that are suitable
to be passed to an CustomAttributeBuilder.
svn path=/trunk/mcs/; revision=14117
* CSharpCodeCompiler.cs:
(CompileAssemblyFromDomBatch): add the assemblies referenced by the
CodeCompileUnits to the options.
svn path=/trunk/mcs/; revision=14088
2003-04-28 Miguel de Icaza <[email protected]>
* ecore.cs: (FieldExpr): Handle field remapping here.
* iteratators.cs: Pass the instance variable (if the method is an
instance method) to the constructors, so we can access the field
variables on the class.
TODO: Test this with structs. I think the THIS variable on
structs might have to be a pointer, and not a refenrece
svn path=/trunk/mcs/; revision=14081
* XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
* XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
MoveTo*Attribute(),
Fixed this[] to work correctly against XmlDeclarations.
Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
(which may prevent validations etc.)
* XmlReader.cs,
XmlNodeReader.cs,
XmlTextReader.cs : Fixed ReadString() to be compliant with each
other.
* XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
svn path=/trunk/mcs/; revision=14069
* mini.c: moved most of the code required to do inlining to its own
function so it can be reused. Inline also ctors if appropriate.
svn path=/trunk/mono/; revision=14068
2003-04-27 Miguel de Icaza <[email protected]>
* codegen.cs (EmitContext.Mapvariable): Adds a mechanism to map
local variables to fields in a proxy class.
* iterators.cs (PopulateProxy): Rename our internal fields to
<XXX>.
Create a <THIS> field if we are an instance method, so we can
reference our parent container variables.
(MapVariable): Called back from the EmitContext code to enter a
new variable to field mapping into the proxy class (we just create
a FieldBuilder).
* expression.cs
(LocalVariableReference.{Emit,EmitAssign,AddressOf}): Add support
for using the remapped locals to fields.
I placed the code here, because that gives the same semantics to
local variables, and only changes the Emit code.
* statement.cs (Fixed.Resolve): it is not allowed to have fixed
statements inside iterators.
(VariableInfo): Add a FieldBuilder for the cases when we are
remapping local variables to fields in a proxy class
* ecore.cs (SimpleNameResolve): Avoid testing two times for
current_block != null.
* statement.cs (Swithc.SimpleSwitchEmit): Removed code that did
not cope with strings, as it has been moved to the
TableSwitchEmit. Fixed bug in switch generation.
svn path=/trunk/mcs/; revision=14063
* Makefile.am: added missing man pages.
* mini.1: moved to mono.1
* mono.1: moved to oldmono.1
* oldmono.1: new file.
svn path=/trunk/mono/; revision=14059
* debug-mini.c (mono_debug_init_method): Added
`guint32 breakpoint_id' argument; if the method has a breakpoint,
send a notification to the debugger.
* mini.c (mono_method_to_ir): Don't insert a breakpoint if we're
running in the Mono Debugger, just pass the breakpoint number to
mono_debug_init_method().
* tramp-x86.c, tramp-ppc.c: Removed the breakpoint trampolines.
svn path=/trunk/mono/; revision=14054
* mono-debug-debugger.h (MonoDebuggerEvent): Renamed
MONO_DEBUGGER_EVENT_BREAKPOINT_TRAMPOLINE to
MONO_DEBUGGER_EVENT_BREAKPOINT.
(mono_breakpoint_trampoline_code): Removed.
(mono_debugger_event_handler): The last argument is now a
`guint32'.
(mono_debugger_insert_breakpoint_full): Removed the
`use_trampoline' argument.
(mono_debugger_method_has_breakpoint): Likewise.
(mono_debugger_trampoline_breakpoint_callback): Renamed to
mono_debugger_breakpoint_callback(); take the method and
breakpoint number as arguments.
svn path=/trunk/mono/; revision=14052
* expression.cs (MemberAccess.DoResolve): When we get a type back,
check the permissions for it. Note than in a type-resolution
context the check was already present in DeclSpace.ResolveType,
but was missing from the MemberAccess.
svn path=/trunk/mcs/; revision=14048
* expression.cs (ArrayCreation.CheckIndices): warn if the user has
more nested levels of expressions, but there are no more
dimensions specified. Avoids crash on bug 41906.
svn path=/trunk/mcs/; revision=14047
* Npgsql/NpgsqlDataReader.cs: Now GetDateTime works for "dd/MM/yyyy"
date formats. I think that it's needed support to auto-detect
DateTime format through PgSql server configuration.
svn path=/trunk/mcs/; revision=14032
* XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
content EntityReference correctly.
* XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
HasAttributes, indexers, MoveTo*Attribute() and Read() ).
Modified Skip() to call Read () explicitly.
* XmlTextReader.cs :
Fixed ReadInnerXml() which ignored EndElement token in certain cases.
Implemented MoveToAttribute (local, ns), and modified GetAttribute()
in relation to this change.
Attributes for XmlDeclaration are now correctly set.
* XmlTextWriter.cs : WriteRaw() is now different from WriteString().
Simplified WriteAttributes() for XmlDeclaration.
svn path=/trunk/mcs/; revision=14030
* ColorConverter.cs:
(ConvertFrom): return a system or named color if there's one that fits
teh values parsed with Color.FromArgb.
svn path=/trunk/mcs/; revision=14027
* mini-x86.c, Makefile.am: make distcheck works (partially from
a patch by Richard Lee <[email protected]>).
* regset.c, regset.h: removed, they are unused.
svn path=/trunk/mono/; revision=14024
* statement.cs (Block): replace Implicit bool, for a generic
flags.
New flag: `Unchecked'. This is used during the EmitMeta phase
(which is out-of-line with the regular Resolve/Emit process for a
statement, as this is done ahead of time, but still gets a chance
to call constant resolve).
(Block.Flags): new enum for adding a new flag.
(Block.EmitMeta): track the state of unchecked.
(Unchecked): Set the "UnChecked" flags on any blocks we enclose,
to enable constant resolution to work there as well.
svn path=/trunk/mcs/; revision=14020
* TypeTranslator.cs : patch by Erik LeBel. Array consideration.
* XmlReflectionImporter.cs : patch by Erik LeBel.
Now uses XmlRootAttribute to determine element name.
svn path=/trunk/mcs/; revision=13994
* XmlDocument.cs : fixed Load() to set baseURI correctly.
* XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
* XmlTextReader.cs :
fixed Depth. When it's on StartElement, Depth was already incremented.
fixed private SaveProperty(), which moved away its saved properties
when MoveToElement was called repeatedly.
* XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
* XmlWriter.cs :
WriteAttributes() refactory (for XMLDecl).
WriteNode() don't Read() when the reader is Initial state, let other
invokation to Read(). In case of Element, it should write entire
element. In case of Attribute, it shouldn't Read().
WriteStartDocument() should omit standalone decl. when there is no
explicit value.
svn path=/trunk/mcs/; revision=13993
remapping of parameters and local variables to proxy values. I have a
kludge, but will soon have the right thing.
Also a few bugs fixes that I did while implementing iterators.
To use iterators, you need to pass -v2 to the compiler
2003-04-22 Miguel de Icaza <[email protected]>
* typemanager.cs (ienumerable_type): Also look up
System.Collections.IEnumerable.
2003-04-21 Miguel de Icaza <[email protected]>
TODO: Test more than one conditional per method.
* class.cs (Indexer.Define): Report the location where the user is
referencing the unsupported feature.
(MethodData): Overload the use of `conditionals' to
minimize the creation of needless ArrayLists. This saves roughly
212kb on my machine.
(Method): Implement the new IIteratorContainer interface.
(Method.SetYields): Implement the method by setting the ModFlags
to contain METHOD_YIELDS.
* expression.cs (Unary.ResolveOperator): Use expr_type, not Expr,
which just got set to null.
* iterators.cs: New file.
(Yield, YieldBreak): New statements.
* statement.cs (Return.Resolve): Flag an error if we are used in
an iterator method.
* codegen.cs (InIterator): New flag set if the code is being
compiled in an iterator method.
* modifiers.cs: New flag METHOD_YIELDS. This modifier is an
internal modifier, and we just use it to avoid adding extra
fields, as this is seldom used.
* cs-parser.jay: Add yield_statement (yield and yield break).
* driver.cs: New flag -v2 to turn on version 2 features.
* cs-tokenizer.cs (Tokenizer): Add yield and __yield to the
hashtable when v2 is enabled.
svn path=/trunk/mcs/; revision=13991
* SqlEditorSharp.cs: Change: Glib -> GLib.
* sqlsharpgtk.cs: Correct method calls because they
changed in GTK#.
* makefile.gnu: Reference gdk-sharp in assembly list.
* FileSelectionDialog.cs: Update method calls (GTK#).
* DataGrid.cs: Fix a type of a variable.
svn path=/trunk/mcs/; revision=13990
* Microsoft.CSharp/CSharpCodeGenerator.cs:
(QuoteSnippetString): add a few common escape sequences.
* System.CodeDom.Compiler/CodeGenerator.cs:
(GenerateCodePrimitive): special case strings and chars (bool was
already a special case). Throw an exception if the type is not a
primitive type.
svn path=/trunk/mcs/; revision=13987
* WebClient.cs (DownloadData): Instead of using a MemoryStream,
keep track of all the small chunks in an ArrayList. The
MemoryStream had the property of reallocating itself, and the
problem was that MemoryStream.GetBuffer would return the buffer
(correctly), but not something of the right size. So clients of
DownloadData would get the extra unused bytes as part of the
result.
The solution would have been to make another copy at this point,
instead, we only keep the small allocations around in the
ArrayList, and we only do one large allocation at the end.
* HttpWebResponse.cs: If there is a Content-Length header, pass
this information to our HttpWebResponseStream, so it knows when to
stop, instead of waiting for the stream to be shut down by the
other end.
* HttpWebRequest.cs: Only set the `delay-header-writing' mode on
the underlying stream if the method will do a content transfer and
no Content-Length was provided. If not (HEAD and GET or
Content-Length provided), keep going.
svn path=/trunk/mcs/; revision=13986
* BufferedStream.cs: Test if it's possible to seek in a Stream
before access to Position. This prevents the exception thrown when
the stream is System.Net.Sockets.NetworkStream.
svn path=/trunk/mcs/; revision=13978
* mono-debug-debugger.c: Moved all code which interacts with the
Mono Debugger here.
* debug-mono-symfile.c: This code now just deals with the symbol
file itself, the debugger code is now in mono-debug-debugger.c.
svn path=/trunk/mono/; revision=13962
* Microsoft.CSharp/CSharpCodeGenerator.cs: implemented
GenerateSnippetMember and some little fixes.
* System.CodeDom/CodeMemberProperty.cs: fixed HasGet and HasSet to
actually generate code for the property.
* System.CodeDom.Compiler/CodeGenerator.cs: more fixes and sorted the
output.
* System.CodeDom.Compiler/IndentedTextWriter.cs: don't output tabs in
WriteLine ().
svn path=/trunk/mcs/; revision=13960
* X509Certificate.cs: Fixed issues for null certificate
(special case where object exists without any certificate)
which made PublisherTest fails.
svn path=/trunk/mcs/; revision=13957
* HttpWebRequest.cs: .NET Allows the HttpWebRequest to not have
the ContentLength specified on the request. If that happens, we
have to accumulate all the data written, and once we accumulate
the data, we send it off.
Notice that the documentation in .NET is actually incorrect, they
state that setting ContentLength is mandatory. It is not.
svn path=/trunk/mcs/; revision=13956
* X509Certificate.cs: Fixed GetHashCode for null certificate
(special case where object exists without any certificate)
which made PublisherTest fails.
svn path=/trunk/mcs/; revision=13954
* mono-debug.c (mono_debug_source_location_from_il_offset):
New method; like mono_debug_source_location_from_address(), but
takes an IL offset instead of a machine address.
svn path=/trunk/mono/; revision=13941
* debug-mono-symfile.h (MonoDebugLineNumberEntry): Removed the
`line' field; this is now computed by the debugger.
svn path=/trunk/mono/; revision=13935
* debug.[ch]: Removed. The code is now in
../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
* debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
last six months.
svn path=/trunk/mono/; revision=13929
* mono.c: The `--debug' command line argument doesn't take any
arguments anymore, removed the `--debug-args' argument.
svn path=/trunk/mono/; revision=13928
* debug-jit.c (mono_debug_add_method): Renamed this to
mono_debug_jit_add_method(); create the JIT-specific data
structure and pass it to mono_debug_add_method().
svn path=/trunk/mono/; revision=13924
* debug.[ch]: Removed. The code is now in
../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
* debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
last six months.
svn path=/trunk/mono/; revision=13923
* mono-debug.[ch]: New files. This is the new debugging interface.
* mono-debug-debugger.[ch]: New files. Moved all code which
interacts with the Mono Debugger here.
svn path=/trunk/mono/; revision=13922
* Button.cs : changes in DialogResult and OnClick
* Control.cs : new internal getOwnerWindow method, recreate child windows in RecreateHandle as well
* form.cs : implementation of modal forms
* win32enums.cs : constants for GetWindow function
* win32functions.cs : GetWindow , IsDialogMessage added
svn path=/trunk/mcs/; revision=13920
* XmlReader.cs: reverted last patch. It breaks System.Configuration
because 1. it considers XmlDeclaration as content and 2. always
returns XmlNodeType.None.
svn path=/trunk/mcs/; revision=13919
* corlib_test.build: Excluded Mono.Math unit tests (as the class
isn't available under MS implementation).
* corlib_linux_test.args: Added all Mono.Math unit test files.
* corlib_test.args: Added all Mono.Math unit test files.
svn path=/trunk/mcs/; revision=13916
* ArithmeticBigTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* BigIntegerSetTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* BitwiseTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* GcdBigTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* ModInverseBigTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* ModRingTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* PrimeGenerationTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* PrimeTestingTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* SearchGeneratorTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
svn path=/trunk/mcs/; revision=13914
* DSACryptoServiceProvider.cs: Changed key generation to use the
new BigInteger class (commited for Ben Maurer).
* RSACryptoServiceProvider.cs: Changed key generation to use the
new BigInteger class (commited for Ben Maurer).
svn path=/trunk/mcs/; revision=13913
* BigInteger.cs: New, much faster, version by Ben Maurer.
Warning: this version requires "unsafe" compilation switch
(which isn't a problem in corlib but may be elsewhere)
svn path=/trunk/mcs/; revision=13912
* NextPrimeFinder.cs: New. Prime Generator.
Support class for BigInteger (commited for Ben Maurer).
* PrimeGeneratorBase.cs: New. Abstract Prime Generator.
Support class for BigInteger (commited for Ben Maurer).
* SequentialSearchPrimeGeneratorBase.cs: New. Prime Generator.
Support class for BigInteger (commited for Ben Maurer).
svn path=/trunk/mcs/; revision=13911
* ConfidenceFactor.cs: New. Enum for prime quality.
Support for BigInteger (commited for Ben Maurer).
* PrimalityTests.cs: New. Tests for primality.
Support for BigInteger (commited for Ben Maurer).
svn path=/trunk/mcs/; revision=13910
* Directory.cs: clean up --> performance improvment. Some exceptions
are now checked in File.cs.
* File.cs: Implemented Get/SetXXXTimeUtc () methods. Some bugfixes.
svn path=/trunk/mcs/; revision=13903
* NumberFormatInfo.cs: Method CurrentInfo now returns the "real"
CurrentInfo (Thread.CurrentThread.CurrentCulture.NumberFormat).
2003-04-22 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Little fixes for get the same results
as MS.NET and show a message when something goes wrong with the
parser of Custom Formats.
svn path=/trunk/mcs/; revision=13902
* Form.cs : small changes regarding resizing of MDI client window
* StatusBar.cs : update parts on Layout event, new style to prevent resizing be the system
svn path=/trunk/mcs/; revision=13888
* icall.c
(ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
Make this work with relative pathnames; g_filename_to_uri() needs
an absolute filename.
svn path=/trunk/mono/; revision=13867
* debug.c (mono_debug_open): Splitted into mono_debug_init() and
mono_debug_init_2().
(mono_debug_open_image): Don't open referenced assemblies; this is
done automatically by the code in assembly.c.
* mono.c (main_thread_handler): Call mono_debug_init() before
opening the assembly because we need to install the assembly load
hook before doing so.
svn path=/trunk/mono/; revision=13864
* typemanager.cs (TypeManager.NamespaceClash): Use to check if
there is already a namespace defined with this name.
(TypeManager.InitCoreTypes): Remove the temporary workaround, as
people upgraded their corlibs.
(TypeManager.CoreLookupType): Use LookupTypeDirect, as we
always use fully qualified types, no need to use the compiler
front end.
(TypeManager.IsNamespace): Use binarysearch.
* class.cs (AddClass, AddStruct, AddInterface, AddEvent,
AddDelegate): I did not quite use the new IsValid API properly: I
have to pass the short-name and the fullname. I was passing only
the basename instead of the fullname sometimes.
(TypeContainer.DefineType): call NamespaceClash.
* interface.cs (Interface.DefineType): use NamespaceClash before
defining the type.
* delegate.cs (Delegate.DefineType): use NamespaceClash before
defining the type.
* enum.cs: (Enum.DefineType): use NamespaceClash before
defining the type.
svn path=/trunk/mcs/; revision=13839
* ILGenerator.cs (EmitCall): Implement.
Flag a few unimplemented methods with MonoTODO, make coding style
for method definitions Mono consistent.
svn path=/trunk/mcs/; revision=13832
* StringReader.cs (Read): Increment nextChar by charsToRead
instead of count, that will guarantee that the next time the
method is called, it will return 0 on an empty string rather than
throwing an exception
svn path=/trunk/mcs/; revision=13830
* ControlBuilder.cs: line and fileName are protected now.
* CodeBuilder.cs: base class for the next 2 files.
* CodeRenderBuilder.cs: builder for code render.
* DataBindingBuilder.cs: builder for data binding.
svn path=/trunk/mcs/; revision=13824
* FieldDef.cs: Add method to set a fields value
* TypeDef.cs: Add method to add data
* DataDef.cs: New file - Definition of a data constant
svn path=/trunk/mcs/; revision=13818
* typemanager.cs (: 3-line patch that gives us some tasty 11%
speed increase. First, use the negative_hits cache when we get a
negative. Second, add the type with its full original name
instead of the new . and + encoded name (reflection uses + to
separate type from a nested type). Use LookupTypeReflection
directly which bypasses the type->name hashtable (that we already
know does not contain the type.
* decl.cs (DeclSpace.ResolveTypeExpr): track the
location/container type.
* driver.cs: When passing utf8, use directly the UTF8Encoding.
svn path=/trunk/mcs/; revision=13817
* delegate.cs (NewDelegate.Resolve): Test whether an instance
method is being referenced in the method group from a static
context, and report error 120 if so.
svn path=/trunk/mcs/; revision=13808
Before, if there was a one-line block (such as in if (x) do_something;) and a non-one-line block after, the statement of the second block would be removed, and its bracket put on the first statement.
svn path=/trunk/mcs/; revision=13807
* BufferedStream.cs: Some fixes, mostly throwing exceptions.
* MemoryStream.cs: Changed the order of exception checking
* StringReader.cs: little clean up
svn path=/trunk/mcs/; revision=13798
* typemanager.cs (GetReferenceType, GetPointerType): In .NET each
invocation to ModuleBuilder.GetType with the same values will
return a new type instance, so we need to cache its return
values.
svn path=/trunk/mcs/; revision=13796
* ecore.cs (Expression.ImplicitReferenceConversion): handle target
types of ValueType on their own case. Before we were giving them
the same treatment as objects.
svn path=/trunk/mcs/; revision=13791
* decl.cs (DeclSpace.IsValid): IsValid takes the short name and
fullname. Short name is used to compare against container name.
Fullname is used to check against defined namespace names.
* class.cs (AddProperty, AddField, AddClass, AddStruct, AddEnum,
AddDelegate, AddEvent): Pass new parameter to DeclSpace.IsValid
svn path=/trunk/mcs/; revision=13789
2003-04-18 Miguel de Icaza <[email protected]>
* report.cs: Negative error codes are now mapped to 8000 - code,
so that the display is render more nicely.
* typemanager.cs: Do not use try/catch, instead report a regular
error.
(GetPointerType, GetReferenceType): These methods provide
mechanisms to obtain the T* and T& from a T. We had the code
previously scattered around the code base, and it also used
TypeManager.LookupType that would go through plenty of caches.
This one goes directly to the type source.
In some places we did the Type.GetType followed by
ModuleBuilder.GetType, but not in others, so this unifies the
processing as well.
* namespace.cs (VerifyUsing): Perform a non-lazy approach to using
statements now that we have namespace information.
* typemanager.cs (IsNamespace): New method, returns whether the
string presented is a namespace or not.
(ComputeNamespaces): New public entry point, computes the list of
available namespaces, using the GetNamespaces API call in Mono, or
the slower version in MS.NET.
Now before we start the semantic analysis phase, we have a
complete list of namespaces including everything that the user has
provided.
Deleted old code to cache namespaces in .nsc files.
svn path=/trunk/mcs/; revision=13777
* Object.cs ValueType.cs: Make the Object::GetHashCode() and
ValueType::Equals() icalls static non-virtual, so they can be called
by the code in RuntimeHelpers.
svn path=/trunk/mcs/; revision=13769
* Array.cs: Deleted the exception in Array.Initialize(), it looks
like the method do nothing for C#, is still a MonoTODO until
we find a compiler that uses that.
svn path=/trunk/mcs/; revision=13764
* ParamDef.cs: New file - definition of a parameter to a method
* TypeDef.cs: Add method definitions, set intransit flag to false
before defining members, so a false circular reference is not
created.
* CodeGen.cs: Add methods to add method definitions
svn path=/trunk/mcs/; revision=13760
* TypeManager.cs: Rewrite - Just a simple table for looking up
typedefs
* ExternTable.cs: Create ClassRef's instead of Classes
* Location.cs: Make compile
* CodeGen.cs: Use new tree system
svn path=/trunk/mcs/; revision=13754
an external assembly
* FieldDef.cs: New file - Represents a field definition
* IClassRef.cs: New file - Interface that classrefs must
implement. This needs some more thought though because once a
classref has been modified it is no longer a classref.
* ITypeRef.cs: New file - Interface that references to types must
implement
* TypeDef.cs: New file - Represents the a class definition, and
will hold all of the classes members.
svn path=/trunk/mcs/; revision=13752
* class.cs: (TypeContainer.DefineDefaultConstructor): Use the
class/struct location definition Location for the implicit
constructor location.
(Operator.Define): Use the location of the operator for the
implicit Method definition.
(Constructor.Emit): use the constructor location for the implicit
base initializer constructor.
svn path=/trunk/mcs/; revision=13744
* ecore.cs: Remove ITypeExpression. This interface is now gone,
and the Expression class now contains two new methods:
ResolveAsTypeStep and ResolveAsTypeTerminal. This is used to
isolate type lookup from the rest of the resolution process.
Since we use Expressions to hold type definitions due to the way
we parse the input we have historically overloaded Resolve to
perform the Type lookups if a special flag is passed. Now this is
eliminated and two methods take their place.
The differences in the two methods between xStep and xTerminal is
that xStep is involved in our current lookup system that uses
SimpleNames to compose a name, while xTerminal is used just to
catch the case where the simplename lookup failed.
svn path=/trunk/mcs/; revision=13739
* ComboBox.cs
* ColorDialog.cs
* Improved functionality in RadioBox.cs
* Fix some things that were broken with the update to gtk-sharp-0.8
svn path=/trunk/mcs/; revision=13738
* Timer.cs: Change the position of two lines because they were
before the "if" that ensures the integrity. After this, the first of
that two lines was producing a NullReferenceException.
svn path=/trunk/mcs/; revision=13737
* jit/jit.c:
(mono_jit_cleanup): moved mono_runtime_cleanup call after the call to
mono_domain_finalize.
* mini/mini.c:
(mini_cleanup): moved mono_runtime_cleanup call after the call to
mono_domain_finalize.
(mini_method_compile): use mono_method_profile* if the the option is
enabled.
* metadata/gc.c:
(internal_domain_finalize): moved into mono_domain_finalize. No need
to create another thread because the finalizers will be run in the
finalizer thread.
(ves_icall_System_GC_WaitForPendingFinalizers): implemented.
(finalizer_notify): if shutting down, wait 2 seconds for the finalizers
to be run (MS does this too).
svn path=/trunk/mono/; revision=13733
* ImageListStreamer.cs : started to implement
* Control.cs : changes in implementation of size-related functions
* Form.cs : small modifications to reflect changes in Contol class
svn path=/trunk/mcs/; revision=13713
* interface.cs (PopulateMethod): Do not lookup the types twice.
We were doing it once during SemanticAnalysis and once during
PopulateMethod.
svn path=/trunk/mcs/; revision=13700
* cs-parser.jay: Due to our hack in the grammar, things like A.B[]
in local variable type definitions, were being returned as a
SimpleName (we decomposed everything into a string), that is
because primary_expression was being used instead of a type in the
grammar (reduce/reduce conflicts).
The part that was wrong is that we converted the expression into a
string (an oversimplification in one hand, compounded with primary
expressions doing string concatenation).
So things like:
A.B.C [] x;
Would return "A.B.C[]" as a SimpleName. This stopped things like
using clauses from working on this particular context. And a type
was being matched directly against "A.B.C[]".
We now use the correct approach, and allow for ComposedCast to be
part of the unary expression. So the "A.B.C []" become a composed
cast of "A.B.C" (as a nested group of MemberAccess with a
SimpleName at the end) plus the rank composition "[]".
Also fixes 35567
svn path=/trunk/mcs/; revision=13695
* mini.c (mono_compile_create_var): use g_malloc/g_realloc instead
of the mempool. This is slightly faster and uses less memory
svn path=/trunk/mono/; revision=13687
* TypeBuilder.cs (DefineDefaultConstructor): Make it generate code
by default for a default constructor. This is what the MS runtime
does. The PythonNet code expected this.
(TypeBuilder.GetConstructorImpl): Implement this.
(TypeBuilder.CreateType): If there are no constructors defined, we
create one.
svn path=/trunk/mcs/; revision=13674
* metadata.c (mono_type_to_unmanaged): dont access
type->data.klass for MONO_TYPE_OBJECT
(mono_type_to_unmanaged): consider System.Delegate class
svn path=/trunk/mono/; revision=13655
* write-source.cs: A new program to write out C# source from the
XML files.
* src/MonoCulture.cs: A skeleton class for the other
culture-specific classes.
svn path=/trunk/mcs/; revision=13635
* CaseInsensitiveComparer.cs: Fixed Compare Method (now works
like MS.NET) and implemented the
CaseInsensitiveComparerTest(culture) constructor.
svn path=/trunk/mcs/; revision=13634
* CaseInsensitiveComparerTest.cs: Fixed Compare Method (now works
like MS.NET) and implemented the
CaseInsensitiveComparerTest(culture) constructor.
svn path=/trunk/mcs/; revision=13633
* list: added CollectionBuilder and TemplateBuilder.
* System.Web.UI/CollectionBuilder.cs:
* System.Web.UI/TemplateBuilder.cs: new classes derived from
ControlBuilder that represent a property or a ITemplate.
* System.Web.UI/ControlBuilder.cs: implemented all the missing bits.
* System.Web.UI/TemplateParser.cs: added mapping from tag name to
Type feature.
svn path=/trunk/mcs/; revision=13632
* SqlSharpDataAdapter.cs: added new file
as a special data adapter for SQL#
* SqlEditorSharp.cs: allow the use of
syntax highlighting of SQL keywords or not
via a property and default to false
* makefile.gnu
* win32.make: add SqlSharpDataAdapter.cs to
the build
* sqlsharpgtk.cs: handle a key pressed event
when the user presses F5 to execute the SQL
in the editor's buffer. Also, add an Edit menu, but
its menu options currently are placeholders
svn path=/trunk/mcs/; revision=13589
* BinaryStreamReader.cs: Added lots of tests. Somehow I missed that
there are already testcases for BinaryStreamReader :/
svn path=/trunk/mcs/; revision=13575
* get.c (dis_stringify_modifiers): Print a space between custom modifers.
* get.c (get_custom_mod): Handle multiple custom modifiers aka bug #30812.
* main.c: Print klass name at the end of each method to make it easier
to find a given method.
svn path=/trunk/mono/; revision=13556
* XmlTextReaderTests.cs: quick fix to comment out TestExternalDocument.
* XmlDocumentTests.cs : quick fix to comment out LoadExternalUri and
LoadDocumentWithIgnoreSection.
svn path=/trunk/mcs/; revision=13555
* moved testcases into each namespace-named directories.
fixed System.XML_linux_test.args and MonoMicro.test.csproj
along with it.
* added XmlFiles directory for test xml files.
svn path=/trunk/mcs/; revision=13554
* added this file as a new entry.
See ../ChangeLog to find former ChangeLog entries.
* added XmlSerializerTests.cs and XmlSerializerTestClasses.cs
(by Erik Lebel)
svn path=/trunk/mcs/; revision=13550
* Data/CultureInfo.xsd: XML schema for the XML files.
* Data/*.xml: Modify the DisplayName element to allow for more
flexible translation.
svn path=/trunk/mcs/; revision=13543
* X509CertificateTest.cs: Commented ToString() test because of the
dates included within (which makes the comparison with a pre-
generated value difficult).
svn path=/trunk/mcs/; revision=13537
* Makefile.am: re-added -m option when running cygpath. This way,
MONO_ASSEMBLIES and MONO_CFG_DIR will contain '/' as directory
separator.
* mono-config.c: same codepath for locating mono config file for WIN32
and the rest.
* assembly.c: if mono_assembly_setrootdir is called, don't override
the value set.
svn path=/trunk/mono/; revision=13530
* Control.cs : init bounds in ctor, invisible parking window
* TrackBar.cs
* ProgressBar.cs.cs
* DateTimePicker.cs
* StatusBar.cs : use base version of CreateParams
* ScrollableControl.cs : use base version of CreateParams, removed CS_VREDRAW, CS_HREDRAW styles
* Form.cs : reset parent back to zero for the main form
* StatusBarPanel.cs : small bug-fix
svn path=/trunk/mcs/; revision=13509
ContributorComparer.
(RenderHtml): Add some SetAttribute loving to make it render prettier.
* doc/web/team.xml: Revert excessive indenting.
svn path=/trunk/mono/; revision=13494
* class.cs: Cosmetic changes. Renamed `TypeContainer parent' to
`TypeContainer container', because I kept getting confused when I
was debugging this code.
svn path=/trunk/mcs/; revision=13493
* expression.cs (Indexers): Instead of tracking getters/setters,
we now track them in parallel. We create one arraylist less, but
most importantly it is possible now for the LValue code to find a
matching get for a set.
(IndexerAccess.DoResolveLValue): Update the code.
GetIndexersForType has been modified already to extract all the
indexers from a type. The code assumed it did not.
Also make the code set the correct return type for the indexer.
This was fixed a long time ago for properties, but was missing for
indexers. It used to be void_type.
svn path=/trunk/mcs/; revision=13490
* expression.cs (Binary.Emit): Test first for doubles instead of
floats, as they are more common.
(Binary.EmitBranchable): Use the .un version of the branch opcodes
when dealing with floats and the <=, >= operators. This fixes bug
#39314
svn path=/trunk/mcs/; revision=13488
* statement.cs (Foreach.EmitArrayForeach): bug fix: The code used
to load the array value by emitting a load on the foreach variable
type. This was incorrect.
We now emit the code to load an element using the the array
variable type, and then we emit the conversion operator.
Fixed#40176
svn path=/trunk/mcs/; revision=13487
* class.cs (MethodSignature.InheritableMemberSignatureCompare):
test for protection before we test for signatures.
(MethodSignature.ToString): implement.
svn path=/trunk/mcs/; revision=13482
* ClientContextTerminatorSink.cs: Improved support for Async and OneWay messages.
* MonoMethodMessage.cs: Added member needed to support Async messages.
* ServerObjectTerminatorSink.cs: Improved support for Async and OneWay messages.
svn path=/trunk/mcs/; revision=13479
* ChannelServices.cs: renamed ChannelInfoStore an its members to match MS.NET.
* CrossAppDomainChannel.cs: Renamed CrossAppDomainChannelData to match MS.NET.
Added processId property to CrossAppDomainData. Now it is checked in CreateSink.
svn path=/trunk/mcs/; revision=13477
* mini.c (mono_type_blittable): MONO_TYPE_OBJECT is blittable.
* driver.c: Added --print-vtable option as in the old JIT.
svn path=/trunk/mono/; revision=13473
* expression.cs (Unary.TryReduceNegative): Add missing minus sign
to the case where we reduced into a LongConstant.
svn path=/trunk/mcs/; revision=13456
* decl.cs (CheckAccessLevel): If the type is an array, we can not
depend on whether the information is acurrate, because the
Microsoft runtime will always claim that the array type is public,
regardless of the real state.
If the type is a pointer, another problem happens: the type is
reported as non-public in Microsoft.
In both cases we have to call CheckAccessLevel recursively with
the underlying type as the argument to be tested.
svn path=/trunk/mcs/; revision=13455
* assign.cs (Assign.Emit): If we are dealing with a compound
assignment expression, we should use the code path that stores the
intermediate result in a temporary value. This fixes#40903.
*expression.cs (Indirection.ToString): Provide ToString method for
debugging.
svn path=/trunk/mcs/; revision=13454
* Thread.cs: Make sure a reference to the ThreadStart delegate is
held. There's no telling how long it will be before
Thread.Start() is called, and GC might destroy the delegate.
Thread() and Start() need to be rewritten so that the runtime
creates the new thread when Start() is called, which will simplify
the code a great deal.
svn path=/trunk/mcs/; revision=13442
* appdomain.h, domain.c: added mono_domain_foreach() to
be able to access the currently loaded appdomains.
* object.c: make string interning work across sppdomains.
Mark some functions for use as icalls.
svn path=/trunk/mono/; revision=13440
* class.c reflection.c: Fix memory leaks reported by ccmalloc.
* reflection.h reflection.c: Allocate long living data using
GC_MALLOC_ATOMIC so the collector does not need to scan it.
* reflection.c: Double the allocation size in streams instead of
increasing it, to prevent unneccesary copying on large assemblies.
* reflection.c (mono_reflection_create_runtime_class): Avoid vtable
creation if the assembly does not have the Run flag set.
svn path=/trunk/mono/; revision=13438
* class.cs: Null out fields holding references to Block objects so
they can be garbage collected.
* expression.cs (OverloadResolve): Remove unused local.
svn path=/trunk/mcs/; revision=13432
* ecore.cs (Expression.ResolveBoolean): Don't call ec.Mark().
* codegen.cs (EmitContext.EmitTopBlock): Don't call Mark() on the
location. [FIXME: The location argument which gets passed to this
method is sometimes wrong!]
svn path=/trunk/mcs/; revision=13431
* expression.cs (Indirection.EmitAssign): We were using the
temporary, but returning immediately instead of continuing the
EmitAssing flow.
svn path=/trunk/mcs/; revision=13430
* expression.cs (Indirection.EmitAssign): We were using the
temporary, but returning immediately instead of continuing the
EmitAssing flow.
svn path=/trunk/mcs/; revision=13429
* ecore.cs (SimpleName.SimpleNameResolve): Don't report an error
if it's a nested child, but also deriving from the outer class.
See test 190.cs.
svn path=/trunk/mcs/; revision=13428
* typemanager.cs (IsNestedChildOf): Make this work if it's a
nested child, but also deriving from the outer class. See
test-190.cs.
(FilterWithClosure): We may access private members of the outer
class if we're a nested child and deriving from the outer class.
(RealMemberLookup): Only set `closure_private_ok' if the
`original_bf' contained BindingFlags.NonPublic.
svn path=/trunk/mcs/; revision=13427
* codegen.cs (EmitContext.CurrentFile): New public field.
(EmitContext.Mark): Use the CurrentFile to check whether the
location is in the correct file.
(EmitContext.EmitTopBlock): Initialize CurrentFile here.
svn path=/trunk/mcs/; revision=13426
* class.cs (Event.Define): Do not allow abstract events to have
initializers.
2003-04-01 Miguel de Icaza <[email protected]>
* cs-parser.jay: Add error productions for ADD/REMOVE missing a
block in event declarations.
svn path=/trunk/mcs/; revision=13423
* expression.cs (Is.Emit): For action `LeaveOnStack' we were
leaving a class on the stack instead of a boolean value (int
0/1). Change the code so we compare against null, and then the
svn path=/trunk/mcs/; revision=13422
* class.cs (TypeContainer.GetClassBases): We were checking for the
parent class being sealed too late.
* expression.cs (Binary.Emit): For <= and >= when dealing with
floating point values, use cgt.un and clt.un instead of cgt and
clt alone.
svn path=/trunk/mcs/; revision=13421
* statement.cs: Apply the same optimization as MS: skip the
GetEnumerator returning an IEnumerator, and use the one returning a
CharEnumerator instead. This allows us to avoid the try-finally block
and the boxing.
svn path=/trunk/mcs/; revision=13420
* class.cs (TypeContainer.CheckPairedOperators): Report error for missmatch on
operator true/false as required by the spec.
svn path=/trunk/mcs/; revision=13415
* expression.cs (Unary.ResolveOperator): In LogicalNot, do an
implicit conversion to boolean.
* statement.cs (Statement.ResolveBoolean): A boolean expression is
also one where the type implements `operator true'.
* ecore.cs (Expression.GetOperatorTrue): New helper routine to
get an expression that will invoke operator true based on an
expression.
(GetConversionOperators): Removed the hack that called op_True
here.
(Expression.ResolveBoolean): Move this from Statement.
svn path=/trunk/mcs/; revision=13414
* expression.cs (Indexers): Do not construct immediately, allow
for new members to be appended as we go. Fixes 38143
svn path=/trunk/mcs/; revision=13411
* ecore.cs (Expression.MemberLookup): Don't create a
MethodGroupExpr for something which is not a method. Fixes#38291.
svn path=/trunk/mcs/; revision=13404
* class.cs (MemberBase.CheckParameters): Also check that the type
is unmanaged if it is a pointer.
* expression.cs (SizeOf.Resolve): Add location information.
* statement.cs (Block.EmitMeta): Flag error (208) if a pointer to
a managed type is declared.
svn path=/trunk/mcs/; revision=13403
* class.cs: Very sad. Am backing out the speed up changes
introduced by the ArrayList -> Array in the TypeContainer, as they
were not actually that much faster, and introduced a bug (no error
reports on duplicated methods).
svn path=/trunk/mcs/; revision=13401
Although we are resolving for LValues, we will let the Assign code
take care of that (it will be called again from Resolve). This
basically allows code like this:
class X { X operator + (X x, object o) {} X this [int idx] { get; set; } }
class Y { void A (X x) { x [0] += o; }
The problem was that the indexer was trying to resolve for
set_Item (idx, object o) and never finding one. The real set_Item
was set_Item (idx, X). By delaying the process we get the right
semantics.
Fixes bug: 36505
svn path=/trunk/mcs/; revision=13400
* assign.cs (CompoundAssign.DoLResolve): Resolve the original
source first, this will guarantee that we have a valid expression
before calling in lower levels functions that will require a
resolved object. Then use this original_source in the
target.ResolveLValue instead of the original source that was
passed to us.
svn path=/trunk/mcs/; revision=13399
* statement.cs (Block.Emit): Override this and set ec.CurrentBlock
while calling DoEmit ().
* codegen.cs (EmitContext.Mark): Don't mark locations in other
source files; if you use the #line directive inside a method, the
compiler stops emitting line numbers for the debugger until it
reaches the end of the method or another #line directive which
restores the original file.
svn path=/trunk/mcs/; revision=13398
* statement.cs (Block.AddChildVariableNames): We need to call this
recursively, not just for our immediate children.
svn path=/trunk/mcs/; revision=13396
* class.cs (Event.Define): Always make the field private, like csc does.
* typemanager.cs (TypeManager.RealMemberLookup): Make events
actually work, fixes bug #37521.
svn path=/trunk/mcs/; revision=13395
* delegate.cs: When creating the various temporary "Parameters"
classes, make sure that we call the ComputeAndDefineParameterTypes
on those new parameters (just like we do with the formal ones), to
allow them to be resolved in the context of the DeclSpace.
This fixes the bug that Dick observed in Bugzilla #38530.
svn path=/trunk/mcs/; revision=13394
* expression.cs (ResolveMemberAccess): When resolving a constant,
do not attempt to pull a constant if the value was not able to
generate a valid constant.
* const.cs (LookupConstantValue): Do not report more errors than required.
svn path=/trunk/mcs/; revision=13393
* class.cs: Changed all the various members that can be part of a
class from being an ArrayList to be an Array of the right type.
During the DefineType type_list, interface_list, delegate_list and
enum_list are turned into types, interfaces, delegates and enums
arrays.
And during the member population, indexer_list, event_list,
constant_list, field_list, instance_constructor_list, method_list,
operator_list and property_list are turned into their real arrays.
Although we could probably perform this operation earlier, for
good error reporting we need to keep the lists and remove the
lists for longer than required.
This optimization was triggered by Paolo profiling the compiler
speed on the output of `gen-sample-program.pl' perl script.
* decl.cs (DeclSpace.ResolveType): Set the ContainerType, so we do
not crash in methods like MemberLookupFailed that use this field.
This problem arises when the compiler fails to resolve a type
during interface type definition for example.
svn path=/trunk/mcs/; revision=13391
* expression.cs (Indexers.GetIndexersForType): Interfaces do not
inherit from System.Object, so we have to stop at null, not only
when reaching System.Object.
svn path=/trunk/mcs/; revision=13390
* expression.cs: (Indexers.GetIndexersForType): Martin's fix used
DeclaredOnly because the parent indexer might have had a different
name, but did not loop until the top of the hierarchy was reached.
The problem this one fixes is 35492: when a class implemented an
indexer from an interface, we were getting the interface method
(which was abstract) and we were flagging an error (can not invoke
abstract method).
This also keeps bug 33089 functioning, and test-148 functioning.
svn path=/trunk/mcs/; revision=13389
* typemanager.cs (IsSpecialMethod): The correct way of figuring
out if a method is special is to see if it is declared in a
property or event, or whether it is one of the predefined operator
names. This should fix correctly #36804.
svn path=/trunk/mcs/; revision=13388
The goal here is to remove the dependency on EmptyCast.Peel ().
Killing it completely.
The problem is that currently in a number of places where
constants are expected, we have to "probe" for an EmptyCast, and
Peel, which is not the correct thing to do, as this will be
repetitive and will likely lead to errors.
The idea is to remove any EmptyCasts that are used in casts that
can be reduced to constants, so we only have to cope with
constants.
This bug hunt was triggered by Bug 37363 and the desire to remove
the duplicate pattern where we were "peeling" emptycasts to check
whether they were constants. Now constants will always be
constants.
* ecore.cs: Use an enumconstant here instead of wrapping with
EmptyCast.
* expression.cs (Cast.TryReduce): Ah, the tricky EnumConstant was
throwing me off. By handling this we can get rid of a few hacks.
* statement.cs (Switch): Removed Peel() code.
svn path=/trunk/mcs/; revision=13387
* expression.cs (New.DoResolve): Add a guard against double
resolution of an expression.
The New DoResolve might be called twice when initializing field
expressions (see EmitFieldInitializers, the call to
GetInitializerExpression will perform a resolve on the expression,
and later the assign will trigger another resolution
This leads to bugs (#37014)
svn path=/trunk/mcs/; revision=13385
* delegate.cs: The signature for EndInvoke should contain any ref
or out parameters as well. We were not doing this in the past.
svn path=/trunk/mcs/; revision=13384
* class.cs (Field.Define): Do not overwrite the type definition
inside the `volatile' group. Turns out that volatile enumerations
were changing the type here to perform a validity test, which
broke conversions.
svn path=/trunk/mcs/; revision=13383
* ecore.cs (FieldExpr.AddressOf): In the particular case of This
and structs, we do not want to load the instance variable
svn path=/trunk/mcs/; revision=13382
* namespace.cs (Namespace..ctor): Added SourceFile argument.
(Namespace.DefineNamespaces): New static public method; this is
called when we're compiling with debugging to add all namespaces
to the symbol file.
* tree.cs (Tree.RecordNamespace): Added SourceFile argument and
pass it to the Namespace's .ctor.
* symbolwriter.cs (SymbolWriter.OpenMethod): Added TypeContainer
and MethodBase arguments; pass the namespace ID to the symwriter;
pass the MethodBase instead of the token to the symwriter.
(SymbolWriter.DefineNamespace): New method to add a namespace to
the symbol file.
svn path=/trunk/mcs/; revision=13379
* symbolwriter.cs: New file. This is a wrapper around
ISymbolWriter with a cleaner API. We'll dynamically Invoke()
methods here in near future.
svn path=/trunk/mcs/; revision=13378
* codegen.cs (EmitContext.Mark): Just pass the arguments to
ILGenerator.MarkSequencePoint() which are actually used by the
symbol writer.
svn path=/trunk/mcs/; revision=13377
* location.cs (SourceFile): New public sealed class. This
contains the name and an index which is used in the location's token.
(Location): Reserve an appropriate number of bits in the token for
the source file instead of walking over that list, this gives us a
really huge performance improvement when compiling with debugging.
* driver.cs (Driver.parse, Driver.tokenize_file): Take a
`SourceFile' argument instead of a string.
(Driver.ProcessFile): Add all the files via Location.AddFile(),
but don't parse/tokenize here, we need to generate the list of all
source files before we do that.
(Driver.ProcessFiles): New static function. Parses/tokenizes all
the files.
* cs-parser.jay (CSharpParser): Take a `SourceFile' argument
instead of a string.
* cs-tokenizer.cs (Tokenizer): Take `SourceFile' argument instead
of a string.
svn path=/trunk/mcs/; revision=13376
* driver.cs: Removed the `--debug-args' command line argument.
* codegen.cs (CodeGen.SaveSymbols): Removed, this is now done
automatically by the AsssemblyBuilder.
(CodeGen.InitializeSymbolWriter): We don't need to call any
initialization function on the symbol writer anymore. This method
doesn't take any arguments.
svn path=/trunk/mcs/; revision=13370
* class.cs (Constructor.Emit): Open the symbol writer before
emitting the constructor initializer.
(ConstructorInitializer.Emit): Call ec.Mark() to allow
single-stepping through constructor initializers.
svn path=/trunk/mcs/; revision=13367
* class.cs (Operator): Set the SpecialName flags for operators.
* expression.cs (Invocation.DoResolve): Only block calls to
accessors and operators on SpecialName methods.
(Cast.TryReduce): Handle conversions from char constants.
svn path=/trunk/mcs/; revision=13363
* expression.cs (IndexerAccess.DoResolveLValue): Resolve the same
problem that the last fix but in the other sid (Set).
* expression.cs (IndexerAccess.DoResolve): Fix a problem with a null
svn path=/trunk/mcs/; revision=13361
* expression.cs (IndexerAccess.DoResolve): Before trying to resolve
any indexer, it's needed to build a list with all the indexers in the
hierarchy (AllGetters), else we have problems. Fixes#35653.
svn path=/trunk/mcs/; revision=13358
* class.cs (MethodData.Define): It is wrong for an interface
implementation to be static in both cases: explicit and implicit.
We were only handling this in one case.
Improve the if situation there to not have negations.
* class.cs (Field.Define): Turns out that we do not need to check
the unsafe bit on field definition, only on usage. Remove the test.
svn path=/trunk/mcs/; revision=13357
* cs-parser.jay: Small fix: we were not comparing the constructor
name correctly. Thanks to Zoltan for the initial pointer.
svn path=/trunk/mcs/; revision=13349
* cs-parser.jay: Only perform the constructor checks here if we
are named like the class; This will help provider a better
error. The constructor path is taken when a type definition is
not found, but most likely the user forgot to add the type, so
report that rather than the constructor error.
svn path=/trunk/mcs/; revision=13347
* ilasm/parser/ScannerAdapter.cs: Implement the new cleanup method
in the tokenizer. This fixes the build.
* skeleton.cs (cleanpup): Rename to cleanup to make it look more consistent.
* cs-tokenizer.cs (Cleanup): Rename to 'cleanup' to make it more
consistent with other methods.
svn path=/trunk/mcs/; revision=13344
* ecore.cs:
* expression.cs:
* typemanager.cs: fixes to allow mcs compile corlib with the new
Type.IsSubclassOf fix.
svn path=/trunk/mcs/; revision=13341
* expression.cs (LocalVariableReference.DoResolve): Classify a
constant as a value, not as a variable. Also, set the type for
the variable.
svn path=/trunk/mcs/; revision=13340
* cs-parser.jay (fixed_statement): take a type instead of a
pointer_type, so we can produce a better error message later.
* statement.cs (Fixed.Resolve): Flag types that are not pointers
as an error.
svn path=/trunk/mcs/; revision=13339
* statement.cs: First populate the pinned variables, then emit the
statement, then clear the variables. Before I was emitting the
code once for each fixed piece.
svn path=/trunk/mcs/; revision=13338
* statement.cs (FlowBranching.CheckOutParameters): `struct_params'
lives in the same number space than `param_map'. Fixes#36154.
svn path=/trunk/mcs/; revision=13336
* cs-parser.jay (constructor_declaration): Set the
Constructor.ModFlags before probing for it. This makes the
compiler report 514, 515 and 132 (the code was there, but got
broken).
svn path=/trunk/mcs/; revision=13335
* statement.cs (Goto.Resolve): Set `Returns' to ALWAYS.
(GotoDefault.Resolve): Set `Returns' to ALWAYS.
(GotoCase.Resolve): Set `Returns' to ALWAYS. Fixes the test-49 problem on windows
svn path=/trunk/mcs/; revision=13334
* class.cs: don't try to create the ParamBuilder for the return
type if it's not needed (and handle it breaking for the ms runtime
anyway).
svn path=/trunk/mcs/; revision=13332
* cs-tokenizer.cs (get_cmd_arg): Fixups to allow \r to terminate
the command. This showed up while compiling the JANET source
code, which used \r as its only newline separator.
svn path=/trunk/mcs/; revision=13330
* class.cs (Method.Define): If we are an operator (because it
reuses our code), then set the SpecialName and HideBySig. #36128
svn path=/trunk/mcs/; revision=13329
* ecore.cs (StandardImplicitConversion): When in an unsafe
context, we allow conversion between void * to any other pointer
type. This fixes bug #35973.
svn path=/trunk/mcs/; revision=13325
* attribute.cs (Attributes.Contains): Add new method.
* class.cs (MethodCore.LabelParameters): if the parameter is an
`out' parameter, check that no attribute `[In]' has been passed.
svn path=/trunk/mcs/; revision=13321
* attribute.cs (Attributes.AddAttributeSection): Rename to this
since it makes much more sense.
(Attributes.ctor): Don't require a Location parameter.
* rootcontext.cs (AddGlobalAttributeSection): Rename again.
* attribute.cs (ApplyAttributes): Remove extra Location parameters
since we already have that information per attribute.
* everywhere : make appropriate changes.
* class.cs (LabelParameters): Write the code which actually
applies attributes to the return type. We can't do this on the MS
.NET runtime so we flag a warning in the case an exception is
thrown.
svn path=/trunk/mcs/; revision=13319
* class.cs (MethodCore.LabelParameters): Remove the extra
Type [] parameter since it is completely unnecessary. Instead
pass in the method's attributes so that we can extract
the "return" attribute.
svn path=/trunk/mcs/; revision=13317
* cs-parser.jay (parse): Use Report.Error to flag errors instead
of ignoring it and letting the compile continue.
* typemanager.cs (ChangeType): use an extra argument to return an
error condition instead of throwing an exception.
svn path=/trunk/mcs/; revision=13316
* expression.cs (Unary.TryReduce): mimic the code for the regular
code path. Perform an implicit cast in the cases where we can
implicitly convert to one of the integral types, and then reduce
based on that constant. This fixes bug #35483.
svn path=/trunk/mcs/; revision=13315
* class.cs: Remove some dead code.
* cs-parser.jay: Estimate the number of methods needed
(RootContext.MethodCount);
* cs-tokenizer.cs: Use char arrays for parsing identifiers and
numbers instead of StringBuilders.
* support.cs (PtrHashtable): Add constructor with initial size;
We can now reduce reallocations of the method table.
svn path=/trunk/mcs/; revision=13312
* codegen.cs (EmitContext.CurrentFile): New public field.
(EmitContext.Mark): Use the CurrentFile to check whether the
location is in the correct file.
(EmitContext.EmitTopBlock): Initialize CurrentFile here.
svn path=/trunk/mcs/; revision=13284
* ecore.cs (Expression.ResolveBoolean): Don't call ec.Mark().
* codegen.cs (EmitContext.EmitTopBlock): Don't call Mark() on the
location. [FIXME: The location argument which gets passed to this
method is sometimes wrong!]
svn path=/trunk/mcs/; revision=13283
* AsymmetricAlgorithm.cs: Moved IsLegalKeySize to KeySizes.cs.
* DSACryptoServiceProvider.cs: Fix bug where key generation always
resulted in 1024 bits keypair.
* KeySizes.cs: Added internal IsLegalKeySize and IsLegal to avoid
duplication in both AsymmetricAlgorithm and SymmetricAlgorithm.
* RC2.cs: Modified to use IsLegalKeySize from KeySizes.cs.
* RSACryptoServiceProvider.cs: Fix bug where key generation always
resulted in 1024 bits keypair. Should fix unit test failure under
Linux.
* SymmetricAlgorithm.cs: Moved IsLegalKeySize to KeySizes.cs.
svn path=/trunk/mcs/; revision=13256
* ecore.cs (SimpleName.SimpleNameResolve): Don't report an error
if it's a nested child, but also deriving from the outer class.
See test 190.cs.
svn path=/trunk/mcs/; revision=13251
* typemanager.cs (IsNestedChildOf): Make this work if it's a
nested child, but also deriving from the outer class. See
test-190.cs.
(FilterWithClosure): We may access private members of the outer
class if we're a nested child and deriving from the outer class.
(RealMemberLookup): Only set `closure_private_ok' if the
`original_bf' contained BindingFlags.NonPublic.
svn path=/trunk/mcs/; revision=13248
* CryptoStream.cs: Partial fix for bug #40689 (workaround). Does not
throw a NotSupportedException on closing a CryptoStream in read mode
(like MS does but unlike MS documents).
svn path=/trunk/mcs/; revision=13244
* object.c:
(mono_unhandled_exception): fill in the arguments for the
UnhandledException event. Only trigger that event for the default
domain (as MS does).
svn path=/trunk/mono/; revision=13239
* Console.cs: Make stderr, stdout and stdin use synchronized
versions of the their readers/writers.
2003-03-20 Miguel de Icaza <[email protected]>
* Thread.cs (CurrentCuluture): use the invaraint culture instead
of "" for the current_culture setting.
2003-04-05 Miguel de Icaza <[email protected]>
* TextWriter.cs: Implemented Synchronized method.
* TextReader.cs: Implemented Synchronized method.
svn path=/trunk/mcs/; revision=13203
* MobileCapabilities.cs : More methods.
* DeviceFilterDictionary.cs: Used by MobCaps for filtering
the capabilities. Init impl.
svn path=/trunk/mcs/; revision=13195
* MobileCapabilities.cs : Completed all properties.
Thanks to the tool that I made.
* ErrorHandlerModule.cs : Initial implementation.
svn path=/trunk/mcs/; revision=13193
* FileStream.cs (Read, ReadByte, Seek): throw
ObjectDisposedException if the handle has been released.
(Read): Throw exceptions specified in the spec.
(Read, Write, ReadSegment, WriteSegment): There is no requirement for any
instance methods of FileStream to be thread safe, so remove all
the calls to lock on the object
svn path=/trunk/mcs/; revision=13172
* doc/web/makefile: Add team page information.
* doc/web/team.xml:
* doc/web/render-team-page.cs: Code for rendering a team page.
svn path=/trunk/mono/; revision=13147
* object.c: Improve typed allocation stuff based on suggestions from
Paolo. Also turn it on if the GC library supports it.
svn path=/trunk/mono/; revision=13145
* Version.cs: Make operator== and operator!= cope with null
objects. Didn't change operator<, operator<=, operator> or
operator>= because its not meaningful to use those to compare
against null, and throwing a NullReferenceException is probably
the best thing to do there anyway.
Fixes bug 40720.
svn path=/trunk/mcs/; revision=13139
* object.c object.h class.h: Added experimental typed allocation
facility using the interfaces in gc_gcj.h.
* os/gc_wrapper.h: Added new include files.
svn path=/trunk/mono/; revision=13077
The following change is conditional to `WITH_INCLUDED_LIBGC'
which is not yet enabled by default.
* threads.c (SuspendThread, ResumeThread): Fully implemented this.
(gc_init): New static function; install a signal handler for
SIGPWR which is used to suspend threads. [FIXME: it SIGPWR
doesn't exist on all Unix systems, we need to find another
signal].
(mono_wapi_push_thread_stack): New public function. Tells the
garbage collector about the current stack pointer of a suspended
thread.
svn path=/trunk/mono/; revision=13074
* XmlDocument.cs : Load() now closes the given XmlReader.
Don't allow creation of XmlTextReader for Doctype. (workaround.)
* XmlInputStream.cs : It now closes its internal stream explicitly.
* XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
* XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
* XmlParserInput.cs : added Close() method.
* XmlReader.cs : MoveToContent() should (1) not Read in case of empty
element, and (2) MoveToElement() in case of attribute.
* XmlTextReader.cs : Close() now actually closes source TextReaders.
svn path=/trunk/mcs/; revision=13070
All the following changes are conditional to `WITH_INCLUDED_LIBGC'
which is not yet enabled by default.
* gc.c (mono_gc_init): Set the gc_thread_vtable to our thread
functions.
(mono_gc_lock, mono_gc_unlock): New static functions.
* threads.c (mono_gc_stop_world, mono_gc_start_world): New public
functions; stop/start the world for the garbage collector. This
is using the windows API; we need to complete the SuspendThread()/
ResumeThread() implementation in the io-layer to make this work on Unix.
(mono_gc_push_all_stacks): New public function; tells the garbage
collector about the stack pointers from all managed threads.
svn path=/trunk/mono/; revision=13065
sent by Jose Lu�s Mart�n.
* TcpClientTransportSink.cs: Added Content-Type header. Improved support
for OneWay messages.
svn path=/trunk/mcs/; revision=13061
sent by Jose Lu�s Mart�n.
* TcpClientTransportSink.cs: Added Content-Type header. Improved support
for OneWay messages.
svn path=/trunk/mcs/; revision=13060
- Fixed enums
- Removed a few conflicts from the grammar
- Added single-line If statement
- Fixed access modifiers for module members
- Started implementing MustOverride (not working yet)
- Added MyClass
- Added a couple of missing integral types
svn path=/trunk/mcs/; revision=13032
* reflection.c: set table_idx in MonoReflectionArrayMethod object even
if the array method was already assigned a token (fixes bug#40646).
svn path=/trunk/mono/; revision=13027
* class.cs (Event.Define): Do not allow abstract events to have
initializers.
2003-04-01 Miguel de Icaza <[email protected]>
* cs-parser.jay: Add error productions for ADD/REMOVE missing a
block in event declarations.
svn path=/trunk/mcs/; revision=13023
* class.cs (TypeContainer.GetClassBases): We were checking for the
parent class being sealed too late.
* expression.cs (Binary.Emit): For <= and >= when dealing with
floating point values, use cgt.un and clt.un instead of cgt and
clt alone.
svn path=/trunk/mcs/; revision=13010
* statement.cs: Apply the same optimization as MS: skip the
GetEnumerator returning an IEnumerator, and use the one returning a
CharEnumerator instead. This allows us to avoid the try-finally block
and the boxing.
svn path=/trunk/mcs/; revision=13009
* metadata.h: Added the new tables.
* row-indexes.h: Added definitions for new tables.
* metadata.c: Add schemas for new tables, and add support for
computing the sizes of them.
* class.c: Update for handling the new type cases.
2003-03-31 Miguel de Icaza <[email protected]>
* main.c: Sorted command line options table by name.
* dump.c: Add support for dumping the new generic tables.
* monodis.1: Update man page.
svn path=/trunk/mono/; revision=13008
* domain.c: added initialization of mono_defaults.marshalbyrefobject_class
* icall.c: ves_icall_InternalExecute: fixed bug in field setter and in the
generation of output parameters.
ves_icall_Remoting_RealProxy_GetTransparentProxy: added support for interfaces.
* marshal.c: mono_remoting_wrapper(): avoided call through proxy when the type is
contextbound and the target object belongs to the context of the caller.
* object.h: added context and unwrapped_server variables in MonoRealProxy.
* object.c: Implemented support for interfaces and abstract classes
in mono_class_proxy_vtable. Fixed several methods to avoid unneeded calls through
proxy. Fixed problem when dealing with output parameters in mono_runtime_invoke_array.
svn path=/trunk/mono/; revision=12974
instead of having to have namespace and name seperate.
* ClassTable.cs: Make method that seprates full names into
name/namespaces public.
svn path=/trunk/mcs/; revision=12948
* Handler.cs: Add CP936 and ENCgb2312 Encodings
* CP936.cs: Added support for GB2312 Encoding
* CP950.cs: Small fixes on SBCS range
* DbcsEncoding.cs: Little fix
* Gb2312Convert.cs: Support class for conversion table
* gb2312.table: GB2312 conversion table
The GB2312 Encoding is actually GB2312+GBK Encoding as in Windows
svn path=/trunk/mcs/; revision=12934
* Handler.cs: Added encoding handler for CP950 and ENCbig5
* DbcsEncoding.cs: A base class for all DBCS encodings
* DbcsConvert.cs: A singleton class for all DBCS conversion tables
* CP950.cs: Encoding and Decorder classes for Big5 Encoding
* big5.table: The conversion table for Big5 Encoding
CP932.cs can be made neater by using the new base class
svn path=/trunk/mcs/; revision=12924
that, and use a stack for putting chars back. This is probably
much slower and not nearly as cool but the old method was a little
buggy and I was having trouble tracking things down. This can be
optimized someday.
svn path=/trunk/mcs/; revision=12923
* class.h class.c (mono_class_is_subclass_of): New function.
* icall.c (ves_icall_System_Array_FastCopy): Added optimized copy
routines for most common case (calls from ArrayList::ToArray).
* icall.c (ves_icall_System_Environment_Exit): Call profiler shutdown
routine so programs which call Environment::Exit() can be profiled.
* icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle):
Added MONO_ARCH_SAVE_REGS.
* icall.c (ves_icall_type_is_subtype_of): Use new function.
svn path=/trunk/mono/; revision=12920
* Array.cs (Copy): Call FastCopy() earlier to avoid the expensive
type checks and let it decide whenever a fast copy is possible.
svn path=/trunk/mcs/; revision=12919
* expression.cs (Unary.ResolveOperator): In LogicalNot, do an
implicit conversion to boolean.
* statement.cs (Statement.ResolveBoolean): A boolean expression is
also one where the type implements `operator true'.
* ecore.cs (Expression.GetOperatorTrue): New helper routine to
get an expression that will invoke operator true based on an
expression.
(GetConversionOperators): Removed the hack that called op_True
here.
(Expression.ResolveBoolean): Move this from Statement.
svn path=/trunk/mcs/; revision=12891
* CryptoStream.cs: fixed the previous fix. MS throws a NotSupportedExc
when FlushFinalBlock is called twice. I've moved a few lines from Close
to FlushFinalBlock and added the exception check.
svn path=/trunk/mcs/; revision=12879
* AspTokenizer.cs: allow quotes inside server tags that are part of
attribute values.
* CachingCompiler.cs: no more 'FileNotFound' exceptions when the
compilation fails.
svn path=/trunk/mcs/; revision=12877
* ConstraintCollection.cs: Little fix.
* DataColumn.cs: Added new internal method SetUnique()
* UniqueConstraint.cs: some little fixes
svn path=/trunk/mcs/; revision=12867
* reflection.h (MonoReflectionDynamicAssembly): track changes in
the layout of the class.
* reflection.c (alloc_table): double the size on overflow to avoid
unnecessary copying.
* reflection.h reflection.c: If AssemblyBuilderAccess is Run, then
avoid filling out metadata tables and blobs. Also set mb->ilgen to
null so it can be garbage collected.
svn path=/trunk/mono/; revision=12865
* reflection.c (mono_reflection_get_type): Return the resolved type
only if it is in the assembly we searched.
* reflection.c (ensure_runtime_vtable): Initialize method slots.
* class.c (mono_class_setup_vtable): Set the slot of the overriding
method.
svn path=/trunk/mono/; revision=12863
* AspGenerator.cs: generate correct appbase path. It was working with
mcs but not with csc.
* BaseCompiler.cs: quote arguments and removed GetRandomFileName.
* CachingCompiler.cs: quote source file.
svn path=/trunk/mcs/; revision=12862
* DataColumn.cs: If DataType if set to something else than short, int
or long and AutoIncrement is true, AutoIncrement is must set to false.
svn path=/trunk/mcs/; revision=12857
* XmlTextWriter.cs (Write): A patch from Atsushi to fix
prematurely ending the write, or something like that. It was
causing us to chop off the end of the document when we're trying
to generate XML Schemas.
svn path=/trunk/mcs/; revision=12854
* appdomain.c:
(set_domain_search_path): allow 'file://blah'. It's an invalid URI,
the right one is 'file:///blah', but MS allows it.
* assembly.c:
(mono_assembly_open): allow 'file://blah'
Fixes bug #40306. Thanks to Mitko Iliev ([email protected]).
svn path=/trunk/mono/; revision=12848
* DataRow.cs:
(BeginEdit): fixed array bound problem when a column has been added.
(EndEdit): just assign proposed to current as proposed is set to null.
This also fixes another array boudn problem.
svn path=/trunk/mcs/; revision=12837
we don't have a proper entry point and our main class is a SWF form. This
makes it possible to compile directly code generated by the VB.NET IDE
svn path=/trunk/mcs/; revision=12833
* MonoXSD.cs: Added support for two command line arguments:
/output: specify the directory to put the generated schema.
/type: specify a specific type in the assembly.
svn path=/trunk/mcs/; revision=12829
* reflection.c (mono_reflection_parse_type): handle deeply nested
types correctly.
* reflection.c (mono_image_create_token): Use unique token values
since they will be put into a hash table.
* class.c (mono_class_setup_vtable): If a method occurs in more than
one place in the vtable, and it gets overriden, then change the
other occurances too.
* marshal.c (mono_marshal_get_managed_wrapper): Added support for
object as return type.
svn path=/trunk/mono/; revision=12825
* Activator.cs (CreateInstance): Call GetConstructor with the right
arguments so the nonPublic argument is handled correctly.
svn path=/trunk/mcs/; revision=12821
* MonoXSD.cs: Add support for having enums as a field in the
class. I overlooked this bit last week.
* makefile: Make it build with debug enabled by default.
svn path=/trunk/mcs/; revision=12801
* UdpClient.cs: don't bind the socket unless .ctor (IPEndPoint) is used.
Added more checks and throws.
Small fixes in Send to avoid duplicating the buffer.
Moved CheckIfDisposed calls to the start of the methods instead of doing
the check inside a finally clause.
svn path=/trunk/mcs/; revision=12798
OVERRIDES actually works, for now.
- Fixed a bug in MyBase invocations (en expression list was passed instead of
an argument list)
- Added 'Is Nothing' relational expression (maybe not working right, must
check)
svn path=/trunk/mcs/; revision=12794
assembly is a WinEXE AND uses System.Windows.Forms AND RootContext.MainClass
is derived from System.Windows.Forms.Form (just like VB.NET does)
svn path=/trunk/mcs/; revision=12793
* added XmlReaderCommonTests.cs which is mostly copied from
XmlTextReaderTests and XmlNodeReaderTests. These tests are removed
from each files.
svn path=/trunk/mcs/; revision=12759
* XmlTextReader.cs : implemented ReadString().
fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
null reference exception when context is null.
* XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
fixed Read() - when positioned at EndElement, it didn't progress.
fixed HasAttribute - it didn't return false in all cases.
fixed Name and LocalName - only limited type of nodes return names.
fixed AttributeCount - in some cases it threw null ref exception.
svn path=/trunk/mcs/; revision=12758
* FloatingPointFormatter.cs: Fixed some bugs for get the same
results than MS.NET. Added simple error recovering, now ToString
will return a general format if there is any exception in the
process of formatting. This make the library more robust while the
formatters are refined.
* DoubleTest.cs: Converted to Nunit 2.0. Completed ToString test.
* icall.c: Deleted "ToString" implementation for double and float
because they are full implemented in managed code.
svn path=/trunk/mono/; revision=12756
* FloatingPointFormatter.cs: Fixed some bugs for get the same
results than MS.NET. Added simple error recovering, now ToString
will return a general format if there is any exception in the
process of formatting. This make the library more robust while the
formatters are refined.
* DoubleTest.cs: Converted to Nunit 2.0. Completed ToString test.
* icall.c: Deleted "ToString" implementation for double and float
because they are full implemented in managed code.
svn path=/trunk/mcs/; revision=12756
* MonoSymbolTable.cs (MethodEntry.LocalNamesAmbiguous): New public
field. Specifies whether two local variables have the same name.
svn path=/trunk/mcs/; revision=12742
* DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
EndEdit and AcceptChanges to act correctly according to DataRowState
and DataRowVersion.
* DataRowCollection.cs: Call AttachRow and DetachRow when a row is
attached and detached from the collection.
svn path=/trunk/mcs/; revision=12728
* ObjRef.cs: Removed some [MonoTODO]
* TypeInfo.cs: Added support for interfaces.
* RemotingServices.cs: Several fixes to support interfaces in proxies.
svn path=/trunk/mcs/; revision=12714
creation message to the right message sink. Added support for AppDomainLevelActivator.
* ConstructionLevelActivator.cs: Activate does not use the object identity because
it may not be set yet.
* ContextLevelActivator.cs: this activator is now always called for CBOs. A new context
has to be created only if the construction message says so.
* AppDomainLevelActivator.cs: Added. Implements an IActivator that makes a remote creation.
svn path=/trunk/mcs/; revision=12713
in the same context as the caller.
* RemotingProxy.cs: added suport for dynamic sinks. Activation code moved to
ActivationServices.
svn path=/trunk/mcs/; revision=12711
* DataColumn.cs: Store empty string for Expression when null is passed in.
Classes generated by XSD.exe passes null by default.
svn path=/trunk/mcs/; revision=12700
* MonoXSD.cs: More refinements. We now support transforming
enumerations as well as arrays to their corresponding XML Schema
type. Read/Write properties will also be transformed (thanks to
reading KeithBa's book). XmlNode is properly handled, and XmlElement
& co. should also be transformed correctly.
Next up: I should look into whether or not xsd.exe makes use of
XmlAttributes. If so, I'll have to support that.
Other than that, this part of MonoXSD should be complete.
svn path=/trunk/mcs/; revision=12695
* Uri.cs: reworked Segment. Small fix in MakeRelative. Throw exception
in Parse when host length is 0 and the Uri is not a file.
svn path=/trunk/mcs/; revision=12690
* UriTest.cs: moved a couple of test to their own method as they fail
with MS runtime. Added new tests for Segment.
svn path=/trunk/mcs/; revision=12689
* appdomain.c: moved Uri handling to assembly.c
* assembly.c: use g_filename_from_uri (). This makes assembly.LoadFrom
work when using a file Uri in *nix and windows.
* icall.c: fixed Assembly.CodeBase to return a valid Uri. The same for
GetReferencedAssemblies.
svn path=/trunk/mono/; revision=12679
* XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
not WriteState.Start, and never call WriteEndDocument().
svn path=/trunk/mcs/; revision=12662
* BaseCompiler.cs: fixed the hack to work under windows.
* CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
svn path=/trunk/mcs/; revision=12659
* Thread.cs: Keep the thread state updated in all the places that
require it. (Suspend, Resume and Interrupt not handled yet)
svn path=/trunk/mcs/; revision=12655
* icall.c: Rename a couple of internal calls
* threads.c: Set the thread state to Stopped when a thread exits.
Fixes bug 39377.
svn path=/trunk/mono/; revision=12654
* FieldTable.cs: Add method to check if all fields have been defined, set referenced fields properties when defining them
* ClassTable.cs: Make sure all methods and fields are defined.
svn path=/trunk/mcs/; revision=12648
* MonoXSD.cs: A simple implementation of MonoXSD. It current
supports creating an XML Schema based on a .NET assembly. The
handling of schema derivation is simplistic.
svn path=/trunk/mcs/; revision=12644
* icall.c (ves_icall_type_is_subtype_of): Avoid vtable creation.
* reflection.c (mono_blob_entry_hash): Avoid reading uninitialized
memory.
(method_encode_clauses): Create exception info structures in the right
order.
(mono_reflection_setup_internal_class): Initialize supertypes field.
* class.c object.c: Handle interfaces which implement other interfaces
correctly.
* class.h class.c: Move the supertypes array initialization code into
a separate function so it can be used for dynamic types too. Also call
it earlier, in mono_class_init(), since it can be used before the
type is initialized.
svn path=/trunk/mono/; revision=12632
* FileSystemWatcher.cs: added attributes and some more implementation.
Now only the guts left to do.
* FileSystemEventArgs.cs:
* RenamedEventArgs.cs: implemented a couple of properties.
svn path=/trunk/mcs/; revision=12627
* System.Data.build: on windows build, ignore
warnings CS0219: "The variable xxx is assigned but its value is
never used" and CS0168: "The variable xxx
is declared but never used"
* System.Data/DataRow.cs: flush
* System.Data/DataSet.cs: start implementation on Clear(),
and WriteXml() should write the start element <?xml ... ?> at the top
of the document
* System.Data/DataTable.cs: TODO/FIXME notes. Start implementation
of Compute() - still not working
svn path=/trunk/mcs/; revision=12626
* UnicodeEncoding.cs: changed WebName from unicodeFFFE to utf-16be.
(unicodeFFFE is MS compliant, but isn't valid IANA encoding name.)
svn path=/trunk/mcs/; revision=12624
* added XmlParserInput.cs for multi xml document sources.
* added DTDObjectModel.cs (maybe temporary).
* XmlTextReader.cs :
+ fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
+ Some members such as LineNumber, ReadChar now uses XmlParserInput.
+ added support for Namespaces (namespace-ignorant parse available).
+ added support for XmlResolver.
+ replace SetReaderContext()/SetReaderFragment() with Initialize().
+ use NameTable in CreateNameString.
+ fixed ReadCData(). Now reads "]]]>" correctly.
+ support for DTD parse.
+ Read() now throws an error when it reached EOF while Depth > 0.
* XmlAttribute.cs,
XmlDocumentFragment.cs,
XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
* XmlDocument.cs : ReadNode() now reads DocumentType.
* XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
* XmlEntity.cs,
XmlNotation.cs : added override LastLinkedChild (for doctype node).
* XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
* XmlElement.cs : bugfix for node removal of set_InnerXml.
* XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
(to append child XmlEntity into XmlDocumentType correctly.)
* XmlInputStream.cs : fixed to access file with FileAccess.Read.
svn path=/trunk/mcs/; revision=12619
* System.Data/DataRowView.cs: in the constructor pass
DataRow in instead of int index of the DataRow
in DataTable.Rows
* System.Data/DataTable.cs: implement sorting
for method Select(filterExpression,sort)
* System.Data/DataView.cs: more implementation -
Now, If Sort, RowFilter, or RowStateFilter is set, an
enumerated DataRowViews will be a view with those
properties applied. Still need to implement event handling
though.
svn path=/trunk/mcs/; revision=12603
* Single.cs:
* Double.cs: Apply changes of .ToString methods.
* SingleFormatter.cs:
* DoubleFormatter.cs: Simple wrappers to FloatingPointFormatter.
* FloatingPointFormatter.cs: New class. Implementation of double and
single formatters. It is unified now and parametrized with precission
values.
svn path=/trunk/mcs/; revision=12589
* X501Name.cs: New. X.501 Distinguished Names stuff
* X509Builder.cs: New. Abstract class for building X.509 related
structures (like certificates and CRLs).
* X509Certificate.cs: New. A more complete class to handle X.509
certificates.
* X509CertificateBuilder.cs: New. Class to build X.509 certificates.
* X509Extension.cs: New. A base class for all X.509 extensions.
* X509Extensions.cs: New. X509Extension collection.
* X520Attributes.cs: New. X.520 attributes (mainly for X501 names)
svn path=/trunk/mcs/; revision=12574
* PrivateKey.cs: New. Class to load or create PVK (PriVate Key)
files (a Microsoft specific file format for private keys).
2003-03-06 Sebastien Pouliot <[email protected]>
* SoftwarePublisherCertificate.cs: New. Class to load or create
SPC files (which are PKCS#7 files containing only certificates
and CRL).
svn path=/trunk/mcs/; revision=12573
* X501Name.cs: New. X.501 Distinguished Names stuff
* X509Certificate.cs: New. A more complete class to handle X.509
certificates.
* X509Extension.cs: New. A base class for all X.509 extensions.
* X509Extensions.cs: New. X509Extension collection.
* X520Attributes.cs: New. X.520 attributes (mainly for X501 names)
svn path=/trunk/mcs/; revision=12561
* ASN1.cs: Improved version.
* ASN1Convert.cs: New. Helper class to convert between .NET
types and ASN.1 structures.
svn path=/trunk/mcs/; revision=12560
I was setting the return to the parent before, but the parent
value was being set to the return type value so it all worked
out but was very confusing.
svn path=/trunk/mcs/; revision=12559
* SqlConnection.cs: if Server in the ConnectionString
is set to "(local", use "localhost" as the hostname
to connect
svn path=/trunk/mcs/; revision=12521
neither String.Empty nor null. Thanks to Simon Guindon for
reporting the bug and Jackson for fixing this bug with me.
svn path=/trunk/mcs/; revision=12518
* XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
* XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
fixed ReadNode(), it should call reader.Read() only on Initial state.
* XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
System.Net.WebClient directly.
* XmlParserContext.cs : baseURI don't be null.
* XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
* XmlUrlResolver.cs : namespace change for XmlInputStream.
svn path=/trunk/mcs/; revision=12517
* XmlTextWriterTests.cs : fixed AttributeWriteAttributeString() in
related to MS bugs. "\r\n" are replaced with Environment.NewLine.
svn path=/trunk/mcs/; revision=12516
* mono-win32-setup.nsi: added NSIS
(NullSoft Installer System) script file for building
a Mono release for Windows NT/2000/XP
svn path=/trunk/mcs/; revision=12511
* makefile: added ByteFX.Data.dll to windows install
* class/library.build: added ByteFX.Data.dll
to windows build. added additional clean targets
* class/Microsoft.VisualC/Microsoft.VisualC.build: fix
windows clean
* class/ByteFX.Data: added directory for ByteFX.Data.dll
which includes a MySQL ADO.NET Provider.
Contributed by Reggie Burnett <[email protected]>
from ByteFX, Inc.
ByteFX.Data 0.6.5 is Copyright 2002-2003, ByteFX, Inc.
Added the following files and directories:
class/ByteFX.Data/AssemblyInfo.cs
class/ByteFX.Data/list
class/ByteFX.Data/ByteFX.Data.build
class/ByteFX.Data/makefile.gnu
class/ByteFX.Data/ChangeLog.txt
class/ByteFX.Data/readme.txt
class/ByteFX.Data/lgpl.txt: new files
BitStream.cs
Connection.cs
Field.cs
Inflater.cs
ConnectionString.cs
HuffmanTree.cs
NamedPipeStream.cs
class/ByteFX.Data/Common: added files to new directory
Driver.cs
command.resx
todo.txt
CommandBuilder.cs
Exception.cs
dataadapter.cs
transcaction.cs
Connection.cs
Field.cs
datareader.cs
Connection.resx
MysqlDefs.cs
parameter.cs
class/ByteFX.Data/mysqlclient: added files to new directory
command.cs
parameter_collection.cs
class/ByteFX.Data/mysqlclient/Designers: added files to new directory
svn path=/trunk/mcs/; revision=12508
* makefile: add ilasm.exe to windows build and add missing assemblies
to windows install
* class/library.build: include PEAPI.dll, Npgsql.dll, and
ICSharpCode.SharpZipLib part of the windows build
svn path=/trunk/mcs/; revision=12506
* System.Data.SqlClient/SqlCommandBuilder.cs:
Change "where" variable name to "whereClause" at the
request of Rhys Weatherley <[email protected]>
svn path=/trunk/mcs/; revision=12488
* debug-mono-symfile.h (MonoSymbolFileLexicalBlockEntry): New type.
(MonoDebugLexicalBlockEntry): New types.
* debug-mono-symfile.c
(_mono_debug_address_from_il_offset): Moved here from ../jit/debug.c.
svn path=/trunk/mono/; revision=12483
Added basic support for lexical scopes. This is just to tell a
debugger that a local variable is only available in a specific
lexical scope and that another variable of the same name may exist
in another lexical scope. See debugger/test/TestLexicalScope.cs
for examples.
* MonoSymbolTable.cs (LexicalScopeEntry): New class.
(LocalVariableEntry): Added `BlockIndex' field which specifies the
lexical scope of this variable.
* MonoSymbolWriter.cs (SourceBlock): Removed, we're now using
LexicalScopeEntry instead.
svn path=/trunk/mcs/; revision=12481
* System.Web/HttpRuntime.cs: Cache no longer have a Dispose method.
* System.Web/HttpServerUtility.cs: removed MonoTODO.
* System.Web.Caching/Cache.cs:
* System.Web.Caching/CacheDefinitions.cs:
* System.Web.Caching/CacheDependency.cs:
* System.Web.Caching/CacheEntry.cs:
* System.Web.Caching/CacheExpires.cs:
* System.Web.Caching/ExpiresBuckets.cs: reformatted, make class status
page happier. Does not work yet (wait for the next patch).
* System.Web.SessionState/HttpSessionState.cs: implemented CodePage.
* System.Web.SessionState/SessionStateModule.cs: initial stuff to make
it work.
svn path=/trunk/mcs/; revision=12480
* io-layer/processes.c: included Jerome Laban's patch and call
SetLastError when the executable is not found.
* metadata/process.c: ret can be any non-zero value accroding to MS doc.
svn path=/trunk/mono/; revision=12475
class's method table.
* CodeGen.cs: Add Method to add methods :p
* MethodTable.cs: Add file, this class is used to add methods to a class.
svn path=/trunk/mcs/; revision=12466
* XmlCustomFormatter.cs: Correct signature, Implement
ToByteArrayBase64
* XmlSerializationWriter.cs: Fix prototype.
* XmlSerializer.cs: Implements Deserialize().
2003-03-12 Elan Feingold <[email protected]>
* XmlTextReader.cs: When throwing a ReaderException, show what
character was the culprit
svn path=/trunk/mcs/; revision=12456
* makefile.gnu : use $RUNTIME for all targets
actually run the compiled program on 'test-gtk' target
* mb-tokenizer.cs : no escaping of chars allowed in VB.NET (old mcs code removed)
handle doubled-doublequotes (VB idiom to escape a doublequote)
svn path=/trunk/mcs/; revision=12436
* XslTransform.cs: Implemented boolean, number and string parameters.
(Node Set and Node Iterator parameters and Extension Objects are left.)
* XsltAttributeList.cs: Loosened access modifiers.
svn path=/trunk/mcs/; revision=12405
* System.Data.SqlClient/SqlDataReader.cs: when
the data reader is closed, this SqlDataReader referenced
in SqlConnection needs to be null
* System.Data.Common/DbDataAdapter.cs: for SelectCommands executed that
have no result set, such as, DDL like CREATE TABLE or DML like INSERT,
the data reader needs to be immediately closed, and 0 returned
as the number of rows added or refreshed
svn path=/trunk/mcs/; revision=12403
* makefile: Removed cert2spc and sn from linux build (as
Mono.Security assembly isn't, yet, part of the linux build).
* makefile.gnu: Removed (not required for tools).
svn path=/trunk/mcs/; revision=12367
* ASN1.cs: Removed - now part of Mono.Security assembly
* cert2spc.cs: Moved to /mcs/tools/security
* secutil.cs: Moved to /mcs/tools/security
svn path=/trunk/mcs/; revision=12362
* ARC4ManagedTest.cs: New. Test vectors for RC4(tm) taken from
usenet and Netscape SSL version 3 implementation details.
* MD2ManagedTest.cs: New. Call tests defined in MD2Test class.
* MD2Test.cs: New. Test vectors defined in RFC1319.
svn path=/trunk/mcs/; revision=12337
* ARC4Managed.cs: New. Implementation of the Alleged RC4(tm)
stream cipher in managed code (required for SSL/TLS).
* CryptoConvert.cs: New. Helper class to help convert between
Windows crypto structures and .NET crypto classes (required
for security tools).
* MD2.cs: New. Abstract class for all MD2 hash implementations.
* MD2Managed.cs: New. Managed implementation of the MD2 hash
algorithm (required for old, but still valid, X.509 certificates).
* RC4.cs: New. Abstract class for all RC4 stream cipher
implementations.
svn path=/trunk/mcs/; revision=12336
* class.c (mono_marshal_load_type_info): Fix buglet: Noticed when
fixing a warning for a miss-used prototype, would have cause
random memory corruption.
svn path=/trunk/mono/; revision=12326
* StreamReaderTest.cs: added test for exception when the nase stream is
closed. Make the reader.CurrentEncoding test work.
svn path=/trunk/mcs/; revision=12320
* HttpWebRequest.cs: implemented IDisposable, make the request stream
read only. Changed the way of disposing the socket.
* HttpWebResponse.cs: wrapped the socket in a write-only NetworkStream,
handle chunked transfer encoding (no more hangs), added serialization
stuff, call CheckDisposed at the beginning of methods/properties (not
in a finally clause).
svn path=/trunk/mcs/; revision=12283
* list.unix: New. All C# files required to build the assembly.
* makefile.gnu: New. Makefile to build the assembly under Linux.
svn path=/trunk/mcs/; revision=12278
* cert2spc.cs: Update to use the new PKCS7 class (from Mono.Security
assembly) and AssemblyInfo.cs. Older version was located in /mcs/tools.
* makefile: New. PROTOTYPE makefile (not tested) for Linux.
* secutil.cs: Updated to use AssemblyInfo.cs. Older version was located
in /mcs/tools.
* sectools.build: New. NAnt build file to build all security tools.
svn path=/trunk/mcs/; revision=12277
* SoftwarePublisherCertificate.cs: New. Class to load or create
SPC files (which are PKCS#7 files containing only certificates
and CRL).
svn path=/trunk/mcs/; revision=12273
* ASN1.cs: Updated ASN1 class (from corlib). This file will,
eventually, be automagically synched with corlib.
* ASN1Convert.cs: New. Helper class to convert from and to
ASN1 structures.
* PKCS7.cs: New. Basic implementation of CMS (Cryptographic
Message Syntax Standard).
svn path=/trunk/mcs/; revision=12272
* AssemblyInfo.cs: New. Global assembly attributes (version and
copyright) for security tools.
* README: New. Important information about the Mono's security tools
svn path=/trunk/mcs/; revision=12268
SmtpMessage - A more sofisticated mail container than MailMessage
MailAddress - A class that represents a mail address
MailAddressCollection - A collection of mail adresses
Theese classes where added to support the funtionality of serveral
recievers and Cc and Bcc. And also to ensure the format of the
address strings.
svn path=/trunk/mcs/; revision=12230
* category.cs (CategoryUtils.CategoryFromName): Use StartsWith
("Is") instead of a substring for (0,2) which was throwing an
exception causing Category.None to be returned
svn path=/trunk/mcs/; revision=12228
* debug-jit.c, debug-jit.h: New files. Moved all JIT-specific
stuff here.
* debug.c (mono_debug_add_method): Moved to debug-jit.c.
(mono_debug_handle, mono_debug_initialized): Made them global.
(replace_suffix): Removed, this isn't used anymore.
(record_line_number): Moved to debug-jit.c.
(debug_generate_method_lines): Moved to debug-jit.c
(generate_line_number): Renamed to
_mono_debug_generate_line_number() and made it global.
(debug_update_il_offsets): Moved to debug-jit.c
(mono_debug_get_image): Renamed to _mono_debug_get_image() and made
it global.
(address_from_il_offset): Renamed to
_mono_debug_address_from_il_offset() and made it global.
(il_offset_from_position): Moved to debug-jit.c
(lookup_method): Renamed to _mono_debug_lookup_method() and made
it global.
(mono_debug_add_method): Moved to debug-jit.c.
(mono_debug_create_notification_function): Use two new functions
mono_debug_codegen_breakpoint() and mono_debug_codegen_ret()
instead of x86_breakpoint() and x86_ret().
svn path=/trunk/mono/; revision=12217
* System.Security.build: Added a new output System.Security_cmp.dll
which links with mscorlib. This version is to be used to generate
the class status web page (required for CorCompare).
svn path=/trunk/mcs/; revision=12200
* makefile: System.Security (corlib) class status now compared
with System.Security_cmp.dll (mscorlib) as required for CorCompare.
svn path=/trunk/mono/; revision=12199
* mb-parser.jay: added rule for Imports with alias
* mb-parser.jay: Friend (internal) modifier was missing,
Shared modifier was expecting Static token erroneously
Modules must accept only a static constructor rule added
Constant declaration rule added
* makefile & makefile.gnu : actually run the compiled program on test target
svn path=/trunk/mcs/; revision=12191
* XmlDocumentFragment.cs, XmlElement.cs :
modified InnerXml (fragment type from Element to DocumentFragment).
* XmlElement.cs : fixed WriteTo() ns check.
* XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
* XmlNode.cs : fixed ConstructNamespaceManager().
* XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
IsPubid with an int arg.
* XmlReader.cs : changed to use XmlChar.cs (its role is as same as
XmlConstructs.cs).
* XmlTextReader.cs :
improved error messages with line info.
/ checking matching start and end tags.
/ prevents the apperance of multiple root elements. (patch by Erik)
fixed and refactored ReadInnerXml() and ReadOuterXml()
changed to use XmlChar.cs.
* XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
(It will help c14n implementation.)
/ blocks multiple attribute output with element node.
svn path=/trunk/mcs/; revision=12186
* System.Data.OracleClient.Oci/IOciDescriptorHandle.cs:
* System.Data.OracleClient.Oci/IOciHandle.cs:
* System.Data.OracleClient.Oci/OciDescriptorType.cs:
Removed. These are no longer used.
* System.Data.OracleClient.Oci/OciParameterDescriptor.cs:
Add new class
* list:
Add System.Data.OracleClient.Oci/OciParameterDescriptor.cs
Rem System.Data.OracleClient.Oci/IOciDescriptorHandle.cs
Rem System.Data.OracleClient.Oci/IOciHandle.cs
Rem System.Data.OracleClient.Oci/OciDescriptorType.cs
* System.Data.OracleClient/OciGlue.cs:
Move the OCIAttrGet* methods into OciHandle
* System.Data.OracleClient/OracleDataReader.cs:
* System.Data.OracleClient/OracleParameter.cs:
Change the way that columns are bound and described
* System.Data.OracleClient.Oci/OciBindHandle.cs:
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
* System.Data.OracleClient.Oci/OciDescriptorHandle.cs:
* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
* System.Data.OracleClient.Oci/OciErrorHandle.cs:
* System.Data.OracleClient.Oci/OciHandle.cs:
* System.Data.OracleClient.Oci/OciLobLocator.cs:
* System.Data.OracleClient.Oci/OciServerHandle.cs:
* System.Data.OracleClient.Oci/OciServiceHandle.cs:
* System.Data.OracleClient.Oci/OciSessionHandle.cs:
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
* System.Data.OracleClient.Oci/OciTransactionHandle.cs:
All handles now derive from OciHandle, and these classes
have been rewritten as such. Also attempted to implement
the Dispose () methods for these classes.
* System.Data.OracleClient.Oci/OciHandleType.cs:
Add descriptor types into here because handles and
descriptors are used in many of the same OCI functions.
svn path=/trunk/mcs/; revision=12176
* NameValueCollection.cs: Uncoment constructor, an old MCS bug
prevented this from working. Removed test for nullitude of col,
as it would have aborted anyways on the dereference in the base
constructor call.
svn path=/trunk/mcs/; revision=12163
* Double.cs: Changed ToString method. Added NumberFormatInfo support
with DoubleFormatter class.
* Single.cs: Changed ToString method. Added NumberFormatInfo support
with SingleFormatter class.
* DoubleFormatter.cs: New class with Double formatting functions.
* SingleFormatter.cs: New class with Single formatting functions.
svn path=/trunk/mono/; revision=12162
* Double.cs: Changed ToString method. Added NumberFormatInfo support
with DoubleFormatter class.
* Single.cs: Changed ToString method. Added NumberFormatInfo support
with SingleFormatter class.
* DoubleFormatter.cs: New class with Double formatting functions.
* SingleFormatter.cs: New class with Single formatting functions.
svn path=/trunk/mcs/; revision=12162
* RSACryptoServiceProvider.cs: Delay keypair generation event when
keysize is a constructor parameter (major speed improvment when
importing keys). Removed NotSupportedException when CspParameter is
used in constructor (required for forthcoming security tools).
svn path=/trunk/mcs/; revision=12161
* System.Security_test.build: Updated build file to stop linking
with MS assemblies (and like with Mono's corlib instead).
svn path=/trunk/mcs/; revision=12159
* DSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
XML generation).
* RSAKeyValue.cs: Added patch from Atsushi Eno (to remove string
XML generation).
* XmlDsigBase64Transform.cs: Fixed problem when using XPath.
svn path=/trunk/mcs/; revision=12158
* System.Security.build: Updated build file to stop linking with
MS assemblies (and like with Mono's corlib instead).
svn path=/trunk/mcs/; revision=12157
* RealProxy.cs: Added stubs for some missing methods.
* RemotingProxy.cs: The activation constructor now creates the ConstructionCall
message and collects the context properties.
Activation of objects now use IActivator instances.
svn path=/trunk/mcs/; revision=12140
Some other minor corrections.
* EnvoyTerminatorSink.cs: Message now redirected to current context's client sink chain.
* MethodCall.cs: Added method for copying messages.
svn path=/trunk/mcs/; revision=12139
Implemented creation of the client context, server context, object and envoy sinks.
Added method for creating a new context.
* CrossContextChannel.cs : Removed check for construction messages. Now construction
go through the IActivators.
svn path=/trunk/mcs/; revision=12137
of activation attributes. This is used by System.Activator.
Added method for creating a ConstructionCall from a list of activation attributes.
This is used from RemotingProxy.
* ConstructionLevelActivator.cs: Added. Implements an IActivator that constructs an object.
* ContextLevelActivator.cs: Added. Implements an IActivator that constructs a context.
* RemoteActivationAttribute.cs: Added.
* RemoteActivator.cs: Used RemoteActivationAttribute in the creation of the server object.
* UrlAttribute.cs: Removed some "throw new NotImplementedException ()".
svn path=/trunk/mcs/; revision=12135
* ObjRef.cs: Added internal helper method for getting the server type of an ObjRef.
* RemotingServices.cs: Implemented Disconnect method. Added support for custom proxy
creating using ProxyAttribute. Added support for activation attributes in creation
of proxies. Some other minor corrections.
* ServerIdentity.cs: minor corrections.
svn path=/trunk/mcs/; revision=12134
* mb-tokenizer.cs : new semi-keywords: Compare, Explicit, Strict, On, Off, Binary, Text
* mb-parser.jay: tokens for above semi-keywords, and rules for option directives
* driver.cs: integrates command line options with parser flags for option directives
* makefile & makefile.gnu : added 'verbose' target that uses --verbose switch to compile
the test source and pipes it through 'less', also added a Extended Syntax source
svn path=/trunk/mcs/; revision=12133
a domain. Added internal call for getting the default context.
* appdomain.h: Added context variable in MonoDomain struct.
* domain.c: mono_domain_set also sets the default context of the domain
* icall.c: Mapped internal method InternalGetDefaultContext.
* object.c: mono_object_get_virtual_method returns always a remoting
wrapper if the object is a transparent proxy.
mono_runtime_invoke_array: when creating an object by calling the
constructor, if the created object is a proxy, then the constructor should
be called using the a remoting wrapper.
svn path=/trunk/mono/; revision=12131
* io.c (CreateFile): Try opening directories readonly, so that
timestamps can be adjusted. Patch by Elan Feingold
<[email protected]>.
svn path=/trunk/mono/; revision=12121
* socket-io.c (create_sockaddr_from_object): Rename sockaddr_un
variable so it compiles on solaris. Problem spotted by
Christopher Taylor <[email protected]>
svn path=/trunk/mono/; revision=12120
* list: added SessionConfig.cs and SessionStateSectionHandler.cs
* System.Web/HttpHelper.cs: store the values in an ArrayList to get
them in correct order.
* System.Web.Configuration/ModuleItem.cs: it's not public.
* System.Web.Configuration/ModulesConfiguration.cs: it's not public.
* System.Web.SessionState/SessionConfig.cs:
* System.Web.SessionState/SessionStateSectionHandler.cs: new files to
read <sessionState> configuration.
svn path=/trunk/mcs/; revision=12118
* DirectoryInfo.cs: changed ToString to match MS behavior.
* Path.cs: further fixes to GetDirectoryName to return null in the
same cases that MS does.
Fixes bug #38387.
svn path=/trunk/mcs/; revision=12105
* DSAKeyValue.cs: New XML generation is commented. Old string technique
did a better job to match MS implementation.
* DataObject.cs: Replaced XML generation from StringBuilder to XmlElement.
* KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
* KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement.
* KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement.
* KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement.
* KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement.
* RSAKeyValue.cs: New XML generation is commented. Old string technique
did a better job to match MS implementation.
* Reference.cs: Replaced XML generation from StringBuilder to XmlElement.
* Signature.cs: Replaced XML generation from StringBuilder to XmlElement.
* SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
* SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement.
* Transform.cs: Replaced XML generation from StringBuilder to XmlElement.
* XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL.
* XmlDsigXPathTransform.cs: Added missing Algorithm URL.
* XmlSignature.cs: New. Private contants (construct similar to WSE).
svn path=/trunk/mcs/; revision=12100
* X509CertificateCollection.cs: Fixed bugs in AddRange
(added the collection not the certificates in the collection).
svn path=/trunk/mcs/; revision=12091
* unix.args: added ModuleResolveEventHandler.cs
* System.Reflection/Assembly.cs: added missing stuff. Only ModuleResolve
event is left out to avoid changing MonoReflectionAssembly by now.
* System.Reflection/ModuleResolveEventHandler.cs: delegate.
svn path=/trunk/mcs/; revision=12083
* ILGenerator.cs (Emit): Add fixup for already created methods and
fields. Do not add fixup for types since their table index do not
change any more.
svn path=/trunk/mcs/; revision=12067
* reflection.h reflection.c: Encode already created dynamic methods
and fields correctly as a DEF instead of a REF.
* reflection.c: Get rid of the force_ref argument to
mono_image_typedef_or_ref since it was wrong in the first place.
svn path=/trunk/mono/; revision=12066
* reflection.c: Emit types in the order their TypeBuilders were
created. Previously, a new table index was assigned to each type before
the tables were emitted. This was wrong because the signature blob
might already refer to a type by its original table index.
svn path=/trunk/mono/; revision=12062
* Socket.cs: patch from Elan Feingold <[email protected]>. Fixes
NullReferenceException when the callback is null.
svn path=/trunk/mcs/; revision=12056
* DateTime.cs: FileTime is expressed in Universal time, and as such must
be converted before subtracting the magic offset.
* DateTime.cs: Strings in the format "2003-02-27T10:05:03-11:00" (note
the timezone at the end) *must* be parsed by DateTime.Parse() for
compatibility with Microsoft.
svn path=/trunk/mcs/; revision=12038
* metadata.c metadata.h (mono_metadata_nesting_typedef): changed to
iterate over the NESTEDCLASS table using a linear search since the
table is not guaranteed to be sorted by the secondary key.
* class.c (mono_class_create_from_typedef): fixed up call to
mono_metadata_nesting_typedef.
svn path=/trunk/mono/; revision=12035
* DataSet.cs: Changed WriteTable so that it now calls the newly written
WriteObjectXml to direct the call to the respective XmlConvert method.
This fixes the wrong format written to XML files of bool, float,
double, DateTime and TimeSpan types.
svn path=/trunk/mcs/; revision=12032
* XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
methods to make them compatible with the XML Schema Spec from W3C
ToString(TimeSpan) is still outstanding
svn path=/trunk/mcs/; revision=12031
* ecore.cs (Expression.MemberLookup): Don't create a
MethodGroupExpr for something which is not a method. Fixes#38291.
svn path=/trunk/mcs/; revision=12027
* System.Data.OracleClient/OracleConnection.cs:
Rollback transactions when connection closes if they
are open.
* System.Data.OracleClient/OracleDataReader.cs:
Implement GetOracleLob ()
* System.Data.OracleClient/OracleLob.cs:
Implement some of the details, like Read/Write/Seek
* System.Data.OracleClient.Oci/OciBindHandle.cs:
Remove debug message.
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Add LOB support.
* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
Minor formatting changes
* System.Data.OracleClient.Oci/OciLobLocator.cs:
Huge amounts of code to make it work. Lots of ugly
OCI P/Invoke code.
* Test/TestOracleClient.cs:
Improve the LOBTest.
svn path=/trunk/mcs/; revision=12021
* TypeBuilder.cs (DefineInitializedData): Removed unnecessary assignments.
* ModuleBuilder.cs (DefineInitializedData): Do not call
TypeBuilder::DefineInitializedData since that would mean defining a
nested type of the global type, which is wrong. Instead define a
new public type as MS does.
* ModuleBuilder.cs (DefineUninitializedData): Ditto.
svn path=/trunk/mcs/; revision=11999
* ActivatorTest.cs: Unregister the channel like it should.
* MarshalByRefTest.cs: Take out my hack.
Both from Jean-Marc Andr [[email protected]].
svn path=/trunk/mcs/; revision=11995
* class.cs (MemberBase.CheckParameters): Also check that the type
is unmanaged if it is a pointer.
* expression.cs (SizeOf.Resolve): Add location information.
* statement.cs (Block.EmitMeta): Flag error (208) if a pointer to
a managed type is declared.
svn path=/trunk/mcs/; revision=11983
* MemoryStream.cs:
(ToArray): return only the portion of the buffer that contains
data, not the whole buffer. (note: this makes XmlDocument.Load work
again with documents that have a <?xml without the 'encoding'
attribute, which makes gtk-sharp generator work again).
svn path=/trunk/mcs/; revision=11979
* class.cs: Very sad. Am backing out the speed up changes
introduced by the ArrayList -> Array in the TypeContainer, as they
were not actually that much faster, and introduced a bug (no error
reports on duplicated methods).
svn path=/trunk/mcs/; revision=11977
Although we are resolving for LValues, we will let the Assign code
take care of that (it will be called again from Resolve). This
basically allows code like this:
class X { X operator + (X x, object o) {} X this [int idx] { get; set; } }
class Y { void A (X x) { x [0] += o; }
The problem was that the indexer was trying to resolve for
set_Item (idx, object o) and never finding one. The real set_Item
was set_Item (idx, X). By delaying the process we get the right
semantics.
Fixes bug: 36505
svn path=/trunk/mcs/; revision=11973
* assign.cs (CompoundAssign.DoLResolve): Resolve the original
source first, this will guarantee that we have a valid expression
before calling in lower levels functions that will require a
resolved object. Then use this original_source in the
target.ResolveLValue instead of the original source that was
passed to us.
svn path=/trunk/mcs/; revision=11972
* DbDataAdapter.cs: Added support for filling when schema is present.
Fixed incorrect behavior when ColumnMapping is present
when more than one fields have the same name. Implemented Dispose.
Fixed error when there is no ColumnMapping at all.
Still have some problems in finding the correct TableMapping
because the SourceTable name is not present in BuildSchema
svn path=/trunk/mcs/; revision=11963
* DataRelation.cs: Added SetDataSet for DataSetRelationCollection to use.
* DataRelationCollection.cs: Implemented AddRange and Contains.
Implemented AddRange, Clear, List and RemoveCore for DataSetRelationColletion.
Implemented AddCore, List and RemoveCore for DataTableRelationCollection.
Reimplemented most Add methods to eliminate duplicated checks.
Centralized RelationName generation procedure in GetNextDefaultRelationName.
svn path=/trunk/mcs/; revision=11945
* DataColumn.cs: Fixed wrong storage representation of Expression
(using empty string instead of null) so that ToString() returns nothing.
* DataColumnCollection.cs: Reimplemented GetNextDefaultColumnName so that
auto column naming now works as expected. Reimplemented some Add methods
to eliminate code duplication.
svn path=/trunk/mcs/; revision=11943
* DbDataAdapter.cs: The original code might pass a null DataTableMapping
value which is then used to create a RowUpdatingEventArgs
instance. So RowUpdatingEvent handler (for instance
CommandBuilder) could get null DataTableMapping which
might be unexpected. The patch makes sure that a non-null
DataTableMapping is passed.
svn path=/trunk/mcs/; revision=11930
* statement.cs (Block.Emit): Override this and set ec.CurrentBlock
while calling DoEmit ().
* codegen.cs (EmitContext.Mark): Don't mark locations in other
source files; if you use the #line directive inside a method, the
compiler stops emitting line numbers for the debugger until it
reaches the end of the method or another #line directive which
restores the original file.
svn path=/trunk/mcs/; revision=11880
* statement.cs (Block.AddChildVariableNames): We need to call this
recursively, not just for our immediate children.
svn path=/trunk/mcs/; revision=11868
* class.cs (Event.Define): Always make the field private, like csc does.
* typemanager.cs (TypeManager.RealMemberLookup): Make events
actually work, fixes bug #37521.
svn path=/trunk/mcs/; revision=11867
When adding any tests here, please do also add them to the
README.tests !
The following tests are still missing:
test-176 test-177 test-179 test-180 test-181 test-182 test-183
test-184
svn path=/trunk/mcs/; revision=11864
* delegate.cs: When creating the various temporary "Parameters"
classes, make sure that we call the ComputeAndDefineParameterTypes
on those new parameters (just like we do with the formal ones), to
allow them to be resolved in the context of the DeclSpace.
This fixes the bug that Dick observed in Bugzilla #38530.
svn path=/trunk/mcs/; revision=11857
* expression.cs (ResolveMemberAccess): When resolving a constant,
do not attempt to pull a constant if the value was not able to
generate a valid constant.
* const.cs (LookupConstantValue): Do not report more errors than required.
svn path=/trunk/mcs/; revision=11848
* class.cs : As, per vbc, there is a rootnamespace now, --main wasn't working anymore,
because it was expecting a fully qualified class name.
We now also test the name passed prepended by the rootnamespace.
* class.cs : Corrected warning "The keyword new is required on `Mono.CSharp.Property.Emit'
because it hides inherited member `PropertyBase.Emit'", by making it virtual
in PropertyBase and override in Property.
* makefile.gnu : test and test-gtk targets now depend on mbas.exe
svn path=/trunk/mcs/; revision=11845
* reflection.c: define RTSpecialName automatically for constructors for
compatibility with MS.NET.
* reflection.c (mono_reflection_create_runtime_class): initialize
nested_in field of dynamically created classes.
svn path=/trunk/mono/; revision=11840
* System.Data.OracleClient/OracleDateTime.cs:
* System.Data.OracleClient/OracleInfoMessageEventArgs.cs:
* System.Data.OracleClient/OracleInfoMessageEventHandler.cs:
* System.Data.OracleClient/OracleMonthSpan.cs:
* System.Data.OracleClient/OraclePermission.cs:
* System.Data.OracleClient/OraclePermissionAttribute.cs:
* System.Data.OracleClient/OracleTimeSpan.cs:
* System.Data.OracleClient.Oci/IOciDescriptorHandle.cs:
* System.Data.OracleClient.Oci/OciDescriptorHandle.cs:
* System.Data.OracleClient.Oci/OciLobLocator.cs:
New classes added. Some based on .NET docs,
others (internal) based on getting some LOB
support (doesn't actually work yet).
* list:
Add new files
* System.Data.OracleClient/OracleBFile.cs:
* System.Data.OracleClient/OracleBinary.cs:
* System.Data.OracleClient/OracleLob.cs:
* System.Data.OracleClient/OracleNumber.cs:
* System.Data.OracleClient/OracleString.cs:
Change handling of NULL object based on new
discovery.
* System.Data.OracleClient/OracleCommand.cs:
* System.Data.OracleClient/OracleDataReader.cs:
Typo fix.
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
Add some code to handle LOBs. Still more to
come.
* Test/TestOracleClient.cs:
New test for LOB added.
svn path=/trunk/mcs/; revision=11828
* appdomain.h appdomain.c:
(mono_domain_try_type_resolve): split the
name_or_tb argument into a name and a tb argument.
(mono_domain_has_type_resolve): new function to check whenever the
application has registered a TypeResolve event handler.
* icall.c reflection.h reflection.c: move the type resolve logic into
mono_reflection_get_type () so it will be invoked when
Assembly::GetType () is called.
* reflection.c:
(mono_reflection_get_type): renamed to get_type_internal.
(mono_reflection_get_type): fixed type name generation so it works
for nested types too.
(mono_reflection_get_type): call has_type_resolve () to avoid the
costly type name generation if there is no resolve event handler.
svn path=/trunk/mono/; revision=11813
* processes.c (GetCurrentProcessId): Use the current process
handle to return the process ID, as getpid() is unreliable
(linuxthreads gives each thread a different pid). Fixes bug
37550.
svn path=/trunk/mono/; revision=11804
invocation for the Mono runtime.
Dick and Paolo reported:
pthread remappes the sigrtmin signal, so it needs to be loaded from the start of the lifetime of the app
svn path=/trunk/mono/; revision=11801
* All: Updated tests for NUnit2. Some big tests where splited in
smaller ones.
* XmlDsigC14NTransformTest.cs: New, but almost empty, test suite.
* XmlDsigC14NWithCommentsTransformTest.cs: New, but almost empty,
test suite.
svn path=/trunk/mcs/; revision=11751
* DataTable.cs: DataTable.CaseSensitive follows parent
DataSet.CaseSensitive property if DataTable.CaseSensitive has never
been changed directly from DataTable
svn path=/trunk/mcs/; revision=11744
* mb-parser.jay : eliminated reduce/reduce conflict on duplicated rank_specifier rule
by renaming the one using brackets to bracketed_rank_specifier
svn path=/trunk/mcs/; revision=11728
* RemotingProxy.cs: Added new constructor for client activated objects.
Added method that handles construction messages.
svn path=/trunk/mcs/; revision=11727
* ServerContextTerminatorSink.cs: Added support for construction messages.
* MethodCall.cs: Implemented serialization support. Added support for IInternalMessage.
* MethodDictionary.cs: Added support for IInternalMessage.
* MethodResponse.cs: Added serialization support. Added support for IInternalMessage.
* MonoMethodMessage.cs: Added support for IInternalMessage.
* ReturnMessage.cs: Added support for IInternalMessage.
* ClientContextTerminatorSink.cs: Added.
* ConstructionCall.cs: Added.
* ConstructionCallDictionary.cs: Added.
* ConstructionResponse.cs: Added.
* EnvoyTerminatorSink.cs: Added.
svn path=/trunk/mcs/; revision=11726
* ObjRef.cs: Implemented EnvoySink property
* RemotingConfiguration.cs: now enables proxy creation for types registered
as ClientActivatedType or WellKnownClientType.
* RemotingServices.cs: Added support for ContextBoundObjects.
Added methods for creating proxies.
* ServerIdentity.cs: Added initialization of envoy sink.
* EnvoyInfo.cs: Added. It is an implementation on IEnvoyInfo.
svn path=/trunk/mcs/; revision=11722
used to cache the managed methods used to create proxies and make
remote invocation of methods.
* class.h: Added in MonoVTable a flag to indicate that a class needs
to be remotely created.
* object.c: Modified the method mono_class_vtable(). It now initializes
the remote flag of the vtable. Modified mono_object_new_specific(),
so now it checks the remote flag.
* icall.c: Added a couple of internal methods, one for enabling instance
creation interception for a type, and one for creating objects bypassing
the remote check.
svn path=/trunk/mono/; revision=11721
* InternalDataCollectionBase.cs: revert change to field
to fix build
* DataViewManager.cs
* DataView.cs
* DataTable.cs
* DataSet.cs: commented use of DesignerAttribute
because it broke the build. According to MSDN,
DesignerAttribute does not have a zero-argument constructor
svn path=/trunk/mcs/; revision=11716
* System.Data.OracleClient/OciBindHandle.cs:
* list:
Add new class
* System.Data.OracleClient/OracleCommand.cs:
Add transaction logic for rollback/commit,
attaching to oracle service context, and a
couple of test cases.
Add Parameter handling
* System.Data.OracleClient/OracleDataReader.cs:
Change GetValue call
* System.Data.OracleClient/OracleParameter.cs:
Make this work
* System.Data.OracleClient/OracleType.cs:
Add values to enum
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Add GetValue call which is used by data reader
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
Add parameter logic
* Test/TestOracleClient.cs:
Add some new test cases.
svn path=/trunk/mcs/; revision=11709
* class.cs: Changed all the various members that can be part of a
class from being an ArrayList to be an Array of the right type.
During the DefineType type_list, interface_list, delegate_list and
enum_list are turned into types, interfaces, delegates and enums
arrays.
And during the member population, indexer_list, event_list,
constant_list, field_list, instance_constructor_list, method_list,
operator_list and property_list are turned into their real arrays.
Although we could probably perform this operation earlier, for
good error reporting we need to keep the lists and remove the
lists for longer than required.
This optimization was triggered by Paolo profiling the compiler
speed on the output of `gen-sample-program.pl' perl script.
* decl.cs (DeclSpace.ResolveType): Set the ContainerType, so we do
not crash in methods like MemberLookupFailed that use this field.
This problem arises when the compiler fails to resolve a type
during interface type definition for example.
svn path=/trunk/mcs/; revision=11708
* debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethodToken):
New interncall to get a method's metadata token.
* icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethodToken"):
New interncall for the debugger.
svn path=/trunk/mono/; revision=11702
* MonoSymbolTable.cs (MethodIndexEntry): New public struct.
* MonoSymbolFile.cs (MonoSymbolFile.GetMethodByToken): New method.
svn path=/trunk/mcs/; revision=11700
* XmlSchemaAnnotation.cs : expect the correct closing tag on <appinfo>
and <documentation> elements. (patch by Peter Pentchev)
* XmlSchemaObjectEnumerator.cs : cast properly to XmlSchemaObject
instead of XmlSchema. (patch by Peter Pentchev)
svn path=/trunk/mcs/; revision=11699
* FileStream.cs: Make FileMode.Append work, and check for Seeking
back over old data (undocumented ms behaviour, throws an exception
if you try). Fixes bug 35975.
svn path=/trunk/mcs/; revision=11693
* MonoSymbolFile.cs (MonoSymbolFile.Assembly): New public property.
* MonoSymbolTable.cs (MethodEntry.MethodBase): New public property.
(MethodEntry.LocalTypes): New public variable.
svn path=/trunk/mcs/; revision=11688
* MonoSymbolFile.cs (MethodEntry.ThisTypeIndex): Renamed to
ClassTypeIndex; provide this for all methods so we can get the
class of static methods.
svn path=/trunk/mcs/; revision=11685
Compress some code
* CheckSum.cs: Access Lfanew through property not field.
* CorHeader.cs: Convert to class, use Read and Write methods.
* DOSHeader.cs: Convert to class, use Read and Write methods,
and Init method for creating new DOSHeaders
* DataDir.cs: Convert to class, use Read and Write methods.
* Image.cs: Access lfanew through property, add Write method.
* PEHeader.cs: Convert to class, use Read and Write methods.
* PEUtils.cs: Add GetString method for converting byte pointers
to strings.
* RVA.cs: Add Write method
* Section.cs: Use PEUtils.GetString method instead of new string (byte*)
* makefuile.gnu: Compile all the files I want compiled ;-)
svn path=/trunk/mcs/; revision=11683
* Rows.cs: Cast a bunch of enums to int when displaying
them otherwise an Exception is thrown.,
this is probably a bug but I haven't had
time to track it down yet.
* StringHeap.cs: Use PEUtils.GetString instead of new string (byte*)
svn path=/trunk/mcs/; revision=11682
* DataTableRelationCollection.cs: removed file
because its internally in file DataRelationCollection.cs
2003-02-18 Alan Tam <[email protected]>
* DataRelation.cs: Added storage required to hold the relations.
Checking of constraints are not implemented yet.
* DataRelationCollection.cs: Implemented DataSetRelationCollection
and DataTableRelationCollection, both as inner class of the abstract class
DataRelationCollection (like Microsoft although not documented in ECMA).
* DataRow.cs: Implemented GetChildRows in a extremely slow way.
Need to implement caching like Microsoft later.
* DataSet.cs: Uncomment DataRelation related members. Uncomment
code for Nested XML. Implemented WriteTable(XmlWriter, DataRow[],
XmlWriteMode) for use of Nested XML. Fixed a wrong modifier in
GetSerializationData.
* DataTable.cs: Uncomment DataRelation related members.
svn path=/trunk/mcs/; revision=11670
* System.Data.OracleClient/OracleCommand.cs:
* System.Data.OracleClient/OracleTransaction.cs:
* System.Data.OracleClient.Oci/OciTransactionHandle.cs:
* Test/TestOracleClient.cs:
Add transaction logic for rollback/commit,
attaching to oracle service context, and a
couple of test cases.
svn path=/trunk/mcs/; revision=11669
* XmlDocument.cs:
(Load (string)): hack to workaround some issues with Uri.Parse. Once
Parse is fixed, remove the hack.
svn path=/trunk/mcs/; revision=11659
* System.Web/HttpApplicationFactory.cs: Global.asax takes precedence
over global.asax if it exists.
* System.Web/HttpRequest.cs: use allowCrossAppMapping in MapPath.
* System.Web.Hosting/AppDomainFactory.cs: Web.config takes precedence
over web.config.
* System.Web.Hosting/ApplicationHost.cs: removed hacks to work around
an old bug.
svn path=/trunk/mcs/; revision=11649
* System.Web/HttpApplication.cs: CreateHttpHandler is now internal.
* System.Web/HttpRequest.cs: allow setting QueryStringRaw, which
invalidates the data obtained from the previous value. Added internal
SetFilePath method.
* System.Web/HttpServerUtility.cs: implemented Execute and GetLastError.
* System.Web.Configuration/HandlerFactoryConfiguration.cs: first search
in the mappings of this instance, then in the parent.
svn path=/trunk/mcs/; revision=11642
* FileStream.cs: Don't close the handle if the stream doesn't own
it. Patch from Raymond Penners ([email protected]), bug
35623.
svn path=/trunk/mcs/; revision=11641
* reflection.c:
(assembly_name_to_aname): jump over unknown properties (i've found
something like: 'type, assembly, version=xxx, custom=null, public...',
so now will ignore custom=null and still get the rest of the values).
svn path=/trunk/mono/; revision=11640
* System/AppDomain.cs: implemented GetCurrentThreadId ().
* System.Threading/Thread.cs: made the thread_id for the current thread
accesible through an internal property.
svn path=/trunk/mcs/; revision=11638
* threads.c: Have Thread.Start() wait for a semaphore to signal
that the thread has set up all its local data. This fixes bug
34323, where Abort() raced the new thread's TLS data.
Also removes the handle_store() call from start_wrapper, because
threads are now always created suspended and there is no longer a
race between the parent and child threads to store the info.
svn path=/trunk/mono/; revision=11637
* Thread.cs: Added the Start semaphore field to the class. Update
the thread state after Start() has returned, not before.
svn path=/trunk/mcs/; revision=11636
* icall.c:
(GetEntryAssembly): if the domain has not invoked
AppDomain.ExecuteAssembly yet, return the assembly of the default
AppDomain.
svn path=/trunk/mono/; revision=11632
* typemanager.cs (IsSpecialMethod): The correct way of figuring
out if a method is special is to see if it is declared in a
property or event, or whether it is one of the predefined operator
names. This should fix correctly #36804.
svn path=/trunk/mcs/; revision=11630
* Socket.cs: make Worker.Connect and Receive work with non-blocking
sockets. May be Receive* and Send* in Worker need to do the same. I'll
wait for bug reports. Set IsCompleted to true before invoking the end
callback. Fixes bug #38136.
svn path=/trunk/mcs/; revision=11629
* TdsConnection.cs: - parse data source for 2 possible uses:
"Server=hostname",
"Server=hostname,port" and open the connection based on the
resulting server name and port.
svn path=/trunk/mcs/; revision=11626
* SybaseConnection.cs: - parse data source for 2 possible uses:
"Server=hostname",
"Server=hostname,port" and open the connection based on the
resulting server name and port.
svn path=/trunk/mcs/; revision=11625
* TestSqlConnection.cs: added test file
to test SqlClient, SybaseClient, and TdsClient
and connections
* System.Data_test.build: excluded
TestSqlConnection.cs from NUnit tests
svn path=/trunk/mcs/; revision=11624
* ChangeLog: added this file
* SqlConnection.cs: - parse data source for 3 possible uses:
"Server=hostname",
"Server=hostname\\instancename",
"Server=hostname,port" and open the connection based on the
resulting server name and port.
- Added support for named instances
by discovery of the sql server tcp port via the sql monitor (udp port 1434)
thanks to Phillip Jerkins ([email protected]) contribution.
Also, thanks to Gonzalo and Tim for their help with timeouts.
svn path=/trunk/mcs/; revision=11623
* SqlSharpCli.cs: fix typos and when the
provider is set to oracle, it should default
to not using the simple reader
svn path=/trunk/mcs/; revision=11616
* sqlsharpgtk.cs: fixes to get data
from an Oracle 8i database via
Mono's System.Data.OracleClient. It
can only output the results to the TextView
because the Oracle provider does not have
a data adapter yet.
svn path=/trunk/mcs/; revision=11615
* System.Data.OracleClient.Oci/OciStatementHandle.cs
* System.Data.OracleClient.Oci/OciColumnInfo.cs
* System.Data.OracleClient/OciGlue.cs
* System.Data.OracleClient/OracleDataReader.cs: fixes
to display character data in SQL# command-line
and GTK# versions
* Test/TestOracleClient.cs: updated test to
include reading data via the OracleDataReader
* System.Data.OracleClient/OracleConnection.cs: removed
debug code
svn path=/trunk/mcs/; revision=11614
The goal here is to remove the dependency on EmptyCast.Peel ().
Killing it completely.
The problem is that currently in a number of places where
constants are expected, we have to "probe" for an EmptyCast, and
Peel, which is not the correct thing to do, as this will be
repetitive and will likely lead to errors.
The idea is to remove any EmptyCasts that are used in casts that
can be reduced to constants, so we only have to cope with
constants.
This bug hunt was triggered by Bug 37363 and the desire to remove
the duplicate pattern where we were "peeling" emptycasts to check
whether they were constants. Now constants will always be
constants.
* ecore.cs: Use an enumconstant here instead of wrapping with
EmptyCast.
* expression.cs (Cast.TryReduce): Ah, the tricky EnumConstant was
throwing me off. By handling this we can get rid of a few hacks.
* statement.cs (Switch): Removed Peel() code.
svn path=/trunk/mcs/; revision=11610
* image.c, image.h, class.c, assembly.c: move module loading
to MonoImage. When loading metadata, consider alignemnet from
the start of metadata, not from the metadata address in memory.
svn path=/trunk/mono/; revision=11605
* list: forgot to add this one.
* System.Web.Compilation/AspGenerator.cs: corrected typo and wrong fix.
* System.Web.UI/Control.cs: have i definitely fixed naming container
stuff this time?
* System.Web.UI/LosFormatter.cs: activated binary serialization code.
* System.Web.UI.WebControls/ButtonColumn.cs: fixed a couple of infinite
loop problems and render correctly the header of the column.
* System.Web.UI.WebControls/DataGridTableInternal.cs: don't assign a
default ID to this control.
* System.Web.UI.WebControls/LinkButton.cs: raise bubble event in
OnCommand.
* System.Web.UI.WebControls/TableCellCollection.cs: fixed the index
returned by Add.
* System.Web.UI.WebControls/TableRowCollection.cs: ditto.
svn path=/trunk/mcs/; revision=11601
* class-status.in: Added assembly System.Security and link to crypto
status page.
* crypto: Corrected html typo (too bold ;-).
svn path=/trunk/mono/; revision=11596
* delegate.cs: The signature for EndInvoke should contain any ref
or out parameters as well. We were not doing this in the past.
svn path=/trunk/mcs/; revision=11591
* x86.brg: Implemented CONV_OVF_[I|U]4 (freg), this fixes the issues
with the "checked" keyword. Closes bugs #33421 and #35280 (JIT not mint)
svn path=/trunk/mono/; revision=11582
* checked.cs: New test that tests that the runtime throws correct overflow
exceptions during execution of checked keyword.
svn path=/trunk/mono/; revision=11576
* Control.cs:
(AddedControl): fixed default id assignation when the sequence of
AddedControl until it's included in the page or one of its controls
does not pass through a naming container.
svn path=/trunk/mcs/; revision=11573
* System.Data.OracleClient.Oci/OciColumnInfo.cs:
* System.Data.OracleClient.Oci/OciDataType.cs:
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
* list:
New classes added
* System.Data.OracleClient/OciGlue.cs:
Changes to AttrGet functions
* System.Data.OracleClient/OracleCommand.cs:
* System.Data.OracleClient/OracleDataReader.cs:
Start some work on getting data reader going
* System.Data.OracleClient.Oci/OciAttributeType.cs:
Add DisplayName
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
Add code to get schema for query, as well as
define output values.
svn path=/trunk/mcs/; revision=11571
* AspElements.cs: get the property Type for controls that use
ParseChildren with a property name.
* AspGenerator.cs: generate correct signature for the method that
adds controls to the default property in ParseChildren.
svn path=/trunk/mcs/; revision=11552
* reflection.c (mono_reflection_get_custom_attrs): Added support for
AssemblyBuilder objects. Factored out custom attribute creation into
a separate function.
(create_custom_attr): new function to create custom attributes.
svn path=/trunk/mono/; revision=11551
* ActivatorTest.cs:
* MarshalByRefTest.cs: New unit tests from Jean-Marc Andr
[[email protected]]. One failure on .NET in the latter.
svn path=/trunk/mcs/; revision=11547
* GlobalizationConfiguration.cs: added internal fields to hold the
values in the globalization node.
* GlobalizationConfigurationHandler.cs: handler to load
<system.web/globalization> section.
svn path=/trunk/mcs/; revision=11543
* HttpApplication.cs: only execute the EndRequest step on error
condition or request marked as completed. This prevent page events from
being called when, for example, the url authorization module forbids
the request.
svn path=/trunk/mcs/; revision=11541
* ecore.cs (FieldExpr.AddressOf): In the particular case of This
and structs, we do not want to load the instance variable
svn path=/trunk/mcs/; revision=11540
* Makefile.am: Got tired of typing the full pathname to pedump.
Until there is another option, am installing this.
svn path=/trunk/mono/; revision=11534
* ecore.cs (ImplicitReferenceConversion,
ImplicitReferenceConversionExists): enum_type has to be handled
like an object reference (implicit conversions exists from this to
object), but the regular IsClass and IsValueType tests will never
return true for this one.
Also we use TypeManager.IsValueType instead of type.IsValueType,
just for consistency with the rest of the code (this is only
needed if we ever use the construct exposed by test-180.cs inside
corlib, which we dont today).
svn path=/trunk/mcs/; revision=11533
* added argument.cs (extracted from expression.cs) makefiles corrected
* mb-parser.jay : eliminated reduce/reduce conflict on opt_argument_list rule,
by putting and if to make a argument list with just an empty argument list become an empty list
svn path=/trunk/mcs/; revision=11524
* list: added AuthorizationConfig and AuthorizationConfigHandler.
* System.Web/HttpRequest.cs: implemented the indexer.
* System.Web.Configuration/AuthorizationConfigHandler.cs: handler for
system.web/authorization section.
* System.Web.Configuration/AuthorizationConfig.cs: keeps record of
authorization configuration.
* System.Web.Security/FormsAuthentication.cs: implemented
RedirectFromLoginPage and GetRedirectUrl.
* System.Web.Security/FormsAuthenticationModule.cs: redirect to the
login page when a 401 error happens.
* System.Web.Security/UrlAuthorizationModule.cs: check for valid user
or render error page.
svn path=/trunk/mcs/; revision=11512
* configure.in: added check for sys/un.h.
* mono/metadata/socket-io.c: support AF_UNIX and use the same layout as
MS, not the one they documented (bytes 0 and 1 are the family).
svn path=/trunk/mono/; revision=11511
* System.Data.SqlClient/SqlConnection.cs:
* System.Data.SqlClient/SqlDataReader.cs:
Close the data reader properly, and be sure
to close the data reader when the connection
is closed.
svn path=/trunk/mcs/; revision=11492
* threads-types.h:
* monitor.c: Rewrote Monitor, making lock much faster and
Pulse/Wait work as specified. Also uses much fewer handles, and only
creates them as needed.
* exception.c: Added SynchronizationLockException
* threads.c: Deleted old Monitor implementation. The new one is
in a new file.
2003-02-11 Dick Porter <[email protected]>
* timefuncs.h:
* timefuncs.c: Added GetTickCount()
svn path=/trunk/mono/; revision=11483
* trampoline.c (arch_create_jit_trampoline): This function should
allways return a trampoline for managed methods. Fixes bug #29859.
svn path=/trunk/mono/; revision=11480
* list: added a couple of new files.
* System.Web/HtmlizedException.cs: base class for exceptions that makes
it easy to generate error pages.
* System.Web/HttpException.cs: improved error displaying.
* System.Web/HttpRuntime.cs: removed debugging output.
* System.Web.Compilation/AspGenerator.cs: throw ParseException on parse
error.
* System.Web.Compilation/AspParser.cs: added Line and Column props.
* System.Web.Compilation/CompilationException.cs: derives now from
HtmlizedException.
* System.Web.Compilation/CompilationResult.cs: added fileName field.
Fixed set_ExitCode.
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs: pass the file name in
the CompilationResult.
* System.Web.Compilation/ParseException.cs: new exception.
svn path=/trunk/mcs/; revision=11467
* library.build:
Disable OracleClient build on Windows so that I don't
break the build. I'm developing on Linux at present.
svn path=/trunk/mcs/; revision=11456
* class.c: handled TypedReference type code. Set the correct size for
class data. Setup interface_offsets for interface classes, too.
svn path=/trunk/mono/; revision=11447
* Mono.CSharp.Debugger.build: passing the /r using an 'arg' node works.
The <include> node wasn't getting to the compiler. This fixes build
breakage on cygwin.
* MonoSymbolFile.cs: Qualify which Min method. Fixes build breakage
on cygwin.
svn path=/trunk/mcs/; revision=11441
* ConstructorBuilder.cs:
- Added basic error checking to all methods according to the MSDN docs.
- modified a lot of methods to throw NotSupportedException, to comply
with MS.NET.
svn path=/trunk/mcs/; revision=11440
* TypeBuilder.cs:
- Added basic error checking to all methods according to the MSDN docs.
- fixed AssemblyQualifiedName.
- implemented 'Size'.
- modified a lot of methods to throw NotSupportedException, to comply
with MS.NET.
- changes tested by running a full bootstrap.
svn path=/trunk/mcs/; revision=11437
* InstrBase.cs: Take a Class instead of CodeGen when emiting
* Method.cs: Replace MethodInfo property with MethodBuilder property,
Add resolve method
* Instructions.cs: Take Class instead of CodeGen when emitting,
get member methods from Class.
* TypeManager.cs: Add set indexer
svn path=/trunk/mcs/; revision=11431
* AssemblyBuilder.cs (AssemblyBuilder.methods): Removed. This was
a hack for the symbol writer which is no longer needed.
svn path=/trunk/mcs/; revision=11423
* namespace.cs (Namespace..ctor): Added SourceFile argument.
(Namespace.DefineNamespaces): New static public method; this is
called when we're compiling with debugging to add all namespaces
to the symbol file.
* tree.cs (Tree.RecordNamespace): Added SourceFile argument and
pass it to the Namespace's .ctor.
* symbolwriter.cs (SymbolWriter.OpenMethod): Added TypeContainer
and MethodBase arguments; pass the namespace ID to the symwriter;
pass the MethodBase instead of the token to the symwriter.
(SymbolWriter.DefineNamespace): New method to add a namespace to
the symbol file.
svn path=/trunk/mcs/; revision=11419
* MonoSymbolWrtier.cs (SourceFile): Derive from SourceFileEntry.
(SourceBlock): We don't need source lines here.
(SourceMethod): We're always constructed with source info.
* MonoSymbolTable.cs: Added support for namespaces.
(NamespaceEntry): New struct.
(SourceFileEntry.DefineNamespace): New method.
(MethodEntry.BuildLineNumberTable): The table is already sorted,
so we don't need to do this here.
svn path=/trunk/mcs/; revision=11417
* interp.c: added a dummy mono_runtime_install_handlers function to
avoid crashing when ves_pinvoke_method tries to call it.
svn path=/trunk/mono/; revision=11411
* symbolwriter.cs: New file. This is a wrapper around
ISymbolWriter with a cleaner API. We'll dynamically Invoke()
methods here in near future.
svn path=/trunk/mcs/; revision=11410
* codegen.cs (EmitContext.Mark): Just pass the arguments to
ILGenerator.MarkSequencePoint() which are actually used by the
symbol writer.
svn path=/trunk/mcs/; revision=11407
* IMonoSymbolWriter.cs (MarkSequencePoint): New method which takes
just the required arguments as scalars, not arrays.
* ILGenerator.cs (ILGenerator.MarkSequencePoint): Use that new
interface method; unnecessarily creating such a large number of
arrays is both slow and too memory consuming.
svn path=/trunk/mcs/; revision=11406
* location.cs (SourceFile): New public sealed class. This
contains the name and an index which is used in the location's token.
(Location): Reserve an appropriate number of bits in the token for
the source file instead of walking over that list, this gives us a
really huge performance improvement when compiling with debugging.
* driver.cs (Driver.parse, Driver.tokenize_file): Take a
`SourceFile' argument instead of a string.
(Driver.ProcessFile): Add all the files via Location.AddFile(),
but don't parse/tokenize here, we need to generate the list of all
source files before we do that.
(Driver.ProcessFiles): New static function. Parses/tokenizes all
the files.
* cs-parser.jay (CSharpParser): Take a `SourceFile' argument
instead of a string.
* cs-tokenizer.cs (Tokenizer): Take `SourceFile' argument instead
of a string.
svn path=/trunk/mcs/; revision=11405
* loader.c: implemented MEMBERREF_PARENT_TYPEDEF.
* metadata.c, reflection.c: missing MONO_TYPE_TYPEDBYREF handling.
* object.c: fixed mono_object_get_virtual_method () for interfaces.
* verify.c: check for code that runs after the end of the method.
svn path=/trunk/mono/; revision=11398
* Control.cs: give different default names depending on the place where
it is assigned. Implemented ResolveURl (no more ~ rendered in
attributes!).
svn path=/trunk/mcs/; revision=11392
* System.Data.OracleClient/OciGlueLib_BCC_win32.make:
* System.Data.OracleClient/OciGlueLib_MSVC_win32.make:
change name of library to ociglue.dll
* System.Data.OracleClient/ociglue.c:
Use the "database" parameter as TNSNAME.
* System.Data.OracleClient/OciGlue.cs:
Change DllImport from "System.Data.OracleClient.ociglue.dll" to
"ociglue".
* System.Data.OracleClient/OciGlueLib_GCC_linux.make:
added makefile for ociglue shared lib on Linux platform
and compiler gcc.
svn path=/trunk/mcs/; revision=11387
* CodeGen.cs: Add TypeManager attribute
* InstrBase.cs: Take a CodeGen in Emit method
* Instructions.cs: Take a CodeGen in Emit method, handle arg lists better
* Method.cs: Handle local variables better
svn path=/trunk/mcs/; revision=11382
* System.Data.OracleClient/OciGlueLib_GCC_linux.make:
added makefile for ociglue shared lib on Linux platform
and compiler gcc.
svn path=/trunk/mcs/; revision=11381
* MethodBuilder.cs: Added error checking to methods so they conform to
MSDN docs. Implemented 'GetModule' and 'CallingConvention' members.
Some other tweaks to improve compatibility with MS .NET.
* TypeBuilder.cs: Added 'is_created' property which will be used for
checking 'type is already created' errors.
svn path=/trunk/mcs/; revision=11354
* CryptoTools.cs: Renamed namespace to match new location.
* PKCS1.cs: Renamed namespace to match new location.
* HMACAlgorithm.cs: New. Generic class to implement HMAC
using any hash algorithm (was in S.S.C.HMACSHA1.cs).
* MACAlgorithm.cs: New. Generic class to implement MAC
using any symmetric algorithm (was in S.S.C.MACTripleDES.cs).
svn path=/trunk/mcs/; revision=11346
* MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): New public
static method, returns null (without throwing an exception) if the
assembly doesn't have any debugging info.
svn path=/trunk/mcs/; revision=11312
* debug-mono-symfile.c: Reflected latest symwriter changes.
(mono_debug_create_mono_symbol_file): Removed.
(mono_debug_open_mono_symbol_file): Take an argument which
specifies whether to create a dynamic symbol file.
svn path=/trunk/mono/; revision=11310
* driver.cs: Removed the `--debug-args' command line argument.
* codegen.cs (CodeGen.SaveSymbols): Removed, this is now done
automatically by the AsssemblyBuilder.
(CodeGen.InitializeSymbolWriter): We don't need to call any
initialization function on the symbol writer anymore. This method
doesn't take any arguments.
svn path=/trunk/mcs/; revision=11301
* ModuleBuilder.cs (.ctor): Added `bool IsMainModule' argument.
(Save): New internal method; creates the module's symbol file if
we're compiling with debugging information.
* AssemblyBuilder.cs (EmbedResource): Added internal overloaded
version of this method which takes a `byte[] blob' instead of a file.
(DefineDynamicMethod): If this is the first module, tell the
ModuleBuilder that this is the main module.
(Save): Call a new interncall `build_metadata' to create the final
metadata and save all the symbol files before creating the actual
output.
* IMonoSymbolWriter.cs: New public class; it is in the namespace
Mono.CSharp.Debugger. The Mono symbol writer implements this interface.
svn path=/trunk/mcs/; revision=11299
* reflection.c (mono_image_build_metadata): Make this public,
protect it against being called multiple times, don't create
resources and don't build the compressed metadata here.
(mono_image_create_pefile): Do this here.
* icall.c
("System.Reflection.Emit.AssemblyBuilder::build_metadata"): Added.
svn path=/trunk/mono/; revision=11298
* MonoSymbolFile.cs: The symbol file is now a resource in the
assembly instead of a separate file.
* MonoSymbolTable.cs: Did a few more cleanups, sort the line
number table and remove duplicate line numbers.
svn path=/trunk/mcs/; revision=11295
Removed implementation of CreateObjRef. Now it is implemented in the derived classes.
* ServerIdentity.cs: Added implementation of CreateObjRef.
* RemotingServices.cs: Changed implementation of GetRemoteObject and GetClientIdentity.
Now they only have and ObjRef as input parameter. This is the objref received from
the server. Unmarshal() also checks if the objref is for a well known object.
In this case, a proxy is always created, but if not, it tries to get the real object.
* ObjRef.cs: Added some flags that have info for marshalling/unmarshalling.
Changed behavior of IsPossibleToCAD. Now returns false. Returning true makes serialization
of this ObjRef to fail in the target AD. Added method UpdateChannelInfo.
svn path=/trunk/mcs/; revision=11292
* marshal.c (mono_marshal_get_remoting_invoke_with_check): new
function. works like remoting invoke, but does a check for the Proxy first.
svn path=/trunk/mono/; revision=11271
* library.build: added Mono.Security.Win32 to build, test and
clean. There's no makefile.gnu for this assembly as it is
specific to Win32.
svn path=/trunk/mcs/; revision=11266
* MD2CryptoServiceProviderTest.cs: New. Run the MD2Test
unit tests using MD2CryptoServiceProvider class.
* MD2Test.cs: New. Implement the test vectors included
in RFC1319.
* MD4CryptoServiceProviderTest.cs: New. Run the MD4Test
unit tests using MD4CryptoServiceProvider class.
* MD4Test.cs: New. Implement the test vectors included
in RFC1320.
* MD5CryptoServiceProviderTest.cs: New. Run the MD5Test
unit tests using MD5CryptoServiceProvider class.
* MD5Test.cs: New. Implement the test vectors included
in RFC1321.
* RandomNumberGeneratorTest.cs: New. FIPS140 randomness
tests.
* SHA1CryptoServiceProviderTest.cs: New. Run the SHA1Test
unit tests using SHA1CryptoServiceProvider class.
* SHA1Test.cs: New. Implement the test vectors included
in FIPS186.
svn path=/trunk/mcs/; revision=11263
* HttpApplication.cs: display the error instead of hanging when we get
any error before the last step of the request.
svn path=/trunk/mcs/; revision=11261
* CapiContext.cs: New. Class to acquire and release an
unmanaged context with CryptoAPI.
* CapiHash.cs: New. Base class to handle hash algorithms.
* CapiRandomNumberGenerator.cs: New. Base class to handle
random number generation.
* CryptoAPI.cs: Wrapper class around CryptoAPI.
* MD2.cs: Abstract class for Message Digest 2 (RFC1319).
* MD2CryptoServiceProvider.cs: Unmanaged MD2 implementation.
* MD4.cs: Abstract class for Message Digest 4 (RFC1320).
* MD4CryptoServiceProvider.cs: Unmanaged MD4 implementation.
* MD5CryptoServiceProvider.cs: Unmanaged MD5 implementation.
* RNGCryptoServiceProvider.cs: Unmanaged RNG implementation.
* MD2CryptoServiceProvider.cs: Unmanaged SHA1 implementation.
svn path=/trunk/mcs/; revision=11259
* Mono.Security.Win32.build: New. NAnt build file. As this
assembly works only on Windows there are no makefile.gnu.
* README: New. Describe how to use (and not to use) this
assembly.
svn path=/trunk/mcs/; revision=11258
* System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSink.cs:
* System.Runtime.Remoting.Channels.Tcp/TcpMessageIO.cs:
* System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs:
Change MessageType to MessageStatus so the code is
more clear
svn path=/trunk/mcs/; revision=11254
* marshal.c (mono_marshal_get_native_wrapper): only allocate an
array of pointers.
(mono_marshal_get_ldfld_wrapper): only generate necessary ldfld wrappers.
(mono_marshal_get_stfld_wrapper): only generate necessary stfld wrappers.
svn path=/trunk/mono/; revision=11242
* object.c (mono_store_remote_field_new): used by the new jit
instead of mono_store_remote_field
(mono_load_remote_field_new): used by the new jit
instead of mono_load_remote_field
svn path=/trunk/mono/; revision=11241
* appdomain.c: changed unload to take the domain id instead
of domain
* icall.c: changed icall for AppDomain.Unload to AppDomain.InternalUnload
svn path=/trunk/mono/; revision=11237
* CryptoConfig.cs: Added initital support for "machine.config"
(limited to algorithms, not OIDs). Modified CreateFromName to use
the fully qualified class names (and removed xmldsig hack). Added
algorithm names documented in book ".NET Framework Security".
svn path=/trunk/mcs/; revision=11228
Modified the symbol file format to speed up method looks by name
and cleaned this up a lot.
* MonoSymbolFile.cs: New public class. This is now a public class
and writes and reads the symbol file.
* IMonoBinaryReader.cs: Removed.
* MonoSymbolTable.cs: Set version number to 29.
svn path=/trunk/mcs/; revision=11223
* FileTest.cs: Have setup remove files before testing as well in case
tests were interrupted before TearDown could be called in a previous
run. Also test for specific exception in TestGetCreationTime ().
svn path=/trunk/mcs/; revision=11209
* configure.in: added check for sys/un.h.
* mono/metadata/socket-io.c: support AF_UNIX and use the same layout as
MS, not the one they documented (bytes 0 and 1 are the family).
svn path=/trunk/mono/; revision=11207
* ReturnMessage.cs: Removed internal dependence to MonoMethodMessage. It is not needed now.
* MonoMethodMessage.cs: Now only has method call keys in the dictionary.
* MethodReturnDictionary.cs, MethodCallDictionary.cs: Made public the list of
method keys. This list is used in MessageFormatter.
* MethodDictionary.cs: Corrected some minor bugs.
* MethodCall.cs: minor correction on constructor.
svn path=/trunk/mcs/; revision=11199
* LeaseSink.cs: implemented renewal of lease.
* Lease.cs: Added. It is an implementation of ILease.
* LeaseManager.cs: Added. Tracks lifetime of remote objects.
svn path=/trunk/mcs/; revision=11198
* ServerIdentity.cs: added. Implements identity funtionality specific to server objects
* RemotingServices.cs: Modified to work with new types of identities.
* RemotingConfiguration.cs: Modified to work with new types of identities.
* ObjRef.cs: Added initialization of channel info in default constructor.
* Identity.cs: Added support for WellKnownService objects.
svn path=/trunk/mcs/; revision=11196
* reflection.c: added support for SignatureHelper tokens, which is
needed by the Calli opcode.
* reflection.h: track changes to SignatureHelper class.
* metadata.c (mono_metadata_parse_signature): handle dynamic tokens.
svn path=/trunk/mono/; revision=11192
* PasswordDeriveBytesTest.cs: Added some new tests to complete
coverage.
* RSAPKCS1SignatureDeformatterTest.cs: Added test for null and
invalid hash algorithm.
svn path=/trunk/mcs/; revision=11188
* PasswordDeriveBytes.cs: Finally got the derivation right. The
class can now derive keys up to 1000 * HashSize (same limit as MS).
* RSAPKCS1SignatureDeformatter.cs: No need to create the hash object
in this class - the OID is enough.
svn path=/trunk/mcs/; revision=11187
* rootcontext.cs : added RootNamespace member
* mb-parser.jay : use RootContext.RootNamespace to initialize outermost namespace
* driver.cs :
- implement rootnamespace parameter, and defaults it to the output file name
- like vbc if no source file name is provided just show help
svn path=/trunk/mcs/; revision=11179
* RemotingServices.cs:
(GetMethodBaseFromMethodMessage): fixed to make it also work with
internal methods without MethodSignature (see ApplicationHost.cs).
svn path=/trunk/mcs/; revision=11178
* corlib.build: fixes so corlib_cmp and corlib_res builds, need to
check if we need the libs and if they still are correct.
svn path=/trunk/mcs/; revision=11169
* MethodResponse.cs: Implemented
* MethodCall.cs: added support for Cross appdomain messages, implemented some
missing methods.
* MethodDictionary.cs: made serializible and added methods to get internal properties.
* MonoMethodMessage.cs: internal dictionary is now serializible
* ReturnMessage.cs: made serializible
* ErrorMessage.cs: typo fix
* CADMessage.cs: new file, implements cross appdomain messages, both call and return.
Princip of this classes is to move unmutable objects and primitivs between appdomains
without marshalling. This increase performance a lot of the cross appdomain channel.
svn path=/trunk/mcs/; revision=11161
* RealProxy.cs: changed excption behavior and added serialization helpers,
changed so it don't create a new TP for each gettp call.
* RemotingProxy.cs: added functions to short cut calls to GetHashCode and GetType,
same behavior as MS.
svn path=/trunk/mcs/; revision=11157
* appdomain.[c|h], domain.c :
- Added support for getting a domain via domain id
- Support for setting and getting domain from System.AppDomain
(used in cross appdomain channel)
- Added support for get/set for a MonoAppContext on a thread
(Context class in System.Runtime.Remoting.Contexts),
- Removed hack in Get/SetData and ExecuteAssembly.
* icall.c : renamed GetTransparantProxy to InternalGetTransparantProxy to allow
the managed world to get control when a proxy is created.
* icall.c (ves_icall_InternalExecute) : bug fix, must return empty array
svn path=/trunk/mono/; revision=11156
* System.Web.Compilation/AspParser.cs: the parser fires events when it
parses an element.
* System.Web.UI/SimpleWebHandlerParser.cs:
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs:
* System.Web.Compilation/AspElements.cs: modified to use the new parser
interface.
* System.Web.Compilation/AspGenerator.cs: modified to use the new
parser. Merge multiple text strings into one single LiteralControl.
* System.Web.Compilation/AspTokenizer.cs: added Line and Column properties.
svn path=/trunk/mcs/; revision=11146
* debug.c (mono_debug_add_wrapper): Lookup the wrapper method in a
hash table; we need to provide the correct code_size.
svn path=/trunk/mono/; revision=11137
* jit.c (mono_jit_compile_method): Call mono_debug_add_wrapper()
to add the interncall to the symbol file.
* debug.c (mono_debug_add_wrapper): New public function.
svn path=/trunk/mono/; revision=11126
* Class.cs: Test for entry point of methods, and set Assembly entrypoint
* CodeGen.cs: Add method to set an Assemblys entry point
* Method.cs: Add IsEntryPoint property
* Method.cs Add MethodInfo property, and set this while Emiting
* Instructions.cs: Add new InstrCall instruction
svn path=/trunk/mcs/; revision=11118
* AsymmetricSignatureFormatter.cs: Call abstract SetHashAlgorithm
when CreateSignature(hash) is called.
* CryptoStream.cs: Fixed some issues in constructor.
* DSACryptoServiceProvider.cs: Fixed a bug (1 chance in 256) that
a signature could be less than 40 bytes (which is invalid).
svn path=/trunk/mcs/; revision=11107
* Modules.cs: Oups - not implemented. Added MonoTODO to most methods
so it's real status get reflected correctly on the web site.
svn path=/trunk/mcs/; revision=11106
grammar (even if it still needs a hook in the parser).
Event declaration has been added
Fixed a few bugs in the grammar and in FixuPtypes, a helper function used
to declare fields and local vars.
svn path=/trunk/mcs/; revision=11091
* MemoryStream.cs: use BlockCopyInternal instead of Array.Copy, this is
the same way as MS does it (performance improvement)
svn path=/trunk/mcs/; revision=11077
* ArrayList.cs (RemoveAt): duplicated the the code from RemoveRange
here, since RemoveAt raises a different exception than RemoveRange
when the index is out-of-range. Fixes the ArrayList unit tests.
* ArrayList.cs (RemoveRange): fixed indentation.
svn path=/trunk/mcs/; revision=11075
* X509CertificateCollection.cs: Replaced the use of the private
ArrayList by the protected InnerList (from CollectionBase) so
Count property now works.
svn path=/trunk/mcs/; revision=11072
* TimeZoneTest.cs: Added "Eastern Standard Time" to the test.
This won't be complete until all time zone are added (added a
Fail for unsupported TimeZones).
svn path=/trunk/mcs/; revision=11071
* StringBuilder.cs: fix the constructor: 'value' can be NULL,
'capacity' must be >=0, use defaultCapacity only if capacity equals 0.
This fixes the StringBuilder unit tests.
svn path=/trunk/mcs/; revision=11069
* ExpressionElement.cs: Added new file. This file is for parsing
and DataData.Select () -methods and DataColumn.Expression -property
* DataTable.cs: Implemented Select(string) -method
svn path=/trunk/mcs/; revision=11060
* ByteTest.cs: Updated Setup to support my Locale. Better but
probably still incomplete.
* DoubleTest.cs: Updated Setup to support my Locale. You can now
use a comma (or anything else) instead of a dot (.).
* ConvertTest.cs: Updated TestToDecimal and TestToDouble to
support my Locale. You can now use a comma (or anything else)
instead of a dot (.).
svn path=/trunk/mcs/; revision=11037
* BrowsableAttribute.cs: this attribute applies to All. Since the fix
to bug #37380, mcs complained about this when compiling System.Data.
svn path=/trunk/mcs/; revision=11036
* System/MonoCustomAttrs.cs: fixed shortcut in GetCustomAttributes.
The argument ICustomAttributeProvider can be of other types different
from Type. Handle it.
* System.Reflection/MonoMethod.cs: implemented GetBaseDefinition ().
* System.Reflection.Emit/MethodBuilder.cs: GetBaseDefinition () returns
this.
Fixes bug #37380.
svn path=/trunk/mcs/; revision=11035
* MonoMethod.cs: Added support for serialization for MonoMethod and MonoCMethod
* ReflectionSerializationHolder.cs: Support class for serialization
svn path=/trunk/mcs/; revision=11030
* Directory.cs (GetFileSystemEntries): moved error handling to the
correct instance of GetFileSystemEntries so all callers can enjoy it.
svn path=/trunk/mcs/; revision=11029
* makefile.gnu: compile and run with debugging enabled.
* makefile.gnu: added SUBDIR variable to enable building a subset of
the tests, saving on compilation time during development.
* run_test.sh: updated to nunit2.
svn path=/trunk/mcs/; revision=11028
* System.Web/HttpRequest.cs: added BaseVirtualDir property and use it
in MapPath.
* System.Web.UI.HtmlControls/HtmlControl.cs: _tagName is now internal.
* System.Web.UI.HtmlControls/HtmlGenericControl.cs: use the field in
HtmlControl to keep the tag name.
* System.Web.Util/UrlUtils.cs: fixed Combine ().
svn path=/trunk/mcs/; revision=11027
* RemotingConfiguration.cs: Implemented most of methods (Configure is not working yet).
* ObjRef.cs: Added initialization of channel info in default constructor.
* Identity.cs: Added support for WellKnownService objects.
svn path=/trunk/mcs/; revision=11020
* marshal.c, marshal.h: use larger integers in mono_mb_emit_add_to_local()
to avoid overflows (bug spotted and fixed by Jerome Laban <[email protected]>).
svn path=/trunk/mono/; revision=11002
* Npgsql.build: got it to work for Windows build
* Npgsql/Npgsql.build
* Npgsql/Npgsql.cmbx
* Npgsql/Npgsql.prjx: removed files not needed
svn path=/trunk/mcs/; revision=11001
* added the Npgsql (Npgsql is a .Net Data Provider for PostgreSQL)
from http://gborg.postgresql.org/project/npgsql/projdisplay.php
by adding the following files and directories to the mcs module
in mono-cvs.ximian.com at mcs/class:
Npgsql (directory)
ChangeLog
Makefile
Npgsql.build
RELEASENOTES.txt
TODO.txt
makefile.gnu
LICENSE.txt
README.txt
STATUS.txt
list
Npgsql/Npgsql (directory)
Npgsql/AssemblyInfo.cs
Npgsql/NpgsqlAsciiRow.cs
Npgsql/NpgsqlBackEndKeyData.cs
Npgsql/NpgsqlClosedState.cs
Npgsql/NpgsqlCommand.cs
Npgsql/NpgsqlConnectedState.cs
Npgsql/NpgsqlConnection.cs
Npgsql/NpgsqlConnector.cs
Npgsql/NpgsqlConnectorPool.cs
Npgsql/NpgsqlDataAdapter.cs
Npgsql/NpgsqlDataReader.cs
Npgsql/NpgsqlEventLog.cs
Npgsql/NpgsqlException.cs
Npgsql/NpgsqlMediator.cs
Npgsql/NpgsqlMessageTypes.cs
Npgsql/NpgsqlParameter.cs
Npgsql/NpgsqlParameterCollection.cs
Npgsql/NpgsqlPasswordPacket.cs
Npgsql/NpgsqlQuery.cs
Npgsql/NpgsqlReadyState.cs
Npgsql/NpgsqlResultSet.cs
Npgsql/NpgsqlRowDescription.cs
Npgsql/NpgsqlStartupPacket.cs
Npgsql/NpgsqlStartupState.cs
Npgsql/NpgsqlState.cs
Npgsql/NpgsqlTransaction.cs
Npgsql/PGUtil.cs
svn path=/trunk/mcs/; revision=11000
* configure.in: added WIN32_THREADS flag when building under windows.
It seems that the header files of the gc do not always define it when
GC_WIN32_THREADS is defined.
svn path=/trunk/mono/; revision=10993
* DateTime.cs: fix FromFileTime so the time returned by
File::GetLastModificationTime etc. is in the correct timezone.
svn path=/trunk/mcs/; revision=10985
* RemotingSurrogateSelector.cs: Added serialization support for MBR's.
* RemotingSurrogate.cs: Moved ObjRefSurrogate and MBRSurrogate to new file.
* ErrorMessage.cs: Dummy used when an exception occours.
* MonoMethodMessage.cs: Added Serializable and support for be created with null methods
svn path=/trunk/mcs/; revision=10979
* ArrayTest.cs: Avoid nulls in arrays. This crashes mono.
* ConsoleTest.cs: Ignore some tests that hang mono.
* ConvertTest.cs: Ignore some tests that hang mono.
svn path=/trunk/mcs/; revision=10969
* exception.c (ves_icall_get_trace): avoid crash if the exception is
not yet thrown.
* exception.c (ves_icall_get_trace): avoid crash on unmanaged frames.
svn path=/trunk/mono/; revision=10960
* icall.c: (ves_icall_System_CurrentTimeZone_GetTimeZoneData): raise an
exception instead of going into an infinite loop on dates which it
can't yet handle.
* string-icalls.c (ves_icall_System_String_get_Chars): raise
out-of-range exception if needed.
* class.c (mono_class_setup_vtable): allow a virtual method to provide
an implementation for an interface method and to override an inherited
method at the same time.
Imagine a scenario when a virtual method is used to override a
virtual abstract method in a parent class, and this same method
provides an implementation for an method inherited from an interface.
In this case, the interface resolution code will set im->slot, which
means that the virtual method override pass will skip this method
which means a pointer to the abstract method inherited from the parent
will remain in the vtable of this non-abstract class.
* class.c: (mono_class_setup_vtable): continue search for a real
method if only an abstract method is found.
svn path=/trunk/mono/; revision=10959
* IListControl.cs : A private class hacked.
* PagedControl.cs : Fixed typo error (OnPageChange)
* List.cs : Stubbed almost all methods. Will
implement tommorrow. Time to sleep.
* MobileListItemCollection.cs
: Finally, a collection class will bite
me all. ;-)
svn path=/trunk/mcs/; revision=10955
* List.cs, PagedControl.cs
: Was I drunk? or Sleeping when I wrote
the classes? I mixed up the methods.
Reorganizing.
* PagedControl.cs : Completed.
svn path=/trunk/mcs/; revision=10954
* class.c (mono_class_setup_vtable): pass the override info as an
argument.
* class.c (mono_class_setup_vtable): set the slot of overriding methods
correctly.
* reflection.c (ensure_runtime_vtable); add support for method
overrides.
svn path=/trunk/mono/; revision=10949
* reflection.c (resolution_scope_from_image): Hack to work to work with
dynamic assemblies.
* reflection.c (mono_image_typedef_or_ref): renamed to ..._aux and
added a 'force_ref' argument to force this function to allways return
a TypeRef. This is needed by mono_image_get_memberref_token ().
svn path=/trunk/mono/; revision=10948
* reflection.c (mono_image_get_type_info): interfaces really don't have
a parent.
* reflection.c (mono_image_basic_init): fill out missing fields of
image structure.
* reflection.c (mono_image_basic_init): Invoke assembly load hooks for
dynamic assemblies. This is required so dynamic assemblies show up in
AppDomain.GetAssemblies (), emit an AssembyLoadEvent, gets searched by
Type::GetType() etc. This is consistent with MS behaviour.
* image.c image.h reflection.c: add newly created classes to the name
cache so mono_class_get () will find them.
svn path=/trunk/mono/; revision=10946
First part of changes to get IKVM.NET running under mono.
* appdomain.h, appdomain.c: added new function
mono_domain_try_type_resolve() which will emit TypeResolve events.
This function will call AppDomain::DoTypeResolve to do the actual work.
* class.h, class.c, loader.c, object.c, reflection.h, reflection.c:
moved existing code dealing with dynamic tokens to a new function
called mono_reflection_lookup_dynamic_token (). This function will
raise TypeResolve events when appropriate. Since reflection.c is not
part of libmetadata, a new hook function called
mono_lookup_dynamic_token() is added to class.c which will call this.
* assembly.h assembly.c: make the invoke_load_hook function public,
so it can be called for dynamic assemblies.
* icall.c (ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor): skip interfaces since they do not have initializers.
* icall.c (ves_icall_type_from_name): emit a TypeResolve event if the
type isn't found.
* reflection.c reflection.h: change MonoDynamicAssembly.tokens to a
MonoGHashTable, since it contains pointers to objects which the GC
needs to track.
* assembly.c (search_loaded): remove unused variable.
svn path=/trunk/mono/; revision=10944
* expression.cs (IndexerAccess.DoResolve): Before trying to resolve
any indexer, it's needed to build a list with all the indexers in the
hierarchy (AllGetters), else we have problems. Fixes#35653.
svn path=/trunk/mcs/; revision=10932
* AssemblyBuilder.cs (Save): Set the executable bit at the end.
This uses a non-official enumeration value to call SetFileAttributes.
svn path=/trunk/mcs/; revision=10928
* io.c (SetFileAttributes): This routine is not currently
implemented for the general case, but I added a special case to
set the executable bit on Linux.
svn path=/trunk/mono/; revision=10926
* System.Data/DataColumn.cs: fix to not check for DataType being set
* System.Data/DataRow.cs: misc fixes
* Test/SqlTest.cs: accept connection parameters from
command line instead of being hard coded
* Test/System.Data_test.build: exclude building SqlTest.cs
* Test/System.Data/DataRowTest.cs
* Test/System.Data/DataColumnTest.cs: added new tests and numbered
all the tests so they can be easily identified
* Test/System.Data/DataRelationTest.cs: commented code that calls
DataSet's BeginEdit() and EndEdit() which causes a compile error
svn path=/trunk/mcs/; revision=10916
* DbEnumerator.cs: why does the runtime throw an invalid cast here? The
object is an Int16... Gotta fill a bug report and when fixed undo this
patch.
svn path=/trunk/mcs/; revision=10914
* DataGrid.cs: AutoGenerateColumns defaults to true. Fixed
CreateColumnSet. Set the owner of the column when auto generated.
In PrepareControlHierarchyForItem, fixed for loop bound.
* LinkButtonInternal.cs: fixed infinite recursion bug.
Fixes bug #37124.
svn path=/trunk/mcs/; revision=10910
* threads.c (start_wrapper): Moved the initialization of
`start_func' above the mono_new_thread_init() call to which we
pass it as argument.
svn path=/trunk/mono/; revision=10886
* System.Data/DataColumn.cs: fixes to be like .NET -
when setting AllowDBNull to false, determine if there is
any data that has DBNull.Value, implement AutoIncrement, do not
allow changing the DataType of the column if data has already been
set, check if the DataType is supported,
* System.Data/DataColumnCollection.cs: handle default ColumnName
like .NET
* System.Data/DataRow.cs: fixes to be like .NET - a
data column gets initialized to all DBNull.Values not null,
implement AutoIncrement, when setting ItemArray if the item array being
set has less items than the number of columns in the table set those last
columns to DBNull.Value, after setting ItemArray values do an EndEdit(),
both a null and DBNull.Value get set to a DBNull.Value, only use DefaultValue
and AutoIncrement if the value is set to null while DBNull.Value only gets set
to DBNull.Value
svn path=/trunk/mcs/; revision=10882
* ObjectReader.cs (ReadNextObject): Call
RaiseDeserializationEvent() on the ObjectManager when we're done
reading the whole graph.
svn path=/trunk/mcs/; revision=10873
* Math.cs: Remove Pow's implementation body as it was wrong. The
C code does the right thing. The code was trying to handle a
number of cases, and that was incorrect.
svn path=/trunk/mcs/; revision=10869
* UniqueConstraint.cs: Do not set columns Unique property true
as a default.
* ForeignKeyConstraint.cs: Add UniqueConstraint to parent Table
svn path=/trunk/mcs/; revision=10867
* XslTransform.cs: don't free the xml document used for the style sheet.
xmlFreeStylesheet already does it. Correctly close the element tag for
elements that don't have children. Added a couple of checks more.
svn path=/trunk/mcs/; revision=10858
Cast functions (CStr(), CBool(), etc) supported
ByRef parameters now work
A few fixes for optional parameters and structure declaration
String concatenation operator supported (to be debugged)
svn path=/trunk/mcs/; revision=10849
* XslTransform.cs: fixed a couple of Transform overloads and changed the
library name in DllImport to make it work on windows too.
svn path=/trunk/mcs/; revision=10841
Fixes bugs 34263 and 31333.
(All tests still behave the same way - 4 fails)
2003-01-23 Dick Porter <[email protected]>
* threads.c (start_wrapper): Create a Thread object if needed, so
the Main() thread can do the class initialisation in a subthread
that has been set up to allow managed code execution.
Pass the thread ID instead of the MonoThread pointer to the thread
start and attach callbacks. This change is required, because the
jit thread start callback must be called _before_ the Thread
object can be created.
(mono_thread_init): Removed much object creation code that is no
longer needed. No managed code is called from here now.
* object.c (mono_runtime_exec_managed_code): Create a subthread
for Main, and call back to the runtime to use it.
Set the exit code when Main exits.
* gc.c: Make sure domain finalisation happens in a subthread.
Re-enable threaded GC, fixing bug 31333 (again).
* environment.c: System.Environment internall calls (so far just
ExitCode is here, the others are still in icall.c)
* appdomain.c (mono_runtime_cleanup): All threads running managed
code should have finished before mono_runtime_cleanup() is
reached, so no need to clean up threads.
2003-01-23 Dick Porter <[email protected]>
* mono.c: Use mono_runtime_exec_managed_code() to run all managed
code in a subthread.
* jit.c: Changed thread start and attach callbacks to pass the
thread ID, not the MonoThread pointer. Arrange that managed code
execution will fail an assertion in the main thread, just to be
sure.
2003-01-23 Dick Porter <[email protected]>
* interp.c: Use mono_runtime_exec_managed_code() to run all
managed code in a subthread.
svn path=/trunk/mono/; revision=10838
This is a compiler for the MonoBASIC language,
which is a superset of Visual Basic.NET
Usage: mbas [options] SOURCE-FILES
Options:
-? --help Show this help list
--about About the MonoBASIC compiler
--addmodule=PARAM [NOT IMPLEMENTED YET]Reference metadata from specified module
--baseaddress=PARAM [NOT IMPLEMENTED YET]The base address for a library or module (hex)
--bugreport=PARAM [NOT IMPLEMENTED YET]Create bug report file
--checked [Mono] Set default context to checked
-d --define=PARAM [NOT IMPLEMENTED YET]Declares global conditional compilation symbol(s). symbol list:name=value,...
--debug Emit debugging information
--debug-args=PARAM [Mono] Debugger arguments
--debug:full Emit full debugging information (default)
--debug:pdbonly [IGNORED]Emit PDB file only
--delaysign [NOT IMPLEMENTED YET]Delay-sign the assembly using only the public portion of the strong name key
--fatal [Mono] Makes errors fatal
--ignorewarn=PARAM [Mono] Ignores warning number PARAM
--imports=PARAM [NOT IMPLEMENTED YET]Declare global Imports for namespaces in referenced metadata files. import list:namespace,...
--keycontainer=PARAM [NOT IMPLEMENTED YET]Specifies a strong name key container
--keyfile=PARAM [NOT IMPLEMENTED YET]Specifies a strong name key file
--libpath=PARAM [NOT IMPLEMENTED YET]List of directories to search for metada references (semi-colon delimited)
--linkpaths=PARAM [Mono] Adds path to the assembly link path
--linkresource=PARAM [NOT IMPLEMENTED YET]Adds the specified file as an embedded assembly resource
-m --main=PARAM Specifies the Class or Module that contains Sub Main.It can also be a Class that inherits from System.Windows.Forms.Form.
--noconfig [Mono] Disables implicit references to assemblies
--nologo [NOT IMPLEMENTED YET]Do not display compiler copyright banner
--nostdlib [Mono] Don't assume the standard library
--nowarn Disable warnings
-o --out=PARAM Specifies the output file name
--optimize [NOT IMPLEMENTED YET]Enable optimizations
--optioncompare:binary [NOT IMPLEMENTED YET]Specifies binary-style string comparisons. This is the default
--optioncompare:text [NOT IMPLEMENTED YET]Specifies text-style string comparisons.
--optionexplicit [NOT IMPLEMENTED YET]Require explicit declaration of variables
--optionstrict [NOT IMPLEMENTED YET]Enforce strict language semantics
--parse [Mono] Only parses the source file (for debugging the tokenizer)
--quiet [NOT IMPLEMENTED YET]Quiet output mode
--recurse=PARAM [NOT IMPLEMENTED YET]Include all files in the current directory and subdirectories according to the wildcard
--removeintchecks [NOT IMPLEMENTED YET]Remove integer checks. Default off.
--resource=PARAM Adds the specified file as an embedded assembly resource
--rootnamespace=PARAM [NOT IMPLEMENTED YET]Specifies de root namespace for all type declarations
-r --reference=PARAM References metadata from the specified assembly
--stacktrace [Mono] Shows stack trace at Error location
--target=PARAM Specifies the target type for the output file (exe [default], winexe, library, module)
--timestamp [Mono] Displays time stamps of various compiler events
--tokenize [Mono] Only tokenizes source files
--unsafe [Mono] Allows unsafe code
--usage Show usage syntax and exit
--utf8output [NOT IMPLEMENTED YET]Emit compiler output in UTF8 character encoding
-v --verbose Display verbose messages
--warnaserror Treat warnings as errors
--win32icon=PARAM [NOT IMPLEMENTED YET]Specifies a Win32 icon file (.ico) for the default Win32 resources
--win32resource=PARAM [NOT IMPLEMENTED YET]Specifies a Win32 resource file (.res)
--wlevel=PARAM [Mono] Sets warning level (the highest is 4, the default)
svn path=/trunk/mcs/; revision=10833
* System/System.Net.Sockets/NetworkStream.cs: the check for disposed
should not be done in the finally clause.
* corlib/System.IO/BufferedStream.cs: don't try to write a 0 sized
array on when flushing the stream.
Fixes bug #37045.
svn path=/trunk/mcs/; revision=10825
* debug.c: Reverted Gonzalo's last change since it is wrong.
We're also using the debugging code on Windows, for instance the
stabs stuff when running in gdb. I hope this code still builds on
Windows; if not, we need to fix this.
Moved all the mono debugger support code into the debugger itself;
when debugging a managed application, the debugger new launches a
small unmanaged wrapper application which contains this stuff.
* debug.h (MonoDebuggerIOLayer): New public typedef; this is just
initialized to an array of function pointers to the io-layer
function; they don't seem to be public in the `libmono' library.
(mono_debugger_event): New public function. Sends the debugger an
event if we're running in the Mono Debugger and does nothing otherwise.
* mono.c: Don't initialize the Mono Debugger here.
* jit.c (mono_debug_insert_breakpoint): Removed, this isn't used anymore.
(mono_thread_start_cb, mono_thread_attach_cb): Call
mono_debugger_event() to send the debugger a callback.
svn path=/trunk/mono/; revision=10807
* appdomain.h (MonoThreadStartCB): Added `MonoThread *thread' and
`gpointer func' arguments.
(MonoThreadAttachCB): New typedef; like the old MonoThreadStartCB,
but added `MonoThread *thread' argument.
(mono_runtime_init): The last argument is now a MonoThreadAttachCB.
* threads.c (mono_new_thread_init): Added `gpointer func' argument
and pass it to the mono_thread_start_cb callback.
(mono_install_thread_callbacks): New public function to install a
set of callbacks which are set by the debugger.
(mono_thread_init): The last argument is now a MonoThreadAttachCB.
svn path=/trunk/mono/; revision=10806
2003-01-16 Martin Baulig <[email protected]>
Added special support for the Mono Debugger to send it a
notification each time a thread is created or exited.
* timed-thread.h (TimedThread): Added `pid' and `start_sem'.
* timed-thread.c (timed_thread_start_routine): If
`mono_debugger_threads_debug' is non-zero, set `thread->pid' and
post the `thread->start_sem'.
(_wapi_timed_thread_create): If `mono_debugger_threads_debug' is
non-zero, wait for the `thread->start_sem' before returning.
* threads.c (mono_debugger_threads_debug): New global variable
which is set by the Mono Debugger.
(mono_debugger_thread_info): New global variable.
(update_debugger_thread_info): When running inside the Mono
Debugger (`mono_debugger_threads_debug' is non-zero), update the
`mono_debugger_thread_info' array. This function is called (while
owning the `thread_hash_mutex') each time the `thread_hash' is
modified.
svn path=/trunk/mono/; revision=10804
* configure.in: Set version number to 0.19.1.
Heads up: I'm going to commit some changes to the debugger
which'll require you to use this new runtime, so if you update the
debugger from CVS, you also need this new runtime.
svn path=/trunk/mono/; revision=10803
* XslTransform.cs: implemented all Load and Transform methods. It uses
libxml2 and libxslt. No more temp files. It's slow and memory consuming,
but, well, that's XSLT... ;-). Idea from Zdravko Tashev.
Now the Xsl web control works.
svn path=/trunk/mcs/; revision=10800
* System.Xml/XmlTextWriter.cs: throw an exception if WriteEndDocument is
called without a prior call to WriteStartDocument.
svn path=/trunk/mcs/; revision=10799
* AspGenerator.cs:
* BaseCompiler.cs:
* CachingCompiler.cs: changes to work around spaces and
directory-separators in the local filesystem.
svn path=/trunk/mcs/; revision=10780
* added the following fix from Jackson Harper <[email protected]>
* class.c (mono_ptr_class_get): correctly set access levels of pointers
(mono_array_class_get): correctly set access levels of arrays
svn path=/trunk/mono/; revision=10771
* debug.c (initialize_debugger_support): ifdef out the call to
mono_debugger_init_thread_debug for the release.
Someone should look into why its not defined. I think the problem
is what Dick pointed out somewhere: code in io-layer is not
supposed to ever be used in Windows, so code for the debugger that
lives there must be moved elsewhere.
svn path=/trunk/mono/; revision=10746
* Tds70.cs:
(FormatParameter): send input/output parameter names. This way we don't
depend on the parameter position being different of the index in the
parameter collection.
svn path=/trunk/mcs/; revision=10735
* System.Web.Compilation/AspGenerator.cs: removed unused variable. Added
support for properties/fields of type string [].
* System.Web.UI.WebControls/DataList.cs: handle the exception when
adding new keys to DataKeysArray.
svn path=/trunk/mcs/; revision=10734
* doc/ibmdb2: added file which is new web page
about IBM DB2 data provider at Mono.Data.DB2Client
* makefile
* commands: added ibmdb2 web page to go-mono web site
* doc/ado-net: added a couple more developers email, plus made the
email spam resistant, added Mono's DB2 data provider to list,
added more info about the ProviderFactory and retrieving data using
ADO.NET from ASP.NET, add notes about testing, misc cleanup
* doc/mysql
* doc/postgresql
* doc/sqlclient
* doc/oracle
* doc/tdsclient
* doc/firebird
* doc/oledb
* doc/odbc
* doc/sybase
* doc/sqlite: added testing notes and C# examples
* doc/gtk-sharp: added links for GTK# for Windows
svn path=/trunk/mono/; revision=10712
* CryptoTools.cs: Added internal class BlockProcessor to help
implementation of block-based algorithms (like MAC and HMAC).
* HMACSHA1.cs: Refactored to remove dependencies on CryptoStream,
better constructors and Dispose support.
* MACTripleDES.cs: Refactored to reuse new HMACSHA1 stuff, better
constructors.
svn path=/trunk/mcs/; revision=10702
* IsolatedStorageFile.cs: Added missing [CLSCompliant(false)]
to CurrentSize and MaximumSize to fix compilation (at least
under Windows/csc).
svn path=/trunk/mcs/; revision=10701
* XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
null when no matching uri.
* XmlElement.cs : removed unnecessary xmlns output.
* XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
* XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix
along with the change above, and moved timing of 'xmlns' output
to CloseStartElement.
* XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
svn path=/trunk/mcs/; revision=10699
Well, a partial implementation, anyway. Enough of an implementation to run
example 21-17 from "Programming C#, 2nd Edition" (O'Reilly Press).
There are several issues remaining, such as proper behavior under Win32 (I'm
sure looking up the HOME environment variable won't be correct) and security
issues (docs suggest that isolated storage should have a limited size to
prevent DOS attacks, and that Isolated Storage is intended to be used by
untrusted apps).
This will suffice as a first pass of the code.
System.IO.FileStream changes are because IsolatedStorageFileStream needed to
override a virtual property, which FileStream didn't expose. (Rather odd,
that.)
svn path=/trunk/mcs/; revision=10694
* KeyInfo.cs: Changed some protected declaration to private.
* KeyInfoName.cs: Changed some protected declaration to private.
* KeyInfoNode.cs: Changed some protected declaration to private.
* KeyInfoRetrievalMethod.cs: Changed some protected declaration to private.
* KeyInfoX509Data.cs: Changed some protected declaration to private.
* Transform.cs: Changed some protected declaration to private.
* XmlDsigBase64Transform.cs: Changed some protected declaration to private.
* XmlDsigC14NTransform.cs: Changed some protected declaration to private.
* XmlDsigC14NWithCommentsTransform.cs: Changed some protected declaration to private.
* XmlDsigEnvelopedSignatureTransform.cs: Changed some protected declaration to private.
* XmlDsigXPathTransform.cs: Changed some protected declaration to private.
* XmlDsigXsltTransform.cs: Changed some protected declaration to private.
svn path=/trunk/mcs/; revision=10636
* cs-parser.jay: Small fix: we were not comparing the constructor
name correctly. Thanks to Zoltan for the initial pointer.
svn path=/trunk/mcs/; revision=10635
* ParameterInfo.cs: modified constructor so it allows the
ParameterBuilder to be null and add a 'position' argument which will
be used when pb is null.
* MethodBuilder.cs ConstructorBuilder.cs: modify GetParameters() so it
returns information even when the app did not use DefineParameter() to
define the parameters.
* ConstructorBuilder.cs (ctor): allways define SpecialName attribute
for constructors as done by MS.
svn path=/trunk/mcs/; revision=10631
Mono.Data.DB2Client/DB2ClientCommand.cs: ExecuteReader non executes a command against the DB, as it should
Mono.Data.DB2Client/DB2ClientConstants.cs: Added more constants, mostly for SQLDriverConnect.
Mono.Data.DB2Client/DB2ClientException.cs: Now can get all errors from the DB2 error stack.
Mono.Data.DB2Client/DB2ClientPrototypes.cs: Added SQLDriverConnect prototype.
Mono.Data.DB2Client/DB2ClientTransaction.cs: Changed to work with new handle returned from DB2CLientConnect.
svn path=/trunk/mcs/; revision=10629
* System.Web/HttpRequest.cs: implemented CurrentExecutionFilePath.
* System.Web.UI/Control.cs: some more tweaks to naming containers stuff.
* System.Web.UI/DataBinder.cs: don't throw exception if the container
is null.
* System.Web.UI/Page.cs: now we can render client scripts, startup
scripts and hidden fields. Only render __VIEWSTATE if there is someone
that will take care of it.
(RaisePostBackEvents): first try the last one that required raise event,
then try __EVENTTARGET.
* System.Web.UI.HtmlControls/HtmlForm.cs: render 'action' attribute.
* System.Web.UI.WebControls/BaseDataList.cs: what can I say for this
one? I spent so many time until I finally found this that I'm gonna
miss this f....g bug... ;-). Farewell. Now we can get events from
image buttons inside Data*.
* System.Web.UI.WebControls/DataList.cs: now the value stored in
ViewState for item count is correct.
svn path=/trunk/mcs/; revision=10627
* SurrogateSelector.cs: completed implementation.
* SerializationInfo.cs: corrected a bug in GetValue method.
* ObjectIDGenerator.cs: corrected a bug. Now it does not give the same
id for two different instances that return true when calling Equal.
svn path=/trunk/mcs/; revision=10615
* debug.c: Don't use mono_once here. Reworked the API a bit to
use `mono_debug_' and `debug_' for the general debugging API and
`mono_debugger_' and `debugger_' for the Mono Debugger stuff.
svn path=/trunk/mono/; revision=10608
"The buffer of a closed System.IO.MemoryStream is still available, and the
System.IO.MemoryStream.ToArray and System.IO.MemoryStream.GetBuffer methods
can be called successfully."
svn path=/trunk/mcs/; revision=10601
* Mono.Data.Db2Client/DB2ClientConnection.cs: added parsing and setting
of connection string values. Prior to this change, the server, username, and
authentication were hard-coded.
* Mono.Data.Db2Client/DB2ClientUtils.cs: prevent warning about
unreachable code
* Test/TestDB2Conn/TestDB2Conn.cs: modify test to accept
database, username, and password from command line. Also, test
a CREATE TABLE statement with ExecuteNonQuery()
svn path=/trunk/mcs/; revision=10595
* exception.[ch]:
(mono_get_exception_type_initialization): new function.
* object.c: throw a TypeInitializationException when an exception is
thrown invoking the class constructor.
svn path=/trunk/mono/; revision=10593
* makefile.gnu: added --unsafe command line option, needed for unsafe
code. The IBM DB2 provider now compiles on Mono.
svn path=/trunk/mcs/; revision=10585
* debug.c (debugger_thread_func): We don't need to `raise
(SIGSTOP)' anymore; the thread manager already takes care of this.
svn path=/trunk/mono/; revision=10581
* exception.c (arch_handle_exception): exclude runtime invoke
wrapper from the stack trace
* jit.c (mono_cfg_new): allocate extra space to store esp (used by exceptions)
(mono_thread_start_cb): save an additional LMF at thread start
svn path=/trunk/mono/; revision=10577
* jit.c (mono_runtime_install_handlers): Use SYS_sigaction() for
the mono_thread_get_abort_signal () - this is SIGUSR1 on FreeBSD
and the LinuxThreads port doesn't allow you to override the handler.
[FIXME: This avoids an assertion failure on startup, but there's
still an issue with thread termination.]
svn path=/trunk/mono/; revision=10576
* configure.in (GTHREAD_LIBS, GTHREAD_CFLAGS): Removed the gthread
check again, we're now using the mono/io-layer for this.
svn path=/trunk/mono/; revision=10575
Added special support for the Mono Debugger to send it a
notification each time a thread is created or exited.
* timed-thread.h (TimedThread): Added `pid' and `start_sem'.
* timed-thread.c (timed_thread_start_routine): If
`mono_debugger_threads_debug' is non-zero, set `thread->pid' and
post the `thread->start_sem'.
(_wapi_timed_thread_create): If `mono_debugger_threads_debug' is
non-zero, wait for the `thread->start_sem' before returning.
* threads.c (mono_debugger_threads_debug): New global variable
which is set by the Mono Debugger.
(mono_debugger_thread_info): New global variable.
(update_debugger_thread_info): When running inside the Mono
Debugger (`mono_debugger_threads_debug' is non-zero), update the
`mono_debugger_thread_info' array. This function is called (while
owning the `thread_hash_mutex') each time the `thread_hash' is
modified.
svn path=/trunk/mono/; revision=10573
* Control.cs: fixes in UniqueID, FindControl, AddedControl,
UnloadRecursive, InitRecursive. Reduced the size of __VIEWSTATE. Made
FindControl work with NamingContainers.
* ControlCollection.cs: notify the parent when clearing the collection.
* LosFormatter.cs: Added debugging output and generate a valid
viewstate even for unknown types.
* Page.cs: GetPostBackEventReference now uses UniqueID. Reduced
viewstate.
svn path=/trunk/mcs/; revision=10569
* HttpContext.cs: store the errors in an arraylist instead of an array.
* HttpRequest.cs: bah.
* HttpRuntime.cs: display last error in the context.
svn path=/trunk/mcs/; revision=10567
* icall.c:
(ves_icall_type_from_name): make it work as MS. Ie, if no assembly name
provided, look for the type in the calling assembly and then in
mscorlib; if the assembly name is provided, only try that one.
svn path=/trunk/mono/; revision=10556
* cs-parser.jay: Only perform the constructor checks here if we
are named like the class; This will help provider a better
error. The constructor path is taken when a type definition is
not found, but most likely the user forgot to add the type, so
report that rather than the constructor error.
svn path=/trunk/mcs/; revision=10548
Displayers (Console, Gtk#, System.Windows.FOrms) are under the `displayers'
directory.
Finders (How nodes are found) are under the `finders' directory.
Formatters (how nodes are displayed) are under the `formatters' directory.
Miguel did the actual movement of CVS files so that file history wouldn't be
lost. Hence no corresponding "cvs add" for this "cvs remove".
svn path=/trunk/mcs/; revision=10531
* jit.c (mono_jit_compile_method): make sure runtime_init is called
(mono_analyze_stack): make sure runtime_init is called
svn path=/trunk/mono/; revision=10502
* debug.c (debugger_update_symbol_file_table): Moved all the
functionality into debugger_update_symbol_file_table_internal();
the latter one will be called from the background thread while
already owning the lock. This'll allow us to step into
debugger_update_symbol_file_table() in the debugger and debug it.
svn path=/trunk/mono/; revision=10494
* Makefile.am: Link against gthread.
* jit.c: After realizing that mono-mutex doesn't work either
because it doesn't support recursive mutexes on FreeBSD, rewrote
the whole thread stuff to use gthread. This seems to fix this
weird deadlock in the debugger as well.
svn path=/trunk/mono/; revision=10492
* ilasm/parser/ScannerAdapter.cs: Implement the new cleanup method
in the tokenizer. This fixes the build.
* skeleton.cs (cleanpup): Rename to cleanup to make it look more consistent.
* cs-tokenizer.cs (Cleanup): Rename to 'cleanup' to make it more
consistent with other methods.
svn path=/trunk/mcs/; revision=10471
* DateTimeTest.cs: Use 2003, since that' the year now. Need to work
on this test so we don't have it fail each new year.
svn path=/trunk/mcs/; revision=10451
* ArrayList.cs (RemoveRange): Patch for allowing zero-size
removal at the end of a list. It also cleans up the argument
checking code so the raised exceptions have the same message as
under MS.NET.
svn path=/trunk/mcs/; revision=10426
* HashAlgorithmTest.cs: Added new test for null streams.
* MACTripleDESTest.cs: New. Test suite par MAC using 3DES.
svn path=/trunk/mcs/; revision=10416
* MACTripleDES.cs: Now working (the problem was with my stream usage
which was removed for performance reason).
* TripleDES.cs: Fixed key generation (wasn't called and returned
null).
svn path=/trunk/mcs/; revision=10415
PropertyFormat properties).
Fix a bug where the ReflectionNodeFinder wouldn't display the value of static
properties (it was using an invalid instance reference).
svn path=/trunk/mcs/; revision=10372
* list.unix (CSharpCodeCompiler): Add
Microsoft.Charp.CSharpCodeCompiler for Sean Kasun.
* CSharpCodeCompiler.cs:
* CSharpCodeProvider.cs: Patch from Sean Kasun
<[email protected]> to implement CSharpCodeCompiler.
* CompilerErrorCollection.cs:
* CompilerParameters.cs: Patch from Sean Kasun
<[email protected]> implementing most of the MonoTODOs in
CompilerErrorCollection and the CompilerParameters overloads in CompilerParameters.cs.
svn path=/trunk/mcs/; revision=10362
* TypeBuilder.cs (DefineInitializedData): Call DefineNestedType()
instead of DefineType() so the auxiliary types do not pollute the
global namespace. This is consistent with the behaviour of MS .NET.
svn path=/trunk/mcs/; revision=10358
This allows ``type-reflector.exe'' (no arguments) to open a Gtk# window which
can be later used to open an Assembly.
svn path=/trunk/mcs/; revision=10336
doesn't require them.
For example, it's sensible for a GUI program to load without having any
assembly loaded, so there's no reason for assemblies/types to be specified.
This allows us to do:
type-reflector --displayer=gtk
And get an empty Gtk# window (which can be later filled by using
File->Open...).
svn path=/trunk/mcs/; revision=10335
namespace, partition into namespaces according to purpose. For example, all
formatters (CSharp, VB, Default, etc.) are moved to the
Mono.TypeReflector.Formatters namespace.
Similar things were done for finders and displayers.
svn path=/trunk/mcs/; revision=10330
* HttpApplication.cs: keep _lasterror if no context. Attach
application events *after* modules initialization (if not, User is not
set when the user handler is called).
* HttpApplicationFactory.cs: made all methods related to
AttachEvents static. I will fix OnStart/OnEnd for application and
session later.
* HttpRequest.cs: don't initialize cookies twice.
svn path=/trunk/mcs/; revision=10326
* RNGCryptoServiceProvider.cs: Changed methods interacting with
the runtime as Internal<MethodName>. This will allow to make the
class Windows-compatible by doing a switch at runtime.
svn path=/trunk/mcs/; revision=10324
* AppDomain.cs: implemented DoCallBack method.
* MonoType.cs:
(GetConstructorImpl): when the flag is BindingFlags.Default, set it to
Public, Instance.
NUnit2 tests start moving.
svn path=/trunk/mcs/; revision=10321
mono-hackers: how to provide support for what the build platform provides.
For example, if you're on Windows and have System.Windows.Forms but not Gtk#,
the default compile should give you System.Windows.Forms support and console
output.
If you're on Linux with Gtk# and no System.Windows.Forms, you should get Gtk#
support from the default compile.
Next trick: default to the GUI displayer, not the console displayer, if
--displayer isn't specified. I have no idea how to pull that off...
svn path=/trunk/mcs/; revision=10320
* Page.cs: make it fire the LoadData related events also for controls
such as ImageButton, whose variable(s) in the query string are of the
form ctrl_name.x and only fire them once per control.
svn path=/trunk/mcs/; revision=10318
- Exit partly implemented (behaves like 'break' in C#)
- Arrays working (still very buggy and work only if declared
statically - e.g. Dim MyArray(2,3) - but the plumbing is in place)
- Field and Local declarations have been re-coded in the grammar
svn path=/trunk/mcs/; revision=10316
HAVE_GUI_SWF) by placing this information within type-reflector.exe.config.
This also provides for user-provided formatters/finders/displayers. They
merely need to write a class and add it to the appropriate section.
svn path=/trunk/mcs/; revision=10315
* ecore.cs:
* expression.cs:
* typemanager.cs: fixes to allow mcs compile corlib with the new
Type.IsSubclassOf fix.
svn path=/trunk/mcs/; revision=10310
The biggest change is a System.Windows.Forms front-end. It doesn't look as
nice (visually) as the Gtk# front-end, but it's better because it works.
Mwa-ha-ha-ha. Err, sorry.
To be more specific, the Gtk# front-end works, but (at present) it must build
the entire tree at once, during initialization.
The swf front-end doesn't. When you attempt to expand a node, it's at *that*
point that it looks for sub-nodes, allowing you to use (for example) the
reflection finder (--finder=reflection) and start clicking lots of `+' signs
to get properties of properties of properties... (Make sure verbose output is
enabled to see what I mean.)
This is the approach I want Gtk# to ultimately follow, as soon as I figure out
how to do that (read: Gtk# allows me to do it cleanly).
svn path=/trunk/mcs/; revision=10297
* cs-parser.jay (fixed_statement): take a type instead of a
pointer_type, so we can produce a better error message later.
* statement.cs (Fixed.Resolve): Flag types that are not pointers
as an error.
svn path=/trunk/mcs/; revision=10294
* statement.cs: First populate the pinned variables, then emit the
statement, then clear the variables. Before I was emitting the
code once for each fixed piece.
svn path=/trunk/mcs/; revision=10291
* marshal.c (mono_marshal_get_icall_wrapper): like
mono_marshal_get_native_wrapper, but simpler and use a MonoMethodSignature
instead of a MonoMethod.
svn path=/trunk/mono/; revision=10282
* statement.cs (FlowBranching.CheckOutParameters): `struct_params'
lives in the same number space than `param_map'. Fixes#36154.
svn path=/trunk/mcs/; revision=10276
* DataGrid.cs: default value for ShowHeaders is true. Fixed style for
Header and Footer.
* DataGridColumn.cs: added SetOwner method.
* DataGridColumnCollection.cs: set the owner of the column when added.
svn path=/trunk/mcs/; revision=10272
* TypeDescriptor.cs: use ICustomTypeDescriptor if the component
implements it. It's done for GetProperties and should be done for the
rest of methods present in ICustomTypeDescriptor.
svn path=/trunk/mcs/; revision=10262
* list: added System.Data/DataTablePropertyDescriptor.cs
* System.Data/DataColumnPropertyDescriptor.cs: fixed typo.
* System.Data/DataViewManagerListItemTypeDescriptor.cs: added new
internal property to get the DataViewManager and removed TablePD class.
* System.Data/DataTablePropertyDescriptor.cs: TablePD class is now this
one as suggested by danmorg.
svn path=/trunk/mcs/; revision=10261
* cs-parser.jay (constructor_declaration): Set the
Constructor.ModFlags before probing for it. This makes the
compiler report 514, 515 and 132 (the code was there, but got
broken).
svn path=/trunk/mcs/; revision=10260
* statement.cs (Goto.Resolve): Set `Returns' to ALWAYS.
(GotoDefault.Resolve): Set `Returns' to ALWAYS.
(GotoCase.Resolve): Set `Returns' to ALWAYS. Fixes the test-49 problem on windows
svn path=/trunk/mcs/; revision=10257
* AspComponentFoundry.cs: reworked to allow same prefix for multiple
controls. You can register 1 assembly plus any number of user controls
under the same prefix.
* AspGenerator.cs: don't add duplicate 'using' for the same namespace.
Hack to allow @Register access to assemblies in other places than bin
directory.
svn path=/trunk/mcs/; revision=10225
* XmlDataLoader.cs: Moved diffgram stuff to new internal class
XmlDiffLoader.
* XmlDiffLoader.cs: new class for diffgrams. Added handling of
diffgr:Errors and some fixes and changed XmlReader to XPathNavigator.
svn path=/trunk/mcs/; revision=10220
* AspElements.cs: added 'codebehind' attribute for page, control and
application. It's ignored by MS, but allowed. Fixed typo.
svn path=/trunk/mcs/; revision=10217
* DataView.cs: made dataViewManager internal.
* DataViewManager.cs: use ICustomTypeDescriptor. We don't want the
properties of the object, but the values of the columns present in a
row.
* DataViewManagerListItemTypeDescriptor.cs: implemented GetProperties,
which returns a PropertyDescriptorCollection. Created a new class
derived from PropertyDescriptor that treats Table as an object whose
properties are DataRowView.
svn path=/trunk/mcs/; revision=10212
* debug.c: Correctly handle the `debugger_finished_mutex'; it is
only unlocked by the pthread_cond_wait() in mono_debugger_wait().
svn path=/trunk/mono/; revision=10199
* CryptoAPITransform.cs: Removed all TODO. This class will not be
used by Mono. MS uses it with <algo>CryptoServiceProvider classes
to provide a common ICryptoTransform access to CryptoAPI.
svn path=/trunk/mcs/; revision=10197
* COMException.cs: New. Minimal (incomplete - i'm not using COM)
implementation because this is thrown when dealing with Software
Publisher Certificates (SPC) in X509Certificate.
svn path=/trunk/mcs/; revision=10190
* Hash.cs: Added [Serializable] and ISerializable to class declaration.
Changed how the hash algorithm are created (now use system default
implementation). Added some exception handling.
svn path=/trunk/mcs/; revision=10189
* AspGenerator.cs: don't generate instance fields for pages/controls
when the base class specified in the Inherits attribute already has
them. Closes bug #36262.
svn path=/trunk/mcs/; revision=10167
* debug.c (mono_debugger_jit_exec): Custom version of mono_jit_exec();
this is used when we're running inside the Mono Debugger
(mono_debugger_wait): Put the waiting code into a function of its own.
* mono.c (main): Call mono_debugger_jit_exec() instead of
mono_jit_exec() if we're running inside the Mono Debugger.
svn path=/trunk/mono/; revision=10160
* debug.h (MonoDebugFormat): Added
`MONO_DEBUG_FORMAT_MONO_DEBUGGER'; this allows us to check whether
we're running inside the Mono Debugger prior to the args parsing.
svn path=/trunk/mono/; revision=10159
* System.Web/HttpApplication.cs: added new state to handle default
authentication.
* System.Web.Configuration/HttpModulesConfigurationHandler.cs: add
a default authentication module at the end of the list.
* System.Web.Configuration/ModuleItem.cs: new constructor.
* System.Web.Security/DefaultAuthenticationModule.cs: implemented. It
just create a default unauthenticated user when no one else provided one.
* System.Web.Security/FormsAuthenticationModule.cs: removed debug output.
* System.Web.UI/Control.cs:
(AddedControl): take the children to the same state of the parent.
(InitRecursive): set the page of the children.
* System.Web.UI/Page.cs: removed one line (it's done a few lines above).
* System.Web.UI/UserControl.cs:
(OnInit): always call InitializeAsUserControl
(InitializeAsUserControl): sets the page for the control.
svn path=/trunk/mcs/; revision=10114
* debug.c (release_symbol_file_table): Only call this if we're
actually modifying the symbol tables.
(mono_debug_open): Always set the `mono_debugger_class_init_func'
for MONO_DEBUG_FORMAT_MONO; this stuff should also go into core dumps.
svn path=/trunk/mono/; revision=10113
Class declaration modified to better conform to MS'VB.NET grammar
Preliminary support for Array declarations (not working yet)
svn path=/trunk/mcs/; revision=10103
* RC2CryptoServiceProvider.cs: Now about 2 time faster by inlining
methods and changing to UInt16 (instead of UInt32).
svn path=/trunk/mcs/; revision=10091
* debug.c (mono_debugger_trampoline_breakpoint_callback): New
function. This is called from the breakpoint trampoline to signal
the debugger and wait until it has reload the symbol tables.
* trampoline.c (get_breakpoint_trampoline): Call the new
mono_debugger_trampoline_breakpoint_callback() in the breakpoint
trampoline just before the breakpoint.
svn path=/trunk/mono/; revision=10083
close the parens. Allows better use of vi's paren-matching functionality in
output, avoids issues with "}}" format specifier in string.Format.
NodeInfo.cs: handle MemberTypes.NestedType, which is returned under .NET for
nested types. Without this, .NET generates error messages for nested types.
svn path=/trunk/mcs/; revision=10059
* RijndaelManaged.cs: Now 7 (encrypt) to 10 (decrypt) times faster
by removing allocation inside intensively called methods, using pre-
calculated tables instead of Mult_GF methods and inlining most methods.
svn path=/trunk/mcs/; revision=10052
* DataSet.cs:
- Added XmlReader and XmlWriter Closing.
- Moved ReadXmlSchema stuff to new internal class XmlSchemaMapper.
* XmlSchemaMapper.cs
- Much better way IMHO to map xmlschema than the old one in
DataSet.cs. Its, more flexible, cleaner, ...
svn path=/trunk/mcs/; revision=10028
When I wasn't recovering from stomach flu, anyway...
All in all, a good Christmas.
Summary:
- Made tools/makefile.gnu recursive, much like the top-level makefile.gnu.
This was principally done so that the type-reflector install target could
install additional files (currently it installs type-reflector.exe and
type-reflector.exe.config; this may expand in the future).
- Massive cleanup/improvements to type-reflector
The biggest news is that a Gtk# front-end exists for type-reflector now. It
is incomplete (due to my learning Gtk# with this program) and needs
improvement, but it works... Sort of.
It's not enabled by default, as I don't want to require that the
Gtk#/Gnome#/Glade# assemblies be available to build mcs from CVS.
To enable the type-reflector Gtk# front-end, do two things:
- Rebuild type-reflector: cd tools/type-reflector && make -f makefile.gnu gui
- When running, specify the --displayer=gtk parameter, e.g.
type-reflector.exe --displayer=gtk -S .
svn path=/trunk/mcs/; revision=10020
* AsymmetricAlgorithm.cs: Removed ValidKeySize (method only present
in SymmetricAlgorithm).
* DSA.cs: Change ZeroizePrivateKey from protected to internal.
* DSACryptoServiceProvider.cs: Added some case where we need to check
for keypairGenerated.
* RSA.cs: Change ZeroizePrivateKey from protected to internal.
* RSACryptoServiceProvider.cs: Key were never generated with the default
(no parameter) constructor. Now checks for keypairGenerated in methods.
* SignatureDescription.cs: Added CreateDeformatter in RSAPKCS1SHA1-
SignatureDescription to please corcompare (it just call it's ancestor).
svn path=/trunk/mcs/; revision=10019
* debug-mono-symfile.c: Completely rewrote the type section.
Instead of using individual malloc()ed fields, we use one big
continuous memory area and offsets into this area.
See the comments in the source code for details.
svn path=/trunk/mono/; revision=10011
* CryptoStream.cs: Implemented core. Not sure about many details -
but it run the samples now (#30256).
* CryptoStreamMode.cs: Added [Serializable] to enum declaration.
* SymmetricAlgorithm.cs: Made some changes required for CryptoStream
and to match more closely MS implementation. Also added little
optimizations in TransformBlock.
svn path=/trunk/mcs/; revision=10006
* debug.c (MonoDebuggerInfo): Put back `symbol_file_modified'.
This variable now specifies that the symbol tables have been
modified after the last notification has been send. The debugger
uses this flag to check whether it needs to reload the symbol
tables or not.
(debugger_compile_method): Just send a notification to the
debugger, but don't set the modified flag. It may or may not be
set when the debugger gets the notification - depending on whether
the JIT compilation added a new method to the symbol tables.
svn path=/trunk/mono/; revision=9999
* debug.c (debugger_compile_method): This is a wrapper around
mono_compile_method() which always sends a notification to the
debugger.
svn path=/trunk/mono/; revision=9997
* debug.c: Reload the symbol file table before sending the
notification event to the debugger.
(MonoDebuggerInfo): Removed `update_symbol_file_table'.
svn path=/trunk/mono/; revision=9995
2002-12-27 Daniel Cazzulino <[email protected]>
* CacheEntry.cs: several changes. New constants, use of constants
defined in Cache.cs, modified locks to optimize perf. Fixed property
sets which weren't using the keyword value to set the new values
(don't know how this worked before!).
* Cache.cs: changed singleton implementation to only create the object
when actually used. Changed Insert overloads to use constants
defined instead of hard values.
* ExpiresBuchets: major changes. All locking now uses ReaderWriterLock
class. Bucket now efectively reuses free indexes from removed items
to avoid unnecessary expansions. Expansion now uses Array.CopyTo to
add elements to the new list. Added private Int32Collection to
handle int indexes efficiently (thanks Shawn Van Ness). See comments
there.
svn path=/trunk/mcs/; revision=9985
* debug.c: When running under the mono debugger, create a special
debugger thread; always protect the symbol tables with a mutex.
svn path=/trunk/mono/; revision=9980
* debug-mono-symfile.h (MonoSymbolFileMethodAddress): Include the
line number table in this data blob instead of using an external
pointer.
svn path=/trunk/mono/; revision=9979
* LoginDialog.cs
* DbProviderCollection.cs
* DbProvider.cs
* DataGrid.cs: save as Unix (LF) and format based on
Mono style
* SqlEditorSharp.cs: SQL editor will be used in a
notebook, keep track of that tab. Also, when text changed,
update the notebook tab to indicate text changed. Save as
Unix (LF) and monostyle format
* sqlsharpgtk.cs: add a notebook where each tab represents a SQL editor where
the selected tab could be opend or saved to a file or execute against the
database. The full filename of the selected editor tab is displayed in the title
bar. The tab gets an asterisk if the user changes the text in that text buffer.
Add a second notebook for the results to be a DataGrid or a TextView
to log messages. Add new menu items for execute and saving to
a HTML, XML, and CSV (Comma Separated Values) files. Menu item New brings up a new
editor tab. Add menu item New SQL# Window to open a new SQL# window.
svn path=/trunk/mcs/; revision=9969
* cs-tokenizer.cs (get_cmd_arg): Fixups to allow \r to terminate
the command. This showed up while compiling the JANET source
code, which used \r as its only newline separator.
svn path=/trunk/mcs/; revision=9961
* Activator.cs: Since the documentation indicates the method
either succeeds or throws one of the listed exceptions, we weren't
expecting that CreateInstance might be returning null.
For more information on the bug, see http://bugs.ximian.com/show_bug.cgi?id=36109
svn path=/trunk/mcs/; revision=9960
* X509CertificateTest.cs: Changed how the dates are compared. This
should stop the nunit errors in X509Certificate.
svn path=/trunk/mcs/; revision=9956
* debug.c (MonoDebuggerInfo): Added `symbol_file_modified'; it's
incremented each time one of the symbol tables is modified.
svn path=/trunk/mono/; revision=9946
* CryptoTools.cs: New. Shared classes for cryptography. Now
includes a KeyBuilder to generate symmetric keys and IV.
* DES.cs: Modified Key validation.
* DESCryptoServiceProvider.cs: Implemented Key and IV using
KeyBuilder.
* RC2CryptoServiceProvider.cs: Implemented Key and IV using
KeyBuilder (and removed TODO).
* RijndaelManaged.cs: Implemented Key and IV using KeyBuilder
(and removed TODO).
* SHA384Managed.cs: Changed code to remove compiler warning.
* SHA512Managed.cs: Changed code to remove compiler warning.
* SymmetricAlgorithm.cs: Removed TODO on IV.
* TripleDESCryptoServiceProvider.cs: Implemented Key and IV
using KeyBuilder (and removed TODO).
svn path=/trunk/mcs/; revision=9933
* XmlDocumentTests.cs : Test for bugzilla #35308 (default ns output)
* XmlElementTests.cs : Test for output of attributes with different NS.
svn path=/trunk/mcs/; revision=9930
* ASN1.cs: New. Classes to manipulate Abstract Syntax Notation 1
structures.
* cert2spc.cs: New tool to generate Software Publisher Certificate
(SPC) from a list of X509 certificate and CRL.
* secutils.cs: Changed copyright notice.
* makefile: Added cert2spc.exe to Windows build.
* makefile.gnu: Added cert2spc.exe to Linux build.
svn path=/trunk/mcs/; revision=9928
* ASN1.cs: New. Updated ASN1 classes for X509Certificate that can
now be reused for other tools (like Cert2Spc). Classes are marked
internal so they cannot be reused from outside corlib (for
compatibility with MS implementation).
* X509Certificate.cs: Removed all ASN1 classes from file.
svn path=/trunk/mcs/; revision=9927
* X509Certificate.cs: Fixed the date issue (again). Time was
converted to local time then ajusted to Pacific time. Now time
is kept (internally) as UTC and correct (-8) to Pacific when shown.
Changed Authenticode signature detection and removed debugging code.
svn path=/trunk/mcs/; revision=9914
* AssemblyNameTest.cs: Added test for non-signed assembly (which
returns an empty array - i.e. not null like an empty assembly).
svn path=/trunk/mcs/; revision=9857
* AssemblyName.cs: GetPublicKey now return an empty array (not null)
when an assembly isn't signed with a StrongName (to match MS
implementation) and null when no assembly is referenced. Also removed
commented code (no bug reported so it was probably not used).
svn path=/trunk/mcs/; revision=9856
* secutils.cs: New tool to extract strongname and X509 certificate
from assembly (or other signed files).
* makefile: Added secutil.exe to Windows build.
* makefile.gnu: Added secutil.exe to Linux build.
svn path=/trunk/mcs/; revision=9836
* X509Certificate.cs: Completed CreateFromSignedFile. Added a new
internal constructor so Publisher (and the related classes) can
create a X509Certificate object which return null dates (for both
GetEffectiveDateString and GetExpirationDateString methods).
svn path=/trunk/mcs/; revision=9835
* ecore.cs (FieldExpr.DoResolve): Instead of throwing an
exception, report error 120 `object reference required'.
* driver.cs: Add --pause option, used during to measure the size
of the process as it goes with --timestamp.
svn path=/trunk/mcs/; revision=9833
* Mono.Data.Tds.Protocol/TdsComm.cs:
Change GetString to NOT explicitly add a NUL
to the end of the string since Encoder.GetString ()
will do that.
svn path=/trunk/mcs/; revision=9831
to Mono into a define that we can ship in mono.pc
Remove the dependency on config.h from mono/metadata/exception.h
svn path=/trunk/mono/; revision=9829
* appdomain.c
(ves_icall_System_AppDomainSetup_InitAppDomainSetup): Use
g_build_filename to properly get separators on the filename created.
svn path=/trunk/mono/; revision=9825
* RealProxy.cs: Added ObjectIdentity property.
Implemented CrateObjRef.
* RemotingProxy.cs: Added Identity parameter to constructor
2002-12-20 Lluis Sanchez Gual <[email protected]>
* ServerContextTerminatorSink.cs: Added
* ServerObjectTerminatorSink.cs: Added
* StackBuilderSink.cs: Added
2002-12-20 Lluis Sanchez Gual <[email protected]>
* LeaseSink.cs: Added
2002-12-20 Lluis Sanchez Gual <[email protected]>
* ObjRef.cs: Implementation now based on methods of RemotingServices.
* RemotingServices.cs: Remoting information now kept in Identity objects.
All methods adapted to work with identities.
Renamed ExecuteMessage to InternalExecuteMessage. ExecuteMessage should
not make a direct call to the object.
* Identity.cs: added.
svn path=/trunk/mcs/; revision=9822
* object.h: Small change, introduce MonoMarshalByRefObject to
track the layout of that structure in the C# universe as we make
changes there.
svn path=/trunk/mono/; revision=9810
* ecore.cs (StandardImplicitConversion): When in an unsafe
context, we allow conversion between void * to any other pointer
type. This fixes bug #35973.
svn path=/trunk/mcs/; revision=9809
failures anymore. Added SwitchesTest (to test switches) and
DiagnosticsConfigurationHandler to test .config file handling.
Issues: while the DiagnosticsConfigurationHandlerTest is reasonably
self-contained, SwitchesTest is not. To properly test switches, we need a
.exe and a .exe.config file. The needed .exe.config file that SwitchesTest
depends on is present in `test-config-file', but I'm unsure where to place it
(much less what to name it).
Additionally, SwitchesTest generates test failures at this time, principally
because of the lack of .config file support in the test system.
Finally, makefile.gnu & system_linux_test.args was changed to use the newly
added tests and to reference System.Xml.dll, which is used by
DiagnosticsConfigurationHandlerTest.
svn path=/trunk/mcs/; revision=9807
Don't assume that optional attributes are always present
<assert/> can't have any child nodes
Change in semantics: if the attribute isn't present, GetAttribute()
returns null, not "". This allows us to differentiate between an attribute
not being present and an attribute with an empty value.
Translate exceptions if a TraceListener type is invalid
ChangeLog: Update for the previous changes I forgot to record
svn path=/trunk/mcs/; revision=9806
* XmlTextWriterTests.cs (TestAttributeNamespacesXmlnsXmlns):
fixed bug in the testcase (in relation to JD Conley's patch).
svn path=/trunk/mcs/; revision=9799
* System.Web/HttpCookie.cs: send 'expires' in the header.
* System.Web.Security/FormsAuthenticationModule.cs: remove debug lines.
* System.Web.UI/BaseParser.cs: a couple of path fixes to make it work
when the page is not in the root directory.
* System.Web.Util/UrlUtils.cs: fixed IsRelativeUrl and IsRootUrl.
svn path=/trunk/mcs/; revision=9797
whatever TraceImpl is using (which in turn may have been set by the .config
file, so we should get the user-specified values in added listeners).
svn path=/trunk/mcs/; revision=9787
code that uses Trace.Indent() before a Trace.WriteLine() to be indented
properly.
* TraceImpl.cs: provide a static constructor to explicitly specify the
ordering of initialization, in particular the ordering of
TraceImpl.Listeners and the reading of the .config file (by accessing
DiagnosticsConfiguration.Settings). This (hopefully) ensures that the
Listeners collection is initialized before the .config file is read in, as
the DiagnosticsConfigurationHandler will directly modify the listeners
collection.
The DiagnosticsConfigurationHandler assumes this so that it can <add/> and
<remove/> trace listeners and set the logfile for the DefaultTraceListener.
svn path=/trunk/mcs/; revision=9786
* attribute.cs (Attributes.Contains): Add new method.
* class.cs (MethodCore.LabelParameters): if the parameter is an
`out' parameter, check that no attribute `[In]' has been passed.
svn path=/trunk/mcs/; revision=9785
* object.c: removed assert to allow static fields on interfaces.
* loader.c: a TypeSpec may be used for any type, not just arrays.
svn path=/trunk/mono/; revision=9768
* System.Web.Configuration/AuthConfig.cs: LoginUrl defaults to login.aspx.
* System.Web.Security/FormsAuthentication.cs: return a null ticket when
an exception is thrown creating it. Implemented RenewTicketIfOld.
* System.Web.Security/FormsAuthenticationModule.cs: implemented event
handlers for AuthenticateRequest and EndRequest.
* System.Web.Security/FormsAuthenticationTicket.cs: implemented
SetDates and Clone methods.
svn path=/trunk/mcs/; revision=9764
* AspGenerator.cs: generate code like 'control.XXX = value' also for
public fields (properties were being handled in that way too).
svn path=/trunk/mcs/; revision=9762
* ConfigXmlDocument.cs: don't jump over the first element.
* ConfigurationSettings.cs: pass doc.DocumentElement instead of doc.
This used to work until i tried to access one attribute of the first
element and realized that the element was not the expected!
This change does not affect the configuration handlers that only use
ChildNodes property on the XmlNode they get as argument.
svn path=/trunk/mcs/; revision=9760
* attribute.cs (Attributes.AddAttributeSection): Rename to this
since it makes much more sense.
(Attributes.ctor): Don't require a Location parameter.
* rootcontext.cs (AddGlobalAttributeSection): Rename again.
* attribute.cs (ApplyAttributes): Remove extra Location parameters
since we already have that information per attribute.
* everywhere : make appropriate changes.
* class.cs (LabelParameters): Write the code which actually
applies attributes to the return type. We can't do this on the MS
.NET runtime so we flag a warning in the case an exception is
thrown.
svn path=/trunk/mcs/; revision=9757
* configure.in: moved struct tm field tm_gmtoff check before the check
for timezone global variable. This makes Timezone work for me (debian
sid, linux, x86, which has both the field and the global variables).
svn path=/trunk/mono/; revision=9749
Switch derived classes should match that of .NET.
Go forth and use Swiches! ;-)
ChangeLog:
* BooleanSwitch.cs: Complete re-write. It works now.
* DefaultTraceListener.cs:
- Use `const' strings, so I don't worry about copy/paste errors
- Give `AssertUiEnabled' an actual backing member
* DiagnosticsConfigurationHandler.cs: To avoid race conditions, let the
configuration handler set .config-specified properties on
DefaultTraceListener (AssertUiEnabled, LogFileName) and TraceImpl
(AutoFlush, IndentSize).
* Switch.cs: Near complete re-write. Actually works, and is (should be)
comformant with .NET behavior. Changed member names because they were
confusing me. (Yes, that doesn't say much about my memory.)
* TextWriterTraceListener.cs: Append text to already existing files, don't
overwrite them.
* TraceImpl.cs:
- Added private destructor, to ensure no instances are created.
- Move members declarations to be closer to each other.
* TraceSwitch.cs: Complete re-write. It works now.
svn path=/trunk/mcs/; revision=9747
* System.Web/HttpApplicationFactory.cs: add the context as parameter
when building the application Type.
* System.Web/HttpCookie.cs: new internal constructor.
* System.Web/HttpCookieCollection.cs: new internal method to make a
cookie expire.
* System.Web/HttpRequest.cs: MapPath fixes.
* System.Web/HttpResponse.cs: implemented ApplyAppPathModifier.
* System.Web/HttpRuntime.cs: fixed typo in AppDomainAppVirtualPath.
* System.Web.Compilation/AspGenerator.cs: now it uses the current
HttpContext when creating user controls. TemplateSourceDirectory is no
longer a dummy value.
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs: set the context which
will be used to locate the files.
* System.Web.UI/BaseParser.cs: use MapPath and context to locate files.
* System.Web.UI/Control.cs: implemented MapPathSecure.
* System.Web.UI/TemplateControl.cs: use UrlUtils to generate the path.
* System.Web.UI/TemplateControlParser.cs: use the context and MapPath.
* System.Web.UI/UserControl.cs: implemented MapPath.
* System.Web.UI/UserControlParser.cs: added context parameter to
constructor.
* System.Web.Util/PathUtil.cs: removed.
* System.Web.Util/UrlUtils.cs: fixed Combine to handle '~'.
svn path=/trunk/mcs/; revision=9737
* class.cs (MethodCore.LabelParameters): Remove the extra
Type [] parameter since it is completely unnecessary. Instead
pass in the method's attributes so that we can extract
the "return" attribute.
svn path=/trunk/mcs/; revision=9736
* cs-parser.jay (parse): Use Report.Error to flag errors instead
of ignoring it and letting the compile continue.
* typemanager.cs (ChangeType): use an extra argument to return an
error condition instead of throwing an exception.
svn path=/trunk/mcs/; revision=9726
* FormsAuthentication.cs: implemented Authenticate, unencrypted Encrypt
and Decrypt, HashPasswordForStoringInConfigFile and Initialize.
* FormsAuthenticationTicket.cs: set cookiePath to the default when no
other provided.
svn path=/trunk/mcs/; revision=9722
* AuthConfig.cs:
* AuthenticationConfigHandler.cs: handler and helper class for
system.web/authentication configuration section.
* HttpHandlersSectionHandler.cs: check for null in attributes.
* MachineKeyConfig.cs:
* MachineKeyConfigHandler.cs: handler and helper class for
system.web/machineKey tag.
svn path=/trunk/mcs/; revision=9720
* HttpContext.cs: hack to create a default user when there's no one.
Implemented GetConfig (string).
* HttpRequest.cs: fixes to MapPath (string).
svn path=/trunk/mcs/; revision=9718
* DataSet.cs: implemented DefaultViewManager and GetList.
* DataViewManager.cs: a bit of work on IList and ITypedList needed by
DataList in System.Web.
* DataViewManagerListItemTypeDescriptor.cs: custom type descriptor for
DataViewManager.
svn path=/trunk/mcs/; revision=9715
AllTests.cs: Added StrongNamePublicKeyBlobTest suite.
StrongNamePublicKeyBlobTest.cs: New. Test suite for
StrongNamePublicKeyBlob.
svn path=/trunk/mcs/; revision=9708
* AllTests.cs: Added test suites for Publisher and
PublisherMembershipCondition.
* PublisherTest.cs: New. Test suite for Publisher (complete).
* PublisherMembershipConditionTest.cs: New. Test suite for Publisher
PublisherMembershipCondition (incomplete).
svn path=/trunk/mcs/; revision=9697
* Directory.cs: Some fixes to SMB shares handling, and not compiling
with csc, mcs compiles it correctly (mcs bug 35652)
svn path=/trunk/mcs/; revision=9694
* Directory.cs: Some fixes related to correct some exceptions thrown
2002-12-11 Eduardo Garcia Cebollero <[email protected]>
* Directory.cs: Some Exceptions added, fixed GetParent(),
CreateDirectory() should work with unix, native windows and
windows samba shares. Converted end-lines from dos-mode to unix-mode
2002-12-08 Eduardo Garcia Cebollero <[email protected]>
* Directory.cs: CreateDirectory works now with Absolute paths
too, not only with relative ones.
svn path=/trunk/mcs/; revision=9693
* X509CertificateTest.cs: Uncommented the GetEffectiveDateString and
GetExpirationDateString tests. Added a test for ToString(true).
svn path=/trunk/mcs/; revision=9688
* X509Certificate.cs: Fixed the date issue. MS implementation always
return the local time for Pacific (GMT-8). Added ToString() and changed
some protected to private to please corcompare.
svn path=/trunk/mcs/; revision=9687
* Transform.resources: Add file. This is technically a generated file,
but it will never change for us since we get the sources from the nunit
project anyway.
svn path=/trunk/mcs/; revision=9672
remove a configuration setting, you'd get an exception saying that there was
no factory for it (i.e. it had already been removed).
svn path=/trunk/mcs/; revision=9664
* DefaultTraceListener.cs: now OutputDebugStringW is called from an
internal call (update your runtime!). No more warnings in linux.
svn path=/trunk/mcs/; revision=9661
* makefile.gnu: added file for linux build
* win32.make: update file for windows build
* DataGrid.cs: since SetColumnTypes has been fixed in GTK#,
update its use here
* sqlsharpgtk.cs: change Console.WriteLine()s to Error()s or
get rid of the Console.WriteLine()s. Created new menus Session
and Command and move some menu items. Implement new menu items
File - New, Open, Save, and Save As
* FileSelectionDialog.cs: added file
to make it easier to use the FileSelection dialog
* SqlEditorSharp.cs: added public methods
LoadFromFile, SaveToFile, and Clear
svn path=/trunk/mcs/; revision=9657
* System.Web.Compilation/AspGenerator.cs: added support for
AutoEventWireup attribute in @Page and @Control.
* System.Web.Compilation/CompilationResult.cs:
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs: store the options.
* System.Web.UI/Control.cs: added AutoEventWireup internal property.
* System.Web.UI/Page.cs: removed page events wire up from here.
* System.Web.UI/TemplateControl.cs: new method WireupAutomaticEvents to
hook up page and user controls events.
* System.Web.UI/TemplateControlParser.cs: process the options that are
applicable once we have the instance of the control.
* System.Web.UI/TemplateParser.cs: also stores the options.
* System.Web.UI/UserControl.cs: hook up events before initializing the
control.
svn path=/trunk/mcs/; revision=9623
* gc.h, gc-internal.h: Rename header for GC internal calls to
gc-internal.h from gc.h as to not clash with Boehm GC having its
header installed as <gc.h> in outside include paths.
* appdomain.c, gc.c, icall.c, object.c: Account for aforementioned.
* threads.c: If SIGRTMIN is not defined, fall back to SIGUSR1.
svn path=/trunk/mono/; revision=9612
* class.cs: Remove some dead code.
* cs-parser.jay: Estimate the number of methods needed
(RootContext.MethodCount);
* cs-tokenizer.cs: Use char arrays for parsing identifiers and
numbers instead of StringBuilders.
* support.cs (PtrHashtable): Add constructor with initial size;
We can now reduce reallocations of the method table.
svn path=/trunk/mcs/; revision=9611
* System.Web.UI/Control.cs: new method to set bindingContainer value.
* System.Web.UI/TemplateControl.cs: added controls are not binding
containers.
* System.Web.UI.WebControls/DataList.cs: for header and footer don't
use data source. Instantiate in the DataListItem, not in the DataList.
databind-template.aspx works now.
svn path=/trunk/mcs/; revision=9594
* daemon.c, handles-private.h, handles.c, wapi-private.h:
Check for an implementation which says it supports
_POSIX_THREAD_PROCESS_SHARED, rather than just one that
defines the symbol. Defined but with a value of -1 still
means that it is unsupported.
svn path=/trunk/mono/; revision=9591
System.Drawing in driver.cs is referenced by default (just for now)
Added an extra define (EXTRA_DEFAULT_REFS) in driver.cs to allow default
referencing of a bigger set of system assemblies. Off by default.
svn path=/trunk/mcs/; revision=9590
* Encoding.cs: g_get_encoding () returns "ASCII". In Default, when the
encoding is not found, default to UTF8Unmarked. Removed comment in
UnixConsoleEncoding, because it's now Default, which gets the
encoding internally using g_get_encoding ().
svn path=/trunk/mcs/; revision=9584
* list: Modified file.
* System.Web/HttpRuntime.cs: avoid nulls and exception when getting
resource format strings.
* System.Web/StaticFileHandler.cs: added file name to error message.
* System.Web.Compilation/AspElements.cs: new method Tag.GetElements
used to parse the inner contents of a tag looking for data binding or
code render tags.
New property HtmlControlTag.ParseChildren allows
differentiation of a couple of HtmlControls that has children as
properties (namely HtmlTable and HtmlTableRow).
* System.Web.Compilation/AspGenerator.cs: fixed container semantics to
match BindingContainer one. Implemented Inherits attribute for page and
control.
Support HtmlControls that has ChildrenAsProperties.
Generate code for data binding functions that matches the semantic of
Container.
Handle data bound and code render attribute values.
Set proper value return for TemplateSourceDirectory. Should be relative
to appPath.
* System.Web.Compilation/BaseCompiler.cs: moved CompilerOptions and
References handling here.
* System.Web.Compilation/CachingCompiler.cs: copy result of compilation.
* System.Web.Compilation/CompilationException.cs: simple ToString ()
implementation.
* System.Web.Compilation/CompilationResult.cs: implemented CopyFrom and
ToString.
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs: removed
CompilerOptions as it's now handled in the base class. Get all the
types in the generated assembly and look for one that derives from
the correct Type.
* System.Web.UI/Control.cs: implemented TemplateSourceDirectory.
* System.Web.UI/TemplateControl.cs: implemented LoadControl and
LoadTemplate.
* System.Web.Util/PathUtil.cs: some path handling methods that are not
available in Path.
svn path=/trunk/mcs/; revision=9583
* attribute.cs (ApplyAttributes): Keep track of the emitted
attributes on a per-target basis. This fixes bug #35413.
svn path=/trunk/mcs/; revision=9557
* test-102.cs : Improve to catch the case when an attribute
can be emitted twice for the same program element but with
different targets.
svn path=/trunk/mcs/; revision=9556
* driver.cs (MainDriver): On rotor encoding 28591 does not exist,
default to the Windows 1252 encoding.
(UnixParseOption): Support version, thanks to Alp for the missing
pointer.
* AssemblyInfo.cs: Add nice assembly information.
* cs-tokenizer.cs: Add fix from Felix to the #if/#else handler
(bug 35169).
* cs-parser.jay: Allow a trailing comma before the close bracked
in the attribute_section production.
svn path=/trunk/mcs/; revision=9553
* doc/oracle: added file which is
a new web page oracle.html
* doc/ado-net: clean up and add link
to oracle.html
* doc/web/commands
* doc/web/makefile: added oracle.html
svn path=/trunk/mono/; revision=9549
* ecore.cs (FieldExpr.AddressOf): Until I figure out why the
address of the instance was being taken, I will take this out,
svn path=/trunk/mcs/; revision=9544
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs:
(Disconnect): close the stream and set connected to false.
(NextResult): check if after DoneProc we have a ColumnMetadata + Row,
which holds the values for the output parameters and read them.
(LoadRow): add the values to outputParameters if DoneProc.
When executing a stored procedure, we execute the procedure and then
select the parameter values.
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs:
(BuildParameters): check Parameters.
* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs: added Close () to
close the stream.
* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionParameters.cs:
initialize all the string to be empty.
* System.Data/System.Data.SqlClient/SqlCommand.cs:
(CloseReader): don't get the output parameters here.
(GetOutputParameters): don't skip the stream. The parameters will be
there.
* System.Data/System.Data.SqlClient/SqlConnection.cs: don't try to
execute 'sp_reset_connection'.
* System.Data/System.Data.SqlClient/SqlDataReader.cs: get the output
parameters after the end of the results.
svn path=/trunk/mcs/; revision=9534
* Monitor.cs:
* Thread.cs:
* ThreadPool.cs:
* Timer.cs:
* WaitHandle.cs: Use TotalMilliseconds to convert a TimeSpan to
ms, not Milliseconds.
svn path=/trunk/mcs/; revision=9533
* Makefile
* SqlSharpCli.build: change target
from SqlSharpCli.exe
to sqlsharp.exe
* README: mention how to run SQL#
svn path=/trunk/mcs/; revision=9530
* typemanager.cs (AreMultipleAllowed): Take care of the most
obvious case where attribute type is not in the current assembly -
stupid me ;-)
svn path=/trunk/mcs/; revision=9515
* library.build: add Mono.GetOptions to windows build
* Mono.GetOptions/Mono.GetOptions.build: add file
for windows build
svn path=/trunk/mcs/; revision=9499
* appdomain.c: fix buglet when building exe file name. Handle full
assembly name (needed after latest changes to AssemblyName).
* image.c:
(mono_image_close): free some hashtables.
svn path=/trunk/mono/; revision=9490
MCS is currently able to compile itself and many more C#
programs (there is a test suite included that you can use).
It is routinely used to compile Mono, roughly half a million
lines of C# code.
The Mono C# compiler is considered feature complete at this
point and relatively mature. MCS is able to compile itself
and many more C# programs (there is a test suite included that
you can use). It is routinely used to compile Mono, roughly
half a million lines of C# code.
We are in feature completion mode right now. There are still
a couple of areas that are not covered by the Mono compiler, but
they are very very few at this point (security attributes),
* Pending tasks
There are a few known bugs in the Mono C# compiler, but
they are very very few at this point,
you can also browse the MCS <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FMCS&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time&form_name=query">bugs</a> from Bugzilla.
A test suite is maintained to track the progress of
You can review the list of current bugs by going <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&product=Mono%2FMCS&product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query">here</a>
Check our <a href="bugs.html">Bugs</a> that contains links to
easily add a bug report, or to query the existing bugs.
<a name="goodbugreport"/>
** How to make good bug reports
A mail from Paolo to mono-devel-list contained this check list:
<ol>
* Submit a test case, the smaller it is, the better
* Use <a href="http://bugzilla.ximian.com">
http://bugzilla.ximian.com</a> to report the bug.
<p>In <b>addition</b> to bugzilla, posting to the list is
fine if the bug merits larger exposure or design
discussions to solve; posting to the list twice or more
is just a way to annoy people and make them waste time,
specially when you start a new thread about it.
* If the test involves libraries or assemblies that are
not part of mono, add info about where to download all
the dependencies, and how to compile/install them.
* If compiling the test case requires more than:
<pre> mcs test.cs </pre>
provide the <b>full command line</b> you used to compile
the test.
* If running the test requires more than:
<pre> mono test.exe </pre>
provide the <b>full command line</b> needed to replicate
the bug.
* Provide info about the version of the software you're
using (both mono and the operating system or relevant
libraries).
* Provide the output you expect the test case to produce.
* Provide the actual output <b>you</b> get from the test case.
</ol>
A good bug report complies with at least 6 items from the list.
If your bug report complies with 3 or less items, it is very
poor and it means it will take much more time to fix (when it's
not ignored).
** Small tasks
A few smaller tasks are here, dropped in no particular order:
This namespace implements the <a href="http://www.w3.org/TR/xmldsig-core/">
XML Digital Signature</a> specification from
<a href="http://www.w3.org/">W3C</a>.
**** Status
<ul>
* All classes are present but some Transforms are only stubbed.
* We now have a fully managed C14N implementation.
* Most classes have their unit tests.
</ul>
**** TODO
<ul>
* Complete all Transform derived classes.
</ul>
<hr>
** Assembly: Mono.Security
<b>Rational: </b>
This assembly provides the missing pieces to .NET security. On Windows
CryptoAPI is often used to provide much needed functionalities (like
some cryptographic algorithms, code signing, X.509 certificates). Mono,
for platform independance, implements these functionalities in 100%
managed code.
*** Namespace: Mono.Security
<ul>
* Structures (ASN1, PKCS7) and primitives (PKCS1).
</ul>
*** Namespace: Mono.Security.Authenticode
<ul>
* Code signing and verification.
* Support for SPC (Software Publisher Certificate) files and
PVK (Private Key) files.
</ul>
*** Namespace: Mono.Security.Cryptography
<ul>
* Additional algorithms: MD2, ARCFOUR (required for SSL)
* Convertion helpers
</ul>
*** Namespace: Mono.Security.X509
<ul>
* X.509 structures (certificate, CRL...) building and decoding.
</ul>
*** Namespace: Mono.Security.X509.Extensions
<ul>
* X.509 extensions (from public X.509 to private PKIX, Netsapce,
Microsoft, Entrust...).
</ul>
**** Status
<ul>
* Some part of the work has not yet been commited (still cleaning up).
* A big part of this assembly is also included inside Mono's
corlib. The classes are duplicated in this assembly so the
functionalities can be used without a dependency on Mono's
corlib (which depends on Mono's runtime).
* Unit test coverage isn't (yet) complete.
</ul>
<hr>
** Assembly: Mono.Security.Win32
<b>Rational: </b>
This assembly goal is to provide maximum compatibility with CryptoAPI
to application running with Mono's runtime on the Windows operating
system.
<b>This assembly should NEVER be used directly by any application</b>
(e.g. referecing the assembly from a project).
The classes should only be used by modifying the <code>machine.config
</code> configuration file (and then only if this increased
compatibility is required by an application).
See the file <code><a href="http://cvs.hispalinux.es/cgi-bin/cvsweb/~checkout~/mcs/class/Mono.Security.Win32/README?rev=1.1&content-type=text/plain&cvsroot=mono">/mcs/class/Mono.Security.Win32/README</a></code>
for complete instructions.
*** Namespace: Mono.Security.Cryptography
**** Status
<ul>
* A RNGCryptoServiceProvider built on top of CryptoAPI. This
allows Windows users to get around the limitation of the
DataSet ds=DataTools.FillDataSet(conn, "select * from author");
</pre>
<p>Here's some sample code on displaying a list <br>
of configured ADO.NET providers:
<pre>
Console.WriteLine("Configured Providers:");
foreach (Provider p in ProviderFactory.Providers)
Console.WriteLine(p.Description);
</pre>
<p>A Super lazy overload to the FillDataSet method (in <br>
DataTools.cs) that will fill a dataset in one line of code.
<pre>
DataSet ds=DataTools.FillDataSet("PubsConnStr", "select * from authors");
</pre>
** About Configuration Files
<p>Information about <a href="http://msdn.microsoft.com/library/en-us/vbcon/html/vboriintroductiontoapplicationsettingstorage.asp?frame=true">app.config</a> files
can be found at <a href="http://msdn.microsoft.com/">MSDN</a>.
<p>See the mcs/class/Mono.Data/app.config for sample configuration file in<br>
mcs source. Basically, if your application is named blah.exe, <br>
you would create an app.config file named blah.exe.config
<p>Here's a sample app.config file showing the provider <br>
declarations along with sample connection strings:
The <a href="http://msdn.microsoft.com/net">Microsoft.NET site.</a>
The Microsoft .NET Framework 1.0 can be downloaded <a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a>
New methods that are not documented in 1.0, are documented <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/framewrkaddend.asp">here</a>
New methods that are not documented in 1.0, are documented <a
Another implementation of the CLI and C# compiler.
* A Free (GFDL) tutorial on C# in Spanish with examples, slides, and extras (under development). Get it <a href="http://geneura.ugr.es/~jaime/csharp/">here</a>.
* <a
href="http://codigolivre.org.br/projects/monoqle">Project MonoQLE:</a> a C# Message Queue Server.
Sorry only in portuguese, for now.
* A Free (GFDL) tutorial on C# in Spanish with
examples, slides, and extras (under development). Get it <a
There are no current plans to support embedded devices, but
Gtk/FrameBuffer is an option. If you have suggestions or
Loaded 100 of 5059 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.