source: git/Singular/links/slInit_Static.cc @ ba5e9e

spielwiese
Last change on this file since ba5e9e was ba5e9e, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Changed configure-scripts to generate individual public config files for each package: resources, libpolys, singular (main) fix: sources should include correct corresponding config headers.
  • Property mode set to 100644
File size: 965 bytes
Line 
1/****************************************
2*  Computer Algebra System SINGULAR     *
3****************************************/
4/***************************************************************
5 *  File:    slInit_Static.cc
6 *  Purpose: link initialization for static linking
7 *  Author:  obachman (Olaf Bachmann)
8 *  Created: 12/00
9 *******************************************************************/
10
11#ifdef HAVE_CONFIG_H
12#include "singularconfig.h"
13#endif /* HAVE_CONFIG_H */
14#include <kernel/mod2.h>
15
16#include <Singular/links/silink.h>
17#include <Singular/links/slInit.h>
18
19#ifdef HAVE_DBM
20
21# ifndef USE_GDBM
22#   include <Singular/links/dbm_sl.h>
23# else
24#   include <Singular/links/sing_dbm.h>
25#endif
26
27si_link_extension slInitDBMExtension(si_link_extension s)
28{
29  s->Open=dbOpen;
30  s->Close=dbClose;
31  s->Kill=dbClose;
32  s->Read=dbRead1;
33  s->Read2=dbRead2;
34  s->Write=dbWrite;
35  s->Status=slStatusAscii;
36  s->type="DBM";
37  return s;
38}
39#endif /* #ifdef HAVE_DBM */
Note: See TracBrowser for help on using the repository browser.