]> www.ginac.de Git - ginac.git/blobdiff - ginac/symbol.h
* prepare for landing of version 0.7.3.
[ginac.git] / ginac / symbol.h
index d547b1d6c996da49a815fc94bc8034ed649422df..c604bf56895f5a9c145b55802f64a9addb5424de 100644 (file)
@@ -3,7 +3,7 @@
  *  Interface to GiNaC's symbolic objects. */
 
 /*
- *  GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -39,17 +39,17 @@ namespace GiNaC {
  *  first place. */
 class symbol : public basic
 {
-       GINAC_DECLARE_REGISTERED_CLASS(symbol, basic)
+       GINAC_DECLARE_REGISTERED_CLASS_NO_CTORS(symbol, basic)
 
 // types
 
        /** Symbols as keys to expressions. */
        class assigned_ex_info {
        public:
-               assigned_ex_info();     //!< Default ctor
-               bool is_assigned;       //!< True if there is an expression assigned
-               ex assigned_expression; //!< The actual expression
-               unsigned refcount;      //!< Yet another refcounter. PLEASE EXPLAIN!
+               assigned_ex_info();     //! Default ctor
+               bool is_assigned;       //! True if there is an expression assigned
+               ex assigned_expression; //! The actual expression
+               unsigned refcount;      //! Yet another refcounter. PLEASE EXPLAIN!
        };
        
 // member functions
@@ -112,11 +112,6 @@ private:
        static unsigned next_serial;
 };
 
-// global constants
-
-extern const symbol some_symbol;
-extern const type_info & typeid_symbol;
-
 // utility functions
 inline const symbol &ex_to_symbol(const ex &e)
 {
@@ -125,7 +120,7 @@ inline const symbol &ex_to_symbol(const ex &e)
 
 // wrapper functions around member functions
 inline void unassign(symbol & symarg)
-{ return symarg.unassign(); }
+{ symarg.unassign(); }
 
 inline int degree(const symbol & a, const symbol & s)
 { return a.degree(s); }