* ChunkStream.cs: simplified condition for WantMore property.
* WebConnection.cs: in Connect(), finish any pending reads we might
have for chunked data. Ignore possible blank lines at the very
beginning of the server response. Honor user set KeepAlive in
HttpWebRequest for HTTP/1.1 connections. Thanks to Eyal Alayuf for
his suggestions and code.
svn path=/trunk/mcs/; revision=35934
* expression.cs (Invocation.BetterFunction): If two methods have
equal parameter types, but only one of them is generic, the
non-generic one wins.
(New.DoResolve): Don't set `is_struct' to false if we're a generic
instance; just use `Type.IsValueType' to determine whether
something is a struct or not.
(MemberAccess.DoResolveAsTypeStep): Don't modify the `args' field,
so we can be called multiple times.
svn path=/trunk/mcs/; revision=35933
* iterators.cs
(Iterators): Added `current_type' and `this_type' fields.
(Iterators.DefineIterator): Create a new EmitContext and store it
in `ec'; compute `this_type'.
svn path=/trunk/mcs/; revision=35928
* typemanager.cs
(TypeManager.IsPrivateAccessible): New public method.
(Closure.Filter): Use IsPrivateAccessible() instead of IsEqual().
svn path=/trunk/mcs/; revision=35926
* class.cs (TypeContainer.DefineType): Call
TypeBuilder.DefineGenericParameters() before resolving the type
parameters.
(MethodData.parent_method): New protected field.
(MethodData..ctor): Added `MethodInfo parent_method' argument.
(MethodData.Define): Compute `parent_method'.
* decl.cs
(MemberCore.GetObsoleteAttribute): Don't create a new EmitContext.
(MemberCore.GetClsCompliantAttributeValue): Likewise.
(DeclSpace.ec): New protected field; store the EmitContext here.
(DeclSpace.EmitContext): New public property.
(DeclSpace.ResolveType): Un-comment from the [Obsolte] attribute.
(DeclSpace.ResolveNestedType): New public method.
(DeclSpace.ResolveTypeExpr): Just call ResolveAsTypeTerminal() here.
(DeclSpace.NestedAccessible): Added `Type tb' argument.
(DeclSpace.FamilyAccessible): Likewise.
(DeclSpace.FindType): Call ResolveNestedType() for nested types.
(DeclSpace.GetClsCompliantAttributeValue): Don't create a new
EmitContext.
* delegate.cs (Delegate.Define): Store the EmitContext in the `ec'
field.
* enum.cs (Enum.Define): Store the EmitContext in the `ec' field.
(Enum.Emit): Don't create a new EmitContext.
svn path=/trunk/mcs/; revision=35925
* class-internals.h (MonoGenericContainer): Removed `method' and
`signature', replaced them with `is_method' and `is_signature'
flags. Added `context'.
* loader.c (method_from_methodspec): Take a `MonoGenericContext *'
instead of a `MonoGenericContainer *'.
* metadata.c (mono_metadata_generic_param_equal): Removed the hack
for dynamic type parameters.
(mono_metadata_load_generic_params): Setup `container->context'.
* reflection.c (mono_reflection_setup_generic_class): Setup
`tb->generic_container->context'.
(do_mono_reflection_bind_generic_parameters): Use
mono_class_inflate_generic_type() to correctly inflate types,
rather than using our own hack just for MONO_TYPE_VAR.
svn path=/trunk/mono/; revision=35915
* ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
and Bottom, left and right are illegal values for this and
multiline is enabled when the alignment is set to left or right.
(DrawTab): Each alignment block should draw the text itself now
because Left requires special love. Also add rendering for Left
aligned tabs.
svn path=/trunk/mcs/; revision=35914
Only reflect properties from type's members if the type does not
override Properties.
* ConfigurationElementCollection.cs: Implemented Equals and GetHashCode.
Other minor fixes.
* ConfigurationProperty.cs: It is not a subclass of ConfigurationElement.
* NonEmptyStringConfigurationProperty.cs, NonEmptyStringFlags.cs:
Implemented.
svn path=/trunk/mcs/; revision=35903
* assembly.c (mono_assembly_names_equal): Reenable the comparison of
assembly versions and public key tokens. Fixes#69113.
svn path=/trunk/mono/; revision=35902
* Control.cs: unified a few bool fields into an int one.
* ControlCollection.cs: use an array internally instead of always
allocating an arraylist. Also added our own enumerator.
* EmptyControlCollection.cs: there's no 'special' ctor now in the base
class.
svn path=/trunk/mcs/; revision=35900
* metadata.h, metadata.c, domain-internals.h, marshal.c: include
the MonoClass pointer instead of the token in exception clauses.
* reflection.c: updates for the above and make the code not depend
on the structure of MonoExceptionClause.
svn path=/trunk/mono/; revision=35891
file attribute).
* ConfigHelper.cs: GetNameValueCollection now returns a
ConfigNameValueCollection instance which is a NameValueCollection with a
modification flag.
* ConfigInfo.cs: Added XPath property.
* Configuration.cs: Implemented AppSettings property. Set the Path property
of sections and groups.
* ConfigurationElement.cs: Support key serialization. Properly reset
nested elements.
* ConfigurationElementCollection.cs: Initial implementation.
* ConfigurationSection.cs: Impemented Path and GetRuntimeObject.
* ConfigurationSectionGroup.cs: Implemented Path.
* SectionGroupInfo.cs: Little fix.
svn path=/trunk/mcs/; revision=35884
- (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
rendering and incorrect text rect clipping
- (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
rendering and incorrect text rect clipping
svn path=/trunk/mcs/; revision=35882
Attribute.GetValidPlaces() with an equivalent instance method
Attribute.GetValidTargets() 2) Added new methods Attributes.Emit
() and Attribute.Emit(). 3) Migrated functionality of
ApplyAttributes to ApplyAttributeBuilder of respective classes.
* class.cs, decl.cs, codegen.cs, const.cs, parameter.cs :
Implemented ApplyAttributeBuilder() in the following classes:
TypeContainer, Constructor, Field, Property, Event, DeclSpace,
AssemblyClass, ModuleClass, Const, Method, Parameter.
* codegen.cs: Implemented Emit() in the following classes:
AssemblyClass and ModuleClass.
svn path=/trunk/mcs/; revision=35880
bottom when they are bottom aligned so the bottoms of the tabs get
displayed.
* TabControl.cs (DropRow): Move rows up instead of down when the
tab control is bottom aligned.
svn path=/trunk/mcs/; revision=35872
* expression.cs: emit unary operator code.
* TypeOf.cs: back to Microsoft.JScript namespace. fix typo.
* Literal.cs: constrain more the case of negative numeric literal.
svn path=/trunk/mcs/; revision=35868
* outline.cs: If a type is in the namespace that we
are looking at right now, dont print out the fullname
this cuts down on verbosity
svn path=/trunk/mcs/; revision=35862
MonoPosixHelper (the support directory).
* support/Makefile.am: Add sys-sendfile.c to the build.
* support/dirent.c, support/fcntl.c, support/unistd.c: Remove compile-time
checks for -64 apis (pread64, etc.), as they're superfluous. GLibc
#defines the functions to the appropriate -64 counterpart when necessary,
and Darwin is intrinsically large-file-aware, so manual checking on my
part is redundant and unnecessary.
* support/grp.c: Add checks for non-portable functions getgrnam_r,
getgrgid_r.
* support/pwd.c: Add checks for non-portable functions getpwnam_r,
getpwuid_r.
* support/mph.h: Clean up macro handling for type overflow checking.
svn path=/trunk/mono/; revision=35828
variables. Used to support both an in-tree mcs/ and a sibling
mcs/ directory.
* Makefile.am (mcs_topdir): Remove.
(dist-hook): Distribute mcs/ as a subdirectory.
* runtime/Makefile.am ($(monoone_DATA) $(monotwo_DATA) $(monobins_DATA)):
Use mcs_topdir and mcs_topdir_from_srcdir.
* runtime/net_1_1/Makefile.am (mscorlib.dll $(gac_assemblies) $(mdb_files)):
Likewise.
(all-local): Depend on $(mdb_files) too.
* runtime/net_2_0/Makefile.am: Likewise.
svn path=/trunk/mono/; revision=35821
Attributable.AttributeTargets
* decl.cs: Made MemeberCore a derived class of
Attributable.
* parameter.cs: Made Parameter a derived class of
Attributable.
* class.cs: Commented out the "never used" class Indexer. I
suspect that the class will never be required in VB.NET context
and can possibly be stripped off after careful inspection.
* tree.cs, module.cs, interface.cs, enum.cs, delegate.cs,
const.cs, codegen.cs: Changes necessiated by the above changes.
svn path=/trunk/mcs/; revision=35818
* XmlTextReaderTests.cs : added tests for 2.0 entity handling.
* XmlValidatingReaderTests.cs : modified tests for entity handling
that are changed in 2.0.
svn path=/trunk/mcs/; revision=35813
* XmlTextReader2.cs : added. It is used to serve public API, plus
entity handling support.
* DTDObjectModel.cs,
DTDValidatingReader.cs,
XmlDocumentType.cs,
XmlParserContext.cs,
XmlTextReader.cs :
Implemented XmlTextReader.EntityHandling and ResolveEntity(). To
implement them, XmlTextReader in 2.0 itself is in XmlTextReader2.cs
and XmlTextReader.cs contains Mono.Xml2.XmlTextReader which is the
same as 1.x XmlTextReader. XmlTextReader2 switches entity reader and
source reader, and never handles tokenization.
The reason for "Mono.Xml2" is to avoid large changes in constructor.f
svn path=/trunk/mcs/; revision=35812
* Tokenizer.cs : just use raw string instead of char[].
* XPathNavigator.cs : reuse NameTable when creating XmlTextReader.
svn path=/trunk/mcs/; revision=35810
* XmlAttribute.cs, XmlElement.cs : get_Name should consider name table.
* XmlDocument.cs : use NameTable in Load() and LoadXml().
* XmlReader.cs : In Create(), use NameTable in XmlReaderSettings.
svn path=/trunk/mcs/; revision=35808
* class-internals.h (MonoMethod): Move addr to MonoMethodPInvoke
since most only those methods use it. the code member of
MonoMethodPInvoke was dead, so that can be removed too. Also,
remove inline_count (again, not used), and move slot so that it
can share bits with some other flags. This saves 8 bytes in the
structure and gives us about 50 kb back for mcs helloworld.cs
* *.[ch]: Do naming changes for the above. 2004-11-07 Ben Maurer <[email protected]>
* tramp-*.c: we no longer support icalls without wrappers, so
a bit of code can be removed here
svn path=/trunk/mono/; revision=35800
* loader.c (mono_method_get_header): Lazily init the header
on first access.
(mono_get_method_from_token): don't init the header here
(mono_free_method): the header may never be allocated
Overall, this saves 150 kb of unmanaged allocations
for mcs helloworld.cs. That accounts for 10% of the unmanaged
memory at runtime.
svn path=/trunk/mono/; revision=35797
* XmlFilterReader.cs : ReadInnerXml() and ReadOuterXml() should not
invoke those of argument reader. It causes unfiltered results like
XmlValidatingReader bug in MS.NET 1.0. Just don't implement it.
svn path=/trunk/mcs/; revision=35796
* loader.c, loader.h (mono_method_get_header): new accessor.
* *.[ch]: use the above method. Prepares us to lazily load
the header.
svn path=/trunk/mono/; revision=35794
* IntegerFormatter.cs: Avoid .ToCharArray, it was being used in
places where there was no reason for it. Also, allocate buffers
using stackalloc. This avoids the cost of allocating a char []
buffer in the gc. Also did some minor style changes.
This gives a huge reduction in memory allocation for integer formatting.
often you see something like:
665 KB System.IntegerFormatter::FormatGeneral(long,int,NumberFormatInfo,bool,int)
463 KB 11710 System.Char[]
201 KB 11710 System.String
This patch removes the char [] part. (it also removes the
tochararray, which accounts for even more.
svn path=/trunk/mcs/; revision=35792
* Iterator.cs :
- Made copy constructor certainly different from other constructors.
- Position is never computed in each derived type. All MoveNext() are
now MoveNextCore().
- Most of the protected members could just be private.
svn path=/trunk/mcs/; revision=35776
* metadata.c (builtin_types): Add types for System.Object here.
(mono_metadata_parse_type_full): Cache MonoType*'s that are
for a class or valuetype from klass->this_arg or klass->byval_arg.
On mcs for a hello world, this gets us down from 21836 MonoType's
to 14560.
(mono_metadata_free_type): Account for the above change.
svn path=/trunk/mono/; revision=35772
redundant and replaced LookupAttr with LookupClass.
* rootcontext.cs:
* module.cs: Miscellaneous changes
* mb-parser.jay: Upadted actions of the attributes grammar
* codegen.cs: 1) Introduced new classes CommonAssemblyModulClass,
AssemblyClass, ModuleClass 2) Introduced following methods
CodeGen.AddGlobalAttributes, CodeGen.EmitGlobalAttributes
* class.cs: Factored out TypeContainer.AttributeUsage
* attribute.cs: 1) Factored out Attribute.UsageAttribute and
Attribute.GetAttributeUsage 2) Introducing the new base class
Attributable from which all Attributable types will be derived in
the future 3) Added new accessors Attribute.IsAssemblyAttribute
and Attribute.IsModuleAttribute
svn path=/trunk/mcs/; revision=35771
* Expression.cs, XPathNavigator.cs : hold raw expression field for
get_Expression. It is preparation for expression optimization.
svn path=/trunk/mcs/; revision=35767
* ssa.c: allocate MonoMethodVar.uses from the mempool. First, this
prevents another huge leak when compiling with ssa. Secondly, the
performance of doing this rather than freeing the lists is much
better. GList does a lock every time you allocate a list link,
so that it can use a memory pool. So, it is better to just use
a memory pool of our own.
svn path=/trunk/mono/; revision=35752
* ssa.c, linear-scan.c: replace g_list_remove_link with
g_list_delete. The remove one does not free the GList, so we were
leaking memory. On -O=all --compile-all with corlib, this cut down
3 MB of allocations.
svn path=/trunk/mono/; revision=35750
* appdomain.c (ves_icall_System_AppDomain_GetData): Throw an
exception instead of asserting if name is null.
(ves_icall_System_AppDomain_GetData): Ditto.
svn path=/trunk/mono/; revision=35746
* TypeBuilderTest.cs: Ignore some tests which depend on TypeBuilder
features which are unlikely to change due to mcs depending on them.
svn path=/trunk/mcs/; revision=35745
* statement.cs (Return.Resolve): Fix regression in typo: if
`in_exc', we have to request a NeedReturnLabel, this was a typo
introduced in the anonymous method check-in. Fixes#69131.
svn path=/trunk/mcs/; revision=35738
* icall.c (ves_icall_System_Reflection_Assembly_GetEntryAssembly):
Return NULL when the domain does not have entry_assembly set.
svn path=/trunk/mono/; revision=35737
* Indexers were using the ShortName when defining themselves,
causing a regression in the compiler bootstrap when applying the
patch from 2004-11-02 (first part), now they use their full name
and the bug is gone.
Reapplied:
2004-11-02 Miguel de Icaza <[email protected]>
* class.cs (Event.Define, Indexer.Define, Property.Define): Do not
special case explicit implementations, we should always produce
the .property or .event declaration.
svn path=/trunk/mcs/; revision=35728
* reflection.c (mono_reflection_create_runtime_class): Move setting
of wastypebuilder here, so mono_get_type_object () returns a MonoType
for enums too.
svn path=/trunk/mono/; revision=35723
* AuthenticodeFormatter.cs: Now use BitConverterLE for explicit
little-endian convertion.
* PrivateKey.cs: Now use BitConverterLE for explicit little-endian
convertion for PVK files.
svn path=/trunk/mcs/; revision=35703
* marshal.c (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi): Return NULL here instead of an empty string to match MS behavior.
(ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi_len):
Throw an ArgumentNullException if 'ptr' is null.
svn path=/trunk/mono/; revision=35700
* runtime/net_2_0/Makefile.am (install-data-local):
* runtime/net_1_1/Makefile.am (install-data-local): Applied patch
from G�tz Waschk ([email protected]). Make this work
with DESTDIR.
svn path=/trunk/mono/; revision=35699
* mini.h mini.c tramp-*.c: Moved xp parts of JIT trampoline creation
into a new function mono_create_jit_trampoline ().
svn path=/trunk/mono/; revision=35692
* Mono.Posix.dll.sources: Add lots of new files to the binding.
* PosixConvert.cs: New file; conversion functions for Mono.Posix types.
* PosixDirectory.cs: New file; Friendly wrapper over directory information.
* PosixDirectoryInfo.cs: New file; Friendly wrapper over directory information.
* PosixEnvironment.cs: New file; Friendly wrapper over environment information.
* PosixFile.cs: New file; Friendly wrapper over file information.
* PosixFileInfo.cs: New file; Friendly wrapper over file information.
* PosixFileSystemInfo.cs: New file; Friendly wrapper over `stat'.
* PosixGroup.cs: New file; User Group-related functionality
* PosixGroupInfo.cs: New file; User Group-related functionality
* PosixIOException.cs: New file; Exception for POSIX-generated exceptions.
* PosixMarshal.cs: New file; utility functions for marshaling, etc.
* PosixProcess.cs: New file; Friendly wrapper over process information.
* PosixStream.cs: New file; Friendly wrapper over file descriptors.
* PosixSymbolicLinkInfo.cs: New file; Friendly wrapper over symbolic links.
* PosixUser.cs: New file; Friendly wrapper over user information.
* PosixUserInfo.cs: New file; Friendly wrapper over user information.
* Stdlib.cs: New file; C standard library exports.
* Syscall.cs: Effective re-write.
- Organize exports by header file
- add additional enumerations (Error for the E* error values, etc.)
- always explicitly specify enumeration underlying type
- Use a new wrapping infrastructure so that ABI-stable types are exported
- For example, size_t is exported as ulong, not IntPtr.
- Wrap more functions, and wrap them better (such as getpwnam).
- This release is NOT backward compatible. Many names are the same, and
hopefully they're still compatible, but no effort was made to maintain
compatibility. For example, FileMode was removed and replaced with
FilePermissions, to avoid a name conflict with System.IO.FileMode.
* make-map.cs: Another effective re-write, to clean up the code, produce
better output, and produce more output. For example, most of
PosixConvert can be auto-generated, so it is (modulo version delays and
bootstrap issues). `map.c' is now conditional on all macros, and has
error checking for invalid/unsupported values.
svn path=/trunk/mcs/; revision=35690
* attribute.cs: Removed the incomplete and (for now) unnecessary
Mono.MonoBASIC.Operator class. Let us bother about this later.
Stripping off these unused bits will help me in 1) refactoring the
mbas Attributes related code 2) reusing the code from the mcs code
base.
svn path=/trunk/mcs/; revision=35685
moved it's functionality to Attributes class.
* class.cs:
* mb-parser.jay:
* module.cs: Replaced references to AttributeSection with the equivalent constructs.
* rootcontext.cs: Removed the following unused methods
AddGlobalAttribute and AddGlobalAttributeSection.
svn path=/trunk/mcs/; revision=35682
- Fix RadioButton and CheckBox rendering when Appearance = Button (normal and
flatstyle).
- Correct outer rectangle color when drawing focus rectangle
- Adjust button bounds to be 1 px smaller when focused
- Make button not draw sunken 3d border when pushed (windows compat)
- Fix CPDrawBorder3D to not make bottom right hand corner rounded
- Offset the text in RadioButton and Checkbox when being rendered as a button.
- Hover and Click behaviour for Colored FlatStyle.Flat and Popup radiobuttons
- Fixed disabled rendering for colored flatstyle radiobuttons (both)
- Fixed disabled text rendering for normally rendered radiobuttons
svn path=/trunk/mcs/; revision=35677
* reflection.c (build_compressed_metadata): Fix the previous patch for
big endian systems. GUINT32_FROM_LE isn't needed on strlen and was overwriting
the stack.
svn path=/trunk/mono/; revision=35676
* ConfigurationElement.cs: Added support for the different update modes.
* SectionGroupInfo.cs: Support loading the same configuration section
from different files.
* SectionInfo.cs: Properly write back configuration data for which a
section object has not been created.
svn path=/trunk/mcs/; revision=35675
* reflection.c (mono_reflection_get_type): Avoid triggering a
TypeResolve multiple times for the same type. Fixes#65577.
svn path=/trunk/mono/; revision=35647
- We set the 'pos' in UpdatePos() method to minimum, if it's less than minimum. This is required to handle the case if large_change is more than max, and use LargeChange property instead of large_change variable.
- We return max+1 when large_change is more than max, like MS does.
svn path=/trunk/mcs/; revision=35639
- Fixed/implemented layout LargeIcon, SmallIcon and List views for ListView.
- Fixed calculations for ListViewItem and implemented Clone() method.
svn path=/trunk/mcs/; revision=35635
(I'm working on improving the harness to move more work to 'make' rather
than using the shell. That should improve matters on Cygwin some more.)
svn path=/trunk/mcs/; revision=35631
(all.override): Fix to actually perform optimization to avoid
the two-pass build if we are not signing assemblies.
svn path=/trunk/mcs/; revision=35627
* XmlTextReader.cs : Manually expanded some of AppendValueChar() and
XmlChar.IsWhitespace() which are on critical points on performance
(marked as FIXME, but it depends on JIT).
svn path=/trunk/mcs/; revision=35624
* XmlTextReader.cs : Reduced NameTable.Add() for prefixed names. First,
ReadName() now returns atomized LocalName and Prefix. Second, to
avoid extraneous split, SetProperties() now takes prefix and
localName that might be given from ReadName(). Third, removed
FillNames(). This optimizes "namespace-aware and prefixed document"
parsing 10-20% faster.
svn path=/trunk/mcs/; revision=35622
* reflection.c (ensure_runtime_vtable): make sure to free
overrides. Also, we were allocating an array of MonoMethod not an
array of MonoMethod*.
svn path=/trunk/mono/; revision=35620
* TextureBrush.cs (Clone): While cloning, it is not enough to let
GDIPlus clone the underlying data, we must alos clone the managed
information.
* Pen.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
errors in the future, set the lock on the object before doing any
other tests, not after.
(Clone): While cloning, it is not enough to let
GDIPlus clone the underlying data, we must alos clone the managed
information.
* Brush.cs (Dispose): Set the nativeObject to IntPtr.Zero to catch
errors in the future.
Set the lock in the object before checkign disposed.
* SolidBrush.cs (Clone): While cloning, it is not enough to let
GDIPlus clone the underlying data, we must alos clone the managed
information.
(Dispose): Set the nativeObject to IntPtr.Zero to catch
errors in the future.
2004-11-03 Miguel de Icaza <[email protected]>
* ColorPalette.cs: Add internal Clone method
svn path=/trunk/mcs/; revision=35607
* XmlTextReader.cs :
With related to AddNamespace(), there was extra string.StartsWith()
calls. Now AttributeTokenInfo.FillNames() is splitted into
FillPrefixAndXmlns() and FillNamespace(), and AddNamespace() is done
at FillPrefixAndXmlns().
svn path=/trunk/mcs/; revision=35601
* PasswordDeriveBytes.cs: Fixed possible ArgumentException when asking
multiple GetBytes than results in more bits than the hash function can
provide.
svn path=/trunk/mcs/; revision=35600
* XmlTextReader.cs :
Reduces LookupNamespace() call in FillNames(). This improves 6-7%
speedup in some scenario.
Code refactory; Removed unused code. AddAttribute() is used only for
DTD, so renamed to AddDtdAttribute(). For PUBLIC and SYSTEM ids,
FillNames() is not required. Two SetProperties() are ambiguous, so
renamed one (that takes TokenInfo) as SetTokenProperties().
svn path=/trunk/mcs/; revision=35598
* KeyPairPersistenceTest.cs: Re-fix as the UnauthorizedAccessException
is the InnerException of a CryptographicException.
svn path=/trunk/mcs/; revision=35594
* DSACryptoServiceProviderTest.cs: Fixed UseMachineKeyStore not to
fail if the key container directory wasn't yet created (root).
* PasswordDeriveBytesTest.cs: Added tests for NET_2_0, more tests
for all constructors, tests for properties and a test for bug 69036.
* RSACryptoServiceProviderTest.cs: Fixed UseMachineKeyStore not to
fail if the key container directory wasn't yet created (root).
svn path=/trunk/mcs/; revision=35593
* XmlTextReader.cs : LookupNamespace() don't have to be called in
ReadStartTag() to check prefix, since NamespaceURI is filled in
FillNames(). 10% performance up by avoiding this extra check.
svn path=/trunk/mcs/; revision=35590
* expression.cs (StringConcat): Handle being called twice,
as when we have a concat in a field init with more than two
ctors in the class
svn path=/trunk/mcs/; revision=35574
* class.cs (Event.Define, Indexer.Define, Property.Define): Do not
special case explicit implementations, we should always produce
the .property or .event declaration.
svn path=/trunk/mcs/; revision=35572
* inssel-ppc.brg (OP_OUTARG_VT (CEE_LDOBJ (base))):
The darwin ABI needs some special handling for 1 and 2 byte structs
Lets use lbz/lhz instead of lwz everywhere.
* mini-ppc.c (calculate_sizes): The Darwin ABI needs from special handling
for 1 and 2 byte structs and struct which are size >= 3 || size % 4 != 0.
Use stb/sth for the former, and put the latter always on stack instead of in
argument registers.
svn path=/trunk/mono/; revision=35563
* reflection.c: Fix some spec conformance issues with the PE file
structures so mcs compiled apps run on the Net 2.0 beta.
svn path=/trunk/mono/; revision=35560
* CustomDataClassGenerator.cs : custom DataTable ctor should call
InitializeFields(), and those DataColumns created by that method
should take data type. This should fix bug #68972.
svn path=/trunk/mcs/; revision=35557
* decl.cs (MemberName): Renamed GetFullName to GetPartialName
since it will not return correct data if people use this
unresolved in the presence of using statements (see test-313).
* class.cs (MethodData.Define): If we are an explicit interface
implementation, set the method name to the full name of the
interface plus the name of the method.
Notice that using the method.MethodName.GetFullName() does not
work, as it will only contain the name as declared on the source
file (it can be a shorthand in the presence of using statements)
and not the fully qualifed type name, for example:
using System;
class D : ICloneable {
object ICloneable.Clone () {
}
}
Would produce a method called `ICloneable.Clone' instead of
`System.ICloneable.Clone'.
* namespace.cs (Alias.Resolve): Use GetPartialName.
svn path=/trunk/mcs/; revision=35553
* test-mbas.make: Added support for --runtime option in
test-mbas.pl. When working with mbas within the cygwin
environment, this option permits executing of compiled test cases
either within the Microsoft's .NET runtime environment or the
mono's runtime environment.
svn path=/trunk/mcs/; revision=35552
* MonoIOError.cs: All of these fields just take up room in corlib,
bloating things up. To make it worse, we need to malloc data at
runtime about them. Since most are not used, am commenting them
out
svn path=/trunk/mcs/; revision=35543
* assign.cs (Assign.DoResolve): Only do the transform of
assignment into a New if the types are compatible, if not, fall
through and let the implicit code deal with the errors and with
the necessary conversions.
svn path=/trunk/mcs/; revision=35541
* HttpWebResponse.cs: don't lock up when the cookie received ends with
a semicolon. Patch by Darryl VanDorp. Fixes bug #68956.
svn path=/trunk/mcs/; revision=35530
underlying type before converting value to string as we'd otherwise be
using the enum field name. Fixes bug #66630.
svn path=/trunk/mcs/; revision=35526
* appdomain.c (ves_icall_System_AppDomain_createDomain): Inherit
application base from the root domain if not set. Fixes#65641.
(mono_runtime_init): Fix warning.
svn path=/trunk/mono/; revision=35506
* AuthenticodeFormatter.cs: Fixed spcSpOpusInfo attribute (it wasn't
added) and contentType attribute (was added 2 times). Also fixed the
case where we signed an already Authenticode signed file (re-signing).
* SoftwarePublisherCertificate.cs: Support for base64 encoded ASN.1
files (either Unicode or ASCII).
svn path=/trunk/mcs/; revision=35480
* man/mono.1: documented MONO_THREADS_PER_CPU.
* mono/metadata/appdomain.c: call mono_thread_pool_init.
* mono/metadata/threadpool.[ch]: new mono_thread_pool_init that sets
the max. number of worker threads based on the number of CPUs and the
environment variable MONO_THREADS_PER_CPU if present. The defaults are
50 (25) for non-windows (windows) systems.
svn path=/trunk/mono/; revision=35476
* ASN1.cs: Throw an NotSupportedException when "undefined length
encoding" is used (#68903 but it's not a fix ;-). Fixed GetBytes to
encode structures bigger than 64k (fix#68907). Simplified ToString
and added Length to help debugging.
svn path=/trunk/mcs/; revision=35450
* XmlSchemaAttribute.cs : AttributeSchemaType could be determined on
compilation time. AttributeType is obsolete.
* XmlSchemaElement.cs : ditto for ElementSchemaType and ElementType.
svn path=/trunk/mcs/; revision=35447
(bootstrap-libs): New target. Invokes the net_2_0_bootstrap profile.
(gmcs.exe): Invoke bootstrap-libs.
(clean-local): Clean the net_2_0_bootstrap profile too.
(PROGRAM_INSTALL_DIR): New.
(install-local): Use it.
svn path=/trunk/mcs/; revision=35443
(profile-do--net_2_0_bootstrap--all): New target.
(profile-do--net_2_0--all): Depend on it.
(distdir,top_distdir): Remove.
(dist-tarball): Define distdir here for dist-recursive.
svn path=/trunk/mcs/; revision=35438
* XmlSchemaComplexType.cs : added LocalElements, with the description
why it can never be correct implementation.
* XmlSchemaUtil.cs : use IHasXmlParserContext.
svn path=/trunk/mcs/; revision=35436
* XmlSchemaSimpleTypeUnion.cs : Added 2.0 BaseMemberTypes property
(this property name is also ambiguous and should be changed too.)
svn path=/trunk/mcs/; revision=35433
* XmlSchemaSimpleTypeList.cs : Added 2.0 BaseItemType property (BTW
this property name is really ambiguous and should be changed.)
svn path=/trunk/mcs/; revision=35432
* DTDReader.cs, DTDValidatingReader.cs, XmlTextReader.cs :
When XmlTextReader is created with NodeType Element or Attribute,
skip possible text declaration (that might be used for resolving
entities) that specifies text encoding. With this fix, bug #61274
must be regarded as fixed.
svn path=/trunk/mcs/; revision=35428
* XmlNodeReader.cs : Reimplemented ResolveEntity(). It does not use
XmlTextReader trick anymore. XmlNodeReader itself it used instead.
svn path=/trunk/mcs/; revision=35427
* XmlNodeReader.cs : for NET_1_0 ReadInnerXml(), just use
XmlReader.ReadInnerXmlInternal(). It should work fine.
Ditto for ReadOuterXml().
svn path=/trunk/mcs/; revision=35423
* String.cs: Rather than == String.Empty, use .Length == 0. It
is a bit faster (avoids a method call, and the code is less complex).
svn path=/trunk/mcs/; revision=35406
* AuthenticodeDeformatterTest.cs: Check timestamp as an UTC value so
that the test can work anywhere in the world (and not just at home ;)
svn path=/trunk/mcs/; revision=35396
* KeyPairPersistence.cs: Added localization for exceptions messages.
Also added more details (type and path) when an exception is thrown.
svn path=/trunk/mcs/; revision=35395
StreamHelper internal class.
* Icon.cs: Removed an ugly hack that used temp files in
ToBitmap () method. We use MemoryStream instead.
svn path=/trunk/mcs/; revision=35394
* XmlDocument.cs : use XPathEditableDocument again.
* XmlNode.cs : To be compatible with XPathEditableDocument, it should
not cast XPathNavigator to XmlDocumentNavigator but to IHasXmlNode.
svn path=/trunk/mcs/; revision=35389
* XmlChar.cs, XmlConstructs.cs :
Switched again, for reducing per-process memory consumption.
* XmlInputStream.cs :
Just 64 bytes of buffer would be enough, for example like
<?xml version="1.0" encoding="iso-8859-15" standalone="yes" ?>
svn path=/trunk/mcs/; revision=35382
* mono-debug-debugger.c (write_class): don't call mono_class_init
here, as even with the check for (!klass->init_pending), we get
into a situation where we're hitting cycles in class
initialization. Fixes#68816.
svn path=/trunk/mono/; revision=35374
* expression.cs (LocalVariableReference.DoResolveLValue): Check
for obsolete use of a variable here. Fixes regression on errors
svn path=/trunk/mcs/; revision=35371
* HttpWebRequest.cs: don't fail if the request has already been sent
when accessing ContentType setter. Fixes bug #68848.
svn path=/trunk/mcs/; revision=35366
* DateTimeTest.cs (TestToString): Remove test C28.
The test does not work in banglore because they have an
offset that has a half-hour part.
svn path=/trunk/mcs/; revision=35363
Fix#62358, implemented security attribute encoding.
* attribute.cs (Attribute.CheckSecurityActionValididy): New method.
Tests permitted SecurityAction for assembly or other types.
(Assembly.ExtractSecurityPermissionSet): New method. Transforms
data from SecurityPermissionAttribute to PermisionSet class.
* class.cs (ApplyAttributeBuilder): Added special handling
for System.Security.Permissions.SecurityAttribute based types.
* codegen.cs (AssemblyClass.ApplyAttributeBuilder): Added
special handling for System.Security.Permissions.SecurityAttribute
based types.
* enum.cs (ApplyAttributeBuilder): Added special handling
for System.Security.Permissions.SecurityAttribute based types.
* parameter.cs (ApplyAttributeBuilder): Added special handling
for System.Security.Permissions.SecurityAttribute based types.
* rootcontext.cs: Next 2 core types.
* typemanager.cs (TypeManager.security_permission_attr_type):
Built in type for the SecurityPermission Attribute.
(code_access_permission_type): Build in type.
svn path=/trunk/mcs/; revision=35362
* expression.cs (LocalVariableReference.DoResolveBase, Emit):
Remove the tests for `ec.RemapToProxy' from here, and encapsulate
all of this information into
EmitContext.EmitCapturedVariableInstance.
* codegen.cs (EmitCapturedVariableInstance): move here the
funcionality of emitting an ldarg.0 in the presence of a
remapping. This centralizes the instance emit code.
(EmitContext.EmitThis): If the ScopeInfo contains a THIS field,
then emit a load of this: it means that we have reached the
topmost ScopeInfo: the one that contains the pointer to the
instance of the class hosting the anonymous method.
* anonymous.cs (AddField, HaveCapturedFields): Propagate field
captures to the topmost CaptureContext.
2004-10-12 Miguel de Icaza <[email protected]>
* expression.cs (LocalVariableReference): Move the knowledge about
the iterators into codegen's EmitCapturedVariableInstance.
2004-10-11 Miguel de Icaza <[email protected]>
* codegen.cs (EmitContext.ResolveTopBlock): Emit a 1643 when not
all code paths return a value from an anonymous method (it is the
same as the 161 error, but for anonymous methods).
2004-10-08 Miguel de Icaza <[email protected]>
The introduction of anonymous methods in the compiler changed
various ways of doing things in the compiler. The most
significant one is the hard split between the resolution phase
and the emission phases of the compiler.
For instance, routines that referenced local variables no
longer can safely create temporary variables during the
resolution phase: they must do so from the emission phase,
since the variable might have been "captured", hence access to
it can not be done with the local-variable operations from the runtime.
* statement.cs
(Block.Flags): New flag `IsTopLevel' to indicate that this block
is a toplevel block.
(ToplevelBlock): A new kind of Block, these are the blocks that
are created by the parser for all toplevel method bodies. These
include methods, accessors and anonymous methods.
These contain some extra information not found in regular blocks:
A pointer to an optional CaptureContext (for tracking captured
local variables and parameters). A pointer to the parent
ToplevelBlock.
(Return.Resolve): Catch missmatches when returning a value from an
anonymous method (error 1662).
Invoke NeedReturnLabel from the Resolve phase instead of the emit
phase.
(Break.Resolve): ditto.
(SwitchLabel): instead of defining the labels during the
resolution phase, we now turned the public ILLabel and ILLabelCode
labels into methods called GetILLabelCode() and GetILLabel() that
only define the label during the Emit phase.
(GotoCase): Track the SwitchLabel instead of the computed label
(its contained therein). Emit the code by using
SwitchLabel.GetILLabelCode ().
(LocalInfo.Flags.Captured): A new flag has been introduce to track
whether the Local has been captured or not.
(LocalInfo.IsCaptured): New property, used to tell whether the
local has been captured.
* anonymous.cs: Vastly updated to contain the anonymous method
support.
The main classes here are: CaptureContext which tracks any
captured information for a toplevel block and ScopeInfo used to
track the activation frames for various local variables.
Each toplevel block has an optional capture context associated
with it. When a method contains an anonymous method both the
toplevel method and the anonymous method will create a capture
context. When variables or parameters are captured, they are
recorded on the CaptureContext that owns them, for example:
void Demo () {
int a;
MyDelegate d = delegate {
a = 1;
}
}
Here `a' will be recorded as captured on the toplevel
CapturedContext, the inner captured context will not have anything
(it will only have data if local variables or parameters from it
are captured in a nested anonymous method.
The ScopeInfo is used to track the activation frames for local
variables, for example:
for (int i = 0; i < 10; i++)
for (int j = 0; j < 10; j++){
MyDelegate d = delegate {
call (i, j);
}
}
At runtime this captures a single captured variable `i', but it
captures 10 different versions of the variable `j'. The variable
`i' will be recorded on the toplevel ScopeInfo, while `j' will be
recorded on a child.
The toplevel ScopeInfo will also track information like the `this'
pointer if instance variables were referenced (this is necessary
as the anonymous method lives inside a nested class in the host
type of the method).
(AnonymousMethod): Expanded to track the Toplevel, implement
`AnonymousMethod.Compatible' to tell whether an anonymous method
can be converted to a target delegate type.
The routine now also produces the anonymous method content
(AnonymousDelegate): A helper class that derives from
DelegateCreation, this is used to generate the code necessary to
produce the delegate for the anonymous method that was created.
* assign.cs: API adjustments for new changes in
Convert.ImplicitStandardConversionExists.
* class.cs: Adjustments to cope with the fact that now toplevel
blocks are of type `ToplevelBlock'.
* cs-parser.jay: Now we produce ToplevelBlocks for toplevel blocks
insteda of standard blocks.
Flag errors if params arguments are passed to anonymous methods.
* codegen.cs (EmitContext): Replace `InAnonymousMethod' with
`CurrentAnonymousMethod' which points to the current Anonymous
Method. The variable points to the AnonymousMethod class that
holds the code being compiled. It is set in the new EmitContext
created for the anonymous method.
(EmitContext.Phase): Introduce a variable and an enumeration to
assist in enforcing some rules about when and where we are allowed
to invoke certain methods (EmitContext.NeedsReturnLabel is the
only one that enfonces this right now).
(EmitContext.HaveCaptureInfo): new helper method that returns
whether we have a CapturedContext initialized.
(EmitContext.CaptureVariable): New method used to register that a
LocalInfo must be flagged for capturing.
(EmitContext.CapturedParameter): New method used to register that a
parameters must be flagged for capturing.
(EmitContext.CapturedField): New method used to register that a
field must be flagged for capturing.
(EmitContext.HaveCapturedVariables,
EmitContext.HaveCapturedFields): Return whether there are captured
variables or fields.
(EmitContext.EmitMethodHostInstance): This is used to emit the
instance for the anonymous method. The instance might be null
(static methods), this (for anonymous methods that capture nothing
and happen to live side-by-side with the current method body) or a
more complicated expression if the method has a CaptureContext.
(EmitContext.EmitTopBlock): Routine that drives the emission of
code: it will first resolve the top block, then emit any metadata
and then emit the code. The split is done so that we can extract
any anonymous methods and flag any captured variables/parameters.
(EmitContext.ResolveTopBlock): Triggers the resolution phase,
during this phase, the ILGenerator should not be used as labels
and local variables declared here might not be accessible to any
code that is part of an anonymous method.
Exceptions to this include the temporary variables that are
created by some statements internally for holding temporary
variables.
(EmitContext.EmitMeta): New routine, in charge of emitting all the
metadata for a cb
(EmitContext.TemporaryReturn): This method is typically called
from the Emit phase, and its the only place where we allow the
ReturnLabel to be defined other than the EmitMeta. The reason is
that otherwise we would have to duplicate a lot of logic in the
Resolve phases of various methods that today is on the Emit
phase.
(EmitContext.NeedReturnLabel): This no longer creates the label,
as the ILGenerator is not valid during the resolve phase.
(EmitContext.EmitThis): Extended the knowledge in this class to
work in anonymous methods in addition to iterators.
(EmitContext.EmitCapturedVariableInstance): This emits whatever
code is necessary on the stack to access the instance to a local
variable (the variable will be accessed as a field).
(EmitContext.EmitParameter, EmitContext.EmitAssignParameter,
EmitContext.EmitAddressOfParameter): Routines to support
parameters (not completed at this point).
Removals: Removed RemapLocal and RemapLocalLValue. We probably
will also remove the parameters.
* convert.cs (Convert): Define a `ConstantEC' which points to a
null. This is just to prefity some code that uses
ImplicitStandardConversion code and do not have an EmitContext
handy.
The idea is to flag explicitly that at that point in time, it is
known that the conversion will not trigger the delegate checking
code in implicit conversions (which requires a valid
EmitContext).
Everywhere: pass new EmitContext parameter since
ImplicitStandardConversionExists now requires it to check for
anonymous method conversions.
(Convert.ImplicitStandardConversionExists): If the type of an
expression is the anonymous_method_type, and the type is a
delegate, we invoke the AnonymousMethod.Compatible method to check
whether an implicit conversion is possible.
(Convert.ImplicitConversionStandard): Only do implicit method
group conversions if the language level is not ISO_1.
* delegate.cs (Delegate.GetInvokeMethod): Common method to get the
MethodInfo for the Invoke method. used by Delegate and
AnonymousDelegate.
* expression.cs (Binary.DoNumericPromotions): only allow anonymous
method conversions if the target type is a delegate.
Removed extra debugging nops.
(LocalVariableReference): Turn the `local_info' into a public
field.
Add `prepared' field, the same hack used for FieldExprs to cope
with composed assignments, as Local variables do not necessarily
operate purely on the stack as they used to: they can be captured
fields.
Add `temp' for a temporary result, like fields.
Refactor DoResolve and DoResolveLValue into DoResolveBase.
It now copes with Local variables that are captured and emits the
proper instance variable to load it from a field in the captured
case.
(ParameterReference.DoResolveBase): During the resolve phase,
capture parameters if we are in an anonymous method.
(ParameterReference.Emit, ParameterReference.AddressOf): If in an
anonymous method, use the EmitContext helper routines to emit the
parameter reference.
* iterators.cs: Set RemapToProxy to true/false during the
EmitDispose class.
* parameters.cs (GetParameterByName): New helper method.
* typemanager.cs (anonymous_method_type) a new type that
represents an anonyous method. This is always an internal type,
used as a fencepost to test against the anonymous-methodness of an
expression.
svn path=/trunk/mcs/; revision=35340
* XmlTextReader.cs : Don't create attribute Value string on Read()
(i.e. create string when get_Value() is invoked.) This optimizes
some kind of XmlTextReader usage significantly such as Skip().
svn path=/trunk/mcs/; revision=35338
SoapProtocolImporter.cs: When appsettingurlkey is provided, generate
code that reads the url from the config file, instead of doing it at
the moment of generation. This fixes bug #68795.
svn path=/trunk/mcs/; revision=35333
* mini.c (mono_jit_free_method): Provide extra information for
this error. Currently this leaks, but will be turned into a
developer option in the future.
svn path=/trunk/mono/; revision=35332
* driver.c (mono_main): Applied patch from Willibald Krenn <[email protected]>. Make --graph work for icalls and pinvoke methods.
svn path=/trunk/mono/; revision=35330
* ChunkStream.cs:
(WantMore): we're not done until we get a 0 chunk size and the trailer.
The 0 can be expressed as more than one character too (ie, 000000).
* HttpWebRequest.cs: new argument in SetResponseError.
* WebConnection.cs: added argument to HandleError as a hint for
debugging.
(Connect): make the chunked stream be in the expected state when
reusing.
* WebConnectionStream.cs: removed unused method (ResetWriteBuffer).
svn path=/trunk/mcs/; revision=35312
* image.c: Avoid overwriting values in the loaded_images_hash when an
assembly is loaded multiple times. Fixes#61152.
svn path=/trunk/mono/; revision=35308
* assembly.c (mono_assembly_names_equal): Compare the cultures as well,
so multiple satellite assemblies for the same name can be loaded.
Fixes#68259.
* mono_domain_assembly_preload: Actually return the loaded assembly,
not NULL.
svn path=/trunk/mono/; revision=35304
* aot.c (mono_aot_load_method): Align PATCH_INFO_R8 on an 8 byte
boundary. Fixes reading of PATCH_INFO_R4 and R8.
(mono_aot_load_method): Do not allocate MonoAotMethod in the GC heap.
svn path=/trunk/mono/; revision=35296
* gc.c (finalize_domain_objects): Call GC_invoke_finalizers () so
pending finalizers are not invoked after the appdomain has been
unloaded. Fixes#67862.
svn path=/trunk/mono/; revision=35292
Add text between end of current lookup window and next % match if we just got a match, or add all text to the end if there are no further % matches.
This fixes bug #64995.
svn path=/trunk/mcs/; revision=35291
Fixed bugs #63705, #67130
* decl.cs (MemberCache.MemberCache): Add parameter to distinguish
imported and defined interfaces.
(CacheEntry, EntryType): Changed to protected internal.
* class.cs (TypeContainer.DoDefineMembers): Setup cache for
interfaces too.
* typemanager.cs (LookupInterfaceContainer): New method.
Fills member container from base interfaces.
svn path=/trunk/mcs/; revision=35286
* Mono.Data/.cvsignore
* Mono.Data/AssemblyInfo.cs
* Mono.Data/Makefile
* Mono.Data/Mono.Data.dll.sources: added files
for build of Mono.Data.dll
This assembly includes the ProviderFactory
* Makefile: added Mono.Data.dll to the build
* Mono.Data/app.config: added providers and
removed obsolete providers to app settings xml file
* Mono.Data/test/Mono.Data.dll: delete
svn path=/trunk/mcs/; revision=35282
* XPathEditableDocument.cs :
Now it implements updated version of .NET 2.0.
.ctor() should accept XmlNode, instead of XmlDocument.
svn path=/trunk/mcs/; revision=35267
* XPathDocument.cs : now all the new stuff that used to be in 2.0 are
reverted.
* XPathEditableNavigator.cs : It will be removed. Right now modified
a bit to pass build.
* XPathNavigator.cs : Added members that are merged from
XPathEditableNavigator. Updated members name.
svn path=/trunk/mcs/; revision=35264
* AuthenticodeFormatter.cs: Fixed case where Url is null (broken since
we switched from string to Uri). Now use "using" for FileStream.
svn path=/trunk/mcs/; revision=35243
data if the provided url does not have the expected format. This fixes
a regression from the fix for bug #66768 and fixes#68669.
svn path=/trunk/mcs/; revision=35242
data if the provided url does not have the expected format. This fixes
a regression from the fix for bug #66768 and fixes#68669.
svn path=/trunk/mcs/; revision=35241
* icall.c: Allows the runtime to "share" (when known) the public key
token of an assembly. This avoid the need to recalculate the token
(from the public key) in managed code.
svn path=/trunk/mono/; revision=35238
* regex.cs: Fixed a bug introduced with the last patch which
prevented any replacements when a postive count is given.
This also happens in all overloads without count parameter.
svn path=/trunk/mcs/; revision=35236
* debug-helpers.c (append_class_name): use '+' as the delimiter,
not '/', so that it matches what the debugger uses to look up
methods.
svn path=/trunk/mono/; revision=35234
* SqlSharpCli.cs: removed obsolete providers (Mono.Data.MySql,
Mono.Data.PostgreSqlClient, Mono.Data.DB2Client),
added provider for FirebirdSql.Data.Firebird, fixed
loading of external providers so they work with
Mono having a GAC
svn path=/trunk/mcs/; revision=35228
* mini-exceptions.c (mono_handle_exception): Call
mono_debugger_handle_exception() to tell the debugger about
catch/finally clauses.
svn path=/trunk/mono/; revision=35226
* mono-debug-debugger.c (mono_debugger_throw_exception): New
public method; this is called each time an exception is thrown and
allows the debugger to use exception catch points.
svn path=/trunk/mono/; revision=35225
test-compiler-jit-real, and move body to harness.mk.
Update to use 'make' to loop over testcases, so that they can be
run in parallel.
(run-test-local): Update.
(test-generics-2): Likewise.
* harness.mk: New file. Contains the actual harness, and also
lists dependencies in multi-file testcases.
svn path=/trunk/mcs/; revision=35220
* mono-debug-debugger.c (mono_debugger_handle_exception): Write
the stack pointer and the exception object in some struct and pass
that to the debugger.
svn path=/trunk/mono/; revision=35211
* MonoSymbolFile.cs (MonoSymbolFile.Write): Sort the method table
before actually writing it to disk and update MethodEntry.Index.
* MonoSymbolTable.cs (MethodEntry.Index): Make this a writable
property; set it after creating all the methods and sorting the
method table.
svn path=/trunk/mcs/; revision=35185
2004-09-13 Chris Toshok <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.Write): don't sort methods by
token before writing out the method index, since the "index" used
elsewhere is just added to the MethodIndexOffset.
svn path=/trunk/mcs/; revision=35183
* mini.c (mono_method_to_ir): Mark the domainvar as volatile when it is implicitly
used by CEE_NEWARR.
* ssa.c (mono_ssa_deadce): Do not optimize away accesses to volatile variables.
svn path=/trunk/mono/; revision=35177
* mini-exceptions.c (mono_handle_exception): Call
mono_debugger_handle_exception() to tell the debugger about
catch/finally clauses.
svn path=/trunk/mono/; revision=35172
* mono-debug-debugger.h (MonoDebuggerEvent): Added
MONO_DEBUGGER_EVENT_EXCEPTION.
* mono-debug-debugger.c (mono_debugger_handle_exception): New
public function to send the debugger a notification for an
exception and inform it about a catch/finally clause.
svn path=/trunk/mono/; revision=35171
* Evidence.cs: Fix the case where GetPublicKey returns a 0 length
byte array so that we don't create an invalid StrongName evidence.
svn path=/trunk/mcs/; revision=35169
SiteMapDataSourceView.cs:
SqlDataSourceView.cs:
XmlDataSourceView.cs: Cosmetic changes because of modifications in
base class, DataSourceView. Changes are to keep things compiling.
svn path=/trunk/mcs/; revision=35167
* ast.cs (Function): added method emit_return_local_field, if
there's a return stm inside a function we must allocate a
JSLocalField indicating the return type of the function.
* FunctionDeclaration.cs, FunctionExpression.cs: generate the
extra JSLocalField if needed
svn path=/trunk/mcs/; revision=35162
our form and as the non-client area where menus are drawn
- Added/Moved required tie-ins to Jordi's menus
- Fixed/Implemented the FormStartPosition functionality
svn path=/trunk/mcs/; revision=35159
* XmlSerializationWriter.cs : When namespace is an empty string,
XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
such case.
svn path=/trunk/mcs/; revision=35146
* SecurityManager.cs: Changed private static methods to use a single
parameter (as method permissions overrides class permissions for
demand, assert, deny and permitonly).
svn path=/trunk/mcs/; revision=35143
SiteMapDataSourceView.cs: Corrected class definition and updated.
XmlHierarchicalDataSourceView.cs: Modified according to changes in
base class.
svn path=/trunk/mcs/; revision=35127
* marshal.c (emit_marshal_object): Fix freeing of memory when a reference type is
marshalled as [In,Out]. Fixes#58325.
svn path=/trunk/mono/; revision=35113
* System.Text.RegularExpressions/regex.cs: in Replace, when count is
negative, replacement continues to the end of the string.
* Test/System.Text.RegularExpressions/RegexBugs.cs: added test for this
fix.
Fixes bug #68398. Patch by Jon Larimer.
svn path=/trunk/mcs/; revision=35110
* expression.cs (Cast.DoResolve): Don't access the TypeExpr's
`Type' directly, but call ResolveType() on it.
(Probe.DoResolve): Likewise.
svn path=/trunk/mcs/; revision=35108
* class.cs (FieldMember.Define): Don't access the TypeExpr's
`Type' directly, but call ResolveType() on it.
(MemberBase.DoDefine): Likewise.
* expression.cs (New.DoResolve): Don't access the TypeExpr's
`Type' directly, but call ResolveType() on it.
(ComposedCast.DoResolveAsTypeStep): Likewise.
* statement.cs (LocalInfo.Resolve): Don't access the TypeExpr's
`Type' directly, but call ResolveType() on it.
svn path=/trunk/mcs/; revision=35093
* XmlTextReader.cs :
Fixed CheckCharacters setter that always set false.
CheckCharacters check is also required for ReadText(). This fixes
bug #68449.
svn path=/trunk/mcs/; revision=35085
- Added SetModal stub
- Added generation of WM_ACTIVATE message (still needs testing)
- Added SetTopMost stub
- Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
svn path=/trunk/mcs/; revision=35074
- Added Owner/OwnedForms handling
- Implemented Z-Ordering for owned forms
- Removed unneeded private overload of ShowDialog
- Fixed ShowDialog, added the X11 incarnation of modal handling (or so I
hope)
- Fixed Close(), had wrong default
- Added firing of OnLoad event
- Added some commented out debug code for Ownership handling
svn path=/trunk/mcs/; revision=35068
* DateTime.cs (ZeroPad): Use unsafe code to speed this up. We
avoid entering slow integer formatting code.
(_ToString): Use ZeroPad here when possible, as it is faster.
svn path=/trunk/mcs/; revision=35057
* XmlTextReader.cs : Inside DTD, '<' character inside XML comment
is regatded as invalid. This fixes bug #68410. (Error message was
also not correct.)
svn path=/trunk/mcs/; revision=35045
* DataSet.cs : Also clear UnhandledAttributes ArrayList before
generating next attribute column schema. This fixes bug #68432.
svn path=/trunk/mcs/; revision=35043
* CodeAccessPermission.cs: Implemented stubs (soon to be icalls) to
get/set/clear the current security frame on the stack. Implemented
Assert, Deny and PermitOnly with the new methods. Changed Demand to
use the CheckAssert, CheckDeny, CheckPermitOnly and CheckDemand
introduced in 2.0.
* PermissionSet.cs: Fixed IsEmpty using documentation from 2.0 beta 1.
Implemented immediate (i.e. no stack walk) caller demand (CAS and
non-CAS) required for LinkDemand and InheritanceDemand. Implemented
Assert, Deny and PermitOnly using CodeAccessPermission new methods.
Re-implement Demand to separate CAS and non-CAS permissions.
* SecurityManager.cs: Added new private static methods that will
either be called by the JIT (linkdemand), runtime (inheritancedemand)
or by code emitted by the JIT (demand, assert, deny and permitonly).
svn path=/trunk/mcs/; revision=35042
methods as their native size, fixed bug #57543, #57545.
* mini-ppc.c (mono_arch_output_basic_block): Use mulli for imm16 types
This saves a temporary register and mullw call down into 1 (minor perf
increase for cases like sum = sum * 5;
svn path=/trunk/mono/; revision=35039
* PrincipalPermission.cs: Fixed bug in Intersect (thanks to Alain
Normandin). Changed XML tag to "Permission" (not "IPermission").
svn path=/trunk/mcs/; revision=35030
- Added an internal virtual method Paint (), so that
derived classes can do their painting on their own.
- Modified OnPaint () to call Paint ().
svn path=/trunk/mcs/; revision=35025
This change in CreateParams fixes this on Windows. We
still need to implement this windowstyle behavior in
our X11 driver.
svn path=/trunk/mcs/; revision=35017
* TextInfo.cs (ToString) Fix the return value for ToString.
(Add a new parameter: the CultureInfo, since we implemented things
in terms of the CultureInfo in our runtime, and not the
TextInfo).
svn path=/trunk/mcs/; revision=35012
* Iterator.cs :
- Added WrapperIterator to return BaseIterator in such case that
variable reference is resolved to XPathNodeIterator. This fixes
bug #68267.
- Path ".." is reverse axis (actually no effect).
- Fixed DescendantIterator.Clone() that missed "_finished" field.
* Expression.cs :
In ExprVariable.Evaluate(), use WrapperIterator() for custom
XPathNodeIterator.
svn path=/trunk/mcs/; revision=34996
* Socket.cs (Sockets ): Set Accept()ed socket blocking status to
be the same as the listening socket. This follows MS behaviour.
svn path=/trunk/mcs/; revision=34989
* sockets.c (_wapi_accept): Revert the previous change. We now
set the accepted socket to have the same blocking status as the
listening socket in managed code. This follows MS behaviour.
svn path=/trunk/mono/; revision=34987
- Fixed the MouseMove event handling when mouse is pressed,
ie drag event handling.
- Replaced the usage of ToolBarButton.Pressed property to
ToolBarButton.pressed internal variable.
svn path=/trunk/mcs/; revision=34984
with mouse pressed ie mouse drag event.
- Changed 'Pressed' property to return true only when
'inside' and 'pressed' are both true.
- Some coding style love.
svn path=/trunk/mcs/; revision=34983
* sockets.c (_wapi_accept): On Darwin, make sure a newly
accept()ed socket is blocking. Fixes bug 67355, patch by
[email protected].
svn path=/trunk/mono/; revision=34980
* DataTable.cs : Corrected the Clone method to use Activator.CreateInstance so that the
correct subclass is returned. This fixes bug #67631
svn path=/trunk/mcs/; revision=34979
* mb-parser.jay: For statement is enabled to take
optional declaration of the counter variable.
E.g. now for statement can be declared as
For i as integer = 0 to 5
End For
svn path=/trunk/mcs/; revision=34974
* DataSet.cs : Corrected the Clone method to use Activator.CreateInstance so that the
correct subclass is returned. This fixes bug #67627
svn path=/trunk/mcs/; revision=34970
independent error messages and splitted them in to multiple files
where possible so that atmost one error is tested for in any given
file.
svn path=/trunk/mcs/; revision=34966
* DataSet.cs : clear UnhandledAttributes ArrayList before generating
next element column schema. This fixes bug #68256.
svn path=/trunk/mcs/; revision=34959
* Fix check rendering (centre correctly for normal style, offset
correctly for FlatStyle).
* Fix border color usage (use backcolor) for FlatStyle.Popup
* Use checkbox.Capture instead of checkbox.is_pressed when rendering
flatstyle states.
svn path=/trunk/mcs/; revision=34952
files that emit just a single compile time error. All these files have
multiple errors. Each of these files need to be broken in to multiple
files so that no more than one error gets reported by a test case.
svn path=/trunk/mcs/; revision=34947
* class.cs (TypeContainer.EmitContext): New property.
(DefineNestedTypes): Create an emitcontext for each part.
(MethodCore.DoDefineParameters): Use container's emitcontext.
Pass type array to InternalParameters.
(MemberBase.DoDefine): Use container's emitcontext.
(FieldMember.Define): Likewise.
(Event.Define): Likewise.
(SetMethod.GetParameterInfo): Change argument to EmitContext.
Pass type array to InternalParameters.
(SetIndexerMethod.GetParameterInfo): Likewise.
(SetMethod.Define): Pass emitcontext to GetParameterInfo.
* delegate.cs (Define): Pass emitcontext to
ComputeAndDefineParameterTypes and GetParameterInfo. Pass type
array to InternalParameters.
* expression.cs (ParameterReference.DoResolveBase): Pass
emitcontext to GetParameterInfo.
(ComposedCast.DoResolveAsTypeStep): Remove check on
ec.ResolvingTypeTree.
* parameter.cs (Parameter.Resolve): Change argument to
EmitContext. Use ResolveAsTypeTerminal.
(Parameter.GetSignature): Change argument to EmitContext.
(Parameters.ComputeSignature): Likewise.
(Parameters.ComputeParameterTypes): Likewise.
(Parameters.GetParameterInfo): Likewise.
(Parameters.ComputeAndDefineParameterTypes): Likewise.
Re-use ComputeParameterTypes. Set ec.ResolvingTypeTree.
* support.cs (InternalParameters..ctor): Remove variant that takes
a DeclSpace.
* typemanager.cs (system_intptr_expr): New.
(InitExpressionTypes): Initialize it.
(this has been tested with a full mono bootstrap, and has been used
to build gtk-sharp, dbus, monodoc, tomboy, and monodevelop)
svn path=/trunk/mcs/; revision=34945
member out of private constructor to class initialization.
So that, we get it right even if Graphics is not instantiated.
This fixes the problem we face (otherwise) when we make first
call to Graphics.FromHwnd () method.
svn path=/trunk/mcs/; revision=34943
documentation. They need to return defined colors if the passed
color matches the configured control color. Thanks to John BouAntoun for
pointing this out.
svn path=/trunk/mcs/; revision=34940
* expression.cs (MemberAccess.DoResolve): If we're a SimpleName
and have type arguments, create and resolve a ConstructedType.
svn path=/trunk/mcs/; revision=34933
* expression.cs (MemberAccess.DoResolve): If we're a SimpleName
and have type arguments, create and resolve a ConstructedType.
svn path=/trunk/mcs/; revision=34929
* every *.cs: moved to namespace-based subdirectories as is the norm in Mono
* Mono.GetOptions.dll.sources: adjusted to new sources locations
svn path=/trunk/mcs/; revision=34924
* DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
DataColumn.ReadOnly was not handled. This fixes bug #68005.
Attribute defaultValue was not handled too.
svn path=/trunk/mcs/; revision=34905
* decl.cs (MemberCache.FindMemberToOverride): Use
TypeManager.IsEqual() to compare the parameters and Type.Equals()
to compare the invocationType.
svn path=/trunk/mcs/; revision=34894
* typemanager.cs (TypeManager.IsEqual): Added support for arrays.
When comparing two type parameters, only do the signature-only
comparision for method type parameters.
svn path=/trunk/mcs/; revision=34893
* TypeBuilder.cs (TypeBuilder.setup_generic_class): Renamed to
create_generic_class() and added a new setup_generic_class().
(TypeBuilder.DefineGenericParameters): Call setup_generic_class()
before creating the type parameters.
svn path=/trunk/mcs/; revision=34891
* metadata.c (mono_metadata_generic_param_equal): We always have
an owner.
* class.c
(mono_class_from_generic_parameter): We need to have an owner.
(my_mono_class_from_generic_parameter): Likewise.
* reflection.c (mono_reflection_setup_generic_class): Renamed to
mono_reflection_create_generic_class() and added a new
mono_reflection_setup_generic_class().
(mono_reflection_initialize_generic_param): If we're a nested
generic type and inherited from the containing class, set our
owner to the outer class.
svn path=/trunk/mono/; revision=34890
* icall.c (ves_icall_System_Reflection_MethodBase_GetMethodBodyInternal): New icall.
* reflection.c (mono_method_body_get_object): New function to create
a MethodBody object.
* object-internals.h object.h: Add MonoReflectionMethodBody structure.
svn path=/trunk/mono/; revision=34886
* Makefile: Move Microsoft.VisualBasic.dll to be built after
System.Windows.Forms.dll is built, because VB now requires SWF. This
fixes the build.
svn path=/trunk/mcs/; revision=34883
* Makefile: Added reference to System.Windows.Forms as interface Microsoft.VisualBasic.CompilerServices.IVbHost needs it.
svn path=/trunk/mcs/; revision=34869
* FileSystem.cs: Adjusting exposed API according to class status page ('ref' instead of 'out').
Commented out an additional API.
svn path=/trunk/mcs/; revision=34867
* mb-parser.jay: If statement is enabled to parse
following type of statement
If <condition> Then <statement> else <statement>
svn path=/trunk/mcs/; revision=34861
* class.cs (TypeContainer.DefineType): Only call TypeParameter.Define()
on our own type parameters, not on the ones we inherit from a containing
class.
* expression.cs (Invocation.InferType): Use `==', not `Equals()' for
the comparision.
* generic.cs (TypeParameter.Define): We may only be called once.
* pending.cs (Pending.InterfaceMethod): Call TypeManager.Real_IsEqual()
instead of TypeManager.IsEqual().
* typemanager.cs (TypeManager.Real_IsEqual): New method; this'll
soon be renamed to IsEqual() and thus replace the old IsEqual().
svn path=/trunk/mcs/; revision=34854
* mini.c (mono_method_to_ir): If we're a generic method, get the
MonoGenericContainer from our MonoMethodNormal and create a
MonoGenericContext from it.
svn path=/trunk/mono/; revision=34850
* class-internals.h
(MonoGenericInst): Added `MonoGenericContainer *container'.
(MonoGenericMethod): Likewise.
(MonoGenericContext): Likewise.
(MonoGenericParam): Added `MonoGenericContainer *owner'.
* metadata.c
(do_mono_metadata_parse_type): Added a `MonoGenericContainer *' argument.
(do_mono_metadata_parse_generic_inst): Likewise.
(mono_metadata_parse_type_full): New public method. This is the actual
mono_metadata_parse_type() implementation - with an additional
`MonoGenericContainer *' argument.
(mono_metadata_parse_array_full): Likewise.
(mono_metadata_parse_signature_full): Likewise.
(mono_metadata_parse_method_signature_full): Likewise.
(mono_metadata_parse_mh_full): Likewise.
(mono_type_create_from_typespec): Likewise.
(mono_metadata_interfaces_from_typedef_full): New public method;
this is similar to the other _full() methods, but we take a
`MonoGenericContext *' since we have to pass it to mono_class_get_full().
(mono_metadata_parse_generic_param): Take an additional
`MonoGenericContainer *' argument and lookup the MonoGenericParam
from that container.
(mono_metadata_generic_param_equal): New static method to compare
two type parameters.
(_mono_metadata_type_equal): New static method; takes an
additional `gboolean signature_only' argument - if true, we don't
compare the owners of generic parameters.
(mono_metadata_signature_equal): Call _mono_metadata_type_equal()
with a TRUE argument - do a signature-only comparision.
* loader.c: Use the new _full() methods and pass the
MonoGenericContainer to them.
* object-internals.h (MonoReflectionTypeBuilder): Added
`MonoGenericContainer *generic_container' field.
(MonoReflectionMethodBuilder): Likewise.
* icall.c (ves_icall_type_Equals): Use _mono_metadata_type_equal()
and do a signature-only comparision.
svn path=/trunk/mono/; revision=34849
* expression.cs (MemberAccess.ResolveMemberAccess): When looking
up a constant, do not use the "Const" object after LookupConstant,
instead use the result that is returned in the `out' parameter
that already has the GetValue done. Fixes the corlib regression,
and removes duplicated code.
svn path=/trunk/mcs/; revision=34843
* System.Web/TraceContext.cs: don't cast to Page is the handler it's
not a page.
* System.Web.Configuration/WebConfigurationSettings.cs: use
CurrentExecutionFilePath instead of FilePath. Fixes bug #67982.
svn path=/trunk/mcs/; revision=34841
* const.cs (ConvertExpressionToConstant): Refactor code that does
the Expression to Constant checking. This can be used in other
places in the compiler that need to go from an Expression that
wraps a Constant (like the casts) to a Constant.
* ecore.cs (Expression.ConvertIntLiteral): If we got enumerations,
unfold those into the underlying types before testing for the
ImplicitConversions, as that code wont cope with casts from
enumerations to constants.
* statement.cs (SwitchLabel.ResolveAndReduce): Reuse
ConvertExpressionToConstant.
svn path=/trunk/mcs/; revision=34836
* support/Makefile.am (libMonoPosixHelper_la_SOURCES): Do not build
zlib_macros if zlib.h is not found.
* configure.in: Add check for zlib.h.
svn path=/trunk/mono/; revision=34818
* domain-internals.h (MonoDomain): Rename 'assemblies' hash table to
'assembly_by_name' and add an 'assemblies' list.
* assembly.h assembly.c: Add a new search hook for determining whenever
an assembly is already loaded. Use this instead of searching in the
loaded_assemblies list.
* domain.c appdomain.c: Implement the new search hook so loaded
assemblies are now scoped by appdomain. Fixes#67727.
svn path=/trunk/mono/; revision=34810
* typemanager.cs: Changing StandardModule to use less memory, by doing string
concatenation only once. It was wasting 1 MB on the test case.
svn path=/trunk/mcs/; revision=34809
* XPathSequence.cs :
missed last checkin.
Added WrapperIterator, RemovalIterator for fn:remove(),
InsertingIterator for fn:insertBefore() and DistinctValueIterator
for fn:distinct-values().
* XQueryCliFunction.cs :
Improved error message. Handle null argument as empty sequence.
* XQueryFunction.cs :
Fixed incorrect function name fn:zero-or-more -> fn:zero-or-one.
* XQueryFunctionCliImpl.cs :
Implemented some functions. Fixed some function signatures.
svn path=/trunk/mcs/; revision=34801
is not invariant, avoid an icall on every character.
(This chopped off 15s on a testcase that 'mbas' originally took 1m35s.)
svn path=/trunk/mcs/; revision=34798
* DataSet.cs :
- When AllowDBNull is false on attribute DataColumn, its schema
should contain use="required". This fixes bug #66792.
- If MaxLength is set on attribute DataColumn, the mapped schema
type should contain maxLength facet. This fixes bug #66793.
svn path=/trunk/mcs/; revision=34792
* XPath2Expression.cs, XPathSequence.cs :
Changed ListIterator.ctor() signature not to demand current sequence.
* XQueryCliFunction.cs, XQueryFunctionCliImpl.cs :
Now, to represent a sequence, IEnumerable is not used anymore (it is
confusing because System.String is also IEnumerable). So those native
functions should just require XPathSequence (for user functions?
not idea how MS will solve the "problem").
If a native function method has [XQueryFunctionContext] attribute,
then it means that the function requires current sequence, so fill
it before invoking the method.
* XQueryFunctionContextAttribute.cs : added, to mark "it needs
current sequence" for fn:position() and fn:count().
svn path=/trunk/mcs/; revision=34788
* Makefile (run-mcs-tests): Save log of output to
$(TEST_PROFILE).log.
(run-generics-tests): Likewise.
Report from K Sathyasudha <[email protected]>.
svn path=/trunk/mcs/; revision=34775
sync with errors/Makefile.
Reported by K Sathyasudha <[email protected]>.
Testcases for type-resolution.
* test-300.cs: Add tests for local declarations and 'foreach'.
* test-301.cs: New testcase: several 'unsafe' related keywords.
* test-302.cs: New testcase: 'catch' clause parameters.
* test-303.cs: New testcase: 'using' keyword.
* test-304.cs, test-305.cs, test-306.cs, test-307.cs: New.
Variants that use namespace aliases.
* Makefile (NEW_TEST_SOURCES_common): Add new testcases.
svn path=/trunk/mcs/; revision=34774
* decl.cs (MemberCore.InUnsafe): New property.
* class.cs (MemberBase.DoDefine): Use ResolveAsTypeTerminal
with newly created EmitContext.
(FieldMember.Define): Likewise.
* delegate.cs (Delegate.Define): Likewise.
* ecore.cs (SimpleName.ResolveAsTypeStep): Lookup with alias
only if normal name-lookup fails.
(TypeExpr.DoResolve): Enable error-checking.
* expression.cs (ArrayCreation.DoResolve): Use ResolveAsTypeTerminal.
(SizeOf.DoResolve): Likewise.
(ComposedCast.DoResolveAsTypeStep): Likewise.
(StackAlloc.DoResolve): Likewise.
* statement.cs (Block.Flags): Add new flag 'Unsafe'.
(Block.Unsafe): New property.
(Block.EmitMeta): Set ec.InUnsafe as appropriate.
(Unsafe): Set 'unsafe' flag of contained block.
(LocalInfo.Resolve): Use ResolveAsTypeTerminal.
(Fixed.Resolve): Likewise.
(Catch.Resolve): Likewise.
(Using.ResolveLocalVariableDecls): Likewise.
(Foreach.Resolve): Likewise.
svn path=/trunk/mcs/; revision=34773
AM_CONDITIONAL(HAVE_ZLIB, test x$have_zlib = xyes)
# for mono/metadata/debug-symfile.c
AC_CHECK_HEADERS(elf.h)
@@ -204,6 +259,19 @@ else
fi
CFLAGS="$CFLAGS -g $WARN"
# Where's the 'mcs' source tree?
if test -d $srcdir/mcs; then
mcsdir=mcs
else
mcsdir=../mcs
fi
mcs_topdir='$(top_srcdir)/'$mcsdir
mcs_topdir_from_srcdir='$(top_builddir)/'$mcsdir
AC_SUBST([mcs_topdir])
AC_SUBST([mcs_topdir_from_srcdir])
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
@@ -244,13 +312,46 @@ AC_SUBST(GLIB_LIBS)
AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_LIBS)
if test x$platform_win32 = xyes; then
AC_MSG_CHECKING(for cygwin glib2-dev package)
if [ cygcheck --f /usr/lib/libglib-2.0.dll.a | grep -q glib2-devel ]; then
AC_MSG_RESULT(found)
AC_MSG_ERROR([Mono cannot be built with the cygwin glib2-devel package installed, because that package doesn't work with -mno-cygwin. Please uninstall it then re-run configure.])
else
AC_MSG_RESULT(not found, ok)
fi
AC_MSG_CHECKING(for broken gwin32.h)
glib_include=`$PKG_CONFIG --cflags-only-I glib-2.0 | sed -e 's/ -I.*//g' | sed -e 's/-I//g'`
if test -f $glib_include/glib/gwin32.h; then
if [ grep ftruncate $glib_include/glib/gwin32.h | grep -q define ]; then
AC_MSG_RESULT(failed)
hashmark='#'
AC_MSG_ERROR([Your version of gwin32.h is broken and will cause compilation errors when building mono. Please fix it by deleting the line: '$hashmark define ftruncate...' from '$glib_include/glib/gwin32.h' then re-run configure.])
* Makefile: Removed inclusion of rules.make from Makefile for two reasons :
- This Makefile as of now has no dependency on rules.make what so ever
- Because of inclusion of INTENAL_MBAS in rules.make it was causing confliction with existing INTERNAL_MBAS in this makefile and causing lots of tests to fail
* Makefile: Removed inclusion of rules.make from Makefile for two reasons :
- This Makefile as of now has no dependency on rules.make what so ever
- Because of inclusion of INTENAL_MBAS in rules.make it was causing confliction with existing INTERNAL_MBAS in this makefile and causing lots of tests to fail
Loaded 100 of 10687 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.