Merge branch 'master' into v2.1
This commit is contained in:
@@ -216,7 +216,7 @@ a fascinating best-selling game is left as an exercise for the reader.
|
||||
<h2 id="zlib">Accessing the zlib Compression Library</h2>
|
||||
<p>
|
||||
The following code shows how to access the <a
|
||||
href="https://zlib.net/">zlib</a> compression library from Lua code.
|
||||
href="https://zlib.net/"><span class="ext">»</span> zlib</a> compression library from Lua code.
|
||||
We'll define two convenience wrapper functions that take a string and
|
||||
compress or uncompress it to another string:
|
||||
</p>
|
||||
@@ -299,7 +299,7 @@ comes pre-installed. Since <tt>ffi.load()</tt> automatically adds any
|
||||
missing standard prefixes/suffixes, we can simply load the
|
||||
<tt>"z"</tt> library. On Windows it's named <tt>zlib1.dll</tt> and
|
||||
you'll have to download it first from the
|
||||
<a href="https://zlib.net/">zlib site</a>. The check for
|
||||
<a href="https://zlib.net/"><span class="ext">»</span> zlib site</a>. The check for
|
||||
<tt>ffi.os</tt> makes sure we pass the right name to
|
||||
<tt>ffi.load()</tt>.
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user