MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xo_line_close

Function xo_line_close

tools/libxo/libxo/libxo.c:2623–2644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2621}
2622
2623static void
2624xo_line_close (xo_handle_t *xop)
2625{
2626 static char div_close[] = "</div>";
2627
2628 switch (xo_style(xop)) {
2629 case XO_STYLE_HTML:
2630 if (!XOIF_ISSET(xop, XOIF_DIV_OPEN))
2631 xo_line_ensure_open(xop, 0);
2632
2633 XOIF_CLEAR(xop, XOIF_DIV_OPEN);
2634 xo_data_append(xop, div_close, sizeof(div_close) - 1);
2635
2636 if (XOF_ISSET(xop, XOF_PRETTY))
2637 xo_data_append(xop, "\n", 1);
2638 break;
2639
2640 case XO_STYLE_TEXT:
2641 xo_data_append(xop, "\n", 1);
2642 break;
2643 }
2644}
2645
2646static int
2647xo_info_compare (const void *key, const void *data)

Callers 2

xo_do_emit_fieldsFunction · 0.85
xo_errorn_hvFunction · 0.85

Calls 3

xo_styleFunction · 0.85
xo_line_ensure_openFunction · 0.85
xo_data_appendFunction · 0.85

Tested by

no test coverage detected