comparison src/pt-decl.h @ 10313:f3b65e1ae355

untabify src header files
author John W. Eaton <jwe@octave.org>
date Thu, 11 Feb 2010 12:16:43 -0500
parents cd96d29c5efa
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
10312:cbc402e64d83 10313:f3b65e1ae355
86 tree_identifier *ident (void) { return id; } 86 tree_identifier *ident (void) { return id; }
87 87
88 tree_expression *expression (void) { return expr; } 88 tree_expression *expression (void) { return expr; }
89 89
90 tree_decl_elt *dup (symbol_table::scope_id scope, 90 tree_decl_elt *dup (symbol_table::scope_id scope,
91 symbol_table::context_id context) const; 91 symbol_table::context_id context) const;
92 92
93 void accept (tree_walker& tw); 93 void accept (tree_walker& tw);
94 94
95 private: 95 private:
96 96
117 tree_decl_init_list (tree_decl_elt *t) { append (t); } 117 tree_decl_init_list (tree_decl_elt *t) { append (t); }
118 118
119 ~tree_decl_init_list (void) 119 ~tree_decl_init_list (void)
120 { 120 {
121 while (! empty ()) 121 while (! empty ())
122 { 122 {
123 iterator p = begin (); 123 iterator p = begin ();
124 delete *p; 124 delete *p;
125 erase (p); 125 erase (p);
126 } 126 }
127 } 127 }
128 128
129 tree_decl_init_list *dup (symbol_table::scope_id scope, 129 tree_decl_init_list *dup (symbol_table::scope_id scope,
130 symbol_table::context_id context) const; 130 symbol_table::context_id context) const;
131 131
132 void accept (tree_walker& tw); 132 void accept (tree_walker& tw);
133 133
134 private: 134 private:
135 135
149 149
150 tree_decl_command (const std::string& n, int l = -1, int c = -1) 150 tree_decl_command (const std::string& n, int l = -1, int c = -1)
151 : tree_command (l, c), cmd_name (n), init_list (0) { } 151 : tree_command (l, c), cmd_name (n), init_list (0) { }
152 152
153 tree_decl_command (const std::string& n, tree_decl_init_list *t, 153 tree_decl_command (const std::string& n, tree_decl_init_list *t,
154 int l = -1, int c = -1) 154 int l = -1, int c = -1)
155 : tree_command (l, c), cmd_name (n), init_list (t) { } 155 : tree_command (l, c), cmd_name (n), init_list (t) { }
156 156
157 ~tree_decl_command (void); 157 ~tree_decl_command (void);
158 158
159 tree_decl_init_list *initializer_list (void) { return init_list; } 159 tree_decl_init_list *initializer_list (void) { return init_list; }
191 : tree_decl_command ("global", t, l, c) { } 191 : tree_decl_command ("global", t, l, c) { }
192 192
193 ~tree_global_command (void) { } 193 ~tree_global_command (void) { }
194 194
195 tree_command *dup (symbol_table::scope_id scope, 195 tree_command *dup (symbol_table::scope_id scope,
196 symbol_table::context_id context) const; 196 symbol_table::context_id context) const;
197 197
198 void accept (tree_walker& tw); 198 void accept (tree_walker& tw);
199 199
200 private: 200 private:
201 201
222 : tree_decl_command ("static", t, l, c) { } 222 : tree_decl_command ("static", t, l, c) { }
223 223
224 ~tree_static_command (void) { } 224 ~tree_static_command (void) { }
225 225
226 tree_command *dup (symbol_table::scope_id scope, 226 tree_command *dup (symbol_table::scope_id scope,
227 symbol_table::context_id context) const; 227 symbol_table::context_id context) const;
228 228
229 void accept (tree_walker& tw); 229 void accept (tree_walker& tw);
230 230
231 private: 231 private:
232 232