source: git/kernel/polys.cc @ 762407

jengelh-datetimespielwiese
Last change on this file since 762407 was 762407, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
config.h is for sources files only FIX: config.h should only be used by source (not from inside kernel/mod2.h!) NOTE: each source file should better include mod2.h right after config.h, while headers should better not include mod2.h.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1#include "config.h"
2#include "mod2.h"
3
4#include <omalloc/omalloc.h>
5#include <misc/auxiliary.h>
6#include <misc/options.h>
7
8#include "polys.h"
9
10ring  currRing = NULL;
11ideal currQuotient = NULL;
12
13void rChangeCurrRing(ring r)
14{
15   currRing = r;
16   currQuotient = r->qideal;
17   //------------ global variables related to coefficients ------------
18   nSetChar(r->cf);
19   //------------ global variables related to polys -------------------
20}
21/*
22
23/// internally changes the gloabl ring and resets the relevant
24/// global variables:
25/// SHOULD BE DEPRECATED NOW...?
26void rChangeCurrRing(ring r)
27{
28 // if (!rMinpolyIsNULL(currRing))
29 // {
30 //   omCheckAddr(currRing->cf->minpoly);
31 // }
32  //------------ set global ring vars --------------------------------
33  //currRing = r;
34  //currQuotient=NULL;
35  if (r != NULL)
36  {
37    rTest(r);
38    //------------ set global ring vars --------------------------------
39    //currQuotient=r->qideal;
40
41    //------------ global variables related to coefficients ------------
42    nSetChar(r->cf);
43
44    //------------ global variables related to polys -------------------
45    p_SetGlobals(r);
46    //------------ global variables related to factory -----------------
47  }
48}
49*/
Note: See TracBrowser for help on using the repository browser.