NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
pcontext.h File Reference

Parse Context. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ParseContext
 Context for config parsing (history/backtrace) More...
 

Functions

struct ParseContextparse_context_new (void)
 Create a new ParseContext.
 
void parse_context_free (struct ParseContext **pptr)
 Free a ParseContext.
 

Detailed Description

Parse Context.

Authors
  • Richard Russon

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 pcontext.h.

Function Documentation

◆ parse_context_new()

struct ParseContext * parse_context_new ( void )

Create a new ParseContext.

Return values
ptrNew ParseContext

Definition at line 37 of file pcontext.c.

38{
39 struct ParseContext *pc = MUTT_MEM_CALLOC(1, struct ParseContext);
40
41 return pc;
42}
#define MUTT_MEM_CALLOC(n, type)
Definition memory.h:52
Context for config parsing (history/backtrace)
Definition pcontext.h:34
+ Here is the caller graph for this function:

◆ parse_context_free()

void parse_context_free ( struct ParseContext ** pptr)

Free a ParseContext.

Parameters
pptrParseContext to free

Definition at line 48 of file pcontext.c.

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
+ Here is the caller graph for this function: