source: git/Singular/p_Procs_Static.cc @ 52ea3f

fieker-DuValspielwiese
Last change on this file since 52ea3f was 7e5a38, checked in by Olaf Bachmann <obachman@…>, 23 years ago
* dynamic loading of p_Procs git-svn-id: file:///usr/local/Singular/svn/trunk@4833 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: 8/00
9 *  Version: $Id: p_Procs_Static.cc,v 1.1 2000-12-07 15:04:01 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#define LINKAGE
25#include "p_Procs_Static.inc"
26
27// include generated configuration
28#include "p_Procs_Static.h"
29// include general p_Proc stuff
30#include "p_Procs_Impl.h"
31
32// define DoSetProc and InitSetProcs
33#define SetStaticProcFromArray(what, type, field, length, ord) \
34  _p_procs->what = (what##_Proc_Ptr) \
35    what##_Proc_##type [index(what##_Proc, field, length, ord)]
36
37#define SetStaticProcFromFuncsArray(what, field, length, ord) \
38  SetStaticProcFromArray(what, funcs, field, length, ord)
39
40#ifdef RDEBUG
41#define DoSetProc(what, field, length, ord)                     \
42do                                                              \
43{                                                               \
44  if (set_names)                                                \
45    SetStaticProcFromArray(what, names, field, length, ord);    \
46  else                                                          \
47    SetStaticProcFromFuncsArray(what, field, length, ord);      \
48}                                                               \
49while(0)
50#else
51#define DoSetProc SetStaticProcFromFuncsArray
52#endif
53
54#define InitSetProcs(f, l, o) ((void)0)
55
56// include routines for setting p_ProcsSet
57
58#include "p_Procs_Set.h"
59
60
61
62
Note: See TracBrowser for help on using the repository browser.