Skip to content

Commit

Permalink
Fix all compiler messages
Browse files Browse the repository at this point in the history
  • Loading branch information
szymmirr committed Jan 9, 2021
1 parent 6338389 commit bcbf289
Show file tree
Hide file tree
Showing 266 changed files with 4,337 additions and 4,423 deletions.
35 changes: 17 additions & 18 deletions GHNamespace1/Class10.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public struct Struct7

[Guid("0000000c-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[ComImport]
public interface Interface0
public interface INterface0
{
void imethod_0(IntPtr pv, uint cb, out uint pcbRead);

Expand All @@ -49,7 +49,7 @@ public interface Interface0

void imethod_3(ulong libNewSize);

void imethod_4(Interface0 pstm, ulong cb, out ulong pcbRead, out ulong pcbWritten);
void imethod_4(INterface0 pstm, ulong cb, out ulong pcbRead, out ulong pcbWritten);

void imethod_5(uint grfCommitFlags);

Expand All @@ -61,16 +61,16 @@ public interface Interface0

void imethod_9(out Struct7 pstatstg, uint grfStatFlag);

void imethod_10(out Interface0 ppstm);
void imethod_10(out INterface0 ppstm);
}

[Guid("7c23ff90-33af-11d3-95da-00a024a85b51"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[ComImport]
public interface Interface1
public interface INterface1
{
void imethod_0(Interface2 pName);
void imethod_0(INterface2 pName);

void imethod_1(out Interface2 ppName);
void imethod_1(out INterface2 ppName);

void imethod_2([MarshalAs(UnmanagedType.LPWStr)] string szName, int pvValue, uint cbValue, uint dwFlags);

Expand All @@ -82,7 +82,7 @@ void imethod_3([MarshalAs(UnmanagedType.LPWStr)] string szName, out int pvValue,

[Guid("CD193BC0-B4BC-11d2-9833-00C04FC31D2E"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[ComImport]
public interface Interface2
public interface INterface2
{
[PreserveSig]
int imethod_0(uint propertyId, IntPtr pvProperty, uint cbProperty);
Expand All @@ -97,7 +97,7 @@ public interface Interface2
int imethod_3(IntPtr szDisplayName, ref uint pccDisplayName, uint dwDisplayFlags);

[PreserveSig]
int imethod_4(object refIid, object pAsmBindSink, Interface1 pApplicationContext,
int imethod_4(object refIid, object pAsmBindSink, INterface1 pApplicationContext,
[MarshalAs(UnmanagedType.LPWStr)] string szCodeBase, long llFlags, int pvReserved, uint cbReserved,
out int ppv);

Expand All @@ -108,20 +108,20 @@ int imethod_4(object refIid, object pAsmBindSink, Interface1 pApplicationContext
int imethod_6(out uint pdwVersionHi, out uint pdwVersionLow);

[PreserveSig]
int imethod_7(Interface2 pName, uint dwCmpFlags);
int imethod_7(INterface2 pName, uint dwCmpFlags);

[PreserveSig]
int imethod_8(out Interface2 pName);
int imethod_8(out INterface2 pName);
}

[Guid("9e3aaeb4-d1cd-11d2-bab9-00c04f8eceae"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[ComImport]
public interface Interface3
public interface INterface3
{
void imethod_0([MarshalAs(UnmanagedType.LPWStr)] string pszName, uint dwFormat, uint dwFlags,
uint dwMaxSize, out Interface0 ppStream);
uint dwMaxSize, out INterface0 ppStream);

void imethod_1(Interface2 pName);
void imethod_1(INterface2 pName);

void imethod_2(uint dwFlags);

Expand All @@ -130,7 +130,7 @@ void imethod_0([MarshalAs(UnmanagedType.LPWStr)] string pszName, uint dwFormat,

[Guid("e707dcde-d1cd-11d2-bab9-00c04f8eceae"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[ComImport]
public interface Interface4
public interface INterface4
{
[PreserveSig]
int imethod_0(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string pszAssemblyName, IntPtr pvReserved,
Expand All @@ -140,7 +140,7 @@ int imethod_0(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string pszAssembly
int imethod_1(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string pszAssemblyName, IntPtr pAsmInfo);

[PreserveSig]
int imethod_2(uint dwFlags, IntPtr pvReserved, out Interface3 ppAsmItem,
int imethod_2(uint dwFlags, IntPtr pvReserved, out INterface3 ppAsmItem,
[MarshalAs(UnmanagedType.LPWStr)] string pszAssemblyName);

[PreserveSig]
Expand All @@ -152,12 +152,11 @@ int imethod_4(uint dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string pszManifest
}

[DllImport("fusion", CharSet = CharSet.Auto)]
public static extern int CreateAssemblyCache(out Interface4 ppAsmCache, uint dwReserved);
public static extern int CreateAssemblyCache(out INterface4 ppAsmCache, uint dwReserved);

public static bool smethod_0(string string0)
{
Interface4 @interface = null;
var num = CreateAssemblyCache(out @interface, 0u);
int num = CreateAssemblyCache(out INterface4 @interface, 0u);
if (num != 0)
{
return false;
Expand Down
10 changes: 5 additions & 5 deletions GHNamespace1/Class11.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static float smethod_15(int int0)

public static byte smethod_16(double double0)
{
var num = Math.Round(double0 * 127.0) + 128.0;
double num = Math.Round(double0 * 127.0) + 128.0;
if (num > 255.0)
{
return 255;
Expand All @@ -105,7 +105,7 @@ public static byte smethod_17(float float0)

public static sbyte smethod_18(double double0)
{
var num = Math.Round(double0 * 127.0);
double num = Math.Round(double0 * 127.0);
if (num > 127.0)
{
return 127;
Expand All @@ -124,7 +124,7 @@ public static sbyte smethod_19(float float0)

public static short smethod_20(double double0)
{
var num = Math.Round(double0 * 32767.0);
double num = Math.Round(double0 * 32767.0);
if (num > 32767.0)
{
return 32767;
Expand All @@ -143,7 +143,7 @@ public static short smethod_21(float float0)

public static Struct8 smethod_22(double double0)
{
var num = Math.Round(double0 * 8388607.0);
double num = Math.Round(double0 * 8388607.0);
return Struct8.smethod_1((num > 8388607.0) ? 8388607 : ((num < -8388608.0) ? -8388608 : ((int) num)));
}

Expand All @@ -154,7 +154,7 @@ public static Struct8 smethod_23(float float0)

public static int smethod_24(double double0)
{
var num = Math.Round(double0 * 2147483647.0);
double num = Math.Round(double0 * 2147483647.0);
if (num > 2147483647.0)
{
return 2147483647;
Expand Down
2 changes: 1 addition & 1 deletion GHNamespace1/Class12.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public Class12(INterface5[] interface50)

public virtual void imethod_0(Class13[] class130)
{
foreach (var current in this)
foreach (INterface5 current in this)
{
current.imethod_0(class130);
}
Expand Down
Loading

0 comments on commit bcbf289

Please sign in to comment.