FreeBSD/contrib/diff/src/context.c
/* Set the `ignore' flag properly in each change in SCRIPT.
   It should be 1 if all the lines inserted or deleted in that change
   are ignorable lines.  */
Set the `ignore' flag properly in each change in SCRIPT.
It should be 1 if all the lines inserted or deleted in that change
are ignorable lines.
Set the ` ignore ' flag properly in each change in SCRIPT . It should be 1 if all the lines inserted or deleted in that change are ignorable lines .
static void
mark_ignorable (struct change *script)
{
  while (script)
    {
      struct change *next = script->link;
      lin first0, last0, first1, last1;
      script->link = 0;
      script->ignore = ! analyze_hunk (script,
				       &first0, &last0, &first1, &last1);
      script->link = next;
      script = next;
    }
}
static void mark_ignorable ( struct change * script ) { while ( script ) { struct change * next = script -> link ; lin first0 , last0 , first1 , last1 ; script -> link = 0 ; script -> ignore = ! analyze_hunk ( script , & first0 , & last0 , & first1 , & last1 ) ; script -> link = next ; script = next ; } }
Set the `ignore' flag properly in each change in SCRIPT.
Set the ` ignore ' flag properly in each change in SCRIPT .
/* Turn this change into a hunk: detach it from the others.  */ /* Determine whether this change is ignorable.  */ /* Reconnect the chain as before.  */ /* Advance to the following change.  */