source: git/libpolys/polys/templates/p_Procs_Static.cc @ 5a4b26

spielwiese
Last change on this file since 5a4b26 was 5a4b26, checked in by Hans Schoenemann <hannes@…>, 13 years ago
fix build issue for disable-plural
  • Property mode set to 100644
File size: 2.0 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$
10 *******************************************************************/
11#include "config.h"
12// #include <polys/structs.h>
13#include <polys/monomials/ring.h>
14#include <polys/monomials/p_polys.h>
15#include <polys/templates/p_Procs.h>
16#include <polys/templates/p_Numbers.h>
17#include <polys/templates/p_MemCmp.h>
18#include <polys/templates/p_MemAdd.h>
19#include <polys/templates/p_MemCopy.h>
20#include <polys/kbuckets.h>
21#include <reporter/reporter.h>
22
23BOOLEAN p_procs_dynamic = FALSE;
24
25#define LINKAGE
26
27#define p_Procs_Static
28#include "templates/p_Procs.inc"
29
30// include generated configuration
31#include "templates/p_Procs_Static.h"
32// include general p_Proc stuff
33#include "templates/p_Procs_Impl.h"
34
35// define DoSetProc and InitSetProcs
36#define SetStaticProcFromArray(what, type, field, length, ord) \
37  _p_procs->what = (what##_Proc_Ptr) \
38    what##_Proc_##type [index(what##_Proc, field, length, ord)]
39
40#define SetStaticProcFromFuncsArray(what, field, length, ord) \
41  SetStaticProcFromArray(what, funcs, field, length, ord)
42
43#ifdef RDEBUG
44#define DoSetProc(what, field, length, ord)                     \
45do                                                              \
46{                                                               \
47  if (set_names)                                                \
48    SetStaticProcFromArray(what, names, field, length, ord);    \
49  else                                                          \
50    SetStaticProcFromFuncsArray(what, field, length, ord);      \
51}                                                               \
52while(0)
53#else
54#define DoSetProc SetStaticProcFromFuncsArray
55#endif
56
57// include routines for setting p_ProcsSet
58
59#include "templates/p_Procs_Set.h"
60
61
62
63
Note: See TracBrowser for help on using the repository browser.