diff options
author | Mike Pall <mike> | 2022-06-23 09:10:09 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2022-06-23 09:10:09 +0200 |
commit | 2e98c3d0644fc0c265844908f43b7e4526dd819c (patch) | |
tree | b9116c671f4268be7776696abdb189de4be5cf43 /doc/ext_ffi_api.html | |
parent | 7dc3850e78493eed1e85fa7bc0b96068ae7fb9f4 (diff) | |
download | luajit-2e98c3d0644fc0c265844908f43b7e4526dd819c.tar.gz luajit-2e98c3d0644fc0c265844908f43b7e4526dd819c.tar.bz2 luajit-2e98c3d0644fc0c265844908f43b7e4526dd819c.zip |
Grammar and spell check.
Diffstat (limited to 'doc/ext_ffi_api.html')
-rw-r--r-- | doc/ext_ffi_api.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/ext_ffi_api.html b/doc/ext_ffi_api.html index 687b85c5..962db6dc 100644 --- a/doc/ext_ffi_api.html +++ b/doc/ext_ffi_api.html | |||
@@ -117,7 +117,7 @@ separated by semicolons. The trailing semicolon for a single | |||
117 | declaration may be omitted. | 117 | declaration may be omitted. |
118 | </p> | 118 | </p> |
119 | <p> | 119 | <p> |
120 | Please note that external symbols are only <em>declared</em>, but they | 120 | Please note, that external symbols are only <em>declared</em>, but they |
121 | are <em>not bound</em> to any specific address, yet. Binding is | 121 | are <em>not bound</em> to any specific address, yet. Binding is |
122 | achieved with C library namespaces (see below). | 122 | achieved with C library namespaces (see below). |
123 | </p> | 123 | </p> |
@@ -205,7 +205,7 @@ parse the cdecl only once and get its ctype with | |||
205 | <tt>ffi.typeof()</tt>. Then use the ctype as a constructor repeatedly. | 205 | <tt>ffi.typeof()</tt>. Then use the ctype as a constructor repeatedly. |
206 | </p> | 206 | </p> |
207 | <p style="font-size: 8pt;"> | 207 | <p style="font-size: 8pt;"> |
208 | Please note that an anonymous <tt>struct</tt> declaration implicitly | 208 | Please note, that an anonymous <tt>struct</tt> declaration implicitly |
209 | creates a new and distinguished ctype every time you use it for | 209 | creates a new and distinguished ctype every time you use it for |
210 | <tt>ffi.new()</tt>. This is probably <b>not</b> what you want, | 210 | <tt>ffi.new()</tt>. This is probably <b>not</b> what you want, |
211 | especially if you create more than one cdata object. Different anonymous | 211 | especially if you create more than one cdata object. Different anonymous |
@@ -252,12 +252,12 @@ afterwards. Neither the contents of the <tt>metatable</tt> nor the | |||
252 | contents of an <tt>__index</tt> table (if any) may be modified | 252 | contents of an <tt>__index</tt> table (if any) may be modified |
253 | afterwards. The associated metatable automatically applies to all uses | 253 | afterwards. The associated metatable automatically applies to all uses |
254 | of this type, no matter how the objects are created or where they | 254 | of this type, no matter how the objects are created or where they |
255 | originate from. Note that pre-defined operations on types have | 255 | originate from. Note that predefined operations on types have |
256 | precedence (e.g. declared field names cannot be overridden). | 256 | precedence (e.g. declared field names cannot be overridden). |
257 | </p> | 257 | </p> |
258 | <p> | 258 | <p> |
259 | All standard Lua metamethods are implemented. These are called directly, | 259 | All standard Lua metamethods are implemented. These are called directly, |
260 | without shortcuts and on any mix of types. For binary operations, the | 260 | without shortcuts, and on any mix of types. For binary operations, the |
261 | left operand is checked first for a valid ctype metamethod. The | 261 | left operand is checked first for a valid ctype metamethod. The |
262 | <tt>__gc</tt> metamethod only applies to <tt>struct</tt>/<tt>union</tt> | 262 | <tt>__gc</tt> metamethod only applies to <tt>struct</tt>/<tt>union</tt> |
263 | types and performs an implicit <a href="#ffi_gc"><tt>ffi.gc()</tt></a> | 263 | types and performs an implicit <a href="#ffi_gc"><tt>ffi.gc()</tt></a> |
@@ -484,7 +484,7 @@ have some extra methods: | |||
484 | <p> | 484 | <p> |
485 | Free the resources associated with a callback. The associated Lua | 485 | Free the resources associated with a callback. The associated Lua |
486 | function is unanchored and may be garbage collected. The callback | 486 | function is unanchored and may be garbage collected. The callback |
487 | function pointer is no longer valid and must not be called anymore | 487 | function pointer is no longer valid and must not be called again |
488 | (it may be reused by a subsequently created callback). | 488 | (it may be reused by a subsequently created callback). |
489 | </p> | 489 | </p> |
490 | 490 | ||