FreeBSD/contrib/diff/src/context.c
/* Print a header for a context diff, with the file names and dates.  */
Print a header for a context diff, with the file names and dates.
Print a header for a context diff with the file names and dates .
void
print_context_header (struct file_data inf[], bool unidiff)
{
  if (unidiff)
    {
      print_context_label ("---", &inf[0], file_label[0]);
      print_context_label ("+++", &inf[1], file_label[1]);
    }
  else
    {
      print_context_label ("***", &inf[0], file_label[0]);
      print_context_label ("---", &inf[1], file_label[1]);
    }
}
void print_context_header ( struct file_data inf [ ] , bool unidiff ) { if ( unidiff ) { print_context_label ( " " , & inf [ 0 ] , file_label [ 0 ] ) ; print_context_label ( " " , & inf [ 1 ] , file_label [ 1 ] ) ; } else { print_context_label ( " " , & inf [ 0 ] , file_label [ 0 ] ) ; print_context_label ( " " , & inf [ 1 ] , file_label [ 1 ] ) ; } }
Print a header for a context diff, with the file names and dates.
Print a header for a context diff with the file names and dates .