aboutsummaryrefslogtreecommitdiff
path: root/doc/ext_ffi_api.html
diff options
context:
space:
mode:
authorMike Pall <mike>2022-06-23 09:10:09 +0200
committerMike Pall <mike>2022-06-23 09:10:09 +0200
commit2e98c3d0644fc0c265844908f43b7e4526dd819c (patch)
treeb9116c671f4268be7776696abdb189de4be5cf43 /doc/ext_ffi_api.html
parent7dc3850e78493eed1e85fa7bc0b96068ae7fb9f4 (diff)
downloadluajit-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.html10
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
117declaration may be omitted. 117declaration may be omitted.
118</p> 118</p>
119<p> 119<p>
120Please note that external symbols are only <em>declared</em>, but they 120Please note, that external symbols are only <em>declared</em>, but they
121are <em>not bound</em> to any specific address, yet. Binding is 121are <em>not bound</em> to any specific address, yet. Binding is
122achieved with C&nbsp;library namespaces (see below). 122achieved with C&nbsp;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;">
208Please note that an anonymous <tt>struct</tt> declaration implicitly 208Please note, that an anonymous <tt>struct</tt> declaration implicitly
209creates a new and distinguished ctype every time you use it for 209creates 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,
211especially if you create more than one cdata object. Different anonymous 211especially 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
252contents of an <tt>__index</tt> table (if any) may be modified 252contents of an <tt>__index</tt> table (if any) may be modified
253afterwards. The associated metatable automatically applies to all uses 253afterwards. The associated metatable automatically applies to all uses
254of this type, no matter how the objects are created or where they 254of this type, no matter how the objects are created or where they
255originate from. Note that pre-defined operations on types have 255originate from. Note that predefined operations on types have
256precedence (e.g. declared field names cannot be overridden). 256precedence (e.g. declared field names cannot be overridden).
257</p> 257</p>
258<p> 258<p>
259All standard Lua metamethods are implemented. These are called directly, 259All standard Lua metamethods are implemented. These are called directly,
260without shortcuts and on any mix of types. For binary operations, the 260without shortcuts, and on any mix of types. For binary operations, the
261left operand is checked first for a valid ctype metamethod. The 261left 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>
263types and performs an implicit <a href="#ffi_gc"><tt>ffi.gc()</tt></a> 263types 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>
485Free the resources associated with a callback. The associated Lua 485Free the resources associated with a callback. The associated Lua
486function is unanchored and may be garbage collected. The callback 486function is unanchored and may be garbage collected. The callback
487function pointer is no longer valid and must not be called anymore 487function 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