MCPcopy Create free account
hub / github.com/commonmark/cmark / make_simple

Function make_simple

src/inlines.c:100–105  ·  view source on GitHub ↗

Create an inline with no value.

Source from the content-addressed store, hash-verified

98
99// Create an inline with no value.
100static inline cmark_node *make_simple(cmark_mem *mem, cmark_node_type t) {
101 cmark_node *e = (cmark_node *)mem->calloc(1, sizeof(*e));
102 e->mem = mem;
103 e->type = t;
104 return e;
105}
106
107static cmark_node *make_str(subject *subj, int sc, int ec, cmark_chunk s) {
108 cmark_node *e = make_literal(subj, CMARK_NODE_TEXT, sc, ec);

Callers 2

make_autolinkFunction · 0.85
handle_close_bracketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected