NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
source.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_COMMANDS_SOURCE_H
24#define MUTT_COMMANDS_SOURCE_H
25
26#include "core/lib.h"
27
28struct Buffer;
29struct ParseContext;
30struct ParseError;
31
32enum CommandResult parse_source(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe);
33
34int source_rc(const char *rcfile_path, struct ParseContext *pc, struct ParseError *pe);
35
36void source_stack_cleanup(void);
37enum CommandResult parse_rc_line_cwd(const char *line, char *cwd, struct ParseContext *pc, struct ParseError *pe);
38char *mutt_get_sourced_cwd(void);
39
40#endif /* MUTT_COMMANDS_SOURCE_H */
41
CommandResult
Error codes for command_t parse functions.
Definition command.h:37
Convenience wrapper for the core headers.
enum CommandResult parse_source(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'source' command - Implements Command::parse() -.
Definition source.c:229
enum CommandResult parse_rc_line_cwd(const char *line, char *cwd, struct ParseContext *pc, struct ParseError *pe)
Parse and run a muttrc line in a relative directory.
Definition source.c:287
void source_stack_cleanup(void)
Free memory from the stack used for the source command.
Definition source.c:274
int source_rc(const char *rcfile_path, struct ParseContext *pc, struct ParseError *pe)
Read an initialization file.
Definition source.c:67
char * mutt_get_sourced_cwd(void)
Get the current file path that is being parsed.
Definition source.c:314
String manipulation buffer.
Definition buffer.h:36
Context for config parsing (history/backtrace)
Definition pcontext.h:34
Detailed error information from config parsing.
Definition perror.h:34