Manually creating a Document in C

James Simmons <[email protected]> Tue, 5 Nov 2019 10:05:09 -0700
Newsgroups gmane.text.yaml.general
Message-ID <CAOdCWHxea5n9jbys_MR_-y-ypmkajmtTdB0nb2oyyBpnpenj+w@mail.gmail.com>
--===============2348101676261246577==
Content-Type: multipart/alternative; boundary="0000000000009a326905969c74cf"

--0000000000009a326905969c74cf
Content-Type: text/plain; charset="UTF-8"

Hello

     I work on a project that wants to move to support heavily YAML in it
binary tools. Currently I'm trying to take the tools arguments and build a
YAML document around it.
For example  the YAML doc in human readable format would be

*stats:*
*- source: MGC172.30.248.30@tcp;*

The code is:

const char *group = "stats";

yaml_document_t request;


memset(&request, *0*, *sizeof*(request));


*if* (!yaml_document_initialize(&request, *NULL*, *NULL*, *NULL*,

*    1*, *1*))

   *return* -*EINVAL*;


map = yaml_document_add_mapping(&request,

                               (yaml_char_t *)YAML_MAP_TAG,

                                YAML_BLOCK_MAPPING_STYLE);

*if* (!map)

   *return* -*EINVAL*;


key = yaml_document_add_scalar(&request,

                               (yaml_char_t *)YAML_STR_TAG,

                               (yaml_char_t *)group,

                               strlen(group),

                               YAML_PLAIN_SCALAR_STYLE);

*if* (!key)

   *return* -*EINVAL*;


value = yaml_document_add_scalar(&request,

                               (yaml_char_t *)YAML_STR_TAG,

                               (yaml_char_t *)*""*, *0*,

                               YAML_PLAIN_SCALAR_STYLE);

*if* (!value)

   *return* -*EINVAL*;


*if* (!yaml_document_append_mapping_pair(&request, map, key,

                                       value))

   *return* -*EINVAL*;


seq = yaml_document_add_sequence(&request,

                               (yaml_char_t *)YAML_SEQ_TAG,

                                YAML_BLOCK_SEQUENCE_STYLE);

*if* (!seq)

   *return* -*EINVAL*;


map = yaml_document_add_mapping(&request,

                               (yaml_char_t *)YAML_MAP_TAG,

                               YAML_BLOCK_MAPPING_STYLE);

*if* (!map)

   *return* -*EINVAL*;


*if* (!yaml_document_append_sequence_item(&request, seq,map))

   *return* -*EINVAL*;


key = yaml_document_add_scalar(&request,

                               (yaml_char_t *)YAML_STR_TAG,

                               (yaml_char_t *)*"source"*, *6*,

                               YAML_PLAIN_SCALAR_STYLE);

*if* (!key)

    *return* -*EINVAL*;


value = yaml_document_add_scalar(&request,

                               (yaml_char_t *)YAML_STR_TAG,

                     (yaml_char_t*)*"MGC172.30.248.30@tcp"*,

                                *20*,

                                YAML_PLAIN_SCALAR_STYLE);

*if* (!value)

   *return* -*EINVAL*;


*if* (!yaml_document_append_mapping_pair(&request, map, key,
                         value))

    *return* -*EINVAL*;


Currently only "stats:" is printed. I have searched for someone else doing
this and it appears I'm the only one trying. Do you know what I'm doing
wrong? Thank you.

--0000000000009a326905969c74cf
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello<div><br></div><div>=C2=A0 =C2=A0 =C2=A0I work on a p=
roject that wants to move to support heavily YAML in it binary tools. Curre=
ntly I&#39;m trying to take the tools arguments and build a YAML document a=
round=C2=A0it.</div><div>For example=C2=A0 the YAML doc in human readable f=
ormat would be</div><div><b style=3D"font-variant-ligatures:no-common-ligat=
ures;color:rgb(51,187,200);font-family:Menlo;font-size:14px"><br></b></div>=
<div><b style=3D"font-variant-ligatures:no-common-ligatures;color:rgb(51,18=
7,200);font-family:Menlo;font-size:14px">stats:</b></div><div><b style=3D"f=
ont-variant-ligatures:no-common-ligatures;color:rgb(51,187,200);font-family=
:Menlo;font-size:14px">- source: MGC172.30.248.30@tcp;</b><br></div><div><b=
r></div><div>The code is:</div><div><br></div><div>const char *group =3D &q=
uot;stats&quot;;</div><div>





