commit | 1b1f43e6089bf1f78e8ff19b43a649b931fe4e31 | [log] [tgz] |
---|---|---|
author | Kenneth Graunke <kenneth@whitecape.org> | Wed Jun 16 12:01:17 2010 -0700 |
committer | Kenneth Graunke <kenneth@whitecape.org> | Mon Jun 21 11:25:50 2010 -0700 |
tree | ad99d3f2b447043eaa827c6030f15ecec0bdb2bf | |
parent | 4c8a1af8117ac8e69883c6ef88d3f3b073dc6e0a [diff] [blame] |
glcpp: Add support for lexing from a string. The standalone binary still reads from stdin, however.
diff --git a/glcpp/glcpp.h b/glcpp/glcpp.h index ac103b7..0d43f0b 100644 --- a/glcpp/glcpp.h +++ b/glcpp/glcpp.h
@@ -159,6 +159,9 @@ int glcpp_lex_init_extra (glcpp_parser_t *parser, yyscan_t* scanner); +void +glcpp_lex_set_source_string(glcpp_parser_t *parser, const char *shader); + int glcpp_lex (yyscan_t scanner);