Changeset 4cbe5d in git for Singular/ring.cc


Ignore:
Timestamp:
Feb 8, 2001, 1:55:52 PM (23 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d609e144b7d60f81b025159808b83332ba77c8c3
Parents:
6dc21ddd084cffca4919c928d38ed7296e218e1c
Message:
*hannes: bug 23


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

Legend:

Unmodified
Added
Removed
  • Singular/ring.cc

    r6dc21d r4cbe5d  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ring.cc,v 1.158 2001-01-31 19:08:26 Singular Exp $ */
     4/* $Id: ring.cc,v 1.159 2001-02-08 12:55:52 Singular Exp $ */
    55
    66/*
     
    125125
    126126  // clean up history
    127     if (((sLastPrinted.rtyp>BEGIN_RING) && (sLastPrinted.rtyp<END_RING))
    128         || ((sLastPrinted.rtyp==LIST_CMD)&&(lRingDependend((lists)sLastPrinted.data))))
    129     {
    130       sLastPrinted.CleanUp();
    131       memset(&sLastPrinted,0,sizeof(sleftv));
    132     }
     127  if (sLastPrinted.RingDependend())
     128  {
     129    sLastPrinted.CleanUp();
     130    memset(&sLastPrinted,0,sizeof(sleftv));
     131  }
    133132
    134133   /*------------ change the global ring -----------------------*/
     
    145144
    146145  if (ppNoether!=NULL) pDelete(&ppNoether);
    147   if (((sLastPrinted.rtyp>BEGIN_RING) && (sLastPrinted.rtyp<END_RING)) ||
    148       ((sLastPrinted.rtyp==LIST_CMD)&&(lRingDependend((lists)sLastPrinted.data))))
    149 
     146  if (sLastPrinted.RingDependend())
    150147  {
    151148    sLastPrinted.CleanUp();
     
    596593    R->float_len = SHORT_REAL_LENGTH;
    597594    R->float_len2 = SHORT_REAL_LENGTH;
    598   } 
     595  }
    599596
    600597  /* names and number of variables-------------------------------------*/
     
    876873      }
    877874      if (ppNoether!=NULL) pDelete(&ppNoether);
    878       if (((sLastPrinted.rtyp>BEGIN_RING) && (sLastPrinted.rtyp<END_RING)) ||
    879           ((sLastPrinted.rtyp==LIST_CMD)&&(lRingDependend((lists)sLastPrinted.data))))
     875      if (sLastPrinted.RingDependend())
    880876      {
    881877        sLastPrinted.CleanUp();
    882878        memset(&sLastPrinted,0,sizeof(sleftv));
     879      }
     880      if ((myynest>0) && (iiRETURNEXPR[myynest].RingDependend()))
     881      {
     882        WerrorS("return value depends on local ring variable (export missing ?)");
     883        iiRETURNEXPR[myynest].CleanUp();
    883884      }
    884885      currRing=NULL;
Note: See TracChangeset for help on using the changeset viewer.