source: git/dyn_modules/callgfanlib/gfanlib.cc @ bbeddf

spielwiese
Last change on this file since bbeddf was bbeddf, checked in by Oleksandr Motsak <motsak@…>, 10 years ago
Fixed BS: gfanlib/cddlib checking/building/embedding fix: cddlib configure checks add: static building-in fix: return code for _mod_init functions
  • Property mode set to 100644
File size: 712 bytes
Line 
1#ifdef HAVE_CONFIG_H
2#include "singularconfig.h"
3#endif /* HAVE_CONFIG_H */
4
5#include <kernel/mod2.h>
6
7#include <bbcone.h>
8#include <bbfan.h>
9#include <bbpolytope.h>
10#include <gitfan.h>
11
12#include <Singular/ipid.h>
13#include <Singular/mod_lib.h>
14
15template class gfan::Vector<gfan::Integer>;
16template class gfan::Vector<gfan::Rational>;
17template class gfan::Matrix<gfan::Integer>;
18template class gfan::Matrix<gfan::Rational>;
19
20int SI_MOD_INIT(gfanlib)(SModulFunctions* p)
21{
22  bbcone_setup(p);
23  bbfan_setup(p);
24  bbpolytope_setup(p);
25  gitfan_setup(p);
26  return 0;
27}
28
29#ifndef EMBED_PYTHON
30extern "C"
31{ 
32int mod_init(SModulFunctions* psModulFunctions)
33{ 
34  return SI_MOD_INIT(gfanlib)(psModulFunctions); 
35}
36}
37#endif
Note: See TracBrowser for help on using the repository browser.