[Mesa-dev] [PATCH 08/14] glsl: Add copy-constructor for ast_struct_specifier.

Matt Turner mattst88 at gmail.com
Sat Jun 29 19:43:58 PDT 2013


---
 src/glsl/ast.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index 13c5e6b..0b70bb7 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -453,6 +453,13 @@ class ast_declarator_list;
 
 class ast_struct_specifier : public ast_node {
 public:
+   ast_struct_specifier(const ast_struct_specifier *structure):
+      is_declaration(structure->is_declaration), name(structure->name),
+      declarations(structure->declarations)
+   {
+      /* empty */
+   }
+
    ast_struct_specifier(const char *identifier,
 			ast_declarator_list *declarator_list);
    virtual void print(void) const;
-- 
1.8.1.5



More information about the mesa-dev mailing list