aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2015-09-20 19:25:39 +0200
committerMike Pall <mike>2015-09-20 19:25:39 +0200
commit52ea1a30afc204553c99126ab43c2b16f2bd0182 (patch)
treee77b429085c37d39c24c5108ae3f67f449f088a6
parent49427dfcc2bb9ac60cd6023a59b0f788fcd38c3c (diff)
downloadluajit-52ea1a30afc204553c99126ab43c2b16f2bd0182.tar.gz
luajit-52ea1a30afc204553c99126ab43c2b16f2bd0182.tar.bz2
luajit-52ea1a30afc204553c99126ab43c2b16f2bd0182.zip
FFI: Add ssize_t declaration.
-rw-r--r--doc/changes.html1
-rw-r--r--doc/ext_ffi_semantics.html2
-rw-r--r--src/lj_ctype.c2
3 files changed, 5 insertions, 0 deletions
diff --git a/doc/changes.html b/doc/changes.html
index 125b58b4..82d3c140 100644
--- a/doc/changes.html
+++ b/doc/changes.html
@@ -123,6 +123,7 @@ Please take a look at the commit history for more details.
123<li>FFI: Compile lightuserdata to <tt>void *</tt> conversion.</li> 123<li>FFI: Compile lightuserdata to <tt>void *</tt> conversion.</li>
124<li>FFI: Compile <tt>ffi.gc(cdata, nil)</tt>, too.</li> 124<li>FFI: Compile <tt>ffi.gc(cdata, nil)</tt>, too.</li>
125<li>FFI: Add <tt>ffi.typeinfo()</tt>.</li> 125<li>FFI: Add <tt>ffi.typeinfo()</tt>.</li>
126<li>FFI: Add <tt>ssize_t</tt> declaration.</li>
126</ul></li> 127</ul></li>
127</ul> 128</ul>
128</div> 129</div>
diff --git a/doc/ext_ffi_semantics.html b/doc/ext_ffi_semantics.html
index 889d44d8..f65fe8f3 100644
--- a/doc/ext_ffi_semantics.html
+++ b/doc/ext_ffi_semantics.html
@@ -185,6 +185,8 @@ a <tt>typedef</tt>, except re-declarations will be ignored):
185<tt>uint16_t</tt>, <tt>uint32_t</tt>, <tt>uint64_t</tt>, 185<tt>uint16_t</tt>, <tt>uint32_t</tt>, <tt>uint64_t</tt>,
186<tt>intptr_t</tt>, <tt>uintptr_t</tt>.</li> 186<tt>intptr_t</tt>, <tt>uintptr_t</tt>.</li>
187 187
188<li>From <tt>&lt;unistd.h&gt;</tt> (POSIX): <tt>ssize_t</tt>.</li>
189
188</ul> 190</ul>
189<p> 191<p>
190You're encouraged to use these types in preference to 192You're encouraged to use these types in preference to
diff --git a/src/lj_ctype.c b/src/lj_ctype.c
index 2e23c994..eda070ce 100644
--- a/src/lj_ctype.c
+++ b/src/lj_ctype.c
@@ -38,6 +38,8 @@
38 _("uint64_t", UINT64) \ 38 _("uint64_t", UINT64) \
39 _("intptr_t", INT_PSZ) \ 39 _("intptr_t", INT_PSZ) \
40 _("uintptr_t", UINT_PSZ) \ 40 _("uintptr_t", UINT_PSZ) \
41 /* From POSIX. */ \
42 _("ssize_t", INT_PSZ) \
41 /* End of typedef list. */ 43 /* End of typedef list. */
42 44
43/* Keywords (only the ones we actually care for). */ 45/* Keywords (only the ones we actually care for). */