diff options
author | default <nobody@localhost> | 2023-11-22 13:07:19 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-11-22 13:07:19 +0100 |
commit | 258850feac51cab378461331f820d584dfa6d948 (patch) | |
tree | 6c5c12ebfdadd7e464136de2052026501900acec /xs_html.h | |
parent | 4e8beaab8fdd07b34150e347b72b14ce8d3ed778 (diff) |
Backport from xs.
Diffstat (limited to 'xs_html.h')
-rw-r--r-- | xs_html.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -21,8 +21,8 @@ xs_html *_xs_html_tag(char *tag, xs_html *var[]); xs_html *_xs_html_sctag(char *tag, xs_html *var[]); #define xs_html_sctag(tag, ...) _xs_html_sctag(tag, (xs_html *[]) { __VA_ARGS__, NULL }) -xs_str *_xs_html_render(xs_html *h, xs_str *s); -#define xs_html_render(h) _xs_html_render(h, xs_str_new(NULL)) +xs_str *xs_html_render_s(xs_html *h, xs_str *s); +#define xs_html_render(h) xs_html_render_s(h, xs_str_new(NULL)) #ifdef XS_IMPLEMENTATION @@ -187,8 +187,8 @@ xs_html *_xs_html_sctag(char *tag, xs_html *var[]) } -xs_str *_xs_html_render(xs_html *h, xs_str *s) -/* renders the tag and its subtags */ +xs_str *xs_html_render_s(xs_html *h, xs_str *s) +/* renders the tag and its subtags into s */ { xs_html *st; @@ -201,7 +201,7 @@ xs_str *_xs_html_render(xs_html *h, xs_str *s) st = h->f_attr; while (st) { xs_html *nst = st->next; - s = _xs_html_render(st, s); + s = xs_html_render_s(st, s); st = nst; } @@ -216,7 +216,7 @@ xs_str *_xs_html_render(xs_html *h, xs_str *s) st = h->f_tag; while (st) { xs_html *nst = st->next; - s = _xs_html_render(st, s); + s = xs_html_render_s(st, s); st = nst; } |