[BACK]Return to diff_internals.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/diff_internals.c between version 1.32 and 1.33

version 1.32, 2010/07/23 21:46:05 version 1.33, 2010/07/28 21:19:30
Line 198 
Line 198 
 static char     *preadline(int, size_t, off_t);  static char     *preadline(int, size_t, off_t);
   
 static int Tflag;  static int Tflag;
 static int context = 3;  int diff_context = 3;
 int diff_format = D_NORMAL;  int diff_format = D_NORMAL;
 const char *diff_file1 = NULL;  const char *diff_file1 = NULL;
 const char *diff_file2 = NULL;  const char *diff_file2 = NULL;
Line 1011 
Line 1011 
                                 diff_head();                                  diff_head();
   
                         anychange = 1;                          anychange = 1;
                 } else if (a > context_vec_ptr->b + (2 * context) + 1 &&                  } else if (a > context_vec_ptr->b + (2 * diff_context) + 1 &&
                     c > context_vec_ptr->d + (2 * context) + 1) {                      c > context_vec_ptr->d + (2 * diff_context) + 1) {
                         /*                          /*
                          * If this change is more than 'context' lines from the                           * If this change is more than 'context' lines from the
                          * previous change, dump the record and reset it.                           * previous change, dump the record and reset it.
Line 1270 
Line 1270 
                 return;                  return;
   
         b = d = 0;              /* gcc */          b = d = 0;              /* gcc */
         lowa = MAX(1, cvp->a - context);          lowa = MAX(1, cvp->a - diff_context);
         upb = MIN(len[0], context_vec_ptr->b + context);          upb = MIN(len[0], context_vec_ptr->b + diff_context);
         lowc = MAX(1, cvp->c - context);          lowc = MAX(1, cvp->c - diff_context);
         upd = MIN(len[1], context_vec_ptr->d + context);          upd = MIN(len[1], context_vec_ptr->d + diff_context);
   
         diff_output("***************");          diff_output("***************");
         if ((flags & D_PROTOTYPE)) {          if ((flags & D_PROTOTYPE)) {
Line 1373 
Line 1373 
                 return;                  return;
   
         b = d = 0;              /* gcc */          b = d = 0;              /* gcc */
         lowa = MAX(1, cvp->a - context);          lowa = MAX(1, cvp->a - diff_context);
         upb = MIN(len[0], context_vec_ptr->b + context);          upb = MIN(len[0], context_vec_ptr->b + diff_context);
         lowc = MAX(1, cvp->c - context);          lowc = MAX(1, cvp->c - diff_context);
         upd = MIN(len[1], context_vec_ptr->d + context);          upd = MIN(len[1], context_vec_ptr->d + diff_context);
   
         diff_output("@@ -");          diff_output("@@ -");
         uni_range(lowa, upb);          uni_range(lowa, upb);

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33