Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 592770 | Differences between
and this patch

Collapse All | Expand All

(-)a/tests/test-bison-yylloc/parser.y (-2 / +2 lines)
Lines 22-27 Link Here
22
 */
22
 */
23
23
24
%parse-param { void* scanner }
24
%parse-param { void* scanner }
25
%lex-param { void* scanner }
25
26
26
/* 
27
/* 
27
   How to compile:
28
   How to compile:
Lines 34-40 Link Here
34
#include "config.h"
35
#include "config.h"
35
36
36
#define YYERROR_VERBOSE 1
37
#define YYERROR_VERBOSE 1
37
#define YYLEX_PARAM   scanner
38
38
39
extern int testget_lineno(void*);
39
extern int testget_lineno(void*);
40
40
Lines 52-58 int process_text(char* s) { Link Here
52
52
53
%}
53
%}
54
54
55
%pure_parser
55
%pure-parser
56
56
57
%union  {
57
%union  {
58
    int  lineno;
58
    int  lineno;
(-)a/tests/test-bison-yylval/parser.y (-3 / +2 lines)
Lines 26-31 Link Here
26
   bison --defines --output-file="parser.c" --name-prefix="test" parser.y
26
   bison --defines --output-file="parser.c" --name-prefix="test" parser.y
27
 */
27
 */
28
%parse-param { void* scanner }
28
%parse-param { void* scanner }
29
%lex-param { void* scanner }
29
%{
30
%{
30
#include <stdio.h>
31
#include <stdio.h>
31
#include <stdlib.h>
32
#include <stdlib.h>
Lines 33-39 Link Here
33
#include "config.h"
34
#include "config.h"
34
35
35
#define YYERROR_VERBOSE 1
36
#define YYERROR_VERBOSE 1
36
#define YYLEX_PARAM   scanner
37
37
38
38
39
/* A dummy function. A check against seg-faults in yylval->str. */
39
/* A dummy function. A check against seg-faults in yylval->str. */
Lines 49-55 int process_text(char* s) { Link Here
49
49
50
%}
50
%}
51
51
52
%pure_parser
52
%pure-parser
53
53
54
%union  {
54
%union  {
55
    long unused;
55
    long unused;
56
- 

Return to bug 592770