version 1.1, 2006/05/27 18:04:46 |
version 1.2, 2006/05/27 21:10:53 |
|
|
FILE *fp; |
FILE *fp; |
size_t len; |
size_t len; |
const char *errstr; |
const char *errstr; |
char *buf, *lbuf, *opt, *val, fpath[MAXPATHLEN]; |
char *p, *buf, *lbuf, *opt, *val, fpath[MAXPATHLEN]; |
|
|
i = snprintf(fpath, sizeof(fpath), "%s/%s", current_cvsroot->cr_dir, |
i = snprintf(fpath, sizeof(fpath), "%s/%s", current_cvsroot->cr_dir, |
CVS_PATH_CONFIG); |
CVS_PATH_CONFIG); |
|
|
buf = lbuf; |
buf = lbuf; |
} |
} |
|
|
opt = buf; |
p = buf; |
|
while (*p == ' ') |
|
p++; |
|
|
|
if (p[0] == '#' || p[0] == '\0') { |
|
if (lbuf != NULL) |
|
xfree(lbuf); |
|
continue; |
|
} |
|
|
|
opt = p; |
if ((val = strrchr(opt, '=')) == NULL) |
if ((val = strrchr(opt, '=')) == NULL) |
fatal("cvs_parse_configfile: bad option '%s'", opt); |
fatal("cvs_parse_configfile: bad option '%s'", opt); |
|
|