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

Diff for /src/usr.bin/cvs/rcs.c between version 1.40 and 1.41

version 1.40, 2005/04/06 19:12:08 version 1.41, 2005/04/07 16:47:11
Line 130 
Line 130 
         int   rk_flags;          int   rk_flags;
 } rcs_keys[] = {  } rcs_keys[] = {
         { "access",   RCS_TOK_ACCESS,   RCS_TOK_ID,     RCS_VOPT     },          { "access",   RCS_TOK_ACCESS,   RCS_TOK_ID,     RCS_VOPT     },
         { "author",   RCS_TOK_AUTHOR,   RCS_TOK_STRING, 0            },          { "author",   RCS_TOK_AUTHOR,   RCS_TOK_ID,     0            },
         { "branch",   RCS_TOK_BRANCH,   RCS_TOK_NUM,    RCS_VOPT     },          { "branch",   RCS_TOK_BRANCH,   RCS_TOK_NUM,    RCS_VOPT     },
         { "branches", RCS_TOK_BRANCHES, RCS_TOK_NUM,    RCS_VOPT     },          { "branches", RCS_TOK_BRANCHES, RCS_TOK_NUM,    RCS_VOPT     },
         { "comment",  RCS_TOK_COMMENT,  RCS_TOK_STRING, RCS_VOPT     },          { "comment",  RCS_TOK_COMMENT,  RCS_TOK_STRING, RCS_VOPT     },
Line 141 
Line 141 
         { "locks",    RCS_TOK_LOCKS,    RCS_TOK_ID,     0            },          { "locks",    RCS_TOK_LOCKS,    RCS_TOK_ID,     0            },
         { "log",      RCS_TOK_LOG,      RCS_TOK_STRING, RCS_NOSCOL   },          { "log",      RCS_TOK_LOG,      RCS_TOK_STRING, RCS_NOSCOL   },
         { "next",     RCS_TOK_NEXT,     RCS_TOK_NUM,    RCS_VOPT     },          { "next",     RCS_TOK_NEXT,     RCS_TOK_NUM,    RCS_VOPT     },
         { "state",    RCS_TOK_STATE,    RCS_TOK_STRING, RCS_VOPT     },          { "state",    RCS_TOK_STATE,    RCS_TOK_ID,     RCS_VOPT     },
         { "strict",   RCS_TOK_STRICT,   0,              0,           },          { "strict",   RCS_TOK_STRICT,   0,              0,           },
         { "symbols",  RCS_TOK_SYMBOLS,  0,              0            },          { "symbols",  RCS_TOK_SYMBOLS,  0,              0            },
         { "text",     RCS_TOK_TEXT,     RCS_TOK_STRING, RCS_NOSCOL   },          { "text",     RCS_TOK_TEXT,     RCS_TOK_STRING, RCS_NOSCOL   },
Line 1563 
Line 1563 
                         }                          }
   
                         if (tokstr != NULL)                          if (tokstr != NULL)
                                 free(tokstr);                                  cvs_strfree(tokstr);
                         tokstr = cvs_strdup(RCS_TOKSTR(rfp));                          tokstr = cvs_strdup(RCS_TOKSTR(rfp));
                         if (tokstr == NULL) {                          if (tokstr == NULL) {
                                 cvs_log(LP_ERRNO,                                  cvs_log(LP_ERRNO,
Line 1578 
Line 1578 
                                 cvs_log(LP_ERR,                                  cvs_log(LP_ERR,
                                     "missing semi-colon after RCS `%s' key",                                      "missing semi-colon after RCS `%s' key",
                                     rk->rk_str);                                      rk->rk_str);
                                 free(tokstr);                                  cvs_strfree(tokstr);
                                 rcs_freedelta(rdp);                                  rcs_freedelta(rdp);
                                 return (-1);                                  return (-1);
                         }                          }
   
                         if (tok == RCS_TOK_DATE) {                          if (tok == RCS_TOK_DATE) {
                                 if ((datenum = rcsnum_parse(tokstr)) == NULL) {                                  if ((datenum = rcsnum_parse(tokstr)) == NULL) {
                                         free(tokstr);                                          cvs_strfree(tokstr);
                                         rcs_freedelta(rdp);                                          rcs_freedelta(rdp);
                                         return (-1);                                          return (-1);
                                 }                                  }
Line 1595 
Line 1595 
                                             "fields",                                              "fields",
                                             (datenum->rn_len > 6) ? "too many" :                                              (datenum->rn_len > 6) ? "too many" :
                                             "missing");                                              "missing");
                                         free(tokstr);                                          cvs_strfree(tokstr);
                                         rcs_freedelta(rdp);                                          rcs_freedelta(rdp);
                                         rcsnum_free(datenum);                                          rcsnum_free(datenum);
                                         return (-1);                                          return (-1);
Line 1767 
Line 1767 
                 if (type == RCS_TOK_SCOLON)                  if (type == RCS_TOK_SCOLON)
                         break;                          break;
   
                 if (type != RCS_TOK_STRING) {                  if (type != RCS_TOK_ID) {
                         cvs_log(LP_ERR, "unexpected token `%s' in symbol list",                          cvs_log(LP_ERR, "unexpected token `%s' in symbol list",
                             RCS_TOKSTR(rfp));                              RCS_TOKSTR(rfp));
                         return (-1);                          return (-1);

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41