From: | "Alin Nastac (mrness)" <mrness@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-dialup/linux-atm/files: linux-atm-2.5.0-bison24.patch |
Date: | Sat, 28 Feb 2009 09:08:27 |
Message-Id: | E1LdLBJ-0000lE-Ot@stork.gentoo.org |
1 | mrness 09/02/28 09:08:25 |
2 | |
3 | Added: linux-atm-2.5.0-bison24.patch |
4 | Log: |
5 | Fix bison-2.4 errors (#247981). |
6 | (Portage version: 2.1.6.4/cvs/Linux 2.6.25-gentoo-r6 x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 net-dialup/linux-atm/files/linux-atm-2.5.0-bison24.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/linux-atm/files/linux-atm-2.5.0-bison24.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dialup/linux-atm/files/linux-atm-2.5.0-bison24.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: linux-atm-2.5.0-bison24.patch |
15 | =================================================================== |
16 | --- linux-atm-2.5.0.orig/src/qgen/ql_y.y 2009-02-28 08:22:09.000000000 +0000 |
17 | +++ linux-atm-2.5.0/src/qgen/ql_y.y 2009-02-28 08:41:35.000000000 +0000 |
18 | @@ -61,8 +61,10 @@ |
19 | *walk = 0; |
20 | if (*start == ':') { |
21 | if (!(searching = strcmp(start+1,name))) |
22 | + { |
23 | if (found) yyerror("multiple entries"); |
24 | else found = 1; |
25 | + } |
26 | continue; |
27 | } |
28 | if (searching) continue; |
29 | @@ -308,9 +310,11 @@ |
30 | $$->pos = $2; |
31 | $$->flush = !$3; |
32 | if ($$->pos == -1) |
33 | + { |
34 | if ($$->size & 7) |
35 | yyerror("position required for small fields"); |
36 | else $$->pos = 0; |
37 | + } |
38 | $$->value = $5; |
39 | $$->structure = NULL; |
40 | $$->next = NULL; |
41 | @@ -432,8 +436,8 @@ |
42 | } |
43 | | TOK_ID opt_id list block |
44 | { |
45 | - $$ = alloc_t(TAG); |
46 | - $$->abort_id = abort_id; |
47 | + $<tag>$ = alloc_t(TAG); |
48 | + $<tag>$->abort_id = abort_id; |
49 | } |
50 | tags |
51 | { |
52 | @@ -475,8 +479,8 @@ |
53 | } |
54 | | TOK_ID opt_id list rep_block |
55 | { |
56 | - $$ = alloc_t(TAG); |
57 | - $$->abort_id = abort_id; |
58 | + $<tag>$ = alloc_t(TAG); |
59 | + $<tag>$->abort_id = abort_id; |
60 | } |
61 | rep_tags |
62 | { |