Docs, compatibility fixes again, 0.1 release

This commit is contained in:
Yorhel 2025-02-25 17:01:18 +01:00
parent 69262992ca
commit 7b0ba45346
15 changed files with 121 additions and 15 deletions

6
FU.xs
View file

@ -95,7 +95,7 @@ void to_bool(SV *val)
PROTOTYPE: $
CODE:
SvGETMAGIC(val);
int r = fu_2bool(val);
int r = fu_2bool(aTHX_ val);
ST(0) = r < 0 ? &PL_sv_undef : r ? &PL_sv_yes : &PL_sv_no;
void json_format(SV *val, ...)
@ -399,14 +399,14 @@ void _new()
void _done(fuxmlwr *wr)
CODE:
ST(0) = fustr_done(&wr->out);
fustr_init(aTHX_ &wr->out, NULL, SIZE_MAX);
fustr_init(&wr->out, NULL, SIZE_MAX);
void lit_(SV *sv)
CODE:
if (!fuxmlwr_tail) fu_confess("No active FU::XMLWriter instance");
STRLEN len;
const char *buf = SvPVutf8(sv, len);
fustr_write(aTHX_ &fuxmlwr_tail->out, buf, len);
fustr_write(&fuxmlwr_tail->out, buf, len);
void txt_(SV *sv)
CODE: