void
pp_cache (struct region_cache *c)
{
- ptrdiff_t i;
ptrdiff_t beg_u = c->buffer_beg + c->beg_unchanged;
ptrdiff_t end_u = c->buffer_end - c->end_unchanged;
c->buffer_beg, c->buffer_end,
beg_u, end_u);
- for (i = 0; i < c->cache_len; i++)
+ for (ptrdiff_t i = 0; i < c->cache_len; i++)
{
ptrdiff_t pos = BOUNDARY_POS (c, i);
- putc (((pos < beg_u) ? 'v'
- : (pos == beg_u) ? '-'
- : ' '),
- stderr);
- putc (((pos > end_u) ? '^'
- : (pos == end_u) ? '-'
- : ' '),
- stderr);
- fprintf (stderr, "%"pD"d : %d\n", pos, BOUNDARY_VALUE (c, i));
+ fprintf (stderr, "%c%c%"pD"d : %d\n",
+ pos < beg_u ? 'v' : pos == beg_u ? '-' : ' ',
+ pos > end_u ? '^' : pos == end_u ? '-' : ' ',
+ pos, BOUNDARY_VALUE (c, i));
}
}
if (m)
{
if (noninteractive_need_newline)
- putc ('\n', stderr);
+ fputc ('\n', stderr);
noninteractive_need_newline = false;
vfprintf (stderr, m, ap);
if (!cursor_in_echo_area)
- fprintf (stderr, "\n");
+ fputc ('\n', stderr);
fflush (stderr);
}
}