On 07/20/2011 08:00 AM, Chad Versace wrote:
> On the issue of std::stringbuf, I'm siding with Paul here. This
> concise, safe function definition:

Without taking sides, I would like to point out load_text_file, which
already implements this.  Unfortunately, it got cut and pasted and
diverged, so there's one in glsl/main.cpp and one in glsl/glcpp/glcpp.c.
 (That should probably be fixed.)  Paul seemed to think the one in
main.cpp wouldn't work with stdin, but I know for a fact the one in
glcpp does.

--Kenneth
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to