version 1.134, 2007/09/19 12:14:21 |
version 1.135, 2007/09/19 12:26:16 |
|
|
{ |
{ |
char rcpath[MAXPATHLEN], *buf, *lbuf, *lp, *p; |
char rcpath[MAXPATHLEN], *buf, *lbuf, *lp, *p; |
int i, linenum; |
int i, linenum; |
size_t len; |
size_t len, pos; |
struct cvs_cmd *cmdp; |
struct cvs_cmd *cmdp; |
FILE *fp; |
FILE *fp; |
|
|
|
|
if (*p == '#' || *p == '\t') |
if (*p == '#' || *p == '\t') |
continue; |
continue; |
|
|
lp = strchr(p, ' '); |
pos = strcspn(p, " \t"); |
if (lp == NULL) |
if (pos == strlen(p)) { |
continue; /* ignore lines with no arguments */ |
/* ignore lines with no arguments */ |
*lp = '\0'; |
continue; |
|
} else { |
|
lp = p + pos; |
|
*lp = '\0'; |
|
} |
|
|
if (strcmp(p, "cvs") == 0) { |
if (strcmp(p, "cvs") == 0) { |
/* |
/* |
* Global default options. In the case of cvs only, |
* Global default options. In the case of cvs only, |