Token values with a comment correctly have fy_atom_is_set() to TRUE, but trying to get the comment text from a parser event loop with the new function fy_token_get_comment() only returns a pointer to rubbish...
Please, take a look at my use of fy_atom_format_text() since something must be wrong but can't find it.
I've been trying to add an API to get the parsed comments, via adding this commit https://github.com/MRPT/libfyaml/commit/2e67a1528fabb9f8478ebadc66d744a3b4227bea both, over your project "master", and over the "comment-wip" branch (both result in the same error described next).
Token values with a comment correctly have
fy_atom_is_set()
to TRUE, but trying to get the comment text from a parser event loop with the new functionfy_token_get_comment()
only returns a pointer to rubbish...Please, take a look at my use of
fy_atom_format_text()
since something must be wrong but can't find it.PS: Thanks for this amazing library!