Changeset 986225e in git


Ignore:
Timestamp:
Feb 28, 2012, 7:36:33 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '3720ae8bfcff4a4649ee98a15552089151d2d59b')
Children:
f3461d3772d28f7027b79e44c285fd1c7c8ff603
Parents:
de0a2a63707154c996bdb17673b41439c4a047f6
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-28 19:36:33+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-03-05 17:42:52+01:00
Message:
minor changes to syzextra

chg: variable function installation  (ADD)
add: listvar to the test
Location:
dyn_modules/syzextra
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dyn_modules/syzextra/mod_main.cc

    rde0a2a r986225e  
    2222
    2323#include <Singular/ipid.h>
     24#include <Singular/ipshell.h> // For iiAddCproc
     25
    2426// extern coeffs coeffs_BIGINT
    2527
     
    794796int mod_init(SModulFunctions* psModulFunctions)
    795797{
     798#define ADD0(A,B,C,D,E) A(B, (char*)C, D, E)
     799// #define ADD(A,B,C,D,E) ADD0(iiAddCproc, "", C, D, E)
     800  #define ADD(A,B,C,D,E) ADD0(A->iiAddCproc, B, C, D, E)
     801  ADD(psModulFunctions, currPack->libname, "DetailedPrint", FALSE, DetailedPrint);
     802  ADD(psModulFunctions, currPack->libname, "leadmonom", FALSE, leadmonom);
     803  ADD(psModulFunctions, currPack->libname, "leadcomp", FALSE, leadcomp);
     804  ADD(psModulFunctions, currPack->libname, "leadrawexp", FALSE, leadrawexp);
     805
     806
     807  ADD(psModulFunctions, currPack->libname, "ISUpdateComponents", FALSE, ISUpdateComponents);
     808  ADD(psModulFunctions, currPack->libname, "SetInducedReferrence", FALSE, SetInducedReferrence);
     809  ADD(psModulFunctions, currPack->libname, "GetInducedData", FALSE, GetInducedData);
     810  ADD(psModulFunctions, currPack->libname, "SetSyzComp", FALSE, SetSyzComp);
     811  ADD(psModulFunctions, currPack->libname, "MakeInducedSchreyerOrdering", FALSE, MakeInducedSchreyerOrdering);
     812  ADD(psModulFunctions, currPack->libname, "MakeSyzCompOrdering", FALSE, MakeSyzCompOrdering);
    796813 
    797   psModulFunctions->iiAddCproc(currPack->libname,(char*)"DetailedPrint",FALSE, DetailedPrint);
    798   psModulFunctions->iiAddCproc(currPack->libname,(char*)"leadmonom",FALSE, leadmonom);
    799   psModulFunctions->iiAddCproc(currPack->libname,(char*)"leadcomp",FALSE, leadcomp);
    800   psModulFunctions->iiAddCproc(currPack->libname,(char*)"leadrawexp",FALSE, leadrawexp);
    801 
    802 
    803   psModulFunctions->iiAddCproc(currPack->libname,(char*)"ISUpdateComponents",FALSE, ISUpdateComponents);
    804   psModulFunctions->iiAddCproc(currPack->libname,(char*)"SetInducedReferrence",FALSE, SetInducedReferrence);
    805   psModulFunctions->iiAddCproc(currPack->libname,(char*)"GetInducedData",FALSE, GetInducedData);
    806   psModulFunctions->iiAddCproc(currPack->libname,(char*)"SetSyzComp",FALSE, SetSyzComp);
    807   psModulFunctions->iiAddCproc(currPack->libname,(char*)"MakeInducedSchreyerOrdering",FALSE, MakeInducedSchreyerOrdering);
    808   psModulFunctions->iiAddCproc(currPack->libname,(char*)"MakeSyzCompOrdering",FALSE, MakeSyzCompOrdering);
    809  
    810   psModulFunctions->iiAddCproc(currPack->libname,(char*)"noop",FALSE, noop);
     814  ADD(psModulFunctions, currPack->libname, "noop", FALSE, noop);
    811815 
    812   psModulFunctions->iiAddCproc(currPack->libname,(char*)"idPrepare",FALSE, idPrepare);
    813   psModulFunctions->iiAddCproc(currPack->libname,(char*)"reduce_syz",FALSE, reduce_syz);
    814 
    815   psModulFunctions->iiAddCproc(currPack->libname,(char*)"p_Content",FALSE, _p_Content);
    816 
    817   //  psModulFunctions->iiAddCproc(currPack->libname,(char*)"",FALSE, );
    818  
     816  ADD(psModulFunctions, currPack->libname, "idPrepare", FALSE, idPrepare);
     817  ADD(psModulFunctions, currPack->libname, "reduce_syz", FALSE, reduce_syz);
     818
     819  ADD(psModulFunctions, currPack->libname, "p_Content", FALSE, _p_Content);
     820
     821  //  ADD(psModulFunctions, currPack->libname, "", FALSE, );
     822#undef ADD 
    819823  return 0;
    820824}
  • dyn_modules/syzextra/syzextra.tst

    rde0a2a r986225e  
    11"ndebug?: ", system("with", "ndebug");
    22"om_ndebug?: ", system("with", "om_ndebug");
     3
     4listvar(Top);
    35
    46if( system("with", "ndebug") )
     
    68  "Loading the Release version!";
    79  LIB("syzextra.so");
     10  listvar(Syzextra);
    811}
    912else
     
    1114  "Loading the Debug version!";
    1215  LIB("syzextra_g.so");
     16  listvar(Syzextra_g);
    1317}
     18
    1419
    1520noop();
Note: See TracChangeset for help on using the changeset viewer.