<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/fiddle/test_function.rb, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/fiddle] test: ensure freeing closure</title>
<updated>2022-10-07T06:18:53+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2022-09-14T21:44:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=824c474c95969f8255f293dc927ea081907aa0c2'/>
<id>824c474c95969f8255f293dc927ea081907aa0c2</id>
<content type='text'>
GitHub: GH-102

This also improves freed closures assertions.

https://github.com/ruby/fiddle/commit/0495624caf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GitHub: GH-102

This also improves freed closures assertions.

https://github.com/ruby/fiddle/commit/0495624caf
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/fiddle] test: ensure GC-ing closures</title>
<updated>2022-10-07T06:18:49+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2022-09-09T14:59:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6d01b66764b6dd3fc61c297bd1ec973f8ea686aa'/>
<id>6d01b66764b6dd3fc61c297bd1ec973f8ea686aa</id>
<content type='text'>
GitHub: fix GH-102

We can't use Fiddle::Closure before we fork the process. If we do it,
the process may be crashed with SELinux.

See https://github.com/ruby/fiddle/issues/102#issuecomment-1241763091
for details.

Reported by Vít Ondruch. Thanks!!!

https://github.com/ruby/fiddle/commit/1343ac7a95
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GitHub: fix GH-102

We can't use Fiddle::Closure before we fork the process. If we do it,
the process may be crashed with SELinux.

See https://github.com/ruby/fiddle/issues/102#issuecomment-1241763091
for details.

Reported by Vít Ondruch. Thanks!!!

https://github.com/ruby/fiddle/commit/1343ac7a95
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/fiddle] Use test-unit gem (https://github.com/ruby/fiddle/pull/69)</title>
<updated>2021-09-05T08:43:48+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2021-09-04T19:54:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8f752c95d20134bcc0b5394f1cea723a40f1ac8c'/>
<id>8f752c95d20134bcc0b5394f1cea723a40f1ac8c</id>
<content type='text'>
https://github.com/ruby/fiddle/commit/e08c4c635e

Co-authored-by: Sutou Kouhei &lt;kou@clear-code.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/fiddle/commit/e08c4c635e

Co-authored-by: Sutou Kouhei &lt;kou@clear-code.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/fiddle] test: fix SetLastError's input type</title>
<updated>2021-07-13T10:37:45+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2021-04-20T02:17:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8c905349bb35fa4c21614272f8e23da646e94957'/>
<id>8c905349bb35fa4c21614272f8e23da646e94957</id>
<content type='text'>
https://github.com/ruby/fiddle/commit/ca5e6a0404

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/fiddle/commit/ca5e6a0404

</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/fiddle] test: use double quote for string literal</title>
<updated>2021-07-13T10:37:45+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2021-04-20T02:17:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=37d16bb9dc2fbb42a93d899f6eed1857b304e3d6'/>
<id>37d16bb9dc2fbb42a93d899f6eed1857b304e3d6</id>
<content type='text'>
https://github.com/ruby/fiddle/commit/fab7eab95b

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/fiddle/commit/fab7eab95b

</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/fiddle] test: add a test for win32_last_socket_error</title>
<updated>2021-07-13T10:37:45+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2021-04-20T02:11:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5516d74ad2465ec98a09f80337a2ff9a78ba22c6'/>
<id>5516d74ad2465ec98a09f80337a2ff9a78ba22c6</id>
<content type='text'>
https://github.com/ruby/fiddle/commit/c86cec03cd

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/fiddle/commit/c86cec03cd

</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/fiddle] test: add missing receiver</title>
<updated>2021-07-13T10:37:45+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2021-04-20T02:07:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=303ab5da8b34faf6b4b608f1f7512dfd08544cc8'/>
<id>303ab5da8b34faf6b4b608f1f7512dfd08544cc8</id>
<content type='text'>
https://github.com/ruby/fiddle/commit/1da3b4af16

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/fiddle/commit/1da3b4af16

</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/fiddle] windows: use GetLastError() for win32_last_error</title>
<updated>2021-07-13T10:37:45+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2021-04-20T01:58:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d1eeb9fec953c41ebaf312d7a56948bca43e9f93'/>
<id>d1eeb9fec953c41ebaf312d7a56948bca43e9f93</id>
<content type='text'>
Ruby: [Bug #11579]

Patch by cremno phobia. Thanks!!!

https://github.com/ruby/fiddle/commit/760a8f9b14

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ruby: [Bug #11579]

Patch by cremno phobia. Thanks!!!

https://github.com/ruby/fiddle/commit/760a8f9b14

</pre>
</div>
</content>
</entry>
<entry>
<title>Oops! Add another test and fix to_proc implementation</title>
<updated>2021-02-26T18:06:56+00:00</updated>
<author>
<name>Aaron Patterson</name>
<email>tenderlove@ruby-lang.org</email>
</author>
<published>2021-02-26T18:06:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d45466dc5b9b45d5b78d161fc86265e6e19d6e1e'/>
<id>d45466dc5b9b45d5b78d161fc86265e6e19d6e1e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fiddle::Function responds to to_proc</title>
<updated>2021-02-26T17:57:13+00:00</updated>
<author>
<name>Aaron Patterson</name>
<email>tenderlove@ruby-lang.org</email>
</author>
<published>2021-02-26T17:57:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0590e9b677e8c0b7a2364f660f06d9f5bd8fe87d'/>
<id>0590e9b677e8c0b7a2364f660f06d9f5bd8fe87d</id>
<content type='text'>
This lets us cast a Fiddle::Function to a block, allowing is to write
things like:

```ruby
f = Fiddle::Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP)
define_method :strcpy, &amp;f
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This lets us cast a Fiddle::Function to a block, allowing is to write
things like:

```ruby
f = Fiddle::Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP)
define_method :strcpy, &amp;f
```
</pre>
</div>
</content>
</entry>
</feed>
