1 |
|
2001-11-29 Paul Eggert <eggert@twinsun.com> |
2 |
|
|
3 |
|
Name space cleanup in generated parser. |
4 |
|
|
5 |
|
* doc/bison.texinfo (Bison Parser): Discuss system headers |
6 |
|
and their effect on the user name space. |
7 |
|
|
8 |
|
* src/bison.simple: |
9 |
|
(YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX, |
10 |
|
YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary, |
11 |
|
i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE). |
12 |
|
|
13 |
|
(YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing |
14 |
|
on user names when possible. |
15 |
|
|
16 |
|
(YYSTACK_USE_ALLOCA): Do not define; just use any existing defn. |
17 |
|
Simplify test for whather <alloca.h> exists. |
18 |
|
|
19 |
|
(<stdlib.h>): Include if we will use malloc, and if standard C or C++. |
20 |
|
|
21 |
|
(<stdio.h>): Include if YYDEBUG. |
22 |
|
|
23 |
|
(yymemcpy): Renamed from __yy_memcpy. Do not define unless |
24 |
|
! defined (yyoverflow) && ! defined (yymemcpy). |
25 |
|
|
26 |
|
(yymemcpy, yyparse): Rename local variables as needed so that |
27 |
|
they all begin with 'yy'. |
28 |
|
|
29 |
|
(yystrlen, yystpcpy): New functions. |
30 |
|
|
31 |
|
(YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES. |
32 |
|
All uses changed. |
33 |
|
|
34 |
|
(yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy |
35 |
|
instead of relying on string.h functions. Use YYSTACK_ALLOC |
36 |
|
and YYSTACK_FREE instead of malloc and free. |
37 |
|
|
38 |
2001-11-30 Akim Demaille <akim@epita.fr> |
2001-11-30 Akim Demaille <akim@epita.fr> |
39 |
|
|
40 |
* src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions |
* src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions |