skip include file only if include_file_name=current_file_name
Unified · Split
| @@ -1621,7 +1621,6 @@ ST_FUNC void preprocess(int is_bof) · 1620 unmodified lines | ||
| 1621 | 1621 | for (i = -2; i < n; ++i) { |
| 1622 | 1622 | char buf1[sizeof file->filename]; |
| 1623 | 1623 | CachedInclude *e; |
| 1624 | − BufferedFile **f; | |
| 1625 | 1624 | const char *path; |
| 1626 | 1625 | |
| 1627 | 1626 | if (i == -2) { |
| @@ -1651,8 +1650,7 @@ ST_FUNC void preprocess(int is_bof) · 23 unmodified lines | ||
| 1651 | 1650 | pstrcat(buf1, sizeof(buf1), buf); |
| 1652 | 1651 | |
| 1653 | 1652 | if (tok == TOK_INCLUDE_NEXT) |
| 1654 | − for (f = s1->include_stack_ptr; f >= s1->include_stack; --f) | |
| 1655 | − if (0 == PATHCMP((*f)->filename, buf1)) { | |
| 1653 | + if (0 == PATHCMP(file->filename, buf1)) { | |
| 1656 | 1654 | #ifdef INC_DEBUG |
| 1657 | 1655 | printf("%s: #include_next skipping %s\n", file->filename, buf1); |
| 1658 | 1656 | #endif |