Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenslang_compile_variable.h
Go to the documentation of this file.
00001 /* 00002 * Mesa 3-D graphics library 00003 * Version: 6.5.2 00004 * 00005 * Copyright (C) 2005-2006 Brian Paul All Rights Reserved. 00006 * 00007 * Permission is hereby granted, free of charge, to any person obtaining a 00008 * copy of this software and associated documentation files (the "Software"), 00009 * to deal in the Software without restriction, including without limitation 00010 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00011 * and/or sell copies of the Software, and to permit persons to whom the 00012 * Software is furnished to do so, subject to the following conditions: 00013 * 00014 * The above copyright notice and this permission notice shall be included 00015 * in all copies or substantial portions of the Software. 00016 * 00017 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00018 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00019 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00020 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00021 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00022 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00023 */ 00024 00025 #ifndef SLANG_COMPILE_VARIABLE_H 00026 #define SLANG_COMPILE_VARIABLE_H 00027 00028 00029 struct slang_ir_storage_; 00030 00031 00035 typedef struct slang_variable_ 00036 { 00037 slang_fully_specified_type type; 00038 slang_atom a_name; 00039 GLuint array_len; 00040 struct slang_operation_ *initializer; 00041 GLuint size; 00042 GLboolean isTemp; 00043 GLboolean declared; 00044 struct slang_ir_storage_ *store; 00045 } slang_variable; 00046 00047 00051 typedef struct slang_variable_scope_ 00052 { 00053 slang_variable **variables; 00054 GLuint num_variables; 00055 struct slang_variable_scope_ *outer_scope; 00056 } slang_variable_scope; 00057 00058 00059 extern slang_variable_scope * 00060 _slang_variable_scope_new(slang_variable_scope *parent); 00061 00062 extern GLvoid 00063 _slang_variable_scope_ctr(slang_variable_scope *); 00064 00065 extern void 00066 slang_variable_scope_destruct(slang_variable_scope *); 00067 00068 extern int 00069 slang_variable_scope_copy(slang_variable_scope *, 00070 const slang_variable_scope *); 00071 00072 extern slang_variable * 00073 slang_variable_scope_grow(slang_variable_scope *); 00074 00075 extern int 00076 slang_variable_construct(slang_variable *); 00077 00078 extern void 00079 slang_variable_destruct(slang_variable *); 00080 00081 extern int 00082 slang_variable_copy(slang_variable *, const slang_variable *); 00083 00084 extern slang_variable * 00085 _slang_variable_locate(const slang_variable_scope *, const slang_atom a_name, 00086 GLboolean all); 00087 00088 00089 #endif /* SLANG_COMPILE_VARIABLE_H */ Generated on Sun May 27 2012 04:20:40 for ReactOS by
1.7.6.1
|