source: git/Singular/p_Procs_Static.cc @ 584f84d

spielwiese
Last change on this file since 584f84d was 6b32990, checked in by Olaf Bachmann <obachman@…>, 23 years ago
* dynamic kernel modules for MP and DBM links * p_Procs improvements git-svn-id: file:///usr/local/Singular/svn/trunk@4865 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.9 KB
Line 
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.2 2000-12-12 08:44:50 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
22BOOLEAN p_procs_dynamic = FALSE;
23
24#include "p_Procs_Static.inc"
25
26// include generated configuration
27#include "p_Procs_Static.h"
28// include general p_Proc stuff
29#include "p_Procs_Impl.h"
30
31// define DoSetProc and InitSetProcs
32#define SetStaticProcFromArray(what, type, field, length, ord) \
33  _p_procs->what = (what##_Proc_Ptr) \
34    what##_Proc_##type [index(what##_Proc, field, length, ord)]
35
36#define SetStaticProcFromFuncsArray(what, field, length, ord) \
37  SetStaticProcFromArray(what, funcs, field, length, ord)
38
39#ifdef RDEBUG
40#define DoSetProc(what, field, length, ord)                     \
41do                                                              \
42{                                                               \
43  if (set_names)                                                \
44    SetStaticProcFromArray(what, names, field, length, ord);    \
45  else                                                          \
46    SetStaticProcFromFuncsArray(what, field, length, ord);      \
47}                                                               \
48while(0)
49#else
50#define DoSetProc SetStaticProcFromFuncsArray
51#endif
52
53#define InitSetProcs(f, l, o) ((void)0)
54
55// include routines for setting p_ProcsSet
56
57#include "p_Procs_Set.h"
58
59
60
61
Note: See TracBrowser for help on using the repository browser.