Changeset 5fb90e in git


Ignore:
Timestamp:
Dec 14, 2011, 12:16:56 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
Children:
69ed5243c7b1d76bdf25206c9670341020c3e5d9
Parents:
635774baf3364550ff343f7f4de3f6c935d61e42
Message:
chg: move P_setGlobals to ring.cc, to be called from rComplete
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/polys.cc

    r635774 r5fb90e  
    1010ideal currQuotient = NULL;
    1111
    12 /* -------------------------------------------------------- */
    13 /*2
    14 * change all global variables to fit the description of the new ring
    15 */
    16 
    17 void p_SetGlobals(const ring r, BOOLEAN complete)
    18 {
    19 // // //  if (r->ppNoether!=NULL) p_Delete(&r->ppNoether,r); // ???
    20 
    21   if (complete)
    22   {
    23     test &= ~ TEST_RINGDEP_OPTS;
    24     test |= r->options;
    25   }
    26 }
    27 
    2812void rChangeCurrRing(ring r)
    2913{
     
    3317   nSetChar(r->cf);
    3418   //------------ global variables related to polys -------------------
    35    p_SetGlobals(r);
    3619}
    3720/*
  • kernel/polys.h

    r635774 r5fb90e  
    1414extern ring currRing;
    1515void rChangeCurrRing(ring r);
    16 
    17 void p_SetGlobals(const ring r, BOOLEAN complete = TRUE);
    1816
    1917#include <coeffs/numbers.h>
  • libpolys/polys/monomials/ring.cc

    r635774 r5fb90e  
    33183318static void rCheckOrdSgn(ring r,int i/*current block*/);
    33193319
     3320/* -------------------------------------------------------- */
     3321/*2
     3322* change all global variables to fit the description of the new ring
     3323*/
     3324
     3325void p_SetGlobals(const ring r, BOOLEAN complete)
     3326{
     3327// // //  if (r->ppNoether!=NULL) p_Delete(&r->ppNoether,r); // ???
     3328
     3329  if (complete)
     3330  {
     3331    test &= ~ TEST_RINGDEP_OPTS;
     3332    test |= r->options;
     3333  }
     3334}
     3335
    33203336BOOLEAN rComplete(ring r, int force)
    33213337{
     
    37113727  r->p_Procs = (p_Procs_s*)omAlloc(sizeof(p_Procs_s));
    37123728  p_ProcsSet(r, r->p_Procs);
     3729  p_SetGlobals(r);
    37133730  return FALSE;
    37143731}
  • libpolys/polys/monomials/ring.h

    r635774 r5fb90e  
    488488BOOLEAN rComplete(ring r, int force = 0);
    489489// use this to free fields created by rComplete //?
     490
     491/// set all properties of a new ring - also called by rComplete
     492void p_SetGlobals(const ring r, BOOLEAN complete = TRUE);
    490493
    491494static inline int rBlocks(ring r)
Note: See TracChangeset for help on using the changeset viewer.