<p class=3D"gmail-p1" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:no=
rmal;font-family:Menlo;color:rgb(0,0,0)"><span class=3D"gmail-s1" style=3D"=
font-variant-ligatures:no-common-ligatures">yaml_document_t request;</span>=
</p><p class=3D"gmail-p1" style=3D"margin:0px;font-variant-numeric:normal;f=
ont-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-heigh=
t:normal;font-family:Menlo;color:rgb(0,0,0)"><span class=3D"gmail-s1" style=
=3D"font-variant-ligatures:no-common-ligatures"><br></span></p><p class=3D"=
gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);background-c=
olor:rgb(255,255,255)"><span class=3D"gmail-s1" style=3D"font-variant-ligat=
ures:no-common-ligatures">memset(&amp;request, </span><span class=3D"gmail-=
s2" style=3D"font-variant-ligatures:no-common-ligatures;color:rgb(213,59,21=
1)"><b>0</b></span><span class=3D"gmail-s1" style=3D"font-variant-ligatures=
:no-common-ligatures">, </span><span class=3D"gmail-s3" style=3D"font-varia=
nt-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>sizeof</b></span=
><span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatur=
es">(request));</span></p><p class=3D"gmail-p2" style=3D"margin:0px;font:14=
px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px=
"><span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatu=
res"></span><br></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Men=
lo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class=3D"gmail=
-s3" style=3D"font-variant-ligatures:no-common-ligatures;color:rgb(175,173,=
36)"><b>if</b></span><span class=3D"gmail-s1" style=3D"font-variant-ligatur=
es:no-common-ligatures"> (!yaml_document_initialize(&amp;request, </span><s=
pan class=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatures;=
color:rgb(213,59,211)"><b>NULL</b></span><span class=3D"gmail-s1" style=3D"=
font-variant-ligatures:no-common-ligatures">, </span><span class=3D"gmail-s=
2" style=3D"font-variant-ligatures:no-common-ligatures;color:rgb(213,59,211=
)"><b>NULL</b></span><span class=3D"gmail-s1" style=3D"font-variant-ligatur=
es:no-common-ligatures">, </span><span class=3D"gmail-s2" style=3D"font-var=
iant-ligatures:no-common-ligatures;color:rgb(213,59,211)"><b>NULL</b></span=
><span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatur=
es">,=C2=A0=C2=A0</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:=
14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class=
=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatures;color:rgb=
(213,59,211)"><b>=C2=A0 =C2=A0 1</b></span><span class=3D"gmail-s1" style=
=3D"font-variant-ligatures:no-common-ligatures">, </span><span class=3D"gma=
il-s2" style=3D"font-variant-ligatures:no-common-ligatures;color:rgb(213,59=
,211)"><b>1</b></span><span class=3D"gmail-s1" style=3D"font-variant-ligatu=
res:no-common-ligatures">))</span></p><p class=3D"gmail-p1" style=3D"margin=
:0px;font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><s=
pan class=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatures"=
><span class=3D"gmail-Apple-converted-space">=C2=A0 =C2=A0</span></span><sp=
an class=3D"gmail-s3" style=3D"font-variant-ligatures:no-common-ligatures;c=
olor:rgb(175,173,36)"><b>return</b></span><span class=3D"gmail-s1" style=3D=
"font-variant-ligatures:no-common-ligatures"> -</span><span class=3D"gmail-=
s2" style=3D"font-variant-ligatures:no-common-ligatures;color:rgb(213,59,21=
1)"><b>EINVAL</b></span><span class=3D"gmail-s1" style=3D"font-variant-liga=
tures:no-common-ligatures">;</span></p><p class=3D"gmail-p2" style=3D"margi=
n:0px;font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);mi=
n-height:16px"><span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-=
common-ligatures"></span><br></p><p class=3D"gmail-p1" style=3D"margin:0px;=
font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span c=
lass=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatures">map =
=3D yaml_document_add_mapping(&amp;request,</span></p><p class=3D"gmail-p1"=
 style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);background-color:rgb(=
255,255,255)"><span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-c=
ommon-ligatures"><span class=3D"gmail-Apple-converted-space">=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0</span>(yaml_char_t *)YAML_MAP_TAG,</span></p><p cl=
ass=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);backg=
round-color:rgb(255,255,255)"><span class=3D"gmail-s1" style=3D"font-varian=
t-ligatures:no-common-ligatures"><span class=3D"gmail-Apple-converted-space=
">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </span>YAML_BLOCK_MAPPING_STYLE);</s=
pan></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb=
(0,0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-s3" style=
=3D"font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>if=
</b></span><span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-comm=
on-ligatures"> (!map)</span></p><p class=3D"gmail-p1" style=3D"margin:0px;f=
ont:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span cl=
ass=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatures"><span=
 class=3D"gmail-Apple-converted-space">=C2=A0 =C2=A0</span></span><span cla=
ss=3D"gmail-s3" style=3D"font-variant-ligatures:no-common-ligatures;color:r=
gb(175,173,36)"><b>return</b></span><span class=3D"gmail-s1" style=3D"font-=
variant-ligatures:no-common-ligatures"> -</span><span class=3D"gmail-s2" st=
yle=3D"font-variant-ligatures:no-common-ligatures;color:rgb(213,59,211)"><b=
>EINVAL</b></span><span class=3D"gmail-s1" style=3D"font-variant-ligatures:=
no-common-ligatures">;</span></p><p class=3D"gmail-p2" style=3D"margin:0px;=
font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-heig=
ht:16px"><span style=3D"font-variant-ligatures:no-common-ligatures"><br></s=
pan></p><p class=3D"gmail-p2" style=3D"margin:0px;font:14px Menlo;color:rgb=
(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span style=3D"f=
ont-variant-ligatures:no-common-ligatures">key =3D yaml_document_add_scalar=
(&amp;request,=C2=A0</span></p><p class=3D"gmail-p2" style=3D"margin:0px;fo=
nt:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height=
:16px"><span style=3D"font-variant-ligatures:no-common-ligatures">=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(yaml_char_t *)YAML_STR_TAG,</span><span cla=
ss=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatures"></span=
></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,=
0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-s1" style=3D"f=
ont-variant-ligatures:no-common-ligatures"><span class=3D"gmail-Apple-conve=
rted-space">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(</span>yaml_char_t *)group=
,</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color=
:rgb(0,0,0);background-color:rgb(255,255,255)"><span style=3D"font-variant-=
ligatures:no-common-ligatures">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0strlen=
(group),</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menl=
o;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-=
s1" style=3D"font-variant-ligatures:no-common-ligatures"><span class=3D"gma=
il-Apple-converted-space">=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </span>YAML_=
PLAIN_SCALAR_STYLE);</span></p><p class=3D"gmail-p1" style=3D"margin:0px;fo=
nt:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span cla=
ss=3D"gmail-s3" style=3D"font-variant-ligatures:no-common-ligatures;color:r=
gb(175,173,36)"><b>if</b></span><span class=3D"gmail-s1" style=3D"font-vari=
ant-ligatures:no-common-ligatures"> (!key)</span></p><p class=3D"gmail-p1" =
style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);background-color:rgb(2=
55,255,255)"><span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-co=
mmon-ligatures"><span class=3D"gmail-Apple-converted-space">=C2=A0 =C2=A0</=
span></span><span class=3D"gmail-s3" style=3D"font-variant-ligatures:no-com=
mon-ligatures;color:rgb(175,173,36)"><b>return</b></span><span class=3D"gma=
il-s1" style=3D"font-variant-ligatures:no-common-ligatures"> -</span><span =
class=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatures;colo=
r:rgb(213,59,211)"><b>EINVAL</b></span><span class=3D"gmail-s1" style=3D"fo=
nt-variant-ligatures:no-common-ligatures">;</span></p><p class=3D"gmail-p2"=
 style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);background-color:rgb(=
255,255,255);min-height:16px"><span class=3D"gmail-s1" style=3D"font-varian=
t-ligatures:no-common-ligatures"></span><br></p><p class=3D"gmail-p1" style=
=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,25=
5,255)"><span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-=
ligatures">value =3D yaml_document_add_scalar(&amp;request,</span></p><p cl=
ass=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);backg=
round-color:rgb(255,255,255)"><span class=3D"gmail-s1" style=3D"font-varian=
t-ligatures:no-common-ligatures">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(yaml_=
char_t *)YAML_STR_TAG,</span></p><p class=3D"gmail-p1" style=3D"margin:0px;=
font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span c=
lass=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatures"><spa=
n class=3D"gmail-Apple-converted-space">=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 </span>(yaml_char_t *)</span><span class=3D"gmail-s2" style=3D"font-var=
iant-ligatures:no-common-ligatures;color:rgb(213,59,211)"><b>&quot;&quot;</=
b></span><span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-common=
-ligatures">, </span><span class=3D"gmail-s2" style=3D"font-variant-ligatur=
es:no-common-ligatures;color:rgb(213,59,211)"><b>0</b></span><span class=3D=
"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatures">,</span></p=
><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0)=
;background-color:rgb(255,255,255)"><span class=3D"gmail-s1" style=3D"font-=
variant-ligatures:no-common-ligatures"><span class=3D"gmail-Apple-converted=
-space">=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </span>YAML_PLAIN_SCALAR_STYL=
E);</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;col=
or:rgb(0,0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-s3" s=
tyle=3D"font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><=
b>if</b></span><span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-=
common-ligatures"> (!value)</span></p><p class=3D"gmail-p1" style=3D"margin=
:0px;font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><s=
pan class=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatures"=
><span class=3D"gmail-Apple-converted-space">=C2=A0 =C2=A0</span></span><sp=
an class=3D"gmail-s3" style=3D"font-variant-ligatures:no-common-ligatures;c=
olor:rgb(175,173,36)"><b>return</b></span><span class=3D"gmail-s1" style=3D=
"font-variant-ligatures:no-common-ligatures"> -</span><span class=3D"gmail-=
s2" style=3D"font-variant-ligatures:no-common-ligatures;color:rgb(213,59,21=
1)"><b>EINVAL</b></span><span class=3D"gmail-s1" style=3D"font-variant-liga=
tures:no-common-ligatures">;</span></p><p class=3D"gmail-p2" style=3D"margi=
n:0px;font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);mi=
n-height:16px"><span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-=
common-ligatures"></span><br></p><p class=3D"gmail-p1" style=3D"margin:0px;=
font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span c=
lass=3D"gmail-s3" style=3D"font-variant-ligatures:no-common-ligatures;color=
:rgb(175,173,36)"><b>if</b></span><span class=3D"gmail-s1" style=3D"font-va=
riant-ligatures:no-common-ligatures"> (!yaml_document_append_mapping_pair(&=
amp;request, map, key,=C2=A0</span></p><p class=3D"gmail-p1" style=3D"margi=
n:0px;font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><=
span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatures=
">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0value))</=
span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rg=
b(0,0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-s1" style=
=3D"font-variant-ligatures:no-common-ligatures"><span class=3D"gmail-Apple-=
converted-space">=C2=A0 =C2=A0</span></span><span class=3D"gmail-s3" style=
=3D"font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>re=
turn</b></span><span class=3D"gmail-s1" style=3D"font-variant-ligatures:no-=
common-ligatures"> -</span><span class=3D"gmail-s2" style=3D"font-variant-l=
igatures:no-common-ligatures;color:rgb(213,59,211)"><b>EINVAL</b></span><sp=
an class=3D"gmail-s1" style=3D"font-variant-ligatures:no-common-ligatures">=
;</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color=
:rgb(0,0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-s1" sty=
le=3D"font-variant-ligatures:no-common-ligatures"><br></span></p><p class=
=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);backgrou=
nd-color:rgb(255,255,255)"><span class=3D"gmail-s1" style=3D"font-variant-l=
igatures:no-common-ligatures;background-color:rgb(153,153,0)">seq =3D</span=
><span class=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatur=
es"> yaml_document_add_sequence(&amp;request,=C2=A0</span></p><p class=3D"g=
mail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);background-co=
lor:rgb(255,255,255)"><span class=3D"gmail-s2" style=3D"font-variant-ligatu=
res:no-common-ligatures">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(yaml_char_t =
*)YAML_SEQ_TAG,</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14=
px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class=3D=
"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatures"><span class=
=3D"gmail-Apple-converted-space">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=
</span>YAML_BLOCK_SEQUENCE_STYLE);</span></p><p class=3D"gmail-p1" style=3D=
"margin:0px;font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,2=
55)"><span class=3D"gmail-s3" style=3D"font-variant-ligatures:no-common-lig=
atures;color:rgb(175,173,36)"><b>if</b></span><span class=3D"gmail-s2" styl=
e=3D"font-variant-ligatures:no-common-ligatures"> (!seq)</span></p><p class=
=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);backgrou=
nd-color:rgb(255,255,255)"><span class=3D"gmail-s2" style=3D"font-variant-l=
igatures:no-common-ligatures"><span class=3D"gmail-Apple-converted-space">=
=C2=A0 =C2=A0</span></span><span class=3D"gmail-s3" style=3D"font-variant-l=
igatures:no-common-ligatures;color:rgb(175,173,36)"><b>return</b></span><sp=
an class=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatures">=
 -</span><span class=3D"gmail-s4" style=3D"font-variant-ligatures:no-common=
