]> git.pld-linux.org Git - packages/bison.git/blob - bison-code_start-segv.patch
- R: m4, release 8.
[packages/bison.git] / bison-code_start-segv.patch
1 --- bison-1.875/src/scan-gram.l.orig    2002-12-31 03:26:51.000000000 +0100
2 +++ bison-1.875/src/scan-gram.l 2004-01-14 22:04:21.275226859 +0100
3 @@ -43,6 +43,7 @@
4        scanner_cursor.file = current_file;              \
5        scanner_cursor.line = 1;                         \
6        scanner_cursor.column = 1;                       \
7 +      code_start = scanner_cursor;                     \
8      }                                                  \
9    while (0)
10  
11 @@ -138,8 +139,10 @@
12    /* Location of most recent identifier, when applicable.  */
13    location id_loc IF_LINT (= *loc);
14  
15 -  /* Where containing code started, when applicable.  */
16 -  boundary code_start IF_LINT (= loc->start);
17 +  /* Where containing code started, when applicable.  Its initial
18 +     value is relevant only when yylex is invoked in the SC_EPILOGUE
19 +     start condition.  */
20 +  boundary code_start = scanner_cursor;
21  
22    /* Where containing comment or string or character literal started,
23       when applicable.  */
24 --- bison-1.875/src/scan-gram.c.orig    2003-01-01 10:15:09.000000000 +0100
25 +++ bison-1.875/src/scan-gram.c 2004-01-14 22:05:08.186798095 +0100
26 @@ -738,6 +738,7 @@
27        scanner_cursor.file = current_file;              \
28        scanner_cursor.line = 1;                         \
29        scanner_cursor.column = 1;                       \
30 +      code_start = scanner_cursor;                     \
31      }                                                  \
32    while (0)
33  
34 @@ -989,8 +990,10 @@
35    /* Location of most recent identifier, when applicable.  */
36    location id_loc IF_LINT (= *loc);
37  
38 -  /* Where containing code started, when applicable.  */
39 -  boundary code_start IF_LINT (= loc->start);
40 +  /* Where containing code started, when applicable.  Its initial
41 +     value is relevant only when yylex is invoked in the SC_EPILOGUE
42 +     start condition.  */
43 +  boundary code_start = scanner_cursor;
44  
45    /* Where containing comment or string or character literal started,
46       when applicable.  */
This page took 0.1268 seconds and 3 git commands to generate.