Skip to content

Commit 2a9ef90

Browse files
committed
wip
1 parent d1218d3 commit 2a9ef90

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

reference/ffi/ffi/arraytype.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
</methodsynopsis>
1919
<para>
2020
Dynamically constructs a new C array type with elements of type defined by <parameter>type</parameter>,
21-
and dimensions specified by <parameter>dimensions</parameter>. In the following example <code>$t1</code>
22-
and <code>$t2</code> are equivalent array types:
21+
and dimensions specified by <parameter>dimensions</parameter>. 以下の例において <code>$t1</code>
22+
<code>$t2</code> は等しい配列型です。
2323
<informalexample>
2424
<programlisting role="php">
2525
<![CDATA[
@@ -59,7 +59,7 @@ $t2 = FFI::arrayType(FFI::type("int"), [2, 3]);
5959
<refsect1 role="returnvalues">
6060
&reftitle.returnvalues;
6161
<para>
62-
Returns the freshly created <classname>FFI\CType</classname> object.
62+
新しく作成した <classname>FFI\CType</classname> オブジェクトを返します。
6363
</para>
6464
</refsect1>
6565

reference/ffi/ffi/cast.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<!-- $Revision$ -->
33
<!-- EN-Revision: 10beb4156579b621246bca461be7a0017bc280ad Maintainer: nsfisis Status: working -->
44

5-
!!!
65
<refentry xml:id="ffi.cast" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
76
<refnamediv>
87
<refname>FFI::cast</refname>
@@ -17,8 +16,9 @@
1716
<methodparam><type class="union"><type>FFI\CData</type><type>int</type><type>float</type><type>bool</type><type>null</type></type><parameter role="reference">ptr</parameter></methodparam>
1817
</methodsynopsis>
1918
<para>
20-
<methodname>FFI::cast</methodname> creates a new <classname>FFI\CData</classname>
21-
object, that references the same C data structure, but is associated with a different type.
19+
<methodname>FFI::cast</methodname> は、同じ C のデータ構造を参照するが別の型が紐付けられた
20+
<classname>FFI\CData</classname> オブジェクトを新しく作成します。
21+
!!!
2222
The resulting object does not own the C data, and the source <parameter>ptr</parameter>
2323
must survive the result. The C type may be specified as a <type>string</type> with any
2424
valid C type declaration or as <classname>FFI\CType</classname> object, created before.
@@ -33,6 +33,7 @@
3333
<term><parameter>type</parameter></term>
3434
<listitem>
3535
<para>
36+
!!!
3637
A valid C declaration as <type>string</type>, or an instance of <classname>FFI\CType</classname>
3738
which has already been created.
3839
</para>
@@ -52,7 +53,7 @@
5253
<refsect1 role="returnvalues">
5354
&reftitle.returnvalues;
5455
<para>
55-
Returns the freshly created <classname>FFI\CData</classname> object.
56+
新しく作成された <classname>FFI\CData</classname> オブジェクトを返します。
5657
</para>
5758
</refsect1>
5859

reference/ffi/ffi/free.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<methodparam><type>FFI\CData</type><parameter role="reference">ptr</parameter></methodparam>
1616
</methodsynopsis>
1717
<para>
18-
!!! "previously created" の訳
1918
以前に作成されたアンマネージドなデータ構造を手で解放する。
2019
</para>
2120
</refsect1>

reference/ffi/ffi/load.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<refentry xml:id="ffi.load" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
77
<refnamediv>
88
<refname>FFI::load</refname>
9-
<refpurpose>C のヘッダーファイルから C の宣言を読み込む !!! load は読み込むでいい?</refpurpose>
9+
<refpurpose>C のヘッダーファイルから C の宣言を読み込む</refpurpose>
1010
</refnamediv>
1111

1212
<refsect1 role="description">

0 commit comments

Comments
 (0)