My Project
Loading...
Searching...
No Matches
include
bison_compat.h
Go to the documentation of this file.
1
4
#ifndef __BISON_COMPAT
5
#define __BISON_COMPAT
6
7
#define YYLTYPE loc_t
8
9
#define YYLTYPE_IS_DECLARED
10
11
#define YY_USER_INIT \
12
yylloc->first.line = yylloc->last.line = get_currline(yyscanner);\
13
yylloc->first.column = yylloc->last.column = get_currpos(yyscanner);
14
15
#define YY_USER_ACTION \
16
yylloc->first.line = yylloc->last.line; \
17
yylloc->first.column = get_currpos(yyscanner); \
18
if (yylloc->last.line == get_currline(yyscanner)) \
19
yylloc->last.column = get_currpos(yyscanner) + yyleng; \
20
else { \
21
yylloc->last.line = get_currline(yyscanner); \
22
yylloc->last.column = get_currpos(yyscanner); \
23
}
24
25
#define YYLLOC_DEFAULT(Current, Rhs, N) \
26
do \
27
if (N) { \
28
(Current).first.line = YYRHSLOC(Rhs, 1).first.line; \
29
(Current).first.column = YYRHSLOC(Rhs, 1).first.column; \
30
(Current).last.line = YYRHSLOC(Rhs, N).last.line; \
31
(Current).last.column = YYRHSLOC(Rhs, N).last.column; \
32
} else { \
33
(Current).first.line = (Current).last.line = YYRHSLOC(Rhs, 0).last.line; \
34
(Current).first.column = (Current).last.column = \
35
YYRHSLOC(Rhs, 0).last.column; \
36
} \
37
while (0)
38
39
ANN
void
clear_buffer
(
void
*state,
void
*scan);
40
41
#endif
clear_buffer
ANN void clear_buffer(void *state, void *scan)
Generated by
1.12.0