This is an archive of the discontinued LLVM Phabricator instance.

[llvm-rc] Add support for the RCDATA resource type
ClosedPublic

Authored by mstorsjo on May 9 2018, 4:26 AM.

Details

Summary

This is the same as any other user defined resource, but with a specific allocated resource type number.

Diff Detail

Event Timeline

mstorsjo created this revision.May 9 2018, 4:26 AM
amccarth accepted this revision.May 9 2018, 8:33 AM

The docs suggest there are differences between RCDATA and user-defined resource definitions, but the Microsoft rc.exe doesn't seem to follow the docs. For example, the docs say user-defined types can use an external file but that RCDATA cannot. In real life, the resource compiler will accept an RCDATA statement that does reference an external file. Also, the docs say RCDATA can have VERSION, CHARACTERISTICS, and LANGUAGE optional statements, but those don't seem to work because the keywords are mistaken for file names.

This change seems to match the behavior rather than the docs in these regards. I think that's the right way to go.

This revision is now accepted and ready to land.May 9 2018, 8:33 AM
This revision was automatically updated to reflect the committed changes.