[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.35 and 1.36

version 1.35, 2014/12/01 21:58:46 version 1.36, 2015/01/16 06:40:07
Line 64 
Line 64 
  *      @(#)diffreg.c   8.1 (Berkeley) 6/6/93   *      @(#)diffreg.c   8.1 (Berkeley) 6/6/93
  */   */
   
 #include <sys/param.h>  #include <sys/types.h>
 #include <sys/stat.h>  #include <sys/stat.h>
   
 #include <ctype.h>  #include <ctype.h>
Line 79 
Line 79 
 #include "cvs.h"  #include "cvs.h"
 #include "diff.h"  #include "diff.h"
   
   #define MINIMUM(a, b)   (((a) < (b)) ? (a) : (b))
   #define MAXIMUM(a, b)   (((a) > (b)) ? (a) : (b))
   
 /*  /*
  * diff - compare two files.   * diff - compare two files.
  */   */
Line 545 
Line 548 
                 bound = UINT_MAX;                  bound = UINT_MAX;
         else {          else {
                 sq = isqrt(n);                  sq = isqrt(n);
                 bound = MAX(256, sq);                  bound = MAXIMUM(256, sq);
         }          }
   
         k = 0;          k = 0;
Line 1273 
Line 1276 
                 return;                  return;
   
         b = d = 0;              /* gcc */          b = d = 0;              /* gcc */
         lowa = MAX(1, cvp->a - diff_context);          lowa = MAXIMUM(1, cvp->a - diff_context);
         upb = MIN(len[0], context_vec_ptr->b + diff_context);          upb = MINIMUM(len[0], context_vec_ptr->b + diff_context);
         lowc = MAX(1, cvp->c - diff_context);          lowc = MAXIMUM(1, cvp->c - diff_context);
         upd = MIN(len[1], context_vec_ptr->d + diff_context);          upd = MINIMUM(len[1], context_vec_ptr->d + diff_context);
   
         diff_output("***************");          diff_output("***************");
         if ((flags & D_PROTOTYPE)) {          if ((flags & D_PROTOTYPE)) {
Line 1376 
Line 1379 
                 return;                  return;
   
         b = d = 0;              /* gcc */          b = d = 0;              /* gcc */
         lowa = MAX(1, cvp->a - diff_context);          lowa = MAXIMUM(1, cvp->a - diff_context);
         upb = MIN(len[0], context_vec_ptr->b + diff_context);          upb = MINIMUM(len[0], context_vec_ptr->b + diff_context);
         lowc = MAX(1, cvp->c - diff_context);          lowc = MAXIMUM(1, cvp->c - diff_context);
         upd = MIN(len[1], context_vec_ptr->d + diff_context);          upd = MINIMUM(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.35  
changed lines
  Added in v.1.36