iproto: export IPROTO constants to Lua automatically
Currently, to export IPROTO constants to Lua, we define a translation table in C manually. As a result, some constants are forgotten and some are exported with mistakes. Fortunately, we have a mechanism to generate enums and its stringified names in compile-time. Let's rewrite iproto constants using such mechanism and generate translation table automatically. Closes #8443 Closes #8574 Closes #8577 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-8574-export-iproto-auth-type.md 3 additions, 0 deletionschangelogs/unreleased/gh-8574-export-iproto-auth-type.md
- changelogs/unreleased/gh-8577-strip-prefix-pagination-iproto-keys.md 4 additions, 0 deletions...unreleased/gh-8577-strip-prefix-pagination-iproto-keys.md
- src/box/iproto_constants.c 39 additions, 0 deletionssrc/box/iproto_constants.c
- src/box/iproto_constants.h 289 additions, 237 deletionssrc/box/iproto_constants.h
- src/box/iproto_features.c 7 additions, 0 deletionssrc/box/iproto_features.c
- src/box/iproto_features.h 21 additions, 18 deletionssrc/box/iproto_features.h
- src/box/lua/iproto.c 62 additions, 187 deletionssrc/box/lua/iproto.c
- test/box-luatest/gh_7894_export_iproto_constants_and_features_test.lua 4 additions, 3 deletions...est/gh_7894_export_iproto_constants_and_features_test.lua
Loading
Please register or sign in to comment