diff options
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[]); | |||
| 21 | xs_html *_xs_html_sctag(char *tag, xs_html *var[]); | 21 | xs_html *_xs_html_sctag(char *tag, xs_html *var[]); |
| 22 | #define xs_html_sctag(tag, ...) _xs_html_sctag(tag, (xs_html *[]) { __VA_ARGS__, NULL }) | 22 | #define xs_html_sctag(tag, ...) _xs_html_sctag(tag, (xs_html *[]) { __VA_ARGS__, NULL }) |
| 23 | 23 | ||
| 24 | xs_str *_xs_html_render(xs_html *h, xs_str *s); | 24 | xs_str *xs_html_render_s(xs_html *h, xs_str *s); |
| 25 | #define xs_html_render(h) _xs_html_render(h, xs_str_new(NULL)) | 25 | #define xs_html_render(h) xs_html_render_s(h, xs_str_new(NULL)) |
| 26 | 26 | ||
| 27 | #ifdef XS_IMPLEMENTATION | 27 | #ifdef XS_IMPLEMENTATION |
| 28 | 28 | ||
| @@ -187,8 +187,8 @@ xs_html *_xs_html_sctag(char *tag, xs_html *var[]) | |||
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | 189 | ||
| 190 | xs_str *_xs_html_render(xs_html *h, xs_str *s) | 190 | xs_str *xs_html_render_s(xs_html *h, xs_str *s) |
| 191 | /* renders the tag and its subtags */ | 191 | /* renders the tag and its subtags into s */ |
| 192 | { | 192 | { |
| 193 | xs_html *st; | 193 | xs_html *st; |
| 194 | 194 | ||
| @@ -201,7 +201,7 @@ xs_str *_xs_html_render(xs_html *h, xs_str *s) | |||
| 201 | st = h->f_attr; | 201 | st = h->f_attr; |
| 202 | while (st) { | 202 | while (st) { |
| 203 | xs_html *nst = st->next; | 203 | xs_html *nst = st->next; |
| 204 | s = _xs_html_render(st, s); | 204 | s = xs_html_render_s(st, s); |
| 205 | st = nst; | 205 | st = nst; |
| 206 | } | 206 | } |
| 207 | 207 | ||
| @@ -216,7 +216,7 @@ xs_str *_xs_html_render(xs_html *h, xs_str *s) | |||
| 216 | st = h->f_tag; | 216 | st = h->f_tag; |
| 217 | while (st) { | 217 | while (st) { |
| 218 | xs_html *nst = st->next; | 218 | xs_html *nst = st->next; |
| 219 | s = _xs_html_render(st, s); | 219 | s = xs_html_render_s(st, s); |
| 220 | st = nst; | 220 | st = nst; |
| 221 | } | 221 | } |
| 222 | 222 | ||