MFC: "nocpu" and "nomakeoptions" directives.

This commit is contained in:
ru 2005-12-01 17:43:09 +00:00
parent d9c83adc58
commit 4603995659
2 changed files with 14 additions and 0 deletions

View File

@ -8,6 +8,7 @@
%token COMMA
%token CONFIG
%token CPU
%token NOCPU
%token DEVICE
%token NODEVICE
%token ENV
@ -157,6 +158,17 @@ Config_spec:
cp->cpu_name = $2;
SLIST_INSERT_HEAD(&cputype, cp, cpu_next);
} |
NOCPU Save_id
= {
struct cputype *cp, *cp2;
SLIST_FOREACH_SAFE(cp, &cputype, cpu_next, cp2) {
if (strcmp(cp->cpu_name, $2) != 0)
continue;
SLIST_REMOVE(&cputype, cp, cputype, cpu_next);
free(cp);
break;
}
} |
OPTIONS Opt_list
|
NOOPTION Save_id

View File

@ -62,6 +62,7 @@ struct kt {
} key_words[] = {
{ "config", CONFIG },
{ "cpu", CPU },
{ "nocpu", NOCPU },
{ "device", DEVICE },
{ "devices", DEVICE },
{ "nodevice", NODEVICE },
@ -72,6 +73,7 @@ struct kt {
{ "machine", ARCH }, /* MACHINE is defined in /sys/param.h */
{ "makeoptions", MAKEOPTIONS },
{ "nomakeoption", NOMAKEOPTION },
{ "nomakeoptions", NOMAKEOPTION },
{ "maxusers", MAXUSERS },
{ "profile", PROFILE },
{ "option", OPTIONS },