94 buf_printf(err,
_(
"%s: too many arguments"),
"source");
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
void buf_reset(struct Buffer *buf)
Reset an existing Buffer.
size_t buf_copy(struct Buffer *dst, const struct Buffer *src)
Copy a Buffer's contents to another Buffer.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
CommandResult
Error codes for command_t parse functions.
@ MUTT_CMD_SUCCESS
Success: Command worked.
@ MUTT_CMD_ERROR
Error: Can't help the user.
@ MUTT_CMD_WARNING
Warning: Help given to the user.
Convenience wrapper for the config headers.
bool commands_register(struct CommandArray *ca, const struct Command *cmds)
Add commands to Commands array.
Convenience wrapper for the core headers.
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() -.
static enum CommandResult parse_lua(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'lua' command - Implements Command::parse() -.
#define mutt_debug(LEVEL,...)
@ LL_DEBUG2
Log at debug level 2.
bool lua_init_state(lua_State **l)
Initialise a Lua State.
void lua_init(void)
Setup feature commands.
lua_State * LuaState
Global Lua State.
void lua_cleanup(void)
Clean up Lua.
static const struct Command LuaCommands[]
List of NeoMutt commands to register.
Integrated Lua scripting.
Convenience wrapper for the library headers.
void buf_expand_path(struct Buffer *buf)
Create the canonical path.
Some miscellaneous functions.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
String manipulation buffer.
char * dptr
Current read/write position.
char * data
Pointer to data.
intptr_t data
Data or flags to pass to the command.
Container for Accounts, Notifications.
struct CommandArray commands
NeoMutt commands.
Display version and copyright about NeoMutt.