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

Diff for /src/usr.bin/rcs/rcsprog.c between version 1.50 and 1.51

version 1.50, 2005/11/28 14:43:59 version 1.51, 2005/11/30 09:36:48
Line 43 
Line 43 
   
 #define RCS_CMD_MAXARG  128  #define RCS_CMD_MAXARG  128
 #define RCS_DEFAULT_SUFFIX      ",v/"  #define RCS_DEFAULT_SUFFIX      ",v/"
   #define RCSPROG_OPTSTRING       "A:a:b::c:e::hik:Lm:MqTUVx:z:"
   
 const char rcs_version[] = "OpenCVS RCS version 3.6";  const char rcs_version[] = "OpenCVS RCS version 3.6";
 int verbose = 1;  int verbose = 1;
Line 356 
Line 357 
 {  {
         fprintf(stderr,          fprintf(stderr,
             "usage: rcs [-hiLMTUV] [-Aoldfile] [-ausers] [-b[rev]] [-cstring]\n"              "usage: rcs [-hiLMTUV] [-Aoldfile] [-ausers] [-b[rev]] [-cstring]\n"
             "           [-eusers] [-kmode] [-mrev:log] [-xsuffixes] file ...\n");              "           [-eusers] [-kmode] [-mrev:log] [-xsuffixes] [-ztz] file ...\n");
 }  }
   
 /*  /*
Line 383 
Line 384 
         flags = RCS_RDWR;          flags = RCS_RDWR;
         logstr = alist = comment = elist = NULL;          logstr = alist = comment = elist = NULL;
   
         while ((ch = rcs_getopt(argc, argv, "A:a:b::c:e::hik:Lm:MqTUV")) != -1) {          while ((ch = rcs_getopt(argc, argv, RCSPROG_OPTSTRING)) != -1) {
                 switch (ch) {                  switch (ch) {
                 case 'A':                  case 'A':
                         if (rcs_statfile(rcs_optarg, ofpath, sizeof(ofpath)) < 0)                          if (rcs_statfile(rcs_optarg, ofpath, sizeof(ofpath)) < 0)
Line 444 
Line 445 
                         exit(0);                          exit(0);
                 case 'x':                  case 'x':
                         rcs_suffixes = rcs_optarg;                          rcs_suffixes = rcs_optarg;
                           break;
                   case 'z':
                           /*
                            * kept for compatibility
                            */
                         break;                          break;
                 default:                  default:
                         (usage)();                          (usage)();

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51