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
37
struct
ParseContext
*
parse_context_new
(
void
)
38
{
39
struct
ParseContext
*pc =
MUTT_MEM_CALLOC
(1,
struct
ParseContext
);
40
41
return
pc;
42
}
43
48
void
parse_context_free
(
struct
ParseContext
**pptr)
49
{
50
if
(!pptr || !*pptr)
51
return
;
52
53
FREE
(pptr);
54
}
FREE
#define FREE(x)
Free memory and set the pointer to NULL.
Definition
memory.h:68
MUTT_MEM_CALLOC
#define MUTT_MEM_CALLOC(n, type)
Definition
memory.h:52
lib.h
Convenience wrapper for the library headers.
parse_context_free
void parse_context_free(struct ParseContext **pptr)
Free a ParseContext.
Definition
pcontext.c:48
parse_context_new
struct ParseContext * parse_context_new(void)
Create a new ParseContext.
Definition
pcontext.c:37
pcontext.h
Parse Context.
ParseContext
Context for config parsing (history/backtrace)
Definition
pcontext.h:34