Changeset 188de86 in git for Singular/slInit_Static.cc


Ignore:
Timestamp:
Aug 2, 2012, 4:09:13 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'c987db42cd2ec943b97ac5746c99892ceddf909c')
Children:
4f9652847609cefd5ff3b91d14f34611592ab699
Parents:
0419aba8292e7109329604d8ad03b70f8ef6542344a1c2199e33375a631289eaab7a81954c8383e2
Message:
Merge pull request #158 from alexanderdreyer/spielwiese

Transfering newstruct and pyobject fixes to Spielwiese
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/slInit_Static.cc

    r44a1c2 r188de86  
    99 *******************************************************************/
    1010
    11 /***************************************************************
    12  *
    13  * MP link Extension inits
    14  *
    15  ***************************************************************/
    1611#include "config.h"
    1712#include <kernel/mod2.h>
     
    1914#include <Singular/silink.h>
    2015#include <Singular/slInit.h>
    21 
    22 #ifdef HAVE_MPSR
    23 
    24 #include <MP.h>
    25 #include <Singular/mpsr_sl.h>
    26 
    27 extern void mpsr_Init();
    28 
    29 si_link_extension slInitMPFileExtension(si_link_extension s)
    30 {
    31   mpsr_Init();
    32   s->Open=slOpenMPFile;
    33   s->Close=slCloseMP;
    34   s->Kill=slCloseMP;
    35   s->Read=slReadMP;
    36   s->Dump=slDumpMP;
    37   s->GetDump=slGetDumpMP;
    38   s->Write=slWriteMP;
    39   s->Status=slStatusMP;
    40   s->type="MPfile";
    41   return s;
    42 }
    43 
    44 si_link_extension slInitMPTcpExtension(si_link_extension s)
    45 {
    46   mpsr_Init();
    47   s->Open=slOpenMPTcp;
    48   s->Close=slCloseMP;
    49   s->Kill=slKillMP;
    50   s->Read=slReadMP;
    51   s->Dump=slDumpMP;
    52   s->GetDump=slGetDumpMP;
    53   s->Write=slWriteMP;
    54   s->Status=slStatusMP;
    55   s->type="MPtcp";
    56   return s;
    57 }
    58 
    59 BatchDoProc slInitMPBatchDo()
    60 {
    61   mpsr_Init();
    62   return Batch_do;
    63 }
    64 #endif
    6516
    6617#ifdef HAVE_DBM
Note: See TracChangeset for help on using the changeset viewer.