NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
pcontext.c
Go to the documentation of this file.
1
22
28
29#include "config.h"
30#include "mutt/lib.h"
31#include "pcontext.h"
32
38{
39 struct ParseContext *pc = MUTT_MEM_CALLOC(1, struct ParseContext);
40
41 return pc;
42}
43
49{
50 if (!pptr || !*pptr)
51 return;
52
53 FREE(pptr);
54}
#define FREE(x)
Free memory and set the pointer to NULL.
Definition memory.h:68
#define MUTT_MEM_CALLOC(n, type)
Definition memory.h:52
Convenience wrapper for the library headers.
void parse_context_free(struct ParseContext **pptr)
Free a ParseContext.
Definition pcontext.c:48
struct ParseContext * parse_context_new(void)
Create a new ParseContext.
Definition pcontext.c:37
Parse Context.
Context for config parsing (history/backtrace)
Definition pcontext.h:34