mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-24 03:20:41 +02:00
observer: put a comma between array items when printing
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
d03b0057b2
commit
4d5502503c
1 changed files with 3 additions and 2 deletions
|
|
@ -902,8 +902,9 @@ print_array (cairo_output_stream_t *stream,
|
|||
|
||||
sort_order (order, j, (void *)array);
|
||||
for (i = 0; i < j; i++)
|
||||
_cairo_output_stream_printf (stream, " %d %s",
|
||||
array[order[i]], names[order[i]]);
|
||||
_cairo_output_stream_printf (stream, " %d %s%s",
|
||||
array[order[i]], names[order[i]],
|
||||
i < j -1 ? "," : "");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue