Skip to content

Instantly share code, notes, and snippets.

@Hamayama
Hamayama / error.c.diff
Last active August 29, 2015 14:16
GaucheのWindows版のシステムエラー表示のパッチ(2015-2-27)(2015-5-6修正)(2015-7-3修正)
--- error_orig.c 2015-07-02 18:12:26 +0900
+++ error.c 2015-07-03 00:14:02 +0900
@@ -650,17 +650,23 @@
syserr = SCM_MAKE_STR_COPYING(strerror(en));
#else /*GAUCHE_WINDOWS*/
if (en < 0) {
- LPTSTR msgbuf;
+ ScmObj ostr = Scm_MakeOutputStringPort(TRUE);
+ LPTSTR msgbuf = NULL;
const char *xmsgbuf;
@Hamayama
Hamayama / console.stub.diff
Last active August 29, 2015 14:16
GaucheのWindowsコンソール処理のパッチ(2015-2-27)(2015-3-3修正)(2015-3-3修正2)
--- console_orig.stub 2015-02-24 13:43:19 +0900
+++ console.stub 2015-03-03 13:57:53 +0900
@@ -71,7 +71,7 @@
(define-enum CTRL_C_EVENT)
(define-enum CTRL_BREAK_EVENT)
-(define-cproc sys-generate-console-ctrl-event (event::<int> pgid::<int>)
+(define-cproc sys-generate-console-ctrl-event (event::<int> pgid::<uint>)
::<void>
(check (GenerateConsoleCtrlEvent (DWORD event) (DWORD pgid))))
@Hamayama
Hamayama / package_memo.md
Last active August 15, 2018 04:29
Gauche の 外部パッケージ作成手順 メモ (Gauche v0.9.6 の場合)

Gauche の 外部パッケージ作成手順 メモ (Gauche v0.9.6 の場合)

  • Gauche の 外部パッケージ作成手順のメモです (Gauche v0.9.6 の場合)。
    (情報が古くなっている可能性があります)
  1. Gauche のインストール
    事前に Gauche がインストールされている必要があります。
    Windows の場合は、以下のページに Windows用バイナリインストーラ があるので
    インストールを実施ください。
@Hamayama
Hamayama / SDL2_Install.md
Last active August 4, 2021 14:11
MinGW 用の SDL2 インストール手順 メモ

MinGW 用の SDL2 インストール手順 メモ

  • 自分がインストールしたとき(2016年12月~2020年11月)の参考用のメモです。
    (情報が古くなっている可能性があります)
  1. MinGW のインストール
    事前に MinGW がインストールされている必要があります。
    以下のページを参考に、インストールを実施ください。
    <開発環境に MinGW (32bit) を使う場合>
@Hamayama
Hamayama / MinGW_Install.md
Last active July 9, 2018 02:32
MinGW (32bit) 開発環境 インストール手順 メモ

MinGW (32bit) 開発環境 インストール手順 メモ

  • 自分がインストールしたとき(2013年12月~2015年9月)の参考用のメモです。
    (情報が古くなっている可能性があります)

  • **<<<現在では より新しい MSYS2/MinGW-w64 (64bit/32bit) の開発環境もあります>>>
    MSYS2/MinGW-w64 (64bit/32bit) 開発環境のインストールについては、
    以下のページの方を参照ください。
    https://gist.github.com/Hamayama/eb4b4824ada3ac71beee0c9bb5fa546d

@Hamayama
Hamayama / console.stub.diff
Created June 22, 2014 11:39
GaucheのWindowsコンソール処理のパッチ(2014-6-22)
--- console20140622.stub 2014-06-20 15:56:48 +0900
+++ console.stub 2014-06-22 18:33:51 +0900
@@ -268,7 +268,9 @@
:type <boolean>)
(key.repeat-count :c-name "rec.Event.KeyEvent.wRepeatCount"
:type <int>)
- (key.virtual-key-code :c-name "rec.Event.KeyEvent.wVirtualScanCode"
+ (key.virtual-key-code :c-name "rec.Event.KeyEvent.wVirtualKeyCode"
+ :type <int>)
+ (key.virtual-scan-code :c-name "rec.Event.KeyEvent.wVirtualScanCode"