-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support windows. #1
base: master
Are you sure you want to change the base?
Conversation
パッチを確認したのですが、差分が大きく、Unix用コードの可読性が落ちるため、以下のいずれかの対応とさせてください。
mruby-processのテストは現状ありませんが、これから対応させたいと考えています |
mrbgem.rake でENVかなにかを見て process_xxx.c をビルド対象にする、みたいなのはどうでしょうか。 |
はい。そのような方法でも構わないと思います。 |
今のビルドシステムだと、srcにあるソースは全てコンパイルされてしまうので process.c から include されるファイルで拡張子が .c には出来ないです。 サブフォルダなら無視してくれそうです。 |
のどちらかでしょうか。後者で良いと思います。 (テストも同様の対処が必要かもしれないですね) |
その場合、 |
お返事遅くなってすみません。 src/win32, src/unix を作る形でコードを書いてみましたが、どうしてもアドホックな対処になってしまうので、あまり良い策では無いように思えてきました。 |
私も週末そんなことを考えてました。 あとは僕がmruby-processのforkとしてmruby-process-win32を配る事に、「IIJさんとして問題無いか」なのですが、いかがでしょうか。 |
mruby-process は mruby と同じライセンス(MIT)としていますので、それに従って頂く限りは問題ありません。 |
ありがとうございます。 |
@katzer The reason why we have not merged this PR is that we have too many |
Agree. Have you considered to split the code into separate files for each platform and one for the independent things to avoid macros within method bodies? |
akiray03 tried it and found it did not work well (he says it looks an ad hoc solution in his comment in Japanese). |
* Create tmp directory for test. * Avoid buffer overflow. * Fix memory leaks.
some functions are disabled on windows.