* Wraps the existing \c _mesa_symbol_table data structure to enforce some
* type safe and some symbol table invariants.
*/
-class glsl_symbol_table {
+struct glsl_symbol_table {
private:
enum glsl_symbol_name_space {
glsl_variable_name_space = 0,
}
struct _mesa_glsl_parse_state;
+struct glsl_symbol_table;
extern "C" void
_mesa_glsl_initialize_types(struct _mesa_glsl_parse_state *state);
/**
* Generate the constructor for this type and add it to the symbol table
*/
- class ir_function *generate_constructor(class glsl_symbol_table *) const;
+ class ir_function *generate_constructor(glsl_symbol_table *) const;
/**
* Query the total number of scalars that make up a scalar, vector or matrix
* the world in a public header file.
*/
/*@{*/
- static void generate_110_types(class glsl_symbol_table *);
- static void generate_120_types(class glsl_symbol_table *);
- static void generate_130_types(class glsl_symbol_table *);
- static void generate_ARB_texture_rectangle_types(class glsl_symbol_table *,
+ static void generate_110_types(glsl_symbol_table *);
+ static void generate_120_types(glsl_symbol_table *);
+ static void generate_130_types(glsl_symbol_table *);
+ static void generate_ARB_texture_rectangle_types(glsl_symbol_table *,
bool);
- static void generate_EXT_texture_array_types(class glsl_symbol_table *,
+ static void generate_EXT_texture_array_types(glsl_symbol_table *,
bool);
/*@}*/
extern void
reparent_ir(exec_list *list, void *mem_ctx);
-class glsl_symbol_table;
+struct glsl_symbol_table;
extern void
import_prototypes(const exec_list *source, exec_list *dest,
- class glsl_symbol_table *symbols, void *mem_ctx);
+ struct glsl_symbol_table *symbols, void *mem_ctx);
extern bool
ir_has_call(ir_instruction *ir);
void split_deref(ir_dereference **deref);
void handle_rvalue(ir_rvalue **rvalue);
- struct variable_entry *get_splitting_entry(ir_variable *var);
+ variable_entry *get_splitting_entry(ir_variable *var);
exec_list *variable_list;
void *mem_ctx;
};
-struct variable_entry *
+variable_entry *
ir_structure_splitting_visitor::get_splitting_entry(ir_variable *var)
{
assert(var);
lhs_var->mode == ir_var_inout)
continue;
- struct variable_entry *entry = info->refs->get_variable_entry(lhs_var);
+ variable_entry *entry = info->refs->get_variable_entry(lhs_var);
if (!entry->declaration ||
entry->assigned_count != 1 ||