diff options
Diffstat (limited to 'src/lex.l')
-rw-r--r-- | src/lex.l | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -133,17 +133,17 @@ input_context_pop (void) | |||
133 | instream_close (context_tos->input); | 133 | instream_close (context_tos->input); |
134 | free (context_tos->point.file); | 134 | free (context_tos->point.file); |
135 | memset (&yylloc, 0, sizeof (yylloc)); | 135 | memset (&yylloc, 0, sizeof (yylloc)); |
136 | cp = context_tos->parent; | 136 | cp = context_tos->parent; |
137 | free (context_tos); | 137 | free (context_tos); |
138 | context_tos = cp; | 138 | context_tos = cp; |
139 | yy_delete_buffer (YY_CURRENT_BUFFER); | ||
139 | if (!cp) | 140 | if (!cp) |
140 | return 1; | 141 | return 1; |
141 | 142 | ||
142 | yylloc = cp->locus; | 143 | yylloc = cp->locus; |
143 | yy_delete_buffer (YY_CURRENT_BUFFER); | ||
144 | yy_switch_to_buffer (cp->buf); | 144 | yy_switch_to_buffer (cp->buf); |
145 | 145 | ||
146 | return 0; | 146 | return 0; |
147 | } | 147 | } |
148 | 148 | ||
149 | static int | 149 | static int |