home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / fileutil / stuff2.arj / DOPATH.PCH < prev    next >
Encoding:
Text File  |  1989-03-21  |  1.7 KB  |  79 lines

  1.  Patches to upgrade from Stuff 1.0 to Stuff 1.1
  2.  (see "readme.too" for details).
  3.  
  4. *** ../dopath.c    Wed Sep 21 23:13:06 1988
  5. --- dopath.c    Mon Oct 24 12:30:26 1988
  6. ***************
  7. *** 29,34
  8.       int select = 0;
  9.       int exclude = 0;
  10.       int have_condition = 0;
  11.       request_rec *p_opt;
  12.   
  13.       strlwr (pathname);
  14.  
  15. --- 29,36 -----
  16.       int select = 0;
  17.       int exclude = 0;
  18.       int have_condition = 0;
  19. +     int name_condition = 0;
  20. +     int name_select = 0;
  21.       request_rec *p_opt;
  22.   
  23.       strlwr (pathname);
  24. ***************
  25. *** 49,60
  26.                       } else {
  27.                           matched = matchstr (pathname, p
  28. _opt->info.name);
  29.                       }
  30. !                     if (p_opt->negate && matched ||
  31. !                         !p_opt->negate && !matched) {
  32. !                         exclude = 1;
  33. !                         goto done;
  34. !                     } else
  35. !                         select = 1;
  36.                       break;
  37.                   }
  38.                   case MTIME: {
  39.  
  40. --- 51,67 -----
  41.                       } else {
  42.                           matched = matchstr (pathname, p
  43. _opt->info.name);
  44.                       }
  45. !                     if (p_opt->negate) {
  46. !                         if (matched) {
  47. !                             exclude = 1;
  48. !                             goto done;
  49. !                         } else
  50. !                             select = 1;
  51. !                     } else {
  52. !                         name_condition = 1;
  53. !                         if (matched)
  54. !                             name_select = 1;
  55. !                     }
  56.                       break;
  57.                   }
  58.                   case MTIME: {
  59. ***************
  60. *** 141,147
  61.   have_condition, exclude, select);
  62.   #endif
  63.   
  64. !     if (have_condition && select && !exclude || !have_condition)
  65.       {
  66.   #ifdef UNBUF_IO
  67.           infomsg (pathname);
  68.  
  69. --- 148,156 -----
  70.   have_condition, exclude, select);
  71.   #endif
  72.   
  73. !     if (!have_condition ||
  74. !         have_condition && name_condition && name_select && !exclude ||
  75. !         have_condition && !name_condition && select && !exclude)
  76.       {
  77.   #ifdef UNBUF_IO
  78.           infomsg (pathname);
  79.