Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Divergence from Win32 RC: Forward slash on its own line #14

Open
squeek502 opened this issue Sep 22, 2024 · 0 comments
Open

Divergence from Win32 RC: Forward slash on its own line #14

squeek502 opened this issue Sep 22, 2024 · 0 comments

Comments

@squeek502
Copy link
Owner

squeek502 commented Sep 22, 2024

For some reason, this is valid, as all the / characters are ignored:

/
1 RCDATA {}
/
/
/
2 RCDATA {
  /
  /
}

In fact, all of the / are removed during preprocessing:

rc /p test.rc
#line 1 "C:\\Users\\Ryan\\Programming\\Zig\\resinator\\tmp\\RCa15696"
#line 1 "test.rc"
#line 1 "test.rc"

1 RCDATA {}



2 RCDATA {


}

This is not the behavior for the Aro, clang, or even cl.exe preprocessors, so this is a rc.exe-specific quirk.


Currently, resinator does not emulate this behavior and instead treats it as any other character.

@squeek502 squeek502 changed the title Divergence from Win32 RC: Forward slash is ignored if its on its own line Divergence from Win32 RC: Forward slash on its own line Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant