Skip to content

Instantly share code, notes, and snippets.

View chouquette's full-sized avatar

Hugo Beauzée-Luyssen chouquette

View GitHub Profile
libtool
libffi
libgcc
ncurses
zlib
cacerts
chouquette@nibbler i686-w64-mingw32-clang++ -o test/i686/hello-exception-thread.exe test/hello-exception-thread.cpp && (cd test/i686 && wine hello-exception-thread.exe ) ~/dev/llvm-mingw
001c:err:module:import_dll Library MSVCR100_CLR0400.dll (which is needed by L"C:\\windows\\Microsoft.NET\\Framework64\\v4.0.30319\\mscorsvw.exe") not found
001c:err:module:import_dll Library mscoree.dll (which is needed by L"C:\\windows\\Microsoft.NET\\Framework64\\v4.0.30319\\mscorsvw.exe") not found
001c:err:module:attach_dlls Importing dlls for L"C:\\windows\\Microsoft.NET\\Framework64\\v4.0.30319\\mscorsvw.exe" failed, status c0000135
000f:err:service:process_send_command service protocol error - failed to write pipe!
Throwing #1
*** stack smashing detected ***: <unknown> terminated
wine: Assertion failed at address 0xf7ed5049 (thread 0032), starting debugger...
Unhandled exception: assertion failed in 32-bit code (0xf7ed5049).
Register dump:
modules/video_chroma/copy.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/video_chroma/copy.h b/modules/video_chroma/copy.h
index 38a3a38..4d129e8 100644
--- a/modules/video_chroma/copy.h
+++ b/modules/video_chroma/copy.h
@@ -28,6 +28,8 @@ typedef struct {
# ifdef CAN_COMPILE_SSE2
uint8_t *buffer;
modules/video_output/msw/direct3d9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/msw/direct3d9.c b/modules/video_output/msw/direct3d9.c
index d24eb8b..e0b11ea 100644
--- a/modules/video_output/msw/direct3d9.c
+++ b/modules/video_output/msw/direct3d9.c
@@ -1419,7 +1419,7 @@ static void Direct3D9DestroyShaders(vout_display_t *vd)
* Vertex 0 should be assigned coordinates at index 2 from the
* unrotated order and so on, thus yielding order: 2 3 0 1.
@chouquette
chouquette / gist:c1b09f78bb70ae6c97621f9b238331dd
Created May 11, 2018 21:00
Hexadecimal floating point numbers
---
modules/audio_mixer/integer.c | 12 ++++++++++++
modules/audio_output/waveout.c | 14 ++++++++++++--
2 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/modules/audio_mixer/integer.c b/modules/audio_mixer/integer.c
index 73f3f03..2c137a6 100644
--- a/modules/audio_mixer/integer.c
+++ b/modules/audio_mixer/integer.c
@@ -44,7 +44,11 @@ static void FilterS32N (audio_volume_t *vol, block_t *block, float volume)
@chouquette
chouquette / gist:16e437fcf8bb8b4e68b0ba17a0f9f168
Created May 11, 2018 20:56
Multiline macro with imbricated preprocessor #if
---
modules/access/dtv/access.c | 10 +++++++---
modules/demux/mkv/matroska_segment_parse.cpp | 7 +++----
modules/demux/mp4/mp4.c | 9 +++++----
3 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c
index f7d3bef..cc8cd6c 100644
--- a/modules/access/dtv/access.c
+++ b/modules/access/dtv/access.c
@chouquette
chouquette / main.cpp
Created March 13, 2018 12:19
ODR violation
#include <iostream>
#include <memory>
extern "C" void Coucou();
class Shared
{
public:
Shared()
: m_coucou( "tu veux voir ma loutre" )

Keybase proof

I hereby claim:

  • I am chouquette on github.
  • I am chouquette (https://keybase.io/chouquette) on keybase.
  • I have a public key whose fingerprint is 9477 E0D3 1426 892D 2361 9994 DF84 80A4 E3CF 72EB

To claim this, I am signing this object:

@chouquette
chouquette / a.hpp
Created February 11, 2015 23:33
Solving circular dependencies with templates
#pragma once
#include <memory>
#include "moulaf.hpp"
class B;
class A
{
public: