MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / Indent

Function Indent

dbug/dbug.c:1949–1961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1947 */
1948
1949static void Indent(CODE_STATE *cs, int indent)
1950{
1951 REGISTER int count;
1952
1953 indent= MY_MAX(indent-1-cs->stack->sub_level,0)*INDENT;
1954 for (count= 0; count < indent ; count++)
1955 {
1956 if ((count % INDENT) == 0)
1957 fputc('|',cs->stack->out_file);
1958 else
1959 fputc(' ',cs->stack->out_file);
1960 }
1961}
1962
1963
1964/*

Callers 4

_db_enter_Function · 0.85
_db_return_Function · 0.85
_db_doprnt_Function · 0.85
_db_dump_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected