Skip to content

Commit

Permalink
upgrade header files to Lua 5.4 (lite-xl#1436)
Browse files Browse the repository at this point in the history
* refactor(native_api_header): upgrade header files to Lua 5.4.

Almost all of the symbols in this file was from 5.2. This will obviously
not work because some function signatures have changed and some have
completely wrong return values, etc.
This commit updates the header files to Lua 5.4 based on the source code
and changes a few things.

* refactor(plugin_api): move the header into include/

* fix(lite_xl_plugin_api.h): include stdlib to avoid errors with exit

* refactor(lite_xl_plugin_api.h): do not return in SYMBOL_WRAP_CALL

* fix(lite_xl_plugin_api.h): fix wrong way of passing varargs

* fix(lite_xl_plugin_api.h): fix differing lua_rawlen definition

* fix(lite_xl_plugin_api.h): fix fallback function signature

* fix(lite_xl_plugin_api.h): fix conversion from void * to function pointer
  • Loading branch information
takase1121 authored Apr 11, 2023
1 parent d4bf839 commit c938241
Show file tree
Hide file tree
Showing 2 changed files with 2,563 additions and 1,124 deletions.
Loading

0 comments on commit c938241

Please sign in to comment.