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

Diff for /src/usr.bin/rcs/rlog.c between version 1.62 and 1.63

version 1.62, 2009/02/15 12:55:18 version 1.63, 2010/07/23 21:46:05
Line 227 
Line 227 
   
                 if (last == NULL) {                  if (last == NULL) {
                         flags |= RLOG_DATE_SINGLE;                          flags |= RLOG_DATE_SINGLE;
                         firstdate = rcs_date_parse(first);                          firstdate = date_parse(first);
                         delim = '\0';                          delim = '\0';
                         last = "\0";                          last = "\0";
                 } else {                  } else {
Line 237 
Line 237 
   
                 if (delim == '>' && *last == '\0') {                  if (delim == '>' && *last == '\0') {
                         flags |= RLOG_DATE_EARLIER;                          flags |= RLOG_DATE_EARLIER;
                         firstdate = rcs_date_parse(first);                          firstdate = date_parse(first);
                 }                  }
   
                 if (delim == '>' && *first == '\0' && *last != '\0') {                  if (delim == '>' && *first == '\0' && *last != '\0') {
                         flags |= RLOG_DATE_LATER;                          flags |= RLOG_DATE_LATER;
                         firstdate = rcs_date_parse(last);                          firstdate = date_parse(last);
                 }                  }
   
                 if (delim == '<' && *last == '\0') {                  if (delim == '<' && *last == '\0') {
                         flags |= RLOG_DATE_LATER;                          flags |= RLOG_DATE_LATER;
                         firstdate = rcs_date_parse(first);                          firstdate = date_parse(first);
                 }                  }
   
                 if (delim == '<' && *first == '\0' && *last != '\0') {                  if (delim == '<' && *first == '\0' && *last != '\0') {
                         flags |= RLOG_DATE_EARLIER;                          flags |= RLOG_DATE_EARLIER;
                         firstdate = rcs_date_parse(last);                          firstdate = date_parse(last);
                 }                  }
   
                 if (*first != '\0' && *last != '\0') {                  if (*first != '\0' && *last != '\0') {
                         flags |= RLOG_DATE_RANGE;                          flags |= RLOG_DATE_RANGE;
   
                         if (delim == '<') {                          if (delim == '<') {
                                 firstdate = rcs_date_parse(first);                                  firstdate = date_parse(first);
                                 lastdate = rcs_date_parse(last);                                  lastdate = date_parse(last);
                         } else {                          } else {
                                 firstdate = rcs_date_parse(last);                                  firstdate = date_parse(last);
                                 lastdate = rcs_date_parse(first);                                  lastdate = date_parse(first);
                         }                          }
                 }                  }
   

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63