-ligatures;color:rgb(213,59,211)"><b>EINVAL</b></span><span class=3D"gmail-=
s2" style=3D"font-variant-ligatures:no-common-ligatures">;</span><br></p><p=
 class=3D"gmail-p2" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);ba=
ckground-color:rgb(255,255,255);min-height:16px"><span class=3D"gmail-s2" s=
tyle=3D"font-variant-ligatures:no-common-ligatures"></span><br></p><p class=
=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);backgrou=
nd-color:rgb(255,255,255)"><span class=3D"gmail-s2" style=3D"font-variant-l=
igatures:no-common-ligatures">map =3D yaml_document_add_mapping(&amp;reques=
t,=C2=A0</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menl=
o;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-=
s2" style=3D"font-variant-ligatures:no-common-ligatures">=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0(yaml_char_t *)YAML_MAP_TAG,</span></p><p class=3D"gmai=
l-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);background-color=
:rgb(255,255,255)"><span class=3D"gmail-s2" style=3D"font-variant-ligatures=
:no-common-ligatures"><span class=3D"gmail-Apple-converted-space">=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</span></span><span style=3D"font-variant-li=
gatures:no-common-ligatures">YAML_BLOCK_MAPPING_STYLE);</span></p><p class=
=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);backgrou=
nd-color:rgb(255,255,255)"><span class=3D"gmail-s3" style=3D"font-variant-l=
igatures:no-common-ligatures;color:rgb(175,173,36)"><b>if</b></span><span c=
lass=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatures"> (!m=
ap)</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;col=
or:rgb(0,0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-s2" s=
tyle=3D"font-variant-ligatures:no-common-ligatures"><span class=3D"gmail-Ap=
ple-converted-space">=C2=A0 =C2=A0</span></span><span class=3D"gmail-s3" st=
yle=3D"font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b=
>return</b></span><span class=3D"gmail-s2" style=3D"font-variant-ligatures:=
no-common-ligatures"> -</span><span class=3D"gmail-s4" style=3D"font-varian=
t-ligatures:no-common-ligatures;color:rgb(213,59,211)"><b>EINVAL</b></span>=
<span class=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligature=
s">;</span></p><p class=3D"gmail-p2" style=3D"margin:0px;font:14px Menlo;co=
lor:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span cla=
ss=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatures"></span=
><br></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rg=
b(0,0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-s3" style=
=3D"font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>if=
</b></span><span class=3D"gmail-s2" style=3D"font-variant-ligatures:no-comm=
on-ligatures"> (!yaml_document_append_sequence_item(&amp;request, seq,map))=
</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:=
rgb(0,0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-s2" styl=
e=3D"font-variant-ligatures:no-common-ligatures"><span class=3D"gmail-Apple=
-converted-space">=C2=A0 =C2=A0</span></span><span class=3D"gmail-s3" style=
=3D"font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>re=
turn</b></span><span class=3D"gmail-s2" style=3D"font-variant-ligatures:no-=
common-ligatures"> -</span><span class=3D"gmail-s4" style=3D"font-variant-l=
igatures:no-common-ligatures;color:rgb(213,59,211)"><b>EINVAL</b></span><sp=
an class=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatures">=
;</span></p><p class=3D"gmail-p2" style=3D"margin:0px;font:14px Menlo;color=
:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class=
=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatures"></span><=
br></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(=
0,0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-s2" style=3D=
"font-variant-ligatures:no-common-ligatures">key =3D yaml_document_add_scal=
ar(&amp;request,</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:1=
4px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class=
=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatures">=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(yaml_char_t *)YAML_STR_TAG,</span></p><p cl=
ass=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);backg=
round-color:rgb(255,255,255)"><span class=3D"gmail-s2" style=3D"font-varian=
t-ligatures:no-common-ligatures"><span class=3D"gmail-Apple-converted-space=
">=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </span>(yaml_char_t *)</span><span c=
lass=3D"gmail-s4" style=3D"font-variant-ligatures:no-common-ligatures;color=
:rgb(213,59,211)"><b>&quot;source&quot;</b></span><span class=3D"gmail-s2" =
style=3D"font-variant-ligatures:no-common-ligatures">, </span><span class=
=3D"gmail-s4" style=3D"font-variant-ligatures:no-common-ligatures;color:rgb=
(213,59,211)"><b>6</b></span><span class=3D"gmail-s2" style=3D"font-variant=
-ligatures:no-common-ligatures">,</span></p><p class=3D"gmail-p1" style=3D"=
margin:0px;font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,25=
5)"><span class=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-liga=
tures"><span class=3D"gmail-Apple-converted-space">=C2=A0=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 </span>YAML_PLAIN_SCALAR_STYLE);</span></p><p class=3D"gmail-=
p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);background-color:r=
gb(255,255,255)"><span class=3D"gmail-s3" style=3D"font-variant-ligatures:n=
o-common-ligatures;color:rgb(175,173,36)"><b>if</b></span><span class=3D"gm=
ail-s2" style=3D"font-variant-ligatures:no-common-ligatures"> (!key)</span>=
</p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0=
,0);background-color:rgb(255,255,255)"><span class=3D"gmail-s2" style=3D"fo=
nt-variant-ligatures:no-common-ligatures"><span class=3D"gmail-Apple-conver=
ted-space">=C2=A0 =C2=A0 </span></span><span class=3D"gmail-s3" style=3D"fo=
nt-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>return</=
b></span><span class=3D"gmail-s2" style=3D"font-variant-ligatures:no-common=
-ligatures"> -</span><span class=3D"gmail-s4" style=3D"font-variant-ligatur=
es:no-common-ligatures;color:rgb(213,59,211)"><b>EINVAL</b></span><span cla=
ss=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatures">;</spa=
n></p><p class=3D"gmail-p2" style=3D"margin:0px;font:14px Menlo;color:rgb(0=
,0,0);background-color:rgb(255,255,255);min-height:16px"><span class=3D"gma=
il-s2" style=3D"font-variant-ligatures:no-common-ligatures"></span><br></p>=
<p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);=
background-color:rgb(255,255,255)"><span class=3D"gmail-s2" style=3D"font-v=
ariant-ligatures:no-common-ligatures">value =3D yaml_document_add_scalar(&a=
mp;request,</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px M=
enlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class=3D"gma=
il-s2" style=3D"font-variant-ligatures:no-common-ligatures">=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0(yaml_char_t *)YAML_STR_TAG,</span></p><p class=3D"=
gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);background-c=
olor:rgb(255,255,255)"><span class=3D"gmail-s2" style=3D"font-variant-ligat=
ures:no-common-ligatures"><span class=3D"gmail-Apple-converted-space">=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</=
span>(yaml_char_t*)</span><span class=3D"gmail-s4" style=3D"font-variant-li=
gatures:no-common-ligatures;color:rgb(213,59,211)"><b>&quot;MGC172.30.248.3=
0@tcp&quot;</b></span><span class=3D"gmail-s2" style=3D"font-variant-ligatu=
res:no-common-ligatures">,</span></p><p class=3D"gmail-p1" style=3D"margin:=
0px;font-style:normal;font-variant:normal;font-stretch:normal;font-size:14p=
x;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><=
span class=3D"gmail-s4" style=3D"font-variant-ligatures:no-common-ligatures=
"><font color=3D"#000000">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0</font>=
<b style=3D"color:rgb(213,59,211);font-weight:normal">20</b></span><span cl=
ass=3D"gmail-s2" style=3D"color:rgb(0,0,0);font-weight:normal;font-variant-=
ligatures:no-common-ligatures">,</span></p><p class=3D"gmail-p1" style=3D"m=
argin:0px;font:14px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255=
)"><span class=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligat=
ures"><span class=3D"gmail-Apple-converted-space">=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 </span>YAML_PLAIN_SCALAR_STYLE);</span></p><p class=3D"gmail-=
p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);background-color:r=
gb(255,255,255)"><span class=3D"gmail-s3" style=3D"font-variant-ligatures:n=
o-common-ligatures;color:rgb(175,173,36)"><b>if</b></span><span class=3D"gm=
ail-s2" style=3D"font-variant-ligatures:no-common-ligatures"> (!value)</spa=
n></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0=
,0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-s2" style=3D"=
font-variant-ligatures:no-common-ligatures"><span class=3D"gmail-Apple-conv=
erted-space">=C2=A0 =C2=A0</span></span><span class=3D"gmail-s3" style=3D"f=
ont-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>return<=
/b></span><span class=3D"gmail-s2" style=3D"font-variant-ligatures:no-commo=
n-ligatures"> -</span><span class=3D"gmail-s4" style=3D"font-variant-ligatu=
res:no-common-ligatures;color:rgb(213,59,211)"><b>EINVAL</b></span><span cl=
ass=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatures">;</sp=
an></p><p class=3D"gmail-p2" style=3D"margin:0px;font:14px Menlo;color:rgb(=
0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class=3D"gm=
ail-s2" style=3D"font-variant-ligatures:no-common-ligatures"></span><br></p=
><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0)=
;background-color:rgb(255,255,255)"><span class=3D"gmail-s3" style=3D"font-=
variant-ligatures:no-common-ligatures;color:rgb(175,173,36)"><b>if</b></spa=
n><span class=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-ligatu=
res"> (!yaml_document_append_mapping_pair(&amp;request, map, key,=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0value))</span=
></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,=
0,0);background-color:rgb(255,255,255)"><span class=3D"gmail-s1" style=3D"f=
ont-variant-ligatures:no-common-ligatures">































