diff options
author | Michal Krol <[email protected]> | 2006-09-26 16:01:11 +0000 |
---|---|---|
committer | Michal Krol <[email protected]> | 2006-09-26 16:01:11 +0000 |
commit | 27f660c16407d08e06fd0cc97bb247b41ae76f3b (patch) | |
tree | e9b66176d09fbd6fbc1ef102aaca67a3c3d11113 /src/mesa/shader/slang/slang_utility.h | |
parent | 4303d227396ab3a6f70c6c8318dcb9b30ca30755 (diff) |
Add GLSL preprocessor.
Diffstat (limited to 'src/mesa/shader/slang/slang_utility.h')
-rw-r--r-- | src/mesa/shader/slang/slang_utility.h | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_utility.h b/src/mesa/shader/slang/slang_utility.h index 7a1997e5597..565de4e4b02 100644 --- a/src/mesa/shader/slang/slang_utility.h +++ b/src/mesa/shader/slang/slang_utility.h @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.5 + * Version: 6.6 * * Copyright (C) 2005-2006 Brian Paul All Rights Reserved. * @@ -44,6 +44,42 @@ extern "C" { char *slang_string_concat (char *, const char *); +/* slang_string */ + +typedef struct +{ + char *data; + GLuint length; + GLuint capacity; + GLboolean fail; +} slang_string; + +GLvoid +slang_string_init (slang_string *); + +GLvoid +slang_string_free (slang_string *); + +GLvoid +slang_string_reset (slang_string *); + +GLvoid +slang_string_push (slang_string *, const slang_string *); + +GLvoid +slang_string_pushc (slang_string *, const char); + +GLvoid +slang_string_pushs (slang_string *, const char *, GLuint); + +GLvoid +slang_string_pushi (slang_string *, GLint); + +const char * +slang_string_cstr (slang_string *); + +/* slang_atom */ + typedef GLvoid *slang_atom; #define SLANG_ATOM_NULL ((slang_atom) 0) |