8
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
8
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
7016
|
9 Free Software Foundation; either version 3 of the License, or (at your |
|
10 option) any later version. |
8
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
7016
|
18 along with Octave; see the file COPYING. If not, see |
|
19 <http://www.gnu.org/licenses/>. |
8
|
20 |
|
21 */ |
|
22 |
383
|
23 #if !defined (octave_symtab_h) |
|
24 #define octave_symtab_h 1 |
8
|
25 |
3011
|
26 #include <cassert> |
|
27 |
1755
|
28 #include <string> |
4214
|
29 #include <stack> |
5765
|
30 #include <sstream> |
220
|
31 |
3011
|
32 #include "oct-alloc.h" |
1755
|
33 #include "str-vec.h" |
|
34 |
2975
|
35 #include "ov.h" |
|
36 |
2979
|
37 class octave_lvalue; |
8
|
38 |
1755
|
39 class string_vector; |
|
40 |
8
|
41 class symbol_record; |
|
42 class symbol_table; |
|
43 |
4913
|
44 struct |
|
45 whos_parameter |
|
46 { |
4914
|
47 char command; |
|
48 char modifier; |
|
49 int parameter_length; |
|
50 int first_parameter_length; |
|
51 int dimensions; |
|
52 int balance; |
4913
|
53 std::string text; |
|
54 std::string line; |
|
55 }; |
|
56 |
3011
|
57 // Individual records in a symbol table. |
8
|
58 |
3011
|
59 class |
6109
|
60 OCTINTERP_API |
3011
|
61 symbol_record |
|
62 { |
|
63 public: |
8
|
64 |
3258
|
65 // If you add or delete an entry here, you'll also need to change |
3325
|
66 // the width parameter in the declaration for symbol_type below... |
3258
|
67 |
195
|
68 enum TYPE |
|
69 { |
|
70 UNKNOWN = 0, |
|
71 USER_FUNCTION = 1, |
|
72 USER_VARIABLE = 2, |
3325
|
73 DLD_FUNCTION = 4, |
|
74 BUILTIN_FUNCTION = 8, |
4208
|
75 COMMAND = 16, |
5102
|
76 RAWCOMMAND = 32, |
5864
|
77 MAPPER_FUNCTION = 64, |
|
78 MEX_FUNCTION = 128, |
195
|
79 }; |
|
80 |
8
|
81 private: |
|
82 |
3011
|
83 // Variables or functions. |
|
84 |
|
85 class symbol_def |
|
86 { |
|
87 public: |
|
88 |
|
89 symbol_def (const octave_value& val = octave_value (), |
|
90 unsigned int sym_type = 0) |
6257
|
91 : symbol_type (sym_type), read_only (0), help_string (), |
5399
|
92 definition (val), count (1) { } |
3011
|
93 |
|
94 ~symbol_def (void) { } |
|
95 |
|
96 bool is_variable (void) const |
5794
|
97 { return (symbol_type & symbol_record::USER_VARIABLE); } |
3011
|
98 |
4208
|
99 // It's not necessary to check for COMMAND and MAPPER_FUNCTION |
3968
|
100 // here. Those tags are just used as additional qualifiers for |
|
101 // the other types of functions. |
|
102 |
3011
|
103 bool is_function (void) const |
|
104 { |
|
105 return (symbol_type & symbol_record::USER_FUNCTION |
3325
|
106 || symbol_type & symbol_record::DLD_FUNCTION |
5864
|
107 || symbol_type & symbol_record::MEX_FUNCTION |
3011
|
108 || symbol_type & symbol_record::BUILTIN_FUNCTION); |
|
109 } |
|
110 |
|
111 bool is_user_variable (void) const |
|
112 { return (symbol_type & symbol_record::USER_VARIABLE); } |
195
|
113 |
5136
|
114 // Don't use |= here to avoid error with AIX compiler. |
4208
|
115 void mark_as_command (void) |
5136
|
116 { symbol_type = symbol_type | symbol_record::COMMAND; } |
4207
|
117 |
4208
|
118 void unmark_command (void) |
|
119 { symbol_type &= ~symbol_record::COMMAND; } |
4207
|
120 |
4208
|
121 bool is_command (void) const |
|
122 { return (symbol_type & symbol_record::COMMAND); } |
3011
|
123 |
5102
|
124 void mark_as_rawcommand (void) |
|
125 { symbol_type |= (symbol_record::COMMAND |
|
126 | symbol_record::RAWCOMMAND); } |
|
127 |
|
128 void unmark_rawcommand (void) |
|
129 { symbol_type &= ~symbol_record::RAWCOMMAND; } |
|
130 |
|
131 bool is_rawcommand (void) const |
|
132 { return (symbol_type & symbol_record::RAWCOMMAND); } |
|
133 |
3011
|
134 bool is_mapper_function (void) const |
|
135 { return (symbol_type & symbol_record::MAPPER_FUNCTION); } |
|
136 |
|
137 bool is_user_function (void) const |
|
138 { return (symbol_type & symbol_record::USER_FUNCTION); } |
|
139 |
|
140 bool is_builtin_function (void) const |
|
141 { return (symbol_type & symbol_record::BUILTIN_FUNCTION); } |
|
142 |
3325
|
143 bool is_dld_function (void) const |
|
144 { return (symbol_type & symbol_record::DLD_FUNCTION); } |
|
145 |
5864
|
146 bool is_mex_function (void) const |
|
147 { return (symbol_type & symbol_record::MEX_FUNCTION); } |
|
148 |
5775
|
149 // FIXME |
3523
|
150 bool is_map_element (const std::string& /* elts */) const |
3011
|
151 { return false; } |
|
152 |
|
153 bool is_defined (void) const |
|
154 { return definition.is_defined (); } |
|
155 |
|
156 bool is_read_only (void) const |
|
157 { return read_only; } |
|
158 |
4913
|
159 bool is_matrix_type (void) const |
|
160 { return definition.is_matrix_type (); } |
|
161 |
5659
|
162 bool is_sparse_type (void) const |
|
163 { return definition.is_sparse_type (); } |
|
164 |
|
165 bool is_complex_type (void) const |
|
166 { return definition.is_complex_type (); } |
|
167 |
|
168 std::string class_name (void) const |
|
169 { return definition.class_name (); } |
|
170 |
|
171 Matrix size (void) const |
|
172 { return definition.size (); } |
|
173 |
4913
|
174 size_t byte_size (void) const |
|
175 { return definition.byte_size (); }; |
|
176 |
5275
|
177 octave_idx_type numel (void) const |
4913
|
178 { return definition.numel (); }; |
|
179 |
5275
|
180 octave_idx_type capacity (void) const |
5164
|
181 { return definition.capacity (); }; |
|
182 |
4913
|
183 dim_vector dims (void) const |
|
184 { return definition.dims (); } |
|
185 |
5275
|
186 octave_idx_type rows (void) const { return definition.rows (); } |
|
187 octave_idx_type columns (void) const { return definition.columns (); } |
3013
|
188 |
3523
|
189 std::string type_name (void) const { return definition.type_name (); } |
3013
|
190 |
3523
|
191 std::string type_as_string (void) const; |
3355
|
192 |
3523
|
193 void type (std::ostream& os, const std::string& name, bool pr_type_info, |
3356
|
194 bool quiet, bool pr_orig_txt); |
|
195 |
3523
|
196 std::string which (const std::string& name); |
3355
|
197 |
3523
|
198 void which (std::ostream& os, const std::string& name); |
3355
|
199 |
3011
|
200 void define (const octave_value& val, unsigned int sym_type) |
|
201 { |
|
202 definition = val; |
|
203 symbol_type = sym_type; |
|
204 } |
|
205 |
|
206 void protect (void) { read_only = 1; } |
|
207 |
|
208 void unprotect (void) { read_only = 0; } |
|
209 |
|
210 octave_value& def (void) { return definition; } |
|
211 |
3523
|
212 std::string help (void) const { return help_string; } |
3011
|
213 |
5823
|
214 void document (const std::string& h); |
3011
|
215 |
|
216 unsigned int type (void) { return symbol_type; } |
|
217 |
|
218 void *operator new (size_t size) |
|
219 { return allocator.alloc (size); } |
|
220 |
|
221 void operator delete (void *p, size_t size) |
|
222 { allocator.free (p, size); } |
|
223 |
|
224 static octave_allocator allocator; |
8
|
225 |
3011
|
226 // The type of this symbol (see the enum above). |
5102
|
227 unsigned int symbol_type : 9; |
3011
|
228 |
|
229 // Nonzero means this variable cannot be given a new value. |
|
230 unsigned int read_only : 1; |
|
231 |
|
232 // The doc string associated with this variable. |
3523
|
233 std::string help_string; |
3011
|
234 |
|
235 // The value of this definition. See ov.h and related files. |
|
236 octave_value definition; |
767
|
237 |
3011
|
238 // Reference count. |
|
239 int count; |
|
240 |
3933
|
241 void print_info (std::ostream& os, |
|
242 const std::string& prefix = std::string ()) const; |
3239
|
243 |
3011
|
244 // No copying! |
|
245 |
|
246 symbol_def (const symbol_def& sd); |
|
247 |
|
248 symbol_def& operator = (const symbol_def& sd); |
|
249 }; |
8
|
250 |
|
251 public: |
2953
|
252 |
3011
|
253 typedef int (*change_function) (void); |
2953
|
254 |
3011
|
255 symbol_record (void) |
5861
|
256 : formal_param (false), automatic_variable (false), |
|
257 linked_to_global (false), tagged_static (false), |
6257
|
258 can_hide_function (true), visible (true), eternal (false), |
|
259 nm (), chg_fcn (0), definition (new symbol_def ()), next_elem (0) { } |
4234
|
260 |
5775
|
261 // FIXME -- kluge alert! We obviously need a better way of |
4234
|
262 // handling allow_shadow! |
3011
|
263 |
3523
|
264 symbol_record (const std::string& n, symbol_record *nxt) |
5861
|
265 : formal_param (false), automatic_variable (false), |
|
266 linked_to_global (false), tagged_static (false), |
6257
|
267 can_hide_function (n != "__end__"), visible (true), |
|
268 eternal (false), nm (n), chg_fcn (0), |
|
269 definition (new symbol_def ()), next_elem (nxt) { } |
8
|
270 |
5013
|
271 ~symbol_record (void) |
|
272 { |
|
273 if (--definition->count <= 0) |
|
274 delete definition; |
|
275 } |
8
|
276 |
3523
|
277 std::string name (void) const { return nm; } |
2975
|
278 |
3523
|
279 std::string help (void) const { return definition->help (); } |
3011
|
280 |
|
281 octave_value& def (void) { return definition->def (); } |
8
|
282 |
3523
|
283 void rename (const std::string& new_name); |
195
|
284 |
3011
|
285 bool is_function (void) const |
|
286 { return definition->is_function (); } |
|
287 |
4208
|
288 void mark_as_command (void) |
|
289 { definition->mark_as_command (); } |
4207
|
290 |
4208
|
291 void unmark_command (void) |
|
292 { definition->unmark_command (); } |
4207
|
293 |
4208
|
294 bool is_command (void) const |
|
295 { return definition->is_command (); } |
3011
|
296 |
5102
|
297 void mark_as_rawcommand (void) |
|
298 { definition->mark_as_rawcommand (); } |
|
299 |
|
300 void unmark_rawcommand (void) |
|
301 { definition->unmark_rawcommand (); } |
|
302 |
|
303 bool is_rawcommand (void) const |
|
304 { return definition->is_rawcommand (); } |
|
305 |
3011
|
306 bool is_mapper_function (void) const |
|
307 { return definition->is_mapper_function (); } |
|
308 |
|
309 bool is_user_function (void) const |
|
310 { return definition->is_user_function (); } |
195
|
311 |
3011
|
312 bool is_builtin_function (void) const |
|
313 { return definition->is_builtin_function (); } |
|
314 |
3325
|
315 bool is_dld_function (void) const |
|
316 { return definition->is_dld_function (); } |
|
317 |
5864
|
318 bool is_mex_function (void) const |
|
319 { return definition->is_mex_function (); } |
|
320 |
3011
|
321 bool is_variable (void) const |
|
322 { return definition->is_variable (); } |
8
|
323 |
3011
|
324 bool is_user_variable (void) const |
|
325 { return definition->is_user_variable (); } |
|
326 |
3523
|
327 bool is_map_element (const std::string& elts) const |
3011
|
328 { return definition->is_map_element (elts); } |
8
|
329 |
3011
|
330 unsigned int type (void) const { return definition->type (); } |
|
331 |
|
332 bool is_defined (void) const { return definition->is_defined (); } |
|
333 |
|
334 bool is_read_only (void) const { return definition->is_read_only (); } |
8
|
335 |
6257
|
336 bool is_eternal (void) const { return eternal; } |
3011
|
337 |
|
338 void protect (void) { definition->protect (); } |
195
|
339 |
3011
|
340 void unprotect (void) { definition->unprotect (); } |
|
341 |
6257
|
342 void make_eternal (void) { eternal = 1; } |
2893
|
343 |
5399
|
344 void hide (void) { visible = false; } |
|
345 void show (void) { visible = true; } |
|
346 bool is_visible (void) const { return visible; } |
5397
|
347 |
3011
|
348 void set_change_function (change_function f) { chg_fcn = f; } |
2893
|
349 |
3011
|
350 void define (const octave_value& v, unsigned int sym_type = USER_VARIABLE); |
|
351 |
|
352 bool define (octave_function *f, unsigned int sym_type); |
2893
|
353 |
3523
|
354 void document (const std::string& h) { definition->document (h); } |
195
|
355 |
3011
|
356 void clear (void); |
195
|
357 |
5397
|
358 void alias (symbol_record *s, bool mark_to_clear = false); |
8
|
359 |
|
360 void mark_as_formal_parameter (void); |
3011
|
361 bool is_formal_parameter (void) const { return formal_param; } |
8
|
362 |
5861
|
363 void mark_as_automatic_variable (void); |
|
364 bool is_automatic_variable (void) const { return automatic_variable; } |
|
365 |
195
|
366 void mark_as_linked_to_global (void); |
3011
|
367 bool is_linked_to_global (void) const { return linked_to_global; } |
8
|
368 |
2846
|
369 void mark_as_static (void); |
3011
|
370 bool is_static (void) const { return tagged_static; } |
4319
|
371 void unmark_static (void) { tagged_static = false; } |
2846
|
372 |
4913
|
373 bool is_matrix_type (void) const |
|
374 { return definition->is_matrix_type (); } |
|
375 |
5659
|
376 bool is_sparse_type (void) const |
|
377 { return definition->is_sparse_type (); } |
|
378 |
|
379 bool is_complex_type (void) const |
|
380 { return definition->is_complex_type (); } |
|
381 |
|
382 std::string class_name (void) const |
|
383 { return definition->class_name (); } |
|
384 |
|
385 Matrix size (void) const |
|
386 { return definition->size (); } |
|
387 |
4913
|
388 size_t byte_size (void) const |
|
389 { return definition->byte_size (); }; |
|
390 |
5275
|
391 octave_idx_type numel (void) const |
4913
|
392 { return definition->numel (); }; |
|
393 |
5275
|
394 octave_idx_type capacity (void) const |
5164
|
395 { return definition->capacity (); }; |
|
396 |
4913
|
397 dim_vector dims (void) const { return definition->dims (); } |
|
398 |
|
399 int dimensions_string_req_first_space (int print_dims) const; |
|
400 |
|
401 int dimensions_string_req_total_space (int print_dims) const; |
|
402 |
|
403 std::string make_dimensions_string (int print_dims) const; |
|
404 |
5275
|
405 octave_idx_type rows (void) const { return definition->rows (); } |
|
406 octave_idx_type columns (void) const { return definition->columns (); } |
3013
|
407 |
3523
|
408 std::string type_name (void) const { return definition->type_name (); } |
3013
|
409 |
3523
|
410 std::string type_as_string (void) const |
3355
|
411 { return definition->type_as_string (); } |
|
412 |
3523
|
413 void type (std::ostream& os, bool pr_type_info, bool quiet, bool pr_orig_txt) |
3356
|
414 { definition->type (os, name (), pr_type_info, quiet, pr_orig_txt); } |
|
415 |
3523
|
416 std::string which (void) { return definition->which (name ()); } |
3355
|
417 |
3523
|
418 void which (std::ostream& os) { definition->which (os, name ()); } |
3355
|
419 |
2975
|
420 octave_value& variable_value (void); |
2979
|
421 octave_lvalue variable_reference (void); |
2390
|
422 |
3011
|
423 symbol_record *next (void) const { return next_elem; } |
8
|
424 |
3011
|
425 void chain (symbol_record *s) { next_elem = s; } |
195
|
426 |
220
|
427 void push_context (void); |
3011
|
428 |
220
|
429 void pop_context (void); |
|
430 |
4913
|
431 void print_symbol_info_line (std::ostream& os, |
|
432 std::list<whos_parameter>& params) const; |
3013
|
433 |
3933
|
434 void print_info (std::ostream& os, |
|
435 const std::string& prefix = std::string ()) const; |
3239
|
436 |
8
|
437 private: |
|
438 |
2893
|
439 unsigned int formal_param : 1; |
5861
|
440 unsigned int automatic_variable : 1; |
2893
|
441 unsigned int linked_to_global : 1; |
|
442 unsigned int tagged_static : 1; |
4234
|
443 unsigned int can_hide_function : 1; |
5399
|
444 unsigned int visible : 1; |
6257
|
445 unsigned int eternal : 1; |
195
|
446 |
3523
|
447 std::string nm; |
3011
|
448 change_function chg_fcn; |
195
|
449 symbol_def *definition; |
8
|
450 symbol_record *next_elem; |
395
|
451 |
3011
|
452 // This should maybe be one stack with a structure containing all the |
|
453 // items we need to save for recursive calls... |
4214
|
454 std::stack <symbol_def *> context; |
|
455 std::stack <unsigned int> global_link_context; |
8
|
456 |
5397
|
457 std::stack <symbol_record *> aliases_to_clear; |
|
458 |
|
459 void push_alias_to_clear (symbol_record *s) |
|
460 { aliases_to_clear.push (s); } |
|
461 |
3011
|
462 bool read_only_error (const char *action); |
195
|
463 |
5397
|
464 void maybe_delete_def (void) |
|
465 { |
|
466 if (--definition->count <= 0) |
|
467 delete definition; |
|
468 } |
|
469 |
3011
|
470 // No copying! |
|
471 |
|
472 symbol_record (const symbol_record& s); |
195
|
473 |
8
|
474 symbol_record& operator = (const symbol_record& s); |
|
475 }; |
|
476 |
767
|
477 // A symbol table. |
200
|
478 |
|
479 #define SYMTAB_LOCAL_SCOPE 1 |
|
480 #define SYMTAB_GLOBAL_SCOPE 2 |
|
481 |
|
482 #define SYMTAB_ALL_SCOPES (SYMTAB_LOCAL_SCOPE | SYMTAB_GLOBAL_SCOPE) |
|
483 |
3011
|
484 #define SYMTAB_ALL_TYPES (symbol_record::USER_FUNCTION \ |
|
485 | symbol_record::USER_VARIABLE \ |
3325
|
486 | symbol_record::DLD_FUNCTION \ |
3011
|
487 | symbol_record::BUILTIN_FUNCTION \ |
4208
|
488 | symbol_record::COMMAND \ |
5102
|
489 | symbol_record::RAWCOMMAND \ |
5864
|
490 | symbol_record::MAPPER_FUNCTION \ |
|
491 | symbol_record::MEX_FUNCTION) |
200
|
492 |
5794
|
493 #define SYMTAB_VARIABLES (symbol_record::USER_VARIABLE) |
1412
|
494 |
8
|
495 class |
6109
|
496 OCTINTERP_API |
8
|
497 symbol_table |
|
498 { |
|
499 public: |
|
500 |
4238
|
501 symbol_table (unsigned int tab_size = 128, |
|
502 const std::string& nm = std::string ()) |
|
503 : table_size (tab_size), table (new symbol_record [table_size]), |
|
504 table_name (nm) |
4009
|
505 { |
|
506 assert ((tab_size % 2) == 0); |
4238
|
507 |
|
508 if (table_name.empty ()) |
|
509 { |
5765
|
510 std::ostringstream buf; |
|
511 buf << symtab_count++; |
|
512 table_name = buf.str (); |
4238
|
513 } |
4009
|
514 } |
3011
|
515 |
5013
|
516 ~symbol_table (void); |
8
|
517 |
3523
|
518 symbol_record *lookup (const std::string& nm, bool insert = false, |
2856
|
519 bool warn = false); |
8
|
520 |
3523
|
521 void rename (const std::string& old_name, const std::string& new_name); |
572
|
522 |
4009
|
523 void clear (void); |
|
524 |
|
525 void clear_variables (void); |
|
526 void clear_functions (void); |
6072
|
527 void clear_mex_functions (void); |
4009
|
528 void clear_globals (void); |
|
529 |
|
530 bool clear (const std::string& nm); |
|
531 |
|
532 bool clear_variable (const std::string& nm); |
|
533 bool clear_function (const std::string& nm); |
|
534 bool clear_global (const std::string& nm); |
|
535 |
|
536 bool clear_variable_pattern (const std::string& pat); |
|
537 bool clear_function_pattern (const std::string& pat); |
|
538 bool clear_global_pattern (const std::string& pat); |
8
|
539 |
164
|
540 int size (void) const; |
8
|
541 |
3013
|
542 Array<symbol_record *> |
4913
|
543 subsymbol_list (const string_vector& pats = string_vector (), |
|
544 unsigned int type = SYMTAB_ALL_TYPES, |
|
545 unsigned int scope = SYMTAB_ALL_SCOPES) const; |
|
546 |
|
547 Array<symbol_record *> |
3355
|
548 symbol_list (const string_vector& pats = string_vector (), |
3013
|
549 unsigned int type = SYMTAB_ALL_TYPES, |
|
550 unsigned int scope = SYMTAB_ALL_SCOPES) const; |
|
551 |
195
|
552 |
1755
|
553 string_vector |
3355
|
554 name_list (const string_vector& pats = string_vector (), |
3013
|
555 bool sort = false, unsigned int type = SYMTAB_ALL_TYPES, |
|
556 unsigned int scope = SYMTAB_ALL_SCOPES) const; |
605
|
557 |
4009
|
558 string_vector |
|
559 user_function_name_list (void) const |
|
560 { |
|
561 return name_list |
|
562 (string_vector (), false, |
5864
|
563 symbol_record::USER_FUNCTION|symbol_record::DLD_FUNCTION|symbol_record::MEX_FUNCTION, |
4009
|
564 SYMTAB_ALL_SCOPES); |
|
565 } |
|
566 |
|
567 string_vector |
|
568 global_variable_name_list (void) const |
|
569 { |
|
570 return name_list |
|
571 (string_vector (), false, SYMTAB_VARIABLES, SYMTAB_GLOBAL_SCOPE); |
|
572 } |
|
573 |
|
574 string_vector |
|
575 variable_name_list (void) const |
|
576 { |
|
577 return name_list |
|
578 (string_vector (), false, SYMTAB_VARIABLES, SYMTAB_LOCAL_SCOPE); |
|
579 } |
3011
|
580 |
|
581 int maybe_list (const char *header, const string_vector& argv, |
3523
|
582 std::ostream& os, bool show_verbose, |
3011
|
583 unsigned type, unsigned scope); |
|
584 |
3523
|
585 Array<symbol_record *> glob (const std::string& pat = std::string ("*"), |
3355
|
586 unsigned int type = SYMTAB_ALL_TYPES, |
|
587 unsigned int scope = SYMTAB_ALL_SCOPES) const; |
8
|
588 |
220
|
589 void push_context (void); |
3011
|
590 |
220
|
591 void pop_context (void); |
|
592 |
5861
|
593 // Create a new symbol table with the same entries. Only the symbol |
|
594 // names and some attributes are copied, not values. |
|
595 symbol_table *dup (void); |
|
596 |
|
597 // Inherit some values from the parent_sym_tab. |
|
598 void inherit (symbol_table *parent_sym_tab); |
|
599 |
3941
|
600 void print_info (std::ostream& os) const; |
3011
|
601 |
8
|
602 private: |
|
603 |
3011
|
604 unsigned int table_size; |
|
605 |
|
606 symbol_record *table; |
|
607 |
4238
|
608 std::string table_name; |
|
609 |
|
610 static unsigned long int symtab_count; |
|
611 |
4913
|
612 void |
|
613 print_descriptor (std::ostream& os, |
|
614 std::list<whos_parameter> params) const; |
|
615 |
|
616 std::list<whos_parameter> |
|
617 parse_whos_line_format (Array<symbol_record *>& symbols) const; |
|
618 |
3523
|
619 unsigned int hash (const std::string& s); |
8
|
620 |
3011
|
621 // No copying! |
8
|
622 |
3011
|
623 symbol_table (const symbol_table&); |
1962
|
624 |
3011
|
625 symbol_table& operator = (const symbol_table&); |
|
626 }; |
2790
|
627 |
4913
|
628 // Defines layout for the whos/who -long command. |
|
629 extern std::string Vwhos_line_format; |
|
630 |
8
|
631 #endif |
|
632 |
|
633 /* |
|
634 ;;; Local Variables: *** |
|
635 ;;; mode: C++ *** |
|
636 ;;; End: *** |
|
637 */ |