Artifact 2e6d6af1687b8ecbb31bfcf71fad5756c6c01515:
- File src/script/lua.h — part of check-in [0403e0e69a] at 2013-11-19 10:12:33 on branch develop — Massively overhaul major parts of the scripting systems, and move all include files to their respective include/ subdirectories. With v0.4 around the corner, a lot of the more low-level subsystems are being worked out, such as correctly resolving dependencies using Tups dependency resolving system as a base concept, and also working on implementing DHT as well as PEX and LSD in the network system for a fully selfhosting package manager. Now for the changes of this commit: Add spm.tar to the ignore glob. Add 'package' target to Sourcefiles. Add configuration options to selectively build either the library or both library and binary. Add command processor check (this is required for the application to run, but is it needed?). Move headers to their respective subdirectories in include/ and correct C source files for this. Fix using 'y/n' instead of '1/0' in configuration, causing issues in generated C header 'config.h'. Fix script.c not building when any script engine support was disabled. Fix option parsing potentially causing a segfault. Fix not using spm_root variable when working with the root of SPM. Update 'install' target to install tinycc to the PREFIX directory as well (required when building with TinyCC enabled). Update configuration to build with TcL disabled by default (support will continue). Remove target 'info'. (user: mastersrp size: 407)
#ifndef SPM_SCRIPT_LUA_H #define SPM_SCRIPT_LUA_H #include "../config.h" #include <lua.h> #include <lauxlib.h> #include <lualib.h> int spm_script_lua_catcherror( int ret ); int spm_script_lua_init(); int spm_script_lua_dofile( const char *file ); int spm_script_lua_dofunction( const char *func ); int spm_script_lua_dostring( const char *str ); int spm_script_lua_deinit(); #endif /* SPM_SCRIPT_LUA_H */