Author: jbevain
Date: 2006-07-19 17:50:02 -0400 (Wed, 19 Jul 2006)
New Revision: 62772
Modified:
trunk/cecil/lib/ChangeLog
trunk/cecil/lib/CodeGen/cecil-gen-sources.rb
trunk/cecil/lib/CodeGen/cecil-gen.rb
trunk/cecil/lib/CodeGen/templates/IndexedCollectionImplem.cs
trunk/cecil/lib/CodeGen/templates/NamedCollectionImplem.cs
trunk/cecil/lib/Makefile
trunk/cecil/lib/Mono.Cecil.Cil/CodeWriter.cs
trunk/cecil/lib/Mono.Cecil.Metadata/StringsHeap.cs
trunk/cecil/lib/Mono.Cecil/CompactFrameworkCompatibility.cs
trunk/cecil/lib/Mono.Cecil/ExternTypeCollection.cs
trunk/cecil/lib/Mono.Cecil/MethodDefinition.cs
trunk/cecil/lib/Mono.Cecil/SecurityDeclaration.cs
trunk/cecil/lib/Mono.Cecil/SecurityDeclarationCollection.cs
trunk/cecil/lib/Mono.Cecil/TypeDefinitionCollection.cs
trunk/cecil/lib/Mono.Cecil/TypeReferenceCollection.cs
trunk/cecil/lib/README
trunk/cecil/lib/configure
trunk/cecil/lib/default.build
Log:
clean end of lines, empty lines
Modified: trunk/cecil/lib/ChangeLog
===================================================================
--- trunk/cecil/lib/ChangeLog 2006-07-19 21:35:13 UTC (rev 62771)
+++ trunk/cecil/lib/ChangeLog 2006-07-19 21:50:02 UTC (rev 62772)
@@ -19,17 +19,17 @@
* CodeGen/templates/ImageReader.cs
Mono.Cecil.Binary/ImageReader.cs:
CompactFramework compatibility.
-
+
2006-07-02 Rodrigo B. de Oliveira <[EMAIL PROTECTED]>
* CodeGen/templates/ImageReader.cs
Mono.Cecil.Binary/ImageReader.cs:
Proper FileNotFoundException construction.
-
+
* Mono.Cecil/MethodDefinition.cs
Mono.Cecil/IMethod.cs:
Helper properties IsInternalCall and IsRuntime.
-
+
2006-06-21 Jb Evain <[EMAIL PROTECTED]>
* Mono.Cecil.Cil/CilWorker.cs:
@@ -241,7 +241,7 @@
Mono.Cecil/ModuleDefinition.cs:
Patch by Almann T. Goo ([EMAIL PROTECTED]) conditionally
removing references to PermissionSet when compiling for the
CompactFramework.
-
+
* Mono.Cecil/CompactFrameworkCompatibility.cs:
System.Security.PermissionSet definition no longer needed.
@@ -304,7 +304,7 @@
* Mono.Cecil/CustomAttribute.cs
Mono.Cecil/ReflectionReader.cs
- Mono.Cecil/ReflectionWriter.cs
+ Mono.Cecil/ReflectionWriter.cs
Mono.Cecil.Signatures/SignatureWriter.cs:
Work on complex custom attributes encoding.
@@ -434,7 +434,7 @@
* Mono.Cecil/TableComparers.cs:
Fix the ordering of generic parameters.
- This revision roundtrips C5. Yeah!
+ This revision roundtrips C5. Yeah!
* Mono.Cecil/ReflectionWriter.cs:
Fix method spec "caching"
@@ -927,7 +927,7 @@
(GenericContext): We now operate on type/method references and not
definitions.
(GenericContext.Type): Changed type to `TypeReference'.
- (GenericContext.Method): Changed type to `MethodReference'.
+ (GenericContext.Method): Changed type to `MethodReference'.
2005-11-23 Martin Baulig <[EMAIL PROTECTED]>
@@ -959,7 +959,7 @@
2005-11-11 Sebastien Pouliot <[EMAIL PROTECTED]>
* Mono.Cecil.Metadata/MetadataWriter.cs
- Add support for different strongname key size (between 384
+ Add support for different strongname key size (between 384
and 16384 bits) as now supported in fx 2.0. Default is still
1024 bits.
@@ -984,7 +984,7 @@
Mono.Cecil.Binary/ImageReader.cs
cecil.build
Implement support for compiling on the CompactFramework
-
+
2005-11-08 Jb Evain <[EMAIL PROTECTED]>
* Mono.Cecil/GenericInstanceType.cs
@@ -1222,7 +1222,7 @@
to use the new SecurityDeclarationReader (supporting both formats).
* Mono.Cecil/SecurityAction.cs: Removed actions that were "cutted" out
of 2.0 final.
- * Mono.Cecil/SecurityDeclarationReader.cs: New. Handle both the 1.x
+ * Mono.Cecil/SecurityDeclarationReader.cs: New. Handle both the 1.x
and 2.0 formats for reading declarative security.
2005-10-18 Jb Evain <[EMAIL PROTECTED]>
@@ -1282,7 +1282,7 @@
Mono.Cecil/IGenericInstanceMethod.cs
Mono.Cecil/GenericInstanceMethod.cs:
Generics API elements.
-
+
* Mono.Cecil/IMethod.cs
Mono.Cecil/MethodReference.cs
Mono.Cecil/ITypeReference.cs
@@ -1389,7 +1389,7 @@
* Hopefully, this is the last API change before the release of Cecil
0.1.
Mono.Cecil.Implem has been moved to Mono.Cecil. The interfaces where
- very convenient for a reading API, it was far less convenient for a
+ very convenient for a reading API, it was far less convenient for a
modification and writing one. The modification API still needs some
work,
but this should be easier this way.
@@ -1505,7 +1505,7 @@
Mono.Cecil.Implem/ConstructorCollection.cs
Mono.Cecil.Signatures/SignatureWriter.cs:
Get rid of the complexity introduced by the
- internal lazy loading.
+ internal lazy loading.
* Mono.Cecil.Implem/EventDefinition.cs
Mono.Cecil.Implem/PropertyDefinition.cs:
@@ -1703,7 +1703,7 @@
* CodeGen/templates/Utilities.cs
Mono.Cecil.Metadata/Utilities.cs:
Return a null token if the rid of a md token
- is 0. Fix the crash when Mono try to read
+ is 0. Fix the crash when Mono try to read
assemblies emitted by Cecil.
2005-08-19 Jb Evain <[EMAIL PROTECTED]>
@@ -2611,7 +2611,7 @@
* Mono.Cecil/IModuleDefinition.cs
Mono.Cecil.Implem/ModuleDefinition.cs
Mono.Cecil.Implem/ReflectionReader.cs:
- Add methods to lookup items from their tokens
+ Add methods to lookup items from their tokens
2005-07-27 Jb Evain <[EMAIL PROTECTED]>
Modified: trunk/cecil/lib/CodeGen/cecil-gen-sources.rb
===================================================================
--- trunk/cecil/lib/CodeGen/cecil-gen-sources.rb 2006-07-19 21:35:13 UTC
(rev 62771)
+++ trunk/cecil/lib/CodeGen/cecil-gen-sources.rb 2006-07-19 21:50:02 UTC
(rev 62772)
@@ -5,7 +5,7 @@
[ "Mono.Cecil", "Mono.Cecil.Binary",
"Mono.Cecil.Metadata", "Mono.Cecil.Cil",
"Mono.Cecil.Signatures", "Mono.Xml" ].each { |dir|
-
+
Dir.foreach("../" + dir) { |file|
f.print("./#{dir}/#{file}\n") if file[(file.length -
3)..file.length] == ".cs"
}
Modified: trunk/cecil/lib/CodeGen/cecil-gen.rb
===================================================================
--- trunk/cecil/lib/CodeGen/cecil-gen.rb 2006-07-19 21:35:13 UTC (rev
62771)
+++ trunk/cecil/lib/CodeGen/cecil-gen.rb 2006-07-19 21:50:02 UTC (rev
62772)
@@ -83,7 +83,7 @@
elsif a.op1 == "0xff"
-1
else
- 1
+ 1
end
}
Modified: trunk/cecil/lib/CodeGen/templates/IndexedCollectionImplem.cs
===================================================================
--- trunk/cecil/lib/CodeGen/templates/IndexedCollectionImplem.cs
2006-07-19 21:35:13 UTC (rev 62771)
+++ trunk/cecil/lib/CodeGen/templates/IndexedCollectionImplem.cs
2006-07-19 21:50:02 UTC (rev 62772)
@@ -257,7 +257,7 @@
return ret.ToArray (typeof (PropertyDefinition)) as
PropertyDefinition [];
}
-<% end
+<% end
if !$cur_coll.visitor.nil? then %>
public void Accept (<%=$cur_coll.visitor%> visitor)
{
Modified: trunk/cecil/lib/CodeGen/templates/NamedCollectionImplem.cs
===================================================================
--- trunk/cecil/lib/CodeGen/templates/NamedCollectionImplem.cs 2006-07-19
21:35:13 UTC (rev 62771)
+++ trunk/cecil/lib/CodeGen/templates/NamedCollectionImplem.cs 2006-07-19
21:50:02 UTC (rev 62772)
@@ -46,7 +46,7 @@
public event <%=$cur_coll.item_name%>EventHandler
On<%=$cur_coll.item_name%>Added;
public event <%=$cur_coll.item_name%>EventHandler
On<%=$cur_coll.item_name%>Removed;
-
+
public <%=$cur_coll.type%> this [int index] {
get { return this.BaseGet (index) as
<%=$cur_coll.type%>; }
set { this.BaseSet (index, value); }
@@ -148,10 +148,10 @@
<% end %>
#if CF_1_0 || CF_2_0
internal object [] BaseGetAllValues ()
- {
+ {
object [] values = new object [this.Count];
for (int i=0; i < values.Length; ++i) {
- values [i] = this.BaseGet (i);
+ values [i] = this.BaseGet (i);
}
return values;
}
Modified: trunk/cecil/lib/Makefile
===================================================================
--- trunk/cecil/lib/Makefile 2006-07-19 21:35:13 UTC (rev 62771)
+++ trunk/cecil/lib/Makefile 2006-07-19 21:50:02 UTC (rev 62772)
@@ -4,7 +4,7 @@
KEY_FILE = ../../mcs/class/mono.snk
MCS_FLAGS = -keyfile:$(KEY_FILE)
-all:
+all:
$(MCS) $(MCS_FLAGS) @Mono.Cecil.dll.sources /target:library
/out:Mono.Cecil.dll
clean:
Modified: trunk/cecil/lib/Mono.Cecil/CompactFrameworkCompatibility.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil/CompactFrameworkCompatibility.cs 2006-07-19
21:35:13 UTC (rev 62771)
+++ trunk/cecil/lib/Mono.Cecil/CompactFrameworkCompatibility.cs 2006-07-19
21:50:02 UTC (rev 62772)
@@ -27,15 +27,15 @@
//
#if CF_1_0
namespace System {
-
+
internal class NotImplementedException : System.Exception {
-
+
public NotImplementedException (string message) : base (message)
{
}
public NotImplementedException ()
- {
+ {
}
}
}
@@ -43,11 +43,11 @@
#if CF_1_0 || CF_2_0
namespace System.Security {
-
+
public class SecurityElement {
-
+
public SecurityElement (string tag)
- {
+ {
}
public string Text
@@ -57,11 +57,11 @@
}
public void AddChild (SecurityElement child)
- {
+ {
}
public void AddAttribute (string name, string value)
- {
+ {
}
}
}
Modified: trunk/cecil/lib/Mono.Cecil/ExternTypeCollection.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil/ExternTypeCollection.cs 2006-07-19 21:35:13 UTC
(rev 62771)
+++ trunk/cecil/lib/Mono.Cecil/ExternTypeCollection.cs 2006-07-19 21:50:02 UTC
(rev 62772)
@@ -46,7 +46,7 @@
public event ExternTypeEventHandler OnExternTypeAdded;
public event ExternTypeEventHandler OnExternTypeRemoved;
-
+
public TypeReference this [int index] {
get { return this.BaseGet (index) as TypeReference; }
set { this.BaseSet (index, value); }
@@ -145,10 +145,10 @@
#if CF_1_0 || CF_2_0
internal object [] BaseGetAllValues ()
- {
+ {
object [] values = new object [this.Count];
for (int i=0; i < values.Length; ++i) {
- values [i] = this.BaseGet (i);
+ values [i] = this.BaseGet (i);
}
return values;
}
Modified: trunk/cecil/lib/Mono.Cecil/MethodDefinition.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil/MethodDefinition.cs 2006-07-19 21:35:13 UTC
(rev 62771)
+++ trunk/cecil/lib/Mono.Cecil/MethodDefinition.cs 2006-07-19 21:50:02 UTC
(rev 62772)
@@ -176,7 +176,7 @@
m_attributes &=
~MethodAttributes.RTSpecialName;
}
}
-
+
public bool IsInternalCall {
get { return MethodImplAttributes.InternalCall ==
(m_implAttrs & MethodImplAttributes.InternalCall); }
set {
Modified: trunk/cecil/lib/Mono.Cecil/SecurityDeclaration.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil/SecurityDeclaration.cs 2006-07-19 21:35:13 UTC
(rev 62771)
+++ trunk/cecil/lib/Mono.Cecil/SecurityDeclaration.cs 2006-07-19 21:50:02 UTC
(rev 62772)
@@ -39,7 +39,7 @@
#if !CF_1_0 && !CF_2_0
PermissionSet m_permSet;
#endif
-
+
bool m_readable;
byte [] m_blob;
Modified: trunk/cecil/lib/Mono.Cecil/SecurityDeclarationCollection.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil/SecurityDeclarationCollection.cs 2006-07-19
21:35:13 UTC (rev 62771)
+++ trunk/cecil/lib/Mono.Cecil/SecurityDeclarationCollection.cs 2006-07-19
21:50:02 UTC (rev 62772)
@@ -117,7 +117,7 @@
if (item == null)
return false;
-#if !CF_1_0 && !CF_2_0
+#if !CF_1_0 && !CF_2_0
return value.PermissionSet.IsSubsetOf
(item.PermissionSet);
#else
// XXX For CF, this concept does not exist--so always be true
Modified: trunk/cecil/lib/Mono.Cecil/TypeDefinitionCollection.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil/TypeDefinitionCollection.cs 2006-07-19
21:35:13 UTC (rev 62771)
+++ trunk/cecil/lib/Mono.Cecil/TypeDefinitionCollection.cs 2006-07-19
21:50:02 UTC (rev 62772)
@@ -46,7 +46,7 @@
public event TypeDefinitionEventHandler OnTypeDefinitionAdded;
public event TypeDefinitionEventHandler OnTypeDefinitionRemoved;
-
+
public TypeDefinition this [int index] {
get { return this.BaseGet (index) as TypeDefinition; }
set { this.BaseSet (index, value); }
@@ -148,10 +148,10 @@
#if CF_1_0 || CF_2_0
internal object [] BaseGetAllValues ()
- {
+ {
object [] values = new object [this.Count];
for (int i=0; i < values.Length; ++i) {
- values [i] = this.BaseGet (i);
+ values [i] = this.BaseGet (i);
}
return values;
}
Modified: trunk/cecil/lib/Mono.Cecil/TypeReferenceCollection.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil/TypeReferenceCollection.cs 2006-07-19
21:35:13 UTC (rev 62771)
+++ trunk/cecil/lib/Mono.Cecil/TypeReferenceCollection.cs 2006-07-19
21:50:02 UTC (rev 62772)
@@ -46,7 +46,7 @@
public event TypeReferenceEventHandler OnTypeReferenceAdded;
public event TypeReferenceEventHandler OnTypeReferenceRemoved;
-
+
public TypeReference this [int index] {
get { return this.BaseGet (index) as TypeReference; }
set { this.BaseSet (index, value); }
@@ -145,10 +145,10 @@
#if CF_1_0 || CF_2_0
internal object [] BaseGetAllValues ()
- {
+ {
object [] values = new object [this.Count];
for (int i=0; i < values.Length; ++i) {
- values [i] = this.BaseGet (i);
+ values [i] = this.BaseGet (i);
}
return values;
}
Modified: trunk/cecil/lib/Mono.Cecil.Cil/CodeWriter.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil.Cil/CodeWriter.cs 2006-07-19 21:35:13 UTC
(rev 62771)
+++ trunk/cecil/lib/Mono.Cecil.Cil/CodeWriter.cs 2006-07-19 21:50:02 UTC
(rev 62772)
@@ -362,7 +362,7 @@
m_binaryWriter.Write (((int)
TokenType.Signature | body.LocalVarToken));
WriteExceptionHandlerCollection
(body.ExceptionHandlers);
- } else
+ } else
m_binaryWriter.Write ((byte) ((byte)
MethodHeader.TinyFormat |
m_codeWriter.BaseStream.Length << 2));
Modified: trunk/cecil/lib/Mono.Cecil.Metadata/StringsHeap.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil.Metadata/StringsHeap.cs 2006-07-19 21:35:13 UTC
(rev 62771)
+++ trunk/cecil/lib/Mono.Cecil.Metadata/StringsHeap.cs 2006-07-19 21:50:02 UTC
(rev 62772)
@@ -61,7 +61,7 @@
try {
br.BaseStream.Position = index;
-
+
while (br.BaseStream.Position <
br.BaseStream.Length) {
char c = br.ReadChar ();
if (c == '\0')
@@ -72,7 +72,7 @@
} finally {
br.Close ();
}
-
+
return sb.ToString ();
}
Modified: trunk/cecil/lib/README
===================================================================
--- trunk/cecil/lib/README 2006-07-19 21:35:13 UTC (rev 62771)
+++ trunk/cecil/lib/README 2006-07-19 21:50:02 UTC (rev 62772)
@@ -11,16 +11,16 @@
Please report bugs at:
http://bugzilla.ximian.com,
Product: Mono Class Library,
- Component: Mono.Cecil
+ Component: Mono.Cecil
* Layout
CodeGen/
Here is a ruby code generation script. Do not modify generated
files.
Please modify template then run:
-
+
./cecil-gen.rb
-
+
in this folder. If you add or remove files, please run:
./cecil-gen-sources.rb
@@ -62,10 +62,10 @@
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
-
+
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
-
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Modified: trunk/cecil/lib/configure
===================================================================
--- trunk/cecil/lib/configure 2006-07-19 21:35:13 UTC (rev 62771)
+++ trunk/cecil/lib/configure 2006-07-19 21:50:02 UTC (rev 62772)
@@ -12,7 +12,7 @@
while [ $# -ne 0 ]; do
case $1 in
- --help)
+ --help)
help
exit 0
;;
Modified: trunk/cecil/lib/default.build
===================================================================
--- trunk/cecil/lib/default.build 2006-07-19 21:35:13 UTC (rev 62771)
+++ trunk/cecil/lib/default.build 2006-07-19 21:50:02 UTC (rev 62772)
@@ -4,7 +4,7 @@
<property name="debug" value="true" />
<property name="optimize" value="false" />
<property name="build.dir" value="bin" />
-
+
<!-- allow properties to be customized in external file" -->
<include buildfile="build.properties"
if="${file::exists('build.properties')}" />
@@ -12,7 +12,7 @@
<include name="./**/*.cs" />
<exclude name="CodeGen/**/*.*" />
</fileset>
-
+
<target name="clean">
<foreach item="Folder" property="f">
<in>
@@ -27,44 +27,44 @@
</do>
</foreach>
</target>
-
+
<target name="init">
<mkdir dir="${build.dir}" />
</target>
-
+
<target name="cecil" depends="init">
- <csc output="${build.dir}/Mono.Cecil.dll"
+ <csc output="${build.dir}/Mono.Cecil.dll"
target="library" debug="${debug}" unsafe="false"
optimize="${optimize}">
<sources refid="all-files"/>
</csc>
</target>
-
+
<target name="compactframework" depends="init" description="compiles
cecil to run on the CompactFramework 1.0">
<property name="compactframework.defines" value="CF_1_0" />
<call target="compactframework-compilation" />
</target>
-
+
<target name="compactframework2" depends="init" description="compiles
cecil to run on the CompactFramework 2.0">
<property name="compactframework.defines" value="CF_2_0" />
<call target="compactframework-compilation" />
</target>
-
+
<target name="compactframework-compilation">
<csc output="${build.dir}/Mono.Cecil.dll"
target="library" debug="${debug}" unsafe="false"
optimize="${optimize}"
noconfig="true" nostdlib="true"
- define="${compactframework.defines}">
+ define="${compactframework.defines}">
<sources refid="all-files" />
-
+
<references basedir="${compactframework.dir}">
<include name="mscorlib.dll" />
<include name="System.dll" />
</references>
</csc>
</target>
-
+
<target name="codegen">
<exec program="ruby" commandline="cecil-gen.rb" workingdir="CodeGen" />
</target>
-
+
</project>
\ No newline at end of file
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches