Clone of mesa.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Carl Worth 876e510bda Finish cleaning up whitespace differences. 15 年前
main Add hash table implementation from glsl2 project. 15 年前
tests Remove "unnecessary" whitespace from some tests. 15 年前
.gitignore Add a very simple test for the pre-processor. 15 年前
Makefile Add a wrapper function around the lexer. 15 年前
README Add README file describing glcpp. 15 年前
glcpp-lex.l Finish cleaning up whitespace differences. 15 年前
glcpp-parse.y Finish cleaning up whitespace differences. 15 年前
glcpp.c Fix defines involving both literals and other defined macros. 15 年前
glcpp.h Finish cleaning up whitespace differences. 15 年前
hash_table.c Add hash table implementation from glsl2 project. 15 年前
hash_table.h Add hash table implementation from glsl2 project. 15 年前
xtalloc.c Rewrite macro handling to support function-like macro invocation in macro values 15 年前

README

glcpp -- GLSL "C" preprocessor

This is a simple preprocessor designed to provide the preprocessing
needs of the GLSL language. The requirements for this preprocessor are
specified in the GLSL 1.30 specification availble from:

http://www.opengl.org/registry/doc/GLSLangSpec.Full.1.30.08.pdf

This specification is not precise on some semantics, (for example,
#define and #if), defining these merely "as is standard for C++
preprocessors". To fill in these details, I've been using the C99
standard (for which I had a convenient copy) as available from:

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf