aboutsummaryrefslogtreecommitdiff
path: root/doc/ext_ffi_tutorial.html
diff options
context:
space:
mode:
authorMike Pall <mike>2020-01-26 15:37:33 +0100
committerMike Pall <mike>2020-01-26 15:37:33 +0100
commitbd907032e3b93651f2b969cbc04477bba40faee8 (patch)
tree40d7bf9c59f13177eee32a6ba3a4e904eb09fb73 /doc/ext_ffi_tutorial.html
parent18c9cf7d3788a8f7408df45df92fc4ae3bcc0d80 (diff)
downloadluajit-bd907032e3b93651f2b969cbc04477bba40faee8.tar.gz
luajit-bd907032e3b93651f2b969cbc04477bba40faee8.tar.bz2
luajit-bd907032e3b93651f2b969cbc04477bba40faee8.zip
Documentation cleanup.
Diffstat (limited to 'doc/ext_ffi_tutorial.html')
-rw-r--r--doc/ext_ffi_tutorial.html15
1 files changed, 5 insertions, 10 deletions
diff --git a/doc/ext_ffi_tutorial.html b/doc/ext_ffi_tutorial.html
index 7ca14018..ae376b1f 100644
--- a/doc/ext_ffi_tutorial.html
+++ b/doc/ext_ffi_tutorial.html
@@ -17,7 +17,7 @@ td.idiomlua b { font-weight: normal; color: #2142bf; }
17</head> 17</head>
18<body> 18<body>
19<div id="site"> 19<div id="site">
20<a href="http://luajit.org"><span>Lua<span id="logo">JIT</span></span></a> 20<a href="https://luajit.org"><span>Lua<span id="logo">JIT</span></span></a>
21</div> 21</div>
22<div id="head"> 22<div id="head">
23<h1>FFI Tutorial</h1> 23<h1>FFI Tutorial</h1>
@@ -26,7 +26,7 @@ td.idiomlua b { font-weight: normal; color: #2142bf; }
26<ul><li> 26<ul><li>
27<a href="luajit.html">LuaJIT</a> 27<a href="luajit.html">LuaJIT</a>
28<ul><li> 28<ul><li>
29<a href="http://luajit.org/download.html">Download <span class="ext">&raquo;</span></a> 29<a href="https://luajit.org/download.html">Download <span class="ext">&raquo;</span></a>
30</li><li> 30</li><li>
31<a href="install.html">Installation</a> 31<a href="install.html">Installation</a>
32</li><li> 32</li><li>
@@ -50,17 +50,12 @@ td.idiomlua b { font-weight: normal; color: #2142bf; }
50</li></ul> 50</li></ul>
51</li><li> 51</li><li>
52<a href="status.html">Status</a> 52<a href="status.html">Status</a>
53<ul><li>
54<a href="changes.html">Changes</a>
55</li></ul>
56</li><li> 53</li><li>
57<a href="faq.html">FAQ</a> 54<a href="faq.html">FAQ</a>
58</li><li> 55</li><li>
59<a href="http://luajit.org/performance.html">Performance <span class="ext">&raquo;</span></a>
60</li><li>
61<a href="http://wiki.luajit.org/">Wiki <span class="ext">&raquo;</span></a> 56<a href="http://wiki.luajit.org/">Wiki <span class="ext">&raquo;</span></a>
62</li><li> 57</li><li>
63<a href="http://luajit.org/list.html">Mailing List <span class="ext">&raquo;</span></a> 58<a href="https://luajit.org/list.html">Mailing List <span class="ext">&raquo;</span></a>
64</li></ul> 59</li></ul>
65</div> 60</div>
66<div id="main"> 61<div id="main">
@@ -219,7 +214,7 @@ a fascinating best-selling game is left as an exercise for the reader.
219<h2 id="zlib">Accessing the zlib Compression Library</h2> 214<h2 id="zlib">Accessing the zlib Compression Library</h2>
220<p> 215<p>
221The following code shows how to access the <a 216The following code shows how to access the <a
222href="http://zlib.net/">zlib</a> compression library from Lua code. 217href="https://zlib.net/">zlib</a> compression library from Lua code.
223We'll define two convenience wrapper functions that take a string and 218We'll define two convenience wrapper functions that take a string and
224compress or uncompress it to another string: 219compress or uncompress it to another string:
225</p> 220</p>
@@ -302,7 +297,7 @@ comes pre-installed. Since <tt>ffi.load()</tt> automatically adds any
302missing standard prefixes/suffixes, we can simply load the 297missing standard prefixes/suffixes, we can simply load the
303<tt>"z"</tt> library. On Windows it's named <tt>zlib1.dll</tt> and 298<tt>"z"</tt> library. On Windows it's named <tt>zlib1.dll</tt> and
304you'll have to download it first from the 299you'll have to download it first from the
305<a href="http://zlib.net/"><span class="ext">&raquo;</span>&nbsp;zlib site</a>. The check for 300<a href="https://zlib.net/">zlib site</a>. The check for
306<tt>ffi.os</tt> makes sure we pass the right name to 301<tt>ffi.os</tt> makes sure we pass the right name to
307<tt>ffi.load()</tt>. 302<tt>ffi.load()</tt>.
308</p> 303</p>