aboutsummaryrefslogtreecommitdiff
path: root/doc/ext_ffi_tutorial.html
diff options
context:
space:
mode:
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 e979ffea..aab9c234 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>
@@ -52,17 +52,12 @@ td.idiomlua b { font-weight: normal; color: #2142bf; }
52</li></ul> 52</li></ul>
53</li><li> 53</li><li>
54<a href="status.html">Status</a> 54<a href="status.html">Status</a>
55<ul><li>
56<a href="changes.html">Changes</a>
57</li></ul>
58</li><li> 55</li><li>
59<a href="faq.html">FAQ</a> 56<a href="faq.html">FAQ</a>
60</li><li> 57</li><li>
61<a href="http://luajit.org/performance.html">Performance <span class="ext">&raquo;</span></a>
62</li><li>
63<a href="http://wiki.luajit.org/">Wiki <span class="ext">&raquo;</span></a> 58<a href="http://wiki.luajit.org/">Wiki <span class="ext">&raquo;</span></a>
64</li><li> 59</li><li>
65<a href="http://luajit.org/list.html">Mailing List <span class="ext">&raquo;</span></a> 60<a href="https://luajit.org/list.html">Mailing List <span class="ext">&raquo;</span></a>
66</li></ul> 61</li></ul>
67</div> 62</div>
68<div id="main"> 63<div id="main">
@@ -221,7 +216,7 @@ a fascinating best-selling game is left as an exercise for the reader.
221<h2 id="zlib">Accessing the zlib Compression Library</h2> 216<h2 id="zlib">Accessing the zlib Compression Library</h2>
222<p> 217<p>
223The following code shows how to access the <a 218The following code shows how to access the <a
224href="http://zlib.net/">zlib</a> compression library from Lua code. 219href="https://zlib.net/">zlib</a> compression library from Lua code.
225We'll define two convenience wrapper functions that take a string and 220We'll define two convenience wrapper functions that take a string and
226compress or uncompress it to another string: 221compress or uncompress it to another string:
227</p> 222</p>
@@ -304,7 +299,7 @@ comes pre-installed. Since <tt>ffi.load()</tt> automatically adds any
304missing standard prefixes/suffixes, we can simply load the 299missing standard prefixes/suffixes, we can simply load the
305<tt>"z"</tt> library. On Windows it's named <tt>zlib1.dll</tt> and 300<tt>"z"</tt> library. On Windows it's named <tt>zlib1.dll</tt> and
306you'll have to download it first from the 301you'll have to download it first from the
307<a href="http://zlib.net/"><span class="ext">&raquo;</span>&nbsp;zlib site</a>. The check for 302<a href="https://zlib.net/">zlib site</a>. The check for
308<tt>ffi.os</tt> makes sure we pass the right name to 303<tt>ffi.os</tt> makes sure we pass the right name to
309<tt>ffi.load()</tt>. 304<tt>ffi.load()</tt>.
310</p> 305</p>