buf[1] = '\0';
break;
+ /* Indent */
+ case '>':
+ {
+ int i, n = va_arg(args, int);
+ for(i = 0; i < n && i < sizeof(buf) - 1; ++i)
+ buf[i] = ' ';
+
+ buf[i] = '\0';
+ }
+ break;
+
case 'c':
buf[0] = va_arg(args, int);
buf[1] = '\0';
* This function rudimentarily implements a kind of printf(3) for ir
* nodes. Following conversion specifiers. No length, special or field
* width specifiers are accepted.
+ * - @%> Print as many white spaces as given in the parameter.
* - @%p A pointer.
* - @%s A string.
* - @%I An ident.