[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
yylex_destroy returns a useless int
From: |
Akim Demaille |
Subject: |
yylex_destroy returns a useless int |
Date: |
Fri, 12 Dec 2003 18:17:50 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
The documentation and the code show that yylex_destroy returns an int,
but the former specifies no meaning, and (apparently) neither does the
latter:
| /* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
| /* yylex_destroy is for both reentrant and non-reentrant scanners. */
| int yylex_destroy (void)
| {
|
| /* Pop the buffer stack, destroying each element. */
| while(YY_CURRENT_BUFFER){
| yy_delete_buffer(YY_CURRENT_BUFFER );
| YY_CURRENT_BUFFER_LVALUE = NULL;
| yypop_buffer_state();
| }
|
| /* Destroy the stack itself. */
| yyfree((yy_buffer_stack) );
| (yy_buffer_stack) = NULL;
|
| /* %if-reentrant */
| /* %endif */
| return 0;
| }
| /* %endif */
Could it be made void? That would make it easier to "atexit
(yylex_destroy)".
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- yylex_destroy returns a useless int,
Akim Demaille <=