yaml writer: implement type hinting
This commit is contained in:
parent
2ec3a39c89
commit
95f0ea4895
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ lif_yaml_write_node(struct lif_yaml_node *node, FILE *f, size_t indent)
|
||||||
switch (node->value_type)
|
switch (node->value_type)
|
||||||
{
|
{
|
||||||
case LIF_YAML_STRING:
|
case LIF_YAML_STRING:
|
||||||
fprintf(f, "%s\n", node->value);
|
fprintf(f, "!!str %s\n", node->value);
|
||||||
break;
|
break;
|
||||||
case LIF_YAML_OBJECT:
|
case LIF_YAML_OBJECT:
|
||||||
fprintf(f, "\n");
|
fprintf(f, "\n");
|
||||||
|
|
Loading…
Reference in a new issue