Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add prefix to <struct key_def> and Lua code buffer
It allows the module be loaded on tarantool versions, which already have built-in key_def module without name collisions. In fact, two problems are solved: 1. After symbols unhiding internal key_def_lua buffer with Lua code becomes visible and is preferred over module shipped one (on Linux). 2. Modification of cdata metatype is not allowed in LuaJIT, so we should use another structure name for Lua (not <struct key_def>). The reason is that built-in module is already loadedand already calls its ffi.metatype() on <struct key_def>.
- Loading branch information
1 parent
bd5489c
commit 645c890
Showing
4 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters