Skip to content

Commit

Permalink
Part of 'Other small fixes/changes'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skif-off committed Feb 2, 2025
1 parent 2d177e7 commit 8e17aa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions doc/en/lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,9 @@ <h2><a name="preface">1. Introduction</a></h2>
<div>
<h2><a name="dllrequired">2. DLL required</a></h2>
<p>In order to interpret Lua script file, we need to have a Lua DLL file, Double Commander supports versions 5.1 - 5.4.</p>
<p>By default DC looks for a file with name <tt>lua5.1.dll</tt> (Windows), <tt>liblua5.1.so.0</tt> (Unix or GNU/Linux) or <tt>liblua5.1.dylib</tt> (macOS) in its directory and in the system directory. We can change the file name (and path) in the <a href="configuration.html#luapathtolibrary">Lua library file to use</a> parameter.</p>
<p>We can use DLL file from <a href="https://luajit.org/" target="_blank">LuaJIT project</a>.
LuaJIT combines a high-speed interpreter, written in assembler, with a state-of-the-art JIT compiler. Also we get FFI library, which allows calling external C functions and using C data structures from pure Lua code.</p>
<p>We can use DLL file from <a href="https://luajit.org/" target="_blank">LuaJIT project</a>. LuaJIT combines a high-speed interpreter, written in assembler, with a state-of-the-art JIT compiler. Also we get FFI library, which allows calling external C functions and using C data structures from pure Lua code.</p>
<p>DC distributives for Windows have Lua DLL by default (in DC 0.9.7 and newer from LuaJIT project), in other cases we may find and install it through our packages manager or compile it. If we're using a 64-bits version of DC, the DLL must be the 64-bits version as well.</p>
<p>The library name must be specified in the value of the <a href="configuration.html#ConfigPlugins">Lua library file to use</a> option.</p>
<p>By default DC looks for a file with name <tt>lua5.1.dll</tt> (Windows), <tt>liblua5.1.so.0</tt> (Unix or GNU/Linux) or <tt>liblua5.1.dylib</tt> (macOS) in its directory and in the system directory. We can change the file name (and path) in the <a href="configuration.html#luapathtolibrary">Lua library file to use</a> parameter.</p>
<p class="navback"><a href="#topofpage">(back to top)</a></p>
</div>

Expand Down
6 changes: 2 additions & 4 deletions doc/ru/lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,9 @@ <h2><a name="preface">1. Введение</a></h2>
<div>
<h2><a name="dllrequired">2. Необходимая DLL</a></h2>
<p>Чтобы использовать скрипты Lua, нам требуется интерпретатор Lua, Double Commander поддерживает версии 5.1 - 5.4.</p>
<p>По умолчанию DC ищет файл с именем <tt>lua5.1.dll</tt> (Windows), <tt>liblua5.1.so.0</tt> (Unix или GNU/Linux) или <tt>liblua5.1.dylib</tt> (macOS) в своём каталоге и в системном. Мы можем изменить имя файла (и путь) в параметре <a href="configuration.html#luapathtolibrary">Библиотека Lua</a>.</p>
<p>Мы можем использовать DLL-файл <a href="https://luajit.org/" target="_blank">проекта LuaJIT</a>.
LuaJIT сочетает в себе высокоскоростной интерпретатор, написанный на ассемблере, и JIT-компилятор. Также мы получаем библиотеку FFI: с её помощью в скриптах можно будет вызывать внешние функции C и использовать структуры данных C.</p>
<p>Мы можем использовать DLL-файл <a href="https://luajit.org/" target="_blank">проекта LuaJIT</a>. LuaJIT сочетает в себе высокоскоростной интерпретатор, написанный на ассемблере, и JIT-компилятор. Также мы получаем библиотеку FFI: с её помощью в скриптах можно будет вызывать внешние функции C и использовать структуры данных C.</p>
<p>Дистрибутивы DC для Windows включают в себя DLL-файл Lua (в DC 0.9.7 и новее из проекта LuaJIT), в иных случаях мы можем найти и установить его с помощью менеджера пакетов или скомпилировать. Если используем 64-битную версию DC, то DLL-файл также должен быть 64-битным.</p>
<p>Имя библиотеки должно быть указано в значении параметра <a href="configuration.html#ConfigPlugins">Библиотека Lua</a>.</p>
<p>По умолчанию DC ищет файл с именем <tt>lua5.1.dll</tt> (Windows), <tt>liblua5.1.so.0</tt> (Unix или GNU/Linux) или <tt>liblua5.1.dylib</tt> (macOS) в своём каталоге и в системном. Мы можем изменить имя файла (и путь) в параметре <a href="configuration.html#luapathtolibrary">Библиотека Lua</a>.</p>
<p class="navback"><a href="#topofpage">(наверх)</a></p>
</div>

Expand Down

0 comments on commit 8e17aa4

Please sign in to comment.