[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 |
---|
[341696] | 9 | * Version: $Id$ |
---|
[35aab3] | 10 | *******************************************************************/ |
---|
[20b794] | 11 | #include "polys/config.h" |
---|
| 12 | // #include <polys/structs.h> |
---|
| 13 | #include <polys/monomials/ring.h> |
---|
[f7a975] | 14 | #include <polys/monomials/p_polys.h> |
---|
[20b794] | 15 | #include <polys/p_Procs.h> |
---|
| 16 | #include <polys/p_Numbers.h> |
---|
| 17 | #include <polys/p_MemCmp.h> |
---|
| 18 | #include <polys/p_MemAdd.h> |
---|
| 19 | #include <polys/p_MemCopy.h> |
---|
[6bec87] | 20 | // #include <polys/kbuckets.h> |
---|
| 21 | #include <reporter/reporter.h> |
---|
[35aab3] | 22 | |
---|
| 23 | BOOLEAN p_procs_dynamic = FALSE; |
---|
| 24 | |
---|
| 25 | #define p_Procs_Static |
---|
[bc3868] | 26 | #include "p_Procs_Static.inc" |
---|
[35aab3] | 27 | |
---|
| 28 | // include generated configuration |
---|
[20b794] | 29 | #include <polys/p_Procs_Static.h> |
---|
[35aab3] | 30 | // include general p_Proc stuff |
---|
[20b794] | 31 | #include <polys/p_Procs_Impl.h> |
---|
[35aab3] | 32 | |
---|
| 33 | // define DoSetProc and InitSetProcs |
---|
| 34 | #define SetStaticProcFromArray(what, type, field, length, ord) \ |
---|
| 35 | _p_procs->what = (what##_Proc_Ptr) \ |
---|
| 36 | what##_Proc_##type [index(what##_Proc, field, length, ord)] |
---|
| 37 | |
---|
| 38 | #define SetStaticProcFromFuncsArray(what, field, length, ord) \ |
---|
| 39 | SetStaticProcFromArray(what, funcs, field, length, ord) |
---|
| 40 | |
---|
| 41 | #ifdef RDEBUG |
---|
| 42 | #define DoSetProc(what, field, length, ord) \ |
---|
| 43 | do \ |
---|
| 44 | { \ |
---|
| 45 | if (set_names) \ |
---|
| 46 | SetStaticProcFromArray(what, names, field, length, ord); \ |
---|
| 47 | else \ |
---|
| 48 | SetStaticProcFromFuncsArray(what, field, length, ord); \ |
---|
| 49 | } \ |
---|
| 50 | while(0) |
---|
| 51 | #else |
---|
| 52 | #define DoSetProc SetStaticProcFromFuncsArray |
---|
| 53 | #endif |
---|
| 54 | |
---|
| 55 | // include routines for setting p_ProcsSet |
---|
| 56 | |
---|
[20b794] | 57 | #include <polys/p_Procs_Set.h> |
---|
[35aab3] | 58 | |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | |
---|