CBL-Mariner/SPECS-EXTENDED/rdist/rdist-6.1.5-bison.patch

143 строки
3.0 KiB
Diff

--- rdist-6.1.5/src/gram.y.bison 1998-11-10 05:10:42.000000000 +0100
+++ rdist-6.1.5/src/gram.y 2003-06-04 16:02:19.000000000 +0200
@@ -83,10 +83,10 @@
struct namelist *namel;
}
-%type <optval> OPTION, options
-%type <string> NAME, STRING
-%type <subcmd> INSTALL, NOTIFY, EXCEPT, PATTERN, SPECIAL, CMDSPECIAL, cmdlist, cmd
-%type <namel> namelist, names, opt_namelist nlist
+%type <optval> OPTION options
+%type <string> NAME STRING
+%type <subcmd> INSTALL NOTIFY EXCEPT PATTERN SPECIAL CMDSPECIAL cmdlist cmd
+%type <namel> namelist names opt_namelist nlist
%%
@@ -94,19 +94,19 @@
| file command
;
-command: NAME '=' namelist = {
+command: NAME '=' namelist {
(void) lookup($1, INSERT, $3);
}
- | namelist ARROW namelist cmdlist = {
+ | namelist ARROW namelist cmdlist {
insert((char *)NULL, $1, $3, $4);
}
- | NAME COLON namelist ARROW namelist cmdlist = {
+ | NAME COLON namelist ARROW namelist cmdlist {
insert($1, $3, $5, $6);
}
- | namelist DCOLON NAME cmdlist = {
+ | namelist DCOLON NAME cmdlist {
append((char *)NULL, $1, $3, $4);
}
- | NAME COLON namelist DCOLON NAME cmdlist = {
+ | NAME COLON namelist DCOLON NAME cmdlist {
append($1, $3, $5, $6);
}
| error
@@ -126,10 +126,10 @@
}
;
-nlist: NAME = {
+nlist: NAME {
$$ = makenl($1);
}
- | '(' names ')' = {
+ | '(' names ')' {
$$ = $2;
}
;
@@ -137,7 +137,7 @@
names: /* VOID */ {
$$ = last_n = NULL;
}
- | names NAME = {
+ | names NAME {
if (last_n == NULL)
$$ = last_n = makenl($2);
else {
@@ -151,7 +151,7 @@
cmdlist: /* VOID */ {
$$ = last_sc = NULL;
}
- | cmdlist cmd = {
+ | cmdlist cmd {
if (last_sc == NULL)
$$ = last_sc = $2;
else {
@@ -162,7 +162,7 @@
}
;
-cmd: INSTALL options opt_namelist ';' = {
+cmd: INSTALL options opt_namelist ';' {
register struct namelist *nl;
$1->sc_options = $2 | options;
@@ -178,17 +178,17 @@
}
$$ = $1;
}
- | NOTIFY namelist ';' = {
+ | NOTIFY namelist ';' {
if ($2 != NULL)
$1->sc_args = expand($2, E_VARS);
$$ = $1;
}
- | EXCEPT namelist ';' = {
+ | EXCEPT namelist ';' {
if ($2 != NULL)
$1->sc_args = expand($2, E_ALL);
$$ = $1;
}
- | PATTERN namelist ';' = {
+ | PATTERN namelist ';' {
struct namelist *nl;
char *cp, *re_comp();
@@ -198,13 +198,13 @@
$1->sc_args = expand($2, E_VARS);
$$ = $1;
}
- | SPECIAL opt_namelist STRING ';' = {
+ | SPECIAL opt_namelist STRING ';' {
if ($2 != NULL)
$1->sc_args = expand($2, E_ALL);
$1->sc_name = $3;
$$ = $1;
}
- | CMDSPECIAL opt_namelist STRING ';' = {
+ | CMDSPECIAL opt_namelist STRING ';' {
if ($2 != NULL)
$1->sc_args = expand($2, E_ALL);
$1->sc_name = $3;
@@ -212,18 +212,18 @@
}
;
-options: /* VOID */ = {
+options: /* VOID */ {
$$ = 0;
}
- | options OPTION = {
+ | options OPTION {
$$ |= $2;
}
;
-opt_namelist: /* VOID */ = {
+opt_namelist: /* VOID */ {
$$ = NULL;
}
- | namelist = {
+ | namelist {
$$ = $1;
}
;