msyylex_destroy is for both reentrant and non-reentrant scanners. */
| 5135 | |
| 5136 | /* msyylex_destroy is for both reentrant and non-reentrant scanners. */ |
| 5137 | int msyylex_destroy (void) |
| 5138 | { |
| 5139 | |
| 5140 | /* Pop the buffer stack, destroying each element. */ |
| 5141 | while(YY_CURRENT_BUFFER){ |
| 5142 | msyy_delete_buffer(YY_CURRENT_BUFFER ); |
| 5143 | YY_CURRENT_BUFFER_LVALUE = NULL; |
| 5144 | msyypop_buffer_state(); |
| 5145 | } |
| 5146 | |
| 5147 | /* Destroy the stack itself. */ |
| 5148 | msyyfree((yy_buffer_stack) ); |
| 5149 | (yy_buffer_stack) = NULL; |
| 5150 | |
| 5151 | /* Reset the globals. This is important in a non-reentrant scanner so the next time |
| 5152 | * msyylex() is called, initialization will occur. */ |
| 5153 | yy_init_globals( ); |
| 5154 | |
| 5155 | return 0; |
| 5156 | } |
| 5157 | |
| 5158 | /* |
| 5159 | * Internal utility routines. |
no test coverage detected