NeoMutt  2024-11-14-138-ge5ca67
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
expando.c File Reference

Pattern Expando definitions. More...

#include <stdbool.h>
#include <stdio.h>
#include "private.h"
#include "mutt/lib.h"
#include "expando/lib.h"
#include "pattern_data.h"
+ Include dependency graph for expando.c:

Go to the source code of this file.

Functions

static void pattern_description (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Pattern: pattern description - Implements get_string_t -.
 
static void pattern_expression (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
 Pattern: pattern expression - Implements get_string_t -.
 
static long pattern_number_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Pattern: Index number - Implements get_number_t -.
 

Variables

const struct ExpandoRenderCallback PatternRenderCallbacks []
 Callbacks for Pattern Expandos.
 

Detailed Description

Pattern Expando definitions.

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 expando.c.

Variable Documentation

◆ PatternRenderCallbacks

const struct ExpandoRenderCallback PatternRenderCallbacks[]
Initial value:
= {
{ -1, -1, NULL, NULL },
}
@ ED_PATTERN
Pattern ED_PAT_ ExpandoDataPattern.
Definition: domain.h:50
static long pattern_number_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Pattern: Index number - Implements get_number_t -.
Definition: expando.c:63
static void pattern_description(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Pattern: pattern description - Implements get_string_t -.
Definition: expando.c:39
static void pattern_expression(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Pattern: pattern expression - Implements get_string_t -.
Definition: expando.c:51
@ ED_PAT_DESCRIPTION
PatternEntry.desc.
Definition: private.h:40
@ ED_PAT_EXPRESSION
PatternEntry.expr.
Definition: private.h:41
@ ED_PAT_NUMBER
PatternEntry.num.
Definition: private.h:42

Callbacks for Pattern Expandos.

See also
PatternFormatDef, ExpandoDataGlobal, ExpandoDataPattern

Definition at line 75 of file expando.c.