source: git/factory/cf_switches.cc @ ba5e9e

spielwiese
Last change on this file since ba5e9e was 16f511, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Fixed the usage of "config.h" (if defined HAVE_CONFIG_H)
  • Property mode set to 100644
File size: 816 bytes
Line 
1/* emacs edit mode for this file is -*- C++ -*- */
2
3//{{{ docu
4//
5// cf_switches.cc - definition of class CFSwitches.
6//
7// Used by: cf_globals.cc, ftest/ftest_util.cc
8//
9//}}}
10
11#ifdef HAVE_CONFIG_H
12#include "config.h"
13#endif /* HAVE_CONFIG_H */
14
15#include "cf_switches.h"
16#include "cf_defs.h"
17
18//{{{ CFSwitches::CFSwitches ()
19//{{{ docu
20//
21// CFSwitches::CFSwitches() - default constructor.
22//
23// Turns all switches off.
24//
25//}}}
26CFSwitches::CFSwitches ()
27{
28    for ( int i = 0; i < CFSwitchesMax; i++ )
29        switches[i] = false;
30// and set the default (recommended) On-values:
31#ifdef HAVE_NTL
32  On(SW_USE_NTL);
33  On(SW_USE_CHINREM_GCD);
34  //Off(SW_USE_NTL_GCD_0);
35  //Off(SW_USE_NTL_GCD_P);
36  //Off(SW_USE_NTL_SORT);
37#endif
38  On(SW_USE_EZGCD);
39  //On(SW_USE_EZGCD_P); // still testing
40  On(SW_USE_QGCD);
41}
42//}}}
Note: See TracBrowser for help on using the repository browser.