vkd3d-shader/preproc: Store EOF state per buffer.

We may immediately push a new file or expansion.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43481
This commit is contained in:
Elizabeth Figura
2025-06-03 14:07:54 -05:00
committed by Henri Verbeet
parent d768ea6709
commit 5e6def0843
Notes: Henri Verbeet 2025-06-05 16:19:09 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1538
3 changed files with 47 additions and 9 deletions

View File

@@ -38,6 +38,7 @@ struct preproc_buffer
{
void *lexer_buffer;
struct vkd3d_shader_location location;
bool eof;
};
struct preproc_file
@@ -125,7 +126,6 @@ struct preproc_ctx
int lookahead_token;
bool last_was_newline;
bool last_was_eof;
bool last_was_defined;
bool error;