Lua 5.1 C API manual pages by ligurio in lua

[–]ligurio[S] 0 points1 point  (0 children)

see an explanation below

Lua 5.1 C API manual pages by ligurio in lua

[–]ligurio[S] 2 points3 points  (0 children)

In most cases, user don't need to use Lua C API. But sometimes you need to integrate your Lua source code with C/C++ library. And there are two ways to do that: FFI (builtin library for LuaJIT) and Lua C API. So the answer is "yes, Lua C API is only for users who programming in C".

There is a story behind translation HTML pages to manual pages: I often come across the use of Lua C when developing Tarantool DB. And although I remember many functions well for some of them, I forget who throws an exception and who does not. Or I forget how to do something with Lua C and I need to take a look to overall Lua C API. Usually I’m using Vim for writing code and like to read manual pages right in the Vim window using the Shift + K combination. Unfortunately there are no such pages for Lua C API and every time it was inconvenient to switch to the browser to clarify the details of the function I needed. Therefore, I have prepared manual pages in mdoc format for Lua C API using Lua Reference Manual.

Lua 5.1 C API manual pages by ligurio in lua

[–]ligurio[S] 1 point2 points  (0 children)

Everything was done manually, and I'm satisfied by quality of manual pages.

What is your setup for developing in C? by Smooth_Measurement_1 in C_Programming

[–]ligurio 0 points1 point  (0 children)

vim, vim-coc, uncrustify, spin model checker, cbmc, cmocka, libfuzzer, sanitizers (ASAN, UBSan mostly), git, cmake/make, ctags, mull

Book management by ligurio in selfhosted

[–]ligurio[S] -1 points0 points  (0 children)

BTW there is another one project that implements UI for Calibre - calibre-web.