diff options
author | Kirill Simonov <xi@resolvent.net> | 2006-07-28 20:09:34 +0000 |
---|---|---|
committer | Kirill Simonov <xi@resolvent.net> | 2006-07-28 20:09:34 +0000 |
commit | e35af832e9765e72b3ee3e337b2bfb958e3c5962 (patch) | |
tree | 852b353dfaeb1afad77497c1a84dd73c5578f6bd /include/yaml.h | |
parent | 5a00d8fe664672493e14535cdca52d2fb69a0032 (diff) | |
download | libyaml-git-e35af832e9765e72b3ee3e337b2bfb958e3c5962.tar.gz |
Implement everything except tag and scalar writers.
Diffstat (limited to 'include/yaml.h')
-rw-r--r-- | include/yaml.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/yaml.h b/include/yaml.h index 6284068..0408a67 100644 --- a/include/yaml.h +++ b/include/yaml.h @@ -1203,6 +1203,48 @@ typedef struct { /** If the last character was an indentation character (' ', '-', '?', ':')? */ int indention; + /** Anchor analysis. */ + struct { + /** The anchor value. */ + yaml_char_t *anchor; + /** The anchor length. */ + size_t anchor_length; + /** Is it an alias? */ + int alias; + } anchor_data; + + /** Tag analysis. */ + struct { + /** The tag handle. */ + yaml_char_t *handle; + /** The tag handle length. */ + size_t handle_length; + /** The tag suffix. */ + yaml_char_t *suffix; + /** The tag suffix length. */ + size_t suffix_length; + } tag_data; + + /** Scalar analysis. */ + struct { + /** The scalar value. */ + yaml_char_t *value; + /** The scalar length. */ + size_t length; + /** Does the scalar contain line breaks? */ + int multiline; + /** Can the scalar be expessed in the flow plain style? */ + int flow_plain_allowed; + /** Can the scalar be expressed in the block plain style? */ + int block_plain_allowed; + /** Can the scalar be expressed in the single quoted style? */ + int single_quoted_allowed; + /** Can the scalar be expressed in the literal or folded styles? */ + int block_allowed; + /** The output style. */ + yaml_scalar_style_t style; + } scalar_data; + /** * @} */ |