Lua Commands. More...
#include "config.h"#include <lauxlib.h>#include <lua.h>#include <lualib.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include "mutt/lib.h"#include "config/lib.h"#include "core/lib.h"#include "lib.h"#include "parse/lib.h"#include "muttlib.h"#include "version.h"
Include dependency graph for commands.c:Go to the source code of this file.
Macros | |
| #define | LUA_COMPAT_ALL |
| #define | LUA_COMPAT_5_1 |
Functions | |
| bool | lua_init_state (lua_State **l) |
| Initialise a Lua State. | |
| static enum CommandResult | parse_lua (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'lua' command - Implements Command::parse() -. | |
| static enum CommandResult | parse_lua_source (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'lua-source' command - Implements Command::parse() -. | |
| void | lua_init (void) |
| Setup feature commands. | |
| void | lua_cleanup (void) |
| Clean up Lua. | |
Variables | |
| lua_State * | LuaState |
| Global Lua State. | |
| static const struct Command | LuaCommands [] |
| List of NeoMutt commands to register. | |
Lua Commands.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file commands.c.
| #define LUA_COMPAT_ALL |
Definition at line 30 of file commands.c.
| #define LUA_COMPAT_5_1 |
Definition at line 33 of file commands.c.
| bool lua_init_state | ( | lua_State ** | l | ) |
Initialise a Lua State.
| [out] | l | Lua State |
| true | Successful |
Definition at line 437 of file lua.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void lua_init | ( | void | ) |
Setup feature commands.
Definition at line 128 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void lua_cleanup | ( | void | ) |
|
static |
List of NeoMutt commands to register.
Definition at line 117 of file commands.c.