GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
symrec.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1993-2018 John W. Eaton
4 Copyright (C) 2009 VZLU Prague
5 
6 This file is part of Octave.
7 
8 Octave is free software: you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12 
13 Octave is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with Octave; see the file COPYING. If not, see
20 <https://www.gnu.org/licenses/>.
21 
22 */
23 
24 #if ! defined (octave_symrec_h)
25 #define octave_symrec_h 1
26 
27 #include "octave-config.h"
28 
29 #include <deque>
30 #include <list>
31 #include <memory>
32 #include <string>
33 
35 
36 #include "ov.h"
37 #include "ovl.h"
38 
39 namespace octave
40 {
41  class symbol_scope_rep;
42 
44  {
45  public:
46 
47  typedef size_t context_id;
48 
49  // generic variable
50  static const unsigned int local = 1;
51 
52  // varargin, argn, .nargin., .nargout.
53  // (FIXME: is this really used now?)
54  static const unsigned int automatic = 2;
55 
56  // formal parameter
57  static const unsigned int formal = 4;
58 
59  // not listed or cleared (.nargin., .nargout.)
60  static const unsigned int hidden = 8;
61 
62  // inherited from parent scope; not cleared at function exit
63  static const unsigned int inherited = 16;
64 
65  // global (redirects to global scope)
66  static const unsigned int global = 32;
67 
68  // not cleared at function exit
69  static const unsigned int persistent = 64;
70 
71  // this symbol may NOT become a variable.
72  // (symbol added to a static workspace)
73  static const unsigned int added_static = 128;
74 
75  private:
76 
78  {
79  public:
80 
82  unsigned int sc)
85  {
86  m_value_stack.push_back (v);
87  }
88 
89  // No copying!
90 
91  symbol_record_rep (const symbol_record_rep& ov) = delete;
92 
94 
95  ~symbol_record_rep (void) = default;
96 
98  {
99  varref(context) = value;
100  }
101 
103  const std::string& type,
104  const std::list<octave_value_list>& idx,
106  {
107  varref(context).assign (op, type, idx, value);
108  }
109 
112  {
113  varref(context).assign (op, value);
114  }
115 
118  {
120  }
121 
123  const std::string& type,
124  const std::list<octave_value_list>& idx,
126  {
128  }
129 
130  context_id get_fwd_scope_context (void) const;
131 
133  {
134  if (auto t_fwd_rep = m_fwd_rep.lock ())
135  return t_fwd_rep->varref (get_fwd_scope_context ());
136 
137  if (is_persistent ())
138  context = 0;
139 
140  context_id n = m_value_stack.size ();
141  while (n++ <= context)
142  m_value_stack.push_back (octave_value ());
143 
144  return m_value_stack[context];
145  }
146 
148  {
149  if (auto t_fwd_rep = m_fwd_rep.lock ())
150  return t_fwd_rep->varval (get_fwd_scope_context ());
151 
152  if (is_persistent ())
153  context = 0;
154 
155  if (context < m_value_stack.size ())
156  return m_value_stack[context];
157  else
158  return octave_value ();
159  }
160 
161  void push_context (void)
162  {
163  if (auto t_fwd_rep = m_fwd_rep.lock ())
164  return;
165 
166  if (! (is_persistent () || is_global ()))
167  m_value_stack.push_back (octave_value ());
168  }
169 
170  // If pop_context returns 0, we are out of values and this element
171  // of the symbol table should be deleted. This can happen for
172  // functions like
173  //
174  // function foo (n)
175  // if (n > 0)
176  // foo (n-1);
177  // else
178  // eval ("x = 1");
179  // endif
180  // endfunction
181  //
182  // Here, X should only exist in the final stack frame.
183 
185  {
186  context_id retval = 1;
187 
188  if (auto t_fwd_rep = m_fwd_rep.lock ())
189  return retval;
190 
191  if (! (is_persistent () || is_global ()))
192  {
193  m_value_stack.pop_back ();
194  retval = m_value_stack.size ();
195  }
196 
197  return retval;
198  }
199 
201  {
202  // For globals, break the link to the global value first, then
203  // clear the local value.
204 
205  if (is_global ())
207 
208  if (! (is_hidden () || is_inherited ()))
209  {
211 
212  // For persistent values, we clear the value then unmark so
213  // that we clear the first element of the value stack.
214 
215  if (is_persistent ())
217  }
218  }
219 
221  {
222  return varval (context).is_defined ();
223  }
224 
226  {
227  if (auto t_fwd_rep = m_fwd_rep.lock ())
228  return t_fwd_rep->is_variable (context);
229 
230  return (! is_local () || is_defined (context));
231  }
232 
233  bool is_local (void) const
234  {
235  if (auto t_fwd_rep = m_fwd_rep.lock ())
236  return t_fwd_rep->is_local ();
237 
238  return m_storage_class & local;
239  }
240 
241  bool is_automatic (void) const
242  {
243  if (auto t_fwd_rep = m_fwd_rep.lock ())
244  return t_fwd_rep->is_automatic ();
245 
246  return m_storage_class & automatic;
247  }
248 
249  bool is_formal (void) const
250  {
251  if (auto t_fwd_rep = m_fwd_rep.lock ())
252  return t_fwd_rep->is_formal ();
253 
254  return m_storage_class & formal;
255  }
256 
257  bool is_hidden (void) const
258  {
259  if (auto t_fwd_rep = m_fwd_rep.lock ())
260  return t_fwd_rep->is_hidden ();
261 
262  return m_storage_class & hidden;
263  }
264 
265  bool is_inherited (void) const
266  {
267  if (auto t_fwd_rep = m_fwd_rep.lock ())
268  return t_fwd_rep->is_inherited ();
269 
270  return m_storage_class & inherited;
271  }
272 
273  bool is_forwarded (void) const
274  {
275  return ! m_fwd_rep.expired ();
276  }
277 
278  bool is_global (void) const
279  {
280  if (auto t_fwd_rep = m_fwd_rep.lock ())
281  return t_fwd_rep->is_global ();
282 
283  return is_marked_global ();
284  }
285 
286  bool is_persistent (void) const
287  {
288  if (auto t_fwd_rep = m_fwd_rep.lock ())
289  return t_fwd_rep->is_persistent ();
290 
291  return m_storage_class & persistent;
292  }
293 
294  bool is_added_static (void) const
295  {
296  if (auto t_fwd_rep = m_fwd_rep.lock ())
297  return t_fwd_rep->is_added_static ();
298 
299  return m_storage_class & added_static;
300  }
301 
302  void mark_local (void)
303  {
304  if (auto t_fwd_rep = m_fwd_rep.lock ())
305  {
306  t_fwd_rep->mark_local ();
307  return;
308  }
309 
311  }
312 
313  void mark_automatic (void)
314  {
315  if (auto t_fwd_rep = m_fwd_rep.lock ())
316  {
317  t_fwd_rep->mark_automatic ();
318  return;
319  }
320 
322  }
323 
324  void mark_formal (void)
325  {
326  if (auto t_fwd_rep = m_fwd_rep.lock ())
327  {
328  t_fwd_rep->mark_formal ();
329  return;
330  }
331 
333  }
334 
335  void mark_hidden (void)
336  {
337  if (auto t_fwd_rep = m_fwd_rep.lock ())
338  {
339  t_fwd_rep->mark_hidden ();
340  return;
341  }
342 
344  }
345 
346  void mark_inherited (void)
347  {
348  if (auto t_fwd_rep = m_fwd_rep.lock ())
349  {
350  t_fwd_rep->mark_inherited ();
351  return;
352  }
353 
355  }
356 
357  // This flag should only be set for a symbol record that is
358  // actually in the global symbol_scope, and that should only
359  // happen when it is added to the global symbol_scope.
360 
361  void mark_global (void)
362  {
364  }
365 
366  bool is_marked_global (void) const
367  {
368  return m_storage_class & global;
369  }
370 
371  void mark_persistent (void)
372  {
373  if (auto t_fwd_rep = m_fwd_rep.lock ())
374  {
375  t_fwd_rep->mark_persistent ();
376  return;
377  }
378 
379  if (is_global ())
380  error ("can't make global variable %s persistent", m_name.c_str ());
381 
382  if (is_formal ())
383  error ("can't make function parameter %s persistent", m_name.c_str ());
385  }
386 
387  void mark_added_static (void)
388  {
389  if (auto t_fwd_rep = m_fwd_rep.lock ())
390  {
391  t_fwd_rep->mark_added_static ();
392  return;
393  }
394 
396  }
397 
398  void unmark_local (void)
399  {
400  if (auto t_fwd_rep = m_fwd_rep.lock ())
401  {
402  t_fwd_rep->unmark_local ();
403  return;
404  }
405 
407  }
408 
409  void unmark_automatic (void)
410  {
411  if (auto t_fwd_rep = m_fwd_rep.lock ())
412  {
413  t_fwd_rep->unmark_automatic ();
414  return;
415  }
416 
418  }
419 
420  void unmark_formal (void)
421  {
422  if (auto t_fwd_rep = m_fwd_rep.lock ())
423  {
424  t_fwd_rep->unmark_formal ();
425  return;
426  }
427 
429  }
430 
431  void unmark_hidden (void)
432  {
433  if (auto t_fwd_rep = m_fwd_rep.lock ())
434  {
435  t_fwd_rep->unmark_hidden ();
436  return;
437  }
438 
440  }
441 
442  void unmark_inherited (void)
443  {
444  if (auto t_fwd_rep = m_fwd_rep.lock ())
445  {
446  t_fwd_rep->unmark_inherited ();
447  return;
448  }
449 
451  }
452 
453  void unmark_persistent (void)
454  {
455  if (auto t_fwd_rep = m_fwd_rep.lock ())
456  {
457  t_fwd_rep->unmark_persistent ();
458  return;
459  }
460 
462  }
463 
465  {
466  if (auto t_fwd_rep = m_fwd_rep.lock ())
467  {
468  t_fwd_rep->unmark_added_static ();
469  return;
470  }
471 
473  }
474 
475  unsigned int storage_class (void) const { return m_storage_class; }
476 
477  void init_persistent (void);
478 
479  void bind_fwd_rep (const std::shared_ptr<symbol_scope_rep>& fwd_scope,
480  const std::shared_ptr<symbol_record_rep>& fwd_rep)
481  {
482  // If this object is already bound to another scope (for
483  // example, a variable in a script or nested function is bound
484  // to the enclosing scope), then bind that object to the next
485  // scope. FIXME: can this happen for any other reason than we
486  // are making a variable in a script global?
487 
488  if (auto t_fwd_rep = m_fwd_rep.lock ())
489  {
490  // If this is the symbol in the global scope, then don't
491  // forward again!
492 
493  if (t_fwd_rep->is_marked_global ())
494  return;
495 
496  t_fwd_rep->bind_fwd_rep (fwd_scope, fwd_rep);
497  }
498 
499  m_fwd_scope = fwd_scope;
500  m_fwd_rep = fwd_rep;
501  }
502 
503  void unbind_fwd_rep (void)
504  {
505  // When unbinding variables in a script scope, we only break
506  // the immediate link. By doing that, we ensure that any
507  // variables that are made global in a script remain linked as
508  // globals in the enclosing scope.
509 
510  m_fwd_scope = std::weak_ptr<symbol_scope_rep> ();
511  m_fwd_rep.reset ();
512  }
513 
514  void unbind_global_rep (void)
515  {
516  // Break the link to the global symbol_record_rep. These must
517  // forwarded, so we don't do anything unless the forward rep
518  // points to something.
519 
520  if (auto t_fwd_rep = m_fwd_rep.lock ())
521  {
522  if (t_fwd_rep->is_marked_global ())
523  {
524  // The rep this object points to is in the global
525  // scope, so delete the link to it.
526 
527  m_fwd_scope = std::weak_ptr<symbol_scope_rep> ();
528  m_fwd_rep.reset ();
529  }
530  else
531  t_fwd_rep->unbind_global_rep ();
532  }
533  }
534 
535  std::shared_ptr<symbol_record_rep>
536  dup (const std::shared_ptr<symbol_scope_rep>& new_scope) const;
537 
539 
540  std::string name (void) const { return m_name; }
541 
542  void rename (const std::string& new_name) { m_name = new_name; }
543 
544  private:
545 
546  unsigned int m_storage_class;
547 
549 
550  std::weak_ptr<symbol_scope_rep> m_fwd_scope;
551 
552  std::weak_ptr<symbol_record_rep> m_fwd_rep;
553 
554  std::deque<octave_value> m_value_stack;
555  };
556 
557  public:
558 
560  const octave_value& v = octave_value (),
561  unsigned int sc = local)
562  : m_rep (new symbol_record_rep (nm, v, sc))
563  { }
564 
565  symbol_record (const symbol_record&) = default;
566 
567  symbol_record& operator = (const symbol_record&) = default;
568 
569  ~symbol_record (void) = default;
570 
571  symbol_record dup (const std::shared_ptr<symbol_scope_rep>& sid) const
572  {
573  return symbol_record (m_rep->dup (sid));
574  }
575 
576  std::string name (void) const { return m_rep->name (); }
577 
578  void rename (const std::string& new_name) { m_rep->rename (new_name); }
579 
582  const octave_value_list& args = octave_value_list ()) const
583  {
585 
586  if (retval.is_undefined ())
587  return find_function (name (), args);
588 
589  return retval;
590  }
591 
593  {
594  m_rep->assign (value, context);
595  }
596 
598  const std::string& type,
599  const std::list<octave_value_list>& idx,
601  {
602  m_rep->assign (op, type, idx, value, context);
603  }
604 
607  {
608  m_rep->assign (op, value, context);
609  }
610 
612  {
613  m_rep->do_non_const_unary_op (op, context);
614  }
615 
617  const std::string& type,
618  const std::list<octave_value_list>& idx,
620  {
621  m_rep->do_non_const_unary_op (op, type, idx, context);
622  }
623 
625  {
626  return m_rep->varval (context);
627  }
628 
629  void push_context (void) { m_rep->push_context (); }
630 
631  context_id pop_context (void) { return m_rep->pop_context (); }
632 
633  void clear (context_id context) { m_rep->clear (context); }
634 
636  {
637  return m_rep->is_defined (context);
638  }
639 
641  {
642  return ! m_rep->is_defined (context);
643  }
644 
646  {
647  return m_rep->is_variable (context);
648  }
649 
650  bool is_local (void) const { return m_rep->is_local (); }
651  bool is_automatic (void) const { return m_rep->is_automatic (); }
652  bool is_formal (void) const { return m_rep->is_formal (); }
653  bool is_global (void) const { return m_rep->is_global (); }
654  bool is_hidden (void) const { return m_rep->is_hidden (); }
655  bool is_inherited (void) const { return m_rep->is_inherited (); }
656  bool is_forwarded (void) const { return m_rep->is_forwarded (); }
657  bool is_persistent (void) const { return m_rep->is_persistent (); }
658  bool is_added_static (void) const { return m_rep->is_added_static (); }
659 
660  void mark_local (void) { m_rep->mark_local (); }
661  void mark_automatic (void) { m_rep->mark_automatic (); }
662  void mark_formal (void) { m_rep->mark_formal (); }
663  void mark_hidden (void) { m_rep->mark_hidden (); }
664  void mark_inherited (void) { m_rep->mark_inherited (); }
665  void mark_persistent (void) { m_rep->mark_persistent (); }
666  void mark_added_static (void) { m_rep->mark_added_static (); }
667 
668  void unmark_local (void) { m_rep->unmark_local (); }
669  void unmark_automatic (void) { m_rep->unmark_automatic (); }
670  void unmark_formal (void) { m_rep->unmark_formal (); }
671  void unmark_hidden (void) { m_rep->unmark_hidden (); }
672  void unmark_inherited (void) { m_rep->unmark_inherited (); }
673  void unmark_persistent (void) { m_rep->unmark_persistent (); }
674  void unmark_added_static (void) { m_rep->unmark_added_static (); }
675 
676  bool is_marked_global (void) const { return m_rep->is_marked_global (); }
677  void mark_global (void) { m_rep->mark_global (); }
678 
679  void init_persistent (void) { m_rep->init_persistent (); }
680 
681  unsigned int storage_class (void) const { return m_rep->storage_class (); }
682 
683  void bind_fwd_rep (const std::shared_ptr<symbol_scope_rep>& fwd_scope,
684  const symbol_record& sr)
685  {
686  m_rep->bind_fwd_rep (fwd_scope, sr.m_rep);
687  }
688 
689  void unbind_global_rep (void) { m_rep->unbind_global_rep (); }
690 
691  void unbind_fwd_rep (void) { m_rep->unbind_fwd_rep (); }
692 
694  {
695  return m_rep->dump (context);
696  }
697 
698  private:
699 
700  std::shared_ptr<symbol_record_rep> m_rep;
701 
702  // NEW_REP must be dynamically allocated or nullptr.
703  symbol_record (const std::shared_ptr<symbol_record_rep>& new_rep)
704  : m_rep (new_rep)
705  { }
706 
708  const octave_value_list& args) const;
709 
711  };
712 }
713 
714 #endif
octave_value dump(context_id context) const
Definition: symrec.h:693
std::shared_ptr< symbol_record_rep > m_rep
Definition: symrec.h:700
void unmark_persistent(void)
Definition: symrec.h:673
For example cd octave end example noindent changes the current working directory to an error message is printed and the working directory is not changed sc
Definition: dirfns.cc:124
bool is_global(void) const
Definition: symrec.h:653
std::weak_ptr< symbol_scope_rep > m_fwd_scope
Definition: symrec.h:550
assign_op
Definition: ov.h:136
void mark_global(void)
Definition: symrec.h:677
void mark_local(void)
Definition: symrec.h:660
static const unsigned int local
Definition: symrec.h:50
std::string name(void) const
Definition: symrec.h:540
symbol_record_rep & operator=(const symbol_record_rep &)=delete
void assign(octave_value::assign_op op, const octave_value &value, context_id context)
Definition: symrec.h:110
static const unsigned int global
Definition: symrec.h:66
bool is_undefined(context_id context) const
Definition: symrec.h:640
symbol_record(const std::string &nm="", const octave_value &v=octave_value(), unsigned int sc=local)
Definition: symrec.h:559
void assign(const octave_value &value, context_id context)
Definition: symrec.h:592
void mark_inherited(void)
Definition: symrec.h:664
~symbol_record(void)=default
bool is_defined(context_id context) const
Definition: symrec.h:220
void rename(const std::string &new_name)
Definition: symrec.h:542
void push_context(void)
Definition: symrec.h:629
static octave_value dummy_octave_value
Definition: symrec.h:710
octave_value find(context_id context, const octave_value_list &args=octave_value_list()) const
Definition: symrec.h:581
bool is_variable(context_id context) const
Definition: symrec.h:225
std::shared_ptr< symbol_record_rep > dup(const std::shared_ptr< symbol_scope_rep > &new_scope) const
Definition: symrec.cc:69
unsigned int storage_class(void) const
Definition: symrec.h:681
void bind_fwd_rep(const std::shared_ptr< symbol_scope_rep > &fwd_scope, const std::shared_ptr< symbol_record_rep > &fwd_rep)
Definition: symrec.h:479
bool is_variable(context_id context) const
Definition: symrec.h:645
static const unsigned int inherited
Definition: symrec.h:63
void clear(context_id context)
Definition: symrec.h:200
void error(const char *fmt,...)
Definition: error.cc:578
static const unsigned int formal
Definition: symrec.h:57
void bind_fwd_rep(const std::shared_ptr< symbol_scope_rep > &fwd_scope, const symbol_record &sr)
Definition: symrec.h:683
void do_non_const_unary_op(octave_value::unary_op op, context_id context)
Definition: symrec.h:611
bool is_defined(void) const
Definition: ov.h:523
void assign(octave_value::assign_op op, const std::string &type, const std::list< octave_value_list > &idx, const octave_value &value, context_id context)
Definition: symrec.h:102
static llvm::LLVMContext & context
Definition: jit-typeinfo.cc:79
unsigned int storage_class(void) const
Definition: symrec.h:475
octave_value & do_non_const_unary_op(unary_op op)
Definition: ov.cc:2681
bool is_inherited(void) const
Definition: symrec.h:655
void unmark_formal(void)
Definition: symrec.h:670
void unmark_hidden(void)
Definition: symrec.h:671
bool is_local(void) const
Definition: symrec.h:650
bool is_persistent(void) const
Definition: symrec.h:657
octave_value varval(context_id context) const
Definition: symrec.h:147
octave_value find_function(const std::string &name, const octave_value_list &args) const
Definition: symrec.cc:107
octave_value & assign(assign_op op, const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *std::string nm
Definition: utils.cc:975
void unmark_local(void)
Definition: symrec.h:668
void clear(context_id context)
Definition: symrec.h:633
symbol_record_rep(const std::string &nm, const octave_value &v, unsigned int sc)
Definition: symrec.h:81
octave_value dump(context_id context) const
Definition: symrec.cc:83
std::string name(void) const
Definition: symrec.h:576
void unbind_fwd_rep(void)
Definition: symrec.h:691
void unbind_global_rep(void)
Definition: symrec.h:689
static const unsigned int persistent
Definition: symrec.h:69
octave_value retval
Definition: data.cc:6246
bool is_forwarded(void) const
Definition: symrec.h:656
symbol_record(const std::shared_ptr< symbol_record_rep > &new_rep)
Definition: symrec.h:703
bool is_marked_global(void) const
Definition: symrec.h:676
void mark_hidden(void)
Definition: symrec.h:663
bool is_formal(void) const
Definition: symrec.h:652
idx type
Definition: ov.cc:3114
std::weak_ptr< symbol_record_rep > m_fwd_rep
Definition: symrec.h:552
octave_value & varref(context_id context)
Definition: symrec.h:132
bool is_automatic(void) const
Definition: symrec.h:651
std::deque< octave_value > m_value_stack
Definition: symrec.h:554
bool is_added_static(void) const
Definition: symrec.h:658
void mark_formal(void)
Definition: symrec.h:662
void do_non_const_unary_op(octave_value::unary_op op, context_id context)
Definition: symrec.h:116
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
void unmark_added_static(void)
Definition: symrec.h:674
bool is_undefined(void) const
Definition: ov.h:526
void init_persistent(void)
Definition: symrec.h:679
static const unsigned int hidden
Definition: symrec.h:60
bool is_hidden(void) const
Definition: symrec.h:654
void unmark_inherited(void)
Definition: symrec.h:672
void do_non_const_unary_op(octave_value::unary_op op, const std::string &type, const std::list< octave_value_list > &idx, context_id context)
Definition: symrec.h:616
void assign(const octave_value &value, context_id context)
Definition: symrec.h:97
void mark_automatic(void)
Definition: symrec.h:661
bool is_defined(context_id context) const
Definition: symrec.h:635
static const unsigned int added_static
Definition: symrec.h:73
symbol_record dup(const std::shared_ptr< symbol_scope_rep > &sid) const
Definition: symrec.h:571
void rename(const std::string &new_name)
Definition: symrec.h:578
octave_value varval(context_id context) const
Definition: symrec.h:624
context_id get_fwd_scope_context(void) const
Definition: symrec.cc:45
void assign(octave_value::assign_op op, const octave_value &value, context_id context)
Definition: symrec.h:605
static const unsigned int automatic
Definition: symrec.h:54
unary_op
Definition: ov.h:81
void assign(octave_value::assign_op op, const std::string &type, const std::list< octave_value_list > &idx, const octave_value &value, context_id context)
Definition: symrec.h:597
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
Definition: utils.cc:888
nd group nd example For each display the value
Definition: sysdep.cc:866
void mark_added_static(void)
Definition: symrec.h:666
void unmark_automatic(void)
Definition: symrec.h:669
context_id pop_context(void)
Definition: symrec.h:631
void mark_persistent(void)
Definition: symrec.h:665
void do_non_const_unary_op(octave_value::unary_op op, const std::string &type, const std::list< octave_value_list > &idx, context_id context)
Definition: symrec.h:122
symbol_record & operator=(const symbol_record &)=default