Ignore:
Timestamp:
Nov 15, 2013, 5:13:23 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
989d6be2dba06d1abec8f5c86bd77f2a001e1e4d
Parents:
1684c331ce908bffa043d3afe97c0a2c4b181d99
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-11-15 17:13:23+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-11-15 17:17:40+01:00
Message:
Fixed BS: gfanlib/cddlib checking/building/embedding

fix: cddlib configure checks
add: static building-in
fix: return code for _mod_init functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • dyn_modules/callgfanlib/gfanlib.cc

    r1684c3 rbbeddf  
    99#include <bbpolytope.h>
    1010#include <gitfan.h>
    11 #include "Singular/ipid.h"
     11
     12#include <Singular/ipid.h>
     13#include <Singular/mod_lib.h>
    1214
    1315template class gfan::Vector<gfan::Integer>;
     
    1618template class gfan::Matrix<gfan::Rational>;
    1719
    18 extern "C" int mod_init(SModulFunctions* p)
     20int SI_MOD_INIT(gfanlib)(SModulFunctions* p)
    1921{
    2022  bbcone_setup(p);
     
    2224  bbpolytope_setup(p);
    2325  gitfan_setup(p);
     26  return 0;
    2427}
     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 TracChangeset for help on using the changeset viewer.