[PATCH] Add a VFSFromYAML class and a parser to create it

Dmitri Gribenko gribozavr at gmail.com
Fri Feb 21 09:09:26 PST 2014

On Fri, Feb 21, 2014 at 5:02 PM, Argyrios Kyrtzidis <kyrtzidis at apple.com> wrote:
> The problem with a simple JSON field is that it is not clear that we are depending on the presence of something at the beginning of the file in order to interpret it as JSON.
> It is more clear to say
>         the file should have this at the top:
>                 %TAG ! tag:vfs-yaml-file…
> vs
>         the file should have this at the top:
>                 {
>                         ‘version’: 1

I think it would be easy to do the check the other way.  If we have a
signature in the binary file that is not valid JSON, we will be
deciding the file format (text/binary) based on that signature.


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the cfe-commits mailing list