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 | * Version: $Id: p_Procs_Static.cc,v 1.3 2000-12-31 15:14:40 obachman Exp $ |
---|
10 | *******************************************************************/ |
---|
11 | #include "mod2.h" |
---|
12 | #include "structs.h" |
---|
13 | #include "p_polys.h" |
---|
14 | #include "ring.h" |
---|
15 | #include "p_Procs.h" |
---|
16 | #include "p_Numbers.h" |
---|
17 | #include "p_MemCmp.h" |
---|
18 | #include "p_MemAdd.h" |
---|
19 | #include "p_MemCopy.h" |
---|
20 | #include "kbuckets.h" |
---|
21 | #include "dError.h" |
---|
22 | |
---|
23 | BOOLEAN p_procs_dynamic = FALSE; |
---|
24 | |
---|
25 | #define p_Procs_Static |
---|
26 | #include "p_Procs_Static.inc" |
---|
27 | |
---|
28 | // include generated configuration |
---|
29 | #include "p_Procs_Static.h" |
---|
30 | // include general p_Proc stuff |
---|
31 | #include "p_Procs_Impl.h" |
---|
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 | #define InitSetProcs(f, l, o) ((void)0) |
---|
56 | |
---|
57 | // include routines for setting p_ProcsSet |
---|
58 | |
---|
59 | #include "p_Procs_Set.h" |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | |
---|