version 1.11, 2009/10/27 23:59:42 |
version 1.12, 2015/01/20 06:02:30 |
|
|
/* |
/* |
* Distfile Option Information |
* Distfile Option Information |
*/ |
*/ |
DISTOPTINFO distoptinfo[] = { |
struct distoptinfo { |
|
opt_t do_value; |
|
char *do_name; |
|
char *do_arg; |
|
size_t arg_size; |
|
} distoptinfo[] = { |
{ DO_CHKNFS, "chknfs", NULL, 0}, |
{ DO_CHKNFS, "chknfs", NULL, 0}, |
{ DO_CHKREADONLY, "chkreadonly", NULL, 0}, |
{ DO_CHKREADONLY, "chkreadonly", NULL, 0}, |
{ DO_CHKSYM, "chksym", NULL, 0}, |
{ DO_CHKSYM, "chksym", NULL, 0}, |
|
|
/* |
/* |
* Get a Distfile Option entry named "name". |
* Get a Distfile Option entry named "name". |
*/ |
*/ |
DISTOPTINFO * |
static struct distoptinfo * |
getdistopt(char *name, int *len) |
getdistopt(char *name, int *len) |
{ |
{ |
int i; |
int i; |
|
|
parsedistopts(char *str, opt_t *optptr, int doerrs) |
parsedistopts(char *str, opt_t *optptr, int doerrs) |
{ |
{ |
char *string, *optstr; |
char *string, *optstr; |
DISTOPTINFO *distopt; |
struct distoptinfo *distopt; |
int len; |
int len; |
|
|
/* strtok() is destructive */ |
/* strtok() is destructive */ |