Changeset 1dbfb4 in git


Ignore:
Timestamp:
Aug 20, 2013, 11:38:21 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
f30df9db738239b192f944fedcdb9cc8322795e1
Parents:
3a40eba540d797f4185ee817d0902bd9a563af17
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-08-20 23:38:21+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-08-21 00:31:43+02:00
Message:
Adaptation of singmathic to SW
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/singmathic.cc

    r3a40eb r1dbfb4  
    1 #include "Singular/mod2.h"
    2 #include "kernel/ring.h"
    3 #include "kernel/febase.h"
    4 #include "kernel/ideals.h"
    5 #include "kernel/polys.h"
    6 #include "kernel/numbers.h"
    7 #include "kernel/options.h"
    8 #include "Singular/ipid.h"
     1// include header files
     2#ifdef HAVE_CONFIG_H
     3#include "config.h"
     4#endif /* HAVE_CONFIG_H */
     5
     6#include <misc/auxiliary.h>
     7#include <kernel/mod2.h>
     8
     9#include <misc/options.h>
     10
     11#include <kernel/febase.h>
     12#include <kernel/ideals.h>
     13#include <kernel/polys.h>
     14
     15#include <Singular/ipid.h>
     16#include <Singular/mod_lib.h>
    917
    1018#ifdef HAVE_MATHICGB
     
    521529  (mgb::GroebnerInputIdealStream&, MathicToSingStream&);
    522530
    523 int singmathic_mod_init(SModulFunctions* psModulFunctions)
     531int SI_MOD_INIT(singmathic)(SModulFunctions* psModulFunctions)
    524532{
    525533  PrintS("Initializing Singular-Mathic interface Singmathic.\n");
     
    545553}
    546554
    547 #else
    548 
    549 int singmathic_mod_init(SModulFunctions* psModulFunctions)
     555#else /* HAVE_MATHICGB */
     556
     557int SI_MOD_INIT(singmathic)(SModulFunctions* psModulFunctions)
    550558{
    551   PrintS(
     559  WerrorS(
    552560    "Cannot initialize the Singular interface to MathicGB "
    553561    "as this Singular executable was built without support "
    554562    "for MathicGB."
    555563  );
    556 }
    557 
    558 #endif
     564  return 0;
     565}
     566
     567#endif /* HAVE_MATHICGB */
Note: See TracChangeset for help on using the changeset viewer.