Skip to content

Instantly share code, notes, and snippets.

View tritao's full-sized avatar
🎯
Focusing

João Matos tritao

🎯
Focusing
  • Portugal
View GitHub Profile
@tritao
tritao / gist:8ff89dd1904e051616b0
Created May 3, 2014 22:44
SharpCompress VS2012 error
1>------ Build started: Project: SharpCompress, Configuration: Debug Any CPU ------
2>------ Build started: Project: SharpCompress.PortableTest, Configuration: Debug Any CPU ------
3>------ Build started: Project: SharpCompress.Portable, Configuration: Debug Any CPU ------
4>------ Build started: Project: SharpCompress.NET2, Configuration: Debug Any CPU ------
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2482,5): error MSB3325: Cannot import the following key file: SharpCompress.pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the following key container name: VS_KEY_BBC50E367AC04F61
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2482,5): error MSB3321: Importing key file "SharpCompress.pfx" was canceled.
4>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not
From 643e7935a806b2fc59c3908ebb49f61972ab0ba0 Mon Sep 17 00:00:00 2001
From: triton <ripzonetriton@gmail.com>
Date: Sun, 4 May 2014 18:13:54 +0100
Subject: [PATCH 2/2] Added stdcall delegate tests.
---
tests/Basic/Basic.Tests.cs | 5 ++++-
tests/Basic/Basic.h | 3 +++
tests/Tests.h | 2 ++
3 files changed, 9 insertions(+), 1 deletion(-)
From 98ccb772b3edfa0c1c03bb4a5b23c730c2937f76 Mon Sep 17 00:00:00 2001
From: triton <joao@tritao.eu>
Date: Thu, 8 May 2014 15:14:44 +0100
Subject: [PATCH 2/2] Misc changes
---
build/LLVM.lua | 1 +
src/AST/Template.cs | 6 +++-
src/Core/Parser/ASTConverter.cs | 10 ++++--
src/CppParser/AST.cpp | 25 ++++++++++++++
From 3d4770b760da036e27e9bd8528dd42f8282609de Mon Sep 17 00:00:00 2001
From: triton <joao@tritao.eu>
Date: Sun, 11 May 2014 21:52:25 +0100
Subject: [PATCH] Improved template parsing error handling.
For an example of what can trigger it:
template<typename _CharT, typename _Traits = char_traits<_CharT>,
typename _Alloc = allocator<_CharT> >
class basic_string;
@tritao
tritao / gist:a775ba9daa3ccbd79423
Created May 29, 2014 11:14
Difference in behavior from MS and Mono's C# compilers
/**
C:\Development>mcs dev.cs
dev.cs(8,18): warning CS0649: Field `WindowsIdentity._type' is never assigned to, and will always have its default value `null'
Compilation succeeded - 1 warning(s)
C:\Development>csc /nologo dev.cs
dev.cs(14,17): error CS0546: 'WindowsIdentity.AuthenticationType.set': cannot override because 'ClaimsIdentity.AuthenticationType' does not have an
overridable set accessor
dev.cs(3,24): (Location of symbol related to previous error)
*/
<ItemGroup>
<CustomBuild Include="..\..\..\mcs\mcs\cs-parser.jay">
<FileType>Document</FileType>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"lib\jay" -cv &lt; "../../../mcs/jay/skeleton.cs" "../../../mcs/mcs/cs-parser.jay" &gt; gen/cs-parser.cs</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../gen/cs-parser.cs</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">"lib\jay" -cv &lt; "../../../mcs/jay/skeleton.cs" "../../../mcs/mcs/cs-parser.jay" &gt; gen/cs-parser.cs</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../gen/cs-parser.cs</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"lib\jay" -cv &lt; "../../../mcs/jay/skeleton.cs" "../../../mcs/mcs/cs-parser.jay" &gt; gen/cs-parser.cs</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../gen/cs-parser.cs</Outputs>
<Command Condition="'$(Configuration
1>------ Build started: Project: corlib-net_4_5, Configuration: Debug Any CPU ------
1>C:\Development\work\mono\mcs\class\corlib\System\Guid.cs(491,17,491,36): warning CS0675: Bitwise-or operator used on a sign-extended operand; consider casting to a smaller unsigned type first
1>C:\Development\work\mono\mcs\class\corlib\System.Runtime.Remoting.Contexts\SynchronizationAttribute.cs(50,8,50,15): warning CS0649: Field 'System.Runtime.Remoting.Contexts.SynchronizationAttribute._locked' is never assigned to, and will always have its default value false
1>C:\Development\work\mono\mcs\class\corlib\System.Security.AccessControl\NativeObjectSecurity.cs(397,16,397,24): warning CS0649: Field 'System.Security.AccessControl.NativeObjectSecurity.SecurityDescriptor.Revision' is never assigned to, and will always have its default value 0
1>C:\Development\work\mono\mcs\class\corlib\System.Security.AccessControl\NativeObjectSecurity.cs(397,26,397,30): warning CS0649: Field 'System.Security.AccessControl.NativeObjectSecurity.Se
1>------ Build started: Project: System.Xml-bare-net_4_5, Configuration: Debug Any CPU ------
1>Build started 29-05-2014 19:41:05.
1>Building with tools version "4.0".
1>Target "_CheckForInvalidConfigurationAndPlatform" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets" from project "C:\Development\work\mono\mcs\class\System.XML\System.Xml-bare-net_4_5.csproj" (entry point):
1>Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
1>Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
1>Using "Message" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>Task "Message"
1> Configuration=Debug
1>Done executing task "Message".
C:\Development\work\mono\msvc\vs2012\lib>mono --verbose WindowsFormsApplication1.exe
converting method System.OutOfMemoryException:.ctor (string)
Method System.OutOfMemoryException:.ctor (string) emitted at 00FB0D18 to 00FB0D3B (code length 35) [WindowsFormsApplication1.exe]
converting method (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)
Method (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr) emitted at 00FB0D58 to 00FB0E02 (code length 170) [WindowsFormsApplication1.exe]
converting method System.SystemException:.ctor (string)
Method System.SystemException:.ctor (string) emitted at 00FB0E08 to 00FB0E2B (code length 35) [WindowsFormsApplication1.exe]
converting method System.Exception:.ctor (string)
Method System.Exception:.ctor (string) emitted at 00FB0E38 to 00FB0E71 (code length 57) [WindowsFormsApplication1.exe]
converting method System.NullReferenceException:.ctor (string)
From 0607feac53863683866c3eef870a089b59544e92 Mon Sep 17 00:00:00 2001
From: Joao Matos <joao.matos@xamarin.com>
Date: Wed, 4 Jun 2014 19:37:17 +0100
Subject: [PATCH 1/3] Added g_unreachable to explicitly notify the compiler of
unreachable code.
---
eglib/src/glib.h | 8 ++++++++
1 file changed, 8 insertions(+)