aboutsummaryrefslogtreecommitdiff
path: root/source/val/validate_cfg.cpp
diff options
context:
space:
mode:
authorSteven Perron <stevenperron@google.com>2021-03-01 09:38:49 -0500
committerGitHub <noreply@github.com>2021-03-01 09:38:49 -0500
commit0bd920eb9d44e98c33e6462eab787b15bbd731dc (patch)
treef03e8b89a253f5d94cd26bdfca1b6073376806dd /source/val/validate_cfg.cpp
parentd28186db93d80812943d43143b016f28bf49ada1 (diff)
downloadSPIRV-Tools-0bd920eb9d44e98c33e6462eab787b15bbd731dc.tar.gz
Use standard function to get stdin to binary mode. (#4141)
* 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.
Diffstat (limited to 'source/val/validate_cfg.cpp')
0 files changed, 0 insertions, 0 deletions