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
From 2b61ca8972652cc671c09112577f7eec38074855 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joa=CC=83o=20Matos?= <joao@tritao.eu>
Date: Tue, 2 Jun 2015 18:17:51 +0100
Subject: [PATCH] WIP char**
---
build/Helpers.lua | 4 ++--
src/AST/TypeExtensions.cs | 15 +++++++++++++++
src/Generator/Generators/CSharp/CSharpMarshal.cs | 21 +++++++++++++--------
.../Generators/CSharp/CSharpTextTemplate.cs | 16 +++++-----------
From 5a39d7a685fcef060719fe9c11ed6a7776397db0 Mon Sep 17 00:00:00 2001
From: triton <joao@tritao.eu>
Date: Mon, 30 Mar 2015 23:43:36 +0100
Subject: [PATCH 2/2] Started adding support for explicit interfaces.
---
src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 19 +++++++++++--------
src/Generator/Passes/CheckMacrosPass.cs | 6 ++++++
tests/Basic/Basic.Tests.cs | 16 ++++++++++++++++
tests/Basic/Basic.cpp | 5 +++++
static string GetXcodeToolchainPath()
{
var toolchains = Directory.EnumerateDirectories("/Applications", "Xcode*")
.ToList();
toolchains.Sort();
var toolchainPath = toolchains.LastOrDefault();
if (toolchainPath == null)
throw new Exception("Could not find a valid Xcode SDK");
F:\mono>Program.exe
8 -2147483648
8 -2147483648
F:\mono>CorFlags /nologo /32BITREQ+ Program.exe
F:\mono>Program.exe
4 -2147483648
4 -2147483648
From 86f6c4a987bfccd2f7db022bd3e76bc64616e5bd Mon Sep 17 00:00:00 2001
From: triton <joao@tritao.eu>
Date: Sat, 17 Jan 2015 00:25:08 +0000
Subject: [PATCH 2/2] Added basic support for MI offsets.
---
src/AST/Function.cs | 3 +-
src/AST/Method.cs | 3 +
.../Generators/CSharp/CSharpTextTemplate.cs | 5 +-
src/Generator/Passes/MultipleInheritancePass.cs | 94 +++++++++++++++++++---
// --- MI
struct DLL_API MI_A0
{
MI_A0();
int get();
int F;
};
MI_A0::MI_A0() : F(50) {}
From e0aba7a0bcf3035c7fae9c28d4507378fcd97b22 Mon Sep 17 00:00:00 2001
From: triton <joao@tritao.eu>
Date: Fri, 24 Oct 2014 23:10:43 +0100
Subject: [PATCH 2/2] Improved the ABI support.
---
src/CppParser/Parser.cpp | 37 ++++++++++++++++++++++++++++++++-----
1 file changed, 32 insertions(+), 5 deletions(-)
diff --git a/src/CppParser/Parser.cpp b/src/CppParser/Parser.cpp
diff --git a/bin/cs/AlphaTab.Core/AlphaTab.Core.csproj b/bin/cs/AlphaTab.Core/AlphaTab.Core.csproj
index a98ed35..fb81dcf 100644
--- a/bin/cs/AlphaTab.Core/AlphaTab.Core.csproj
+++ b/bin/cs/AlphaTab.Core/AlphaTab.Core.csproj
@@ -248,6 +248,7 @@
<Compile Include="src\cs\io\NativeOutput.cs" />
<Compile Include="src\cs\Lib.cs" />
<Compile Include="src\EReg.cs" />
+ <Compile Include="src\haxe\Constraints.cs" />
<Compile Include="src\haxe\ds\IntMap.cs" />
using haxe.root;
#pragma warning disable 109, 114, 219, 429, 168, 162
namespace alphatab.rendering.glyphs {
public class FlatGlyph : global::alphatab.rendering.glyphs.SvgGlyph {
public FlatGlyph(global::haxe.lang.EmptyObject empty) : base(global::haxe.lang.EmptyObject.EMPTY) {
}
public virtual void RenderText(Font font, Vector2i position, String text)
{
float size = font.Size * Scale;
for ( int i=0; i<text.Length; i++ )
{
char chr = text[i];
if ( chr == ' ' )
continue;