FreeBSD/cddl/contrib/opensolaris/lib/libdtrace/common/dt_print.c
/*
 * Print any necessary trailing braces for structures or unions.  We don't get
 * invoked when a struct or union ends, so we infer the need to print braces
 * based on the depth the last time we printed something and the new depth.
 */
Print any necessary trailing braces for structures or unions.  We don't get
invoked when a struct or union ends, so we infer the need to print braces
based on the depth the last time we printed something and the new depth.
Print any necessary trailing braces for structures or unions . We don ' t get invoked when a struct or union ends so we infer the need to print braces based on the depth the last time we printed something and the new depth .
static void
dt_print_trailing_braces(dt_printarg_t *pap, int depth)
{
	int d;
	for (d = pap->pa_depth; d > depth; d--) {
		(void) fprintf(pap->pa_file, "%*s}%s",
		    (d + pap->pa_nest - 1) * 4, "",
		    d == depth + 1 ? "" : "\n");
	}
}
static void dt_print_trailing_braces ( dt_printarg_t * pap , int depth ) { int d ; for ( d = pap -> pa_depth ; d > depth ; d -- ) { ( void ) fprintf ( pap -> pa_file , " " , ( d + pap -> pa_nest - 1 ) * 4 , " " , d == depth + 1 ? " " : " \n " ) ; } }
Print any necessary trailing braces for structures or unions.
Print any necessary trailing braces for structures or unions .