FreeBSD/contrib/diff/src/context.c
/* Print an edit script in context format.  */
Print an edit script in context format.
Print an edit script in context format .
void
print_context_script (struct change *script, bool unidiff)
{
  if (ignore_blank_lines || ignore_regexp.fastmap)
    mark_ignorable (script);
  else
    {
      struct change *e;
      for (e = script; e; e = e->link)
	e->ignore = false;
    }
  find_function_last_search = - files[0].prefix_lines;
  find_function_last_match = LIN_MAX;
  if (unidiff)
    print_script (script, find_hunk, pr_unidiff_hunk);
  else
    print_script (script, find_hunk, pr_context_hunk);
}
void print_context_script ( struct change * script , bool unidiff ) { if ( ignore_blank_lines || ignore_regexp . fastmap ) mark_ignorable ( script ) ; else { struct change * e ; for ( e = script ; e ; e = e -> link ) e -> ignore = false ; } find_function_last_search = - files [ 0 ] . prefix_lines ; find_function_last_match = LIN_MAX ; if ( unidiff ) print_script ( script , find_hunk , pr_unidiff_hunk ) ; else print_script ( script , find_hunk , pr_context_hunk ) ; }
Print an edit script in context format.
Print an edit script in context format .