summaryrefslogtreecommitdiff
path: root/src/glsl/ir_validate.cpp
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-08-23 10:43:27 -0700
committerCarl Worth <cworth@cworth.org>2010-08-23 10:48:10 -0700
commit61f73fec532b24ef5ec4b5baef81f5e6b9f20918 (patch)
tree4afb5c938b17bfb2f02d34ac48ebfde122de8640 /src/glsl/ir_validate.cpp
parent21560c40e8aa98624a225752b98babc7ae2938d5 (diff)
glcpp: Make standalone preprocessor work with a tty as stdin
Previously glcpp would silently abort if it couldn't fstat the file being read, (so it would work with stdin redirected from a file, but would not work with stdin as a tty). The stat was so that glcpp could allocate a buffer for the file content in a single call. We now use talloc_realloc instead, (even if the fstat is possible). This is theoretically less efficient, but quite irrelevant, (particularly because the standalone preprocessor is used only for testing).
Diffstat (limited to 'src/glsl/ir_validate.cpp')
0 files changed, 0 insertions, 0 deletions