NeoMutt  2024-04-16-36-g75b6fb
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
node_padding.h
Go to the documentation of this file.
1
24#ifndef MUTT_EXPANDO_NODE_PADDING_H
25#define MUTT_EXPANDO_NODE_PADDING_H
26
27#include "definition.h"
28
29struct ExpandoNode;
31
43{
47};
48
55{
58};
59
64{
66};
67
68struct ExpandoNode *node_padding_parse(const char *s, const char **parsed_until, int did, int uid, ExpandoParserFlags flags, struct ExpandoParseError *error);
69
70void node_padding_repad(struct ExpandoNode **parent);
71
72#endif /* MUTT_EXPANDO_NODE_PADDING_H */
Define an Expando format string.
uint8_t ExpandoParserFlags
Flags for expando_parse(), e.g. EP_CONDITIONAL.
Definition: definition.h:41
struct ExpandoNode * node_padding_parse(const char *s, const char **parsed_until, int did, int uid, ExpandoParserFlags flags, struct ExpandoParseError *error)
Parse a Padding Expando - Implements ExpandoDefinition::parse() -.
Definition: node_padding.c:232
void node_padding_repad(struct ExpandoNode **parent)
Rearrange Padding in a tree of ExpandoNodes.
Definition: node_padding.c:275
ENPad
Names for the Padding's children.
Definition: node_padding.h:55
@ ENP_LEFT
Index of Left-Hand Nodes.
Definition: node_padding.h:56
@ ENP_RIGHT
Index of Right-Hand Nodes.
Definition: node_padding.h:57
ExpandoPadType
Padding type.
Definition: node_padding.h:43
@ EPT_FILL_EOL
Fill to the end-of-line.
Definition: node_padding.h:44
@ EPT_SOFT_FILL
Soft-fill: right-hand-side will be truncated.
Definition: node_padding.h:46
@ EPT_HARD_FILL
Hard-fill: left-hand-side will be truncated.
Definition: node_padding.h:45
Basic Expando Node.
Definition: node.h:67
int uid
Unique ID, e.g. ED_EMA_SIZE.
Definition: node.h:71
int did
Domain ID, e.g. ED_EMAIL.
Definition: node.h:70
Buffer for parsing errors.
Definition: parse.h:34
Private data for a Padding Node.
Definition: node_padding.h:64
enum ExpandoPadType pad_type
Padding type.
Definition: node_padding.h:65