Prototype for a function to parse color config. More...
Functions | |
enum CommandResult | parse_color_pair (struct Buffer *buf, struct Buffer *s, struct AttrColor *ac, struct Buffer *err) |
Parse a pair of colours - Implements parser_callback_t -. | |
enum CommandResult | parse_attr_spec (struct Buffer *buf, struct Buffer *s, struct AttrColor *ac, struct Buffer *err) |
Parse an attribute description - Implements parser_callback_t -. | |
Prototype for a function to parse color config.
[in] | buf | Temporary Buffer space |
[in] | s | Buffer containing string to be parsed |
[out] | ac | Colour |
[out] | err | Buffer for error messages |
0 | Success |
-1 | Error |
enum CommandResult parse_color_pair | ( | struct Buffer * | buf, |
struct Buffer * | s, | ||
struct AttrColor * | ac, | ||
struct Buffer * | err | ||
) |
Parse a pair of colours - Implements parser_callback_t -.
Parse a pair of colours, e.g. "red default"
Definition at line 281 of file parse_color.c.
enum CommandResult parse_attr_spec | ( | struct Buffer * | buf, |
struct Buffer * | s, | ||
struct AttrColor * | ac, | ||
struct Buffer * | err | ||
) |
Parse an attribute description - Implements parser_callback_t -.
Definition at line 325 of file parse_color.c.