Changeset 64b9bf in git


Ignore:
Timestamp:
Oct 23, 2013, 7:01:26 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
Children:
25761d107c152ed2282675247e571d5cfac99ef4
Parents:
319eab5422b663cf987a25ed055f76e33b2b9751
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-10-23 19:01:26+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-10-24 23:39:48+02:00
Message:
Fixed brocken linkage under OSX
Location:
factory
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_globals.cc

    r319eab r64b9bf  
    1313#endif /* HAVE_CONFIG_H */
    1414
    15 #include "cf_switches.h"
    1615
    1716//{{{ extern const char factoryVersion[];
     
    4140//}}}
    4241
    43 //{{{ CFSwitches cf_glob_switches;
    44 //{{{ docu
    45 //
    46 // cf_glob_switches - factory switches.
    47 //
    48 // This is the only object of type CFSwitches in factory.  It is
    49 // used either directly in the low level algorithms or by the
    50 // functions On(), Off(), isOn() defined in canonicalform.cc.
    51 //
    52 //}}}
    53 CFSwitches cf_glob_switches;
    54 //}}}
  • factory/cf_globals.h

    r319eab r64b9bf  
    2121/*ENDPUBLIC*/
    2222
    23 extern CFSwitches cf_glob_switches;
    2423
    2524#endif /* ! INCL_CF_GLOBALS_H */
  • factory/cf_switches.h

    r319eab r64b9bf  
    5454    bool switches [CFSwitchesMax];
    5555
     56    CFSwitches ();
    5657public:
    5758    // constructors, destructors
    58     CFSwitches ();
    5959    ~CFSwitches () {}
    6060
     61    static CFSwitches& getInstance()
     62    {
     63       static CFSwitches singleton;
     64       return singleton;
     65    }
    6166    // selectors
    6267    void On ( int s ) { switches[s] = true; }
     
    6671};
    6772//}}}
     73//{{{ CFSwitches cf_glob_switches;
     74//{{{ docu
     75//
     76// cf_glob_switches - factory switches.
     77//
     78// This is the only object of type CFSwitches in factory.  It is
     79// used either directly in the low level algorithms or by the
     80// functions On(), Off(), isOn() defined in canonicalform.cc.
     81//
     82//}}}
     83// extern CFSwitches& cf_glob_switches;
     84// CFSwitches& cf_glob_switches = CFSwitches::getInstance();
     85#define cf_glob_switches (CFSwitches::getInstance())
     86//}}}
    6887
    6988#endif /* ! INCL_CF_SWITCHES_H */
Note: See TracChangeset for help on using the changeset viewer.