source: git/libpolys/polys/templates/p_Procs_Static.cc @ e276e4

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