[35aab3] | 1 | /**************************************** |
---|
| 2 | * Computer Algebra System SINGULAR * |
---|
| 3 | ****************************************/ |
---|
| 4 | /*************************************************************** |
---|
| 5 | * File: p_Procs_Static.cc |
---|
| 6 | * Purpose: source for static version of p_Procs |
---|
| 7 | * Author: obachman (Olaf Bachmann) |
---|
| 8 | * Created: 12/00 |
---|
| 9 | *******************************************************************/ |
---|
[da55c8] | 10 | #include "config.h" |
---|
[22a09d] | 11 | #include <misc/auxiliary.h> |
---|
| 12 | |
---|
| 13 | #ifdef HAVE_FACTORY |
---|
| 14 | #include <factory/factory.h> |
---|
| 15 | #endif |
---|
| 16 | |
---|
[20b794] | 17 | // #include <polys/structs.h> |
---|
| 18 | #include <polys/monomials/ring.h> |
---|
[f7a975] | 19 | #include <polys/monomials/p_polys.h> |
---|
[9959c45] | 20 | #include <polys/templates/p_Procs.h> |
---|
| 21 | #include <polys/templates/p_Numbers.h> |
---|
| 22 | #include <polys/templates/p_MemCmp.h> |
---|
| 23 | #include <polys/templates/p_MemAdd.h> |
---|
| 24 | #include <polys/templates/p_MemCopy.h> |
---|
[5a4b26] | 25 | #include <polys/kbuckets.h> |
---|
[6bec87] | 26 | #include <reporter/reporter.h> |
---|
[35aab3] | 27 | |
---|
[5e0035] | 28 | const BOOLEAN p_procs_dynamic = FALSE; |
---|
[35aab3] | 29 | |
---|
[6d28ba7] | 30 | #define LINKAGE |
---|
| 31 | |
---|
[35aab3] | 32 | #define p_Procs_Static |
---|
[da55c8] | 33 | #include "templates/p_Procs.inc" |
---|
[35aab3] | 34 | |
---|
| 35 | // include generated configuration |
---|
[da55c8] | 36 | #include "templates/p_Procs_Static.h" |
---|
[35aab3] | 37 | // include general p_Proc stuff |
---|
[da55c8] | 38 | #include "templates/p_Procs_Impl.h" |
---|
[35aab3] | 39 | |
---|
| 40 | // define DoSetProc and InitSetProcs |
---|
| 41 | #define SetStaticProcFromArray(what, type, field, length, ord) \ |
---|
[825966] | 42 | _p_procs->what = cast_vptr_to_A<what##_Proc_Ptr>( \ |
---|
| 43 | what##_Proc_##type [index(what##_Proc, field, length, ord)]) |
---|
[35aab3] | 44 | |
---|
| 45 | #define SetStaticProcFromFuncsArray(what, field, length, ord) \ |
---|
| 46 | SetStaticProcFromArray(what, funcs, field, length, ord) |
---|
| 47 | |
---|
| 48 | #ifdef RDEBUG |
---|
| 49 | #define DoSetProc(what, field, length, ord) \ |
---|
| 50 | do \ |
---|
| 51 | { \ |
---|
| 52 | if (set_names) \ |
---|
| 53 | SetStaticProcFromArray(what, names, field, length, ord); \ |
---|
| 54 | else \ |
---|
| 55 | SetStaticProcFromFuncsArray(what, field, length, ord); \ |
---|
| 56 | } \ |
---|
| 57 | while(0) |
---|
| 58 | #else |
---|
| 59 | #define DoSetProc SetStaticProcFromFuncsArray |
---|
| 60 | #endif |
---|
| 61 | |
---|
| 62 | // include routines for setting p_ProcsSet |
---|
| 63 | |
---|
[da55c8] | 64 | #include "templates/p_Procs_Set.h" |
---|
[35aab3] | 65 | |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | |
---|