#include "imports.h"\r
#include "hash.h"\r
#include "shaderobjects.h"\r
+#include "shaderobjects_3dlabs.h"\r
\r
#if USE_3DLABS_FRONTEND\r
#include "slang_mesa.h"\r
extern "C" {\r
#endif\r
\r
+struct slang_operation_;\r
+\r
typedef enum slang_assembly_type_\r
{\r
/* core */\r
GLboolean _slang_build_export_code_table (slang_export_code_table *tbl, slang_function_scope *funs,\r
slang_translation_unit *unit)\r
{\r
- slang_atom main;\r
+ slang_atom mainAtom;\r
GLuint i;\r
\r
- main = slang_atom_pool_atom (tbl->atoms, "main");\r
- if (main == SLANG_ATOM_NULL)\r
+ mainAtom = slang_atom_pool_atom (tbl->atoms, "main");\r
+ if (mainAtom == SLANG_ATOM_NULL)\r
return GL_FALSE;\r
\r
for (i = 0; i < funs->num_functions; i++)\r
{\r
- if (funs->functions[i].header.a_name == main)\r
+ if (funs->functions[i].header.a_name == mainAtom)\r
{\r
slang_function *fun = &funs->functions[i];\r
slang_export_code_entry *e;\r
extern "C" {\r
#endif\r
\r
+struct slang_translation_unit_;\r
+\r
typedef enum slang_function_kind_\r
{\r
slang_func_ordinary,\r
* slang_export_code_entry\r
*/\r
\r
-GLvoid slang_export_code_entry_ctr (slang_export_code_entry *self)\r
+static GLvoid slang_export_code_entry_ctr (slang_export_code_entry *self)\r
{\r
self->name = SLANG_ATOM_NULL;\r
self->address = ~0;\r
}\r
\r
-GLvoid slang_export_code_entry_dtr (slang_export_code_entry *self)\r
+static GLvoid slang_export_code_entry_dtr (slang_export_code_entry *self)\r
{\r
}\r
\r
extern "C" {\r
#endif\r
\r
-typedef enum\r
+enum\r
{\r
SLANG_UNIFORM_BINDING_VERTEX,\r
SLANG_UNIFORM_BINDING_FRAGMENT,\r
GLuint count;\r
} slang_active_uniforms;\r
\r
-typedef enum\r
+enum\r
{\r
SLANG_COMMON_FIXED_MODELVIEWMATRIX,\r
SLANG_COMMON_FIXED_PROJECTIONMATRIX,\r
SLANG_COMMON_FIXED_MAX\r
};\r
\r
-typedef enum\r
+enum\r
{\r
SLANG_VERTEX_FIXED_POSITION,\r
SLANG_VERTEX_FIXED_POINTSIZE,\r
SLANG_VERTEX_FIXED_MAX\r
};\r
\r
-typedef enum\r
+enum\r
{\r
SLANG_FRAGMENT_FIXED_FRAGCOORD,\r
SLANG_FRAGMENT_FIXED_FRONTFACING,\r
/* Compile-time assertions. If the expression is zero, try to declare an\r
* array of size [-1] to cause compilation error.\r
*/\r
-#define static_assert(expr) do { int _array[(expr) ? 1 : -1]; _array[0]; } while (0)\r
+#define static_assert(expr) do { int _array[(expr) ? 1 : -1]; (void) _array[0]; } while (0)\r
\r
#define slang_alloc_free(ptr) _mesa_free (ptr)\r
#define slang_alloc_malloc(size) _mesa_malloc (size)\r