mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-22 19:50:05 +00:00
0bd920eb9d
* Use standard function to get stdin to binary mode. The fisrt implementation to try to change stdin to binary mode is not protable. Using freopen has a lot of implementation defined behaviour, and the code relied on that working. Looking into the MSVC documentation, I do not see a protable way of doing this. I've implemented a Windows specific method and do nothing for other systems. In general, UNIX based systems do make a distinction between text and binary files, so nothing needs to be done for them. Fixes #2518 * Split ReadFile into two different functions. We want to remove the flag parameter. So the original function has been replaced with ReadBinaryFile and ReadTextFile. This should make the code more readable. * Change name of CorrectlyReadFile to avoid confusion. |
||
---|---|---|
.. | ||
dis.cpp |