</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font-variant-numeric:n=
ormal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;lin=
e-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class=3D"gmail-s2=
" style=3D"font-variant-ligatures:no-common-ligatures"><span class=3D"gmail=
-Apple-converted-space">=C2=A0 =C2=A0 </span></span><span class=3D"gmail-s3=
" style=3D"font-variant-ligatures:no-common-ligatures;color:rgb(175,173,36)=
"><b>return</b></span><span class=3D"gmail-s2" style=3D"font-variant-ligatu=
res:no-common-ligatures"> -</span><span class=3D"gmail-s4" style=3D"font-va=
riant-ligatures:no-common-ligatures;color:rgb(213,59,211)"><b>EINVAL</b></s=
pan><span class=3D"gmail-s2" style=3D"font-variant-ligatures:no-common-liga=
tures">;</span></p><p class=3D"gmail-p1" style=3D"margin:0px;font:14px Menl=
o;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></p><p class=3D"g=
mail-p1" style=3D"margin:0px;font:14px Menlo;color:rgb(0,0,0);background-co=
lor:rgb(255,255,255)">Currently only &quot;stats:&quot; is printed. I have =
searched for someone else doing this and it appears I&#39;m the only one tr=
ying. Do you know what I&#39;m doing wrong? Thank you.</p></div>





</div>

--0000000000009a326905969c74cf--


--===============2348101676261246577==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============2348101676261246577==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core

--===============2348101676261246577==--