Changeset 9bc0b8 in git for Singular/ipshell.cc


Ignore:
Timestamp:
Jan 18, 2005, 4:42:03 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
98938cf102548c4f172c9c4cf0eaf2e960a689c8
Parents:
0f4db388e2f7d4a127c07f4aafae56d89ce7f4a3
Message:
*hannes; mpr_* ->kernel


git-svn-id: file:///usr/local/Singular/svn/trunk@7671 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r0f4db3 r9bc0b8  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.93 2004-11-08 16:00:51 Singular Exp $ */
     4/* $Id: ipshell.cc,v 1.94 2005-01-18 15:41:59 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    206206    case QRING_CMD:
    207207    case RING_CMD:
     208                   if ((IDRING(h)==currRing) && (currRingHdl!=h))
     209                     PrintS("(*)"); /* this is an alias to currRing */
    208210#ifdef RDEBUG
    209211                   if (traceit &TRACE_SHOW_RINGS)
     
    408410  if (changed)
    409411  {
     412    currRing=cr;
    410413    currRingHdl=rFindHdl(cr,NULL,NULL);
     414    if (currRingHdl==NULL) currRingHdl=sh;
    411415  }
    412416
     
    42884292idhdl rSimpleFindHdl(ring r, idhdl root, idhdl n=NULL)
    42894293{
     4294  //idhdl next_best=NULL;
    42904295  idhdl h=root;
    42914296  while (h!=NULL)
     
    42934298    if (((IDTYP(h)==RING_CMD)||(IDTYP(h)==QRING_CMD))
    42944299    && (h!=n)
    4295     && (h->data.uring==r)
     4300    && (IDRING(h)==r)
    42964301    )
     4302    {
     4303   //   if (IDLEV(h)==myynest)
     4304   //     return h;
     4305   //   if ((IDLEV(h)==0) || (next_best==NULL))
     4306   //     next_best=h;
     4307   //   else if (IDLEV(next_best)<IDLEV(h))
     4308   //     next_best=h;
    42974309      return h;
     4310    }
    42984311    h=IDNEXT(h);
    42994312  }
     4313  //return next_best;
    43004314  return NULL;
    43014315}
Note: See TracChangeset for help on using the changeset viewer.