allow generating most cdefs for lua
Motivation: maintaining these by hand in kres.lua is tricky, as just inserting or reordering the structures can do anything and isn't detected in general. For example, `rr_array_t::at` has always "missed a star". A couple libknot structure fields have apparently changed name since the old definitions were written; in most cases I renamed them in *.lua. The file daemon/lua/kres-gen.lua will be regenerated only if explicitly deleted. That requires building with debug symbols and gdb on $PATH.
Showing
- daemon/daemon.mk 7 additions, 2 deletionsdaemon/daemon.mk
- daemon/lua/kres-gen.lua 195 additions, 0 deletionsdaemon/lua/kres-gen.lua
- daemon/lua/kres-gen.sh 127 additions, 0 deletionsdaemon/lua/kres-gen.sh
- daemon/lua/kres.lua 10 additions, 209 deletionsdaemon/lua/kres.lua
- lib/README.rst 2 additions, 2 deletionslib/README.rst
- lib/lib.mk 2 additions, 0 deletionslib/lib.mk
- lib/rplan.h 1 addition, 0 deletionslib/rplan.h
- modules/policy/README.rst 1 addition, 1 deletionmodules/policy/README.rst
- modules/policy/zonefile.lua 1 addition, 1 deletionmodules/policy/zonefile.lua
- modules/predict/predict.lua 2 additions, 2 deletionsmodules/predict/predict.lua
- scripts/gen-cdefs.sh 51 additions, 0 deletionsscripts/gen-cdefs.sh
- scripts/kresd-host.lua 1 addition, 1 deletionscripts/kresd-host.lua