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

Function xo_count_fields

tools/libxo/libxo/libxo.c:5417–5428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5415#endif /* NOT_NEEDED_YET */
5416
5417static int
5418xo_count_fields (xo_handle_t *xop UNUSED, const char *fmt)
5419{
5420 int rc = 1;
5421 const char *cp;
5422
5423 for (cp = fmt; *cp; cp++)
5424 if (*cp == '{' || *cp == '\n')
5425 rc += 1;
5426
5427 return rc * 2 + 1;
5428}
5429
5430/*
5431 * The field format is:

Callers 3

xo_do_emit_fieldsFunction · 0.85
xo_do_emitFunction · 0.85
xo_simplify_formatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected