(push_source,pop_source): Include line info
Showing
1 changed file
with
8 additions
and
0 deletions
... | @@ -287,6 +287,10 @@ push_source (const char *name) | ... | @@ -287,6 +287,10 @@ push_source (const char *name) |
287 | sieve_filename = strdup (name); | 287 | sieve_filename = strdup (name); |
288 | sieve_line_num = 1; | 288 | sieve_line_num = 1; |
289 | sieve_source_inode = st.st_ino; | 289 | sieve_source_inode = st.st_ino; |
290 | |||
291 | sieve_code_source (sieve_filename); | ||
292 | sieve_code_line (sieve_line_num); | ||
293 | |||
290 | return 0; | 294 | return 0; |
291 | } | 295 | } |
292 | 296 | ||
... | @@ -316,6 +320,10 @@ pop_source () | ... | @@ -316,6 +320,10 @@ pop_source () |
316 | ctx = context_stack->prev; | 320 | ctx = context_stack->prev; |
317 | free (context_stack); | 321 | free (context_stack); |
318 | context_stack = ctx; | 322 | context_stack = ctx; |
323 | |||
324 | sieve_code_source (sieve_filename); | ||
325 | sieve_code_line (sieve_line_num); | ||
326 | |||
319 | return 0; | 327 | return 0; |
320 | } | 328 | } |
321 | %} | 329 | %} | ... | ... |
-
Please register or sign in to post a comment