NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
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
28
struct
Buffer
;
29
struct
ParseContext
;
30
struct
ParseError
;
31
32
enum
CommandResult
parse_source
(
const
struct
Command
*cmd,
struct
Buffer
*line,
const
struct
ParseContext
*pc,
struct
ParseError
*pe);
33
34
int
source_rc
(
const
char
*rcfile_path,
struct
ParseContext
*pc,
struct
ParseError
*pe);
35
36
void
source_stack_cleanup
(
void
);
37
enum
CommandResult
parse_rc_line_cwd
(
const
char
*line,
char
*cwd,
struct
ParseContext
*pc,
struct
ParseError
*pe);
38
char
*
mutt_get_sourced_cwd
(
void
);
39
40
#endif
/* MUTT_COMMANDS_SOURCE_H */
41
CommandResult
CommandResult
Error codes for command_t parse functions.
Definition
command.h:37
lib.h
Convenience wrapper for the core headers.
parse_source
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
parse_rc_line_cwd
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:289
source_stack_cleanup
void source_stack_cleanup(void)
Free memory from the stack used for the source command.
Definition
source.c:274
source_rc
int source_rc(const char *rcfile_path, struct ParseContext *pc, struct ParseError *pe)
Read an initialization file.
Definition
source.c:64
mutt_get_sourced_cwd
char * mutt_get_sourced_cwd(void)
Get the current file path that is being parsed.
Definition
source.c:317
Buffer
String manipulation buffer.
Definition
buffer.h:36
Command
Definition
command.h:161
ParseContext
Context for config parsing (history/backtrace).
Definition
pcontext.h:34
ParseError
Detailed error information from config parsing.
Definition
perror.h:34