Changeset 92d684 in git
- Timestamp:
- Aug 10, 2011, 3:57:13 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- db45a2a06453f84672a9bd3c4a2c2230cb7fe17d
- Parents:
- cf41549933e3a2f719c447992e836d965e3be351
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-08-10 15:57:13+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:17:28+01:00
- Location:
- Singular
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/blackbox.cc
rcf4154 r92d684 1 1 #include <kernel/mod2.h> 2 #include <Singular/tok.h> 3 #include <Singular/subexpr.h> 4 #include <Singular/ipshell.h> 5 #include <Singular/blackbox.h> 2 #include <misc/auxiliary.h> 3 4 #include "tok.h" 5 #include "subexpr.h" 6 #include "ipshell.h" 7 8 #include "blackbox.h" 6 9 7 10 #define MAX_BB_TYPES 256 -
Singular/blackbox.h
rcf4154 r92d684 1 1 #ifndef BLACKBOX_H 2 2 #define BLACKBOX_H 3 4 #include <misc/auxiliary.h> 3 5 #include <omalloc/omalloc.h> 6 4 7 #include <kernel/structs.h> 5 8 #include <kernel/febase.h> 9 10 #include <Singular/lists.h> 6 11 #include <Singular/silink.h> 7 12 -
Singular/gms.h
rcf4154 r92d684 17 17 18 18 #include <Singular/lists.h> 19 19 20 lists gmsNF(ideal p, ideal g, matrix B, int D, int K); 20 21 BOOLEAN gmsNF(leftv res, leftv h); -
Singular/makefile
rcf4154 r92d684 35 35 ## compiler and linker options 36 36 ## 37 LIBPOLYS_CFLAGS = -I.. -I../libpolys 37 LIBPOLYS_INCLUDES = -I.. -I../libpolys 38 LIBPOLYS_CFLAGS = ${LIBPOLYS_INCLUDES} 38 39 LIBPOLYS_LIBS = -L../factory -L../omalloc -L../libpolys/misc -L../libpolys/reporter -L../libpolys/resources -L../libpolys/coeffs -L../libpolys/polys -lpolys -lcoeffs -lresources -lreporter -lmisc -lfactory -lomalloc 39 40 LIBPOLYS_LIBSG = -L../factory -L../omalloc -L../libpolys/misc -L../libpolys/reporter -L../libpolys/resources -L../libpolys/coeffs -L../libpolys/polys -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g -lfactory -lomalloc_g 40 41 42 43 PYTHON_INCLUDES = `python-config --includes` 44 PYTHON_CFLAGS = `python-config --cflags` 45 PYTHON_LIBS = `python-config --libs` 46 41 47 PIPE = -pipe 42 CFLAGS = -O3 - w -fomit-frame-pointer ${PIPE} ${LIBPOLYS_CFLAGS}43 CXXFLAGS = -O3 - w -fomit-frame-pointer --no-rtti ${PIPE} ${LIBPOLYS_CFLAGS}48 CFLAGS = -O3 -fomit-frame-pointer ${PIPE} ${LIBPOLYS_CFLAGS} ${PYTHON_CFLAGS} 49 CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${LIBPOLYS_CFLAGS} ${PYTHON_CFLAGS} 44 50 CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions 45 CPPFLAGS = -I${srcdir} -I.. -I${includedir} ${LIBPOLYS_CFLAGS}51 CPPFLAGS = -I${srcdir} -I.. -I${includedir} ${LIBPOLYS_INCLUDES} ${PYTHON_INCLUDES} 46 52 DEFS = -DNDEBUG -DOM_NDEBUG 47 53 LDFLAGS = -L${srcdir}/lib … … 52 58 LD_LIBC = -lc 53 59 STATIC_LDFLAGS = -static 54 LIBS = -lm -lsingfac -lsingcf -lntl -lgmp -lreadline -lncurses -lm -lnsl -lomalloc_ndebug 60 LIBS = -lm -lsingfac -lsingcf -lntl -lgmp -lreadline -lncurses -lm -lnsl -lomalloc_ndebug ${PYTHON_LIBS} 55 61 MP_LIBS = -lMPT -lMP -lnsl 56 62 -
Singular/pyobject.cc
rcf4154 r92d684 13 13 //***************************************************************************** 14 14 15 16 17 18 19 15 #include <kernel/mod2.h> 20 21 #include <Singular/ipid.h> 22 #include <Singular/blackbox.h> 16 #include <misc/auxiliary.h> 17 23 18 #include <omalloc/omalloc.h> 19 24 20 #include <kernel/febase.h> 25 #include <kernel/longrat.h> 26 #include <Singular/subexpr.h> 27 28 #include <Singular/lists.h> 21 // #include <kernel/longrat.h> 22 23 #include "subexpr.h" 24 #include "lists.h" 25 #include "ipid.h" 26 #include "blackbox.h" 29 27 30 28 #include <Python.h> 31 #include <iterator> // std::distance32 #include <stdio.h>29 // #include <iterator> // std::distance 30 // #include <stdio.h> 33 31 34 32 void sync_contexts(); … … 348 346 { 349 347 ptr_type pylist(PyList_New(0)); 350 for (s td::size_t i = 0; i <= value->nr; ++i)348 for (size_t i = 0; i <= value->nr; ++i) 351 349 PyList_Append(pylist, PythonCastDynamic((value->m) + i)); 352 350 … … 366 364 367 365 private: 368 s td::size_t size(leftv iter, std::size_t distance = 0) const366 size_t size(leftv iter, size_t distance = 0) const 369 367 { 370 368 if (iter) { do { ++distance; } while(iter = iter->next); }; … … 374 372 void append_to(leftv iter) const 375 373 { 376 for(s td::size_t idx = 0; iter != NULL; iter = iter->next)374 for(size_t idx = 0; iter != NULL; iter = iter->next) 377 375 PyTuple_SetItem(*this, idx++, PythonCastDynamic(iter)); 378 376 } -
Singular/silink.h
rcf4154 r92d684 9 9 */ 10 10 11 #include <misc/auxiliary.h> 11 12 #include <kernel/structs.h> 13 12 14 #include <Singular/sing_dbm.h> 13 15 #include <Singular/lists.h> … … 92 94 93 95 #include <omalloc/omalloc.h> 96 94 97 inline char* slString(si_link l) 95 98 {
Note: See TracChangeset
for help on using the changeset viewer.