Parse Source Commands. More...
#include "core/lib.h"
Include dependency graph for source.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| 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() -. | |
| int | source_rc (const char *rcfile_path, struct ParseContext *pc, struct ParseError *pe) |
| Read an initialization file. | |
| void | source_stack_cleanup (void) |
| Free memory from the stack used for the source command. | |
| 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. | |
| char * | mutt_get_sourced_cwd (void) |
| Get the current file path that is being parsed. | |
Parse Source 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 source.h.
| int source_rc | ( | const char * | rcfile_path, |
| struct ParseContext * | pc, | ||
| struct ParseError * | pe ) |
Read an initialization file.
| rcfile_path | Path to initialization file |
| pc | Parse Context |
| pe | Parse Errors |
| <0 | NeoMutt should pause to let the user know |
Definition at line 67 of file source.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void source_stack_cleanup | ( | void | ) |
Free memory from the stack used for the source command.
Definition at line 274 of file source.c.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
| line | Line to be parsed |
| cwd | File relative where to run the line |
| pc | Parse Context |
| pe | Parse Errors |
| CommandResult | Result e.g. MUTT_CMD_SUCCESS |
Definition at line 287 of file source.c.
Here is the call graph for this function:
Here is the caller graph for this function:| char * mutt_get_sourced_cwd | ( | void | ) |
Get the current file path that is being parsed.
| ptr | File path that is being parsed or cwd at runtime |
Definition at line 314 of file source.c.
Here is the call graph for this function:
Here is the caller graph for this function: