Changeset 0e051f in git for Singular/subexpr.cc


Ignore:
Timestamp:
Apr 27, 2010, 4:19:36 PM (13 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
4bfe6536b8ffa51f49472c1c71acd83d84b61915
Parents:
49abe32113946584967f7bc6a8d3edfd9b6f848c
Message:
structs.h simplified

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

Legend:

Unmodified
Added
Removed
  • Singular/subexpr.cc

    r49abe32 r0e051f  
    3939#include "subexpr.h"
    4040
    41 
    42 omBin sSubexpr_bin = omGetSpecBin(sizeof(sSubexpr));
     41omBin sSubexpr_bin = omGetSpecBin(sizeof(_ssubexpr));
    4342omBin sleftv_bin = omGetSpecBin(sizeof(sleftv));
    4443omBin procinfo_bin = omGetSpecBin(sizeof(procinfo));
     
    12551254  }
    12561255#endif
     1256  idhdl save_ring=currRingHdl;
    12571257  v->Init();
    12581258  if(packhdl != NULL)
     
    13121312      }
    13131313    }
     1314    if (yyInRingConstruction)
     1315    {
     1316      currRingHdl=NULL;
     1317    }
    13141318    /* 4. local ring: ringvar */
    13151319    if ((currRingHdl!=NULL) && (IDLEV(currRingHdl)==myynest)
    1316     && (!yyInRingConstruction))
     1320    /*&& (!yyInRingConstruction)*/)
    13171321    {
    13181322      int vnr;
     
    13381342    {
    13391343      BOOLEAN ok=FALSE;
    1340       poly p = (!yyInRingConstruction) ? pmInit(id,ok) : (poly)NULL;
     1344      /*poly p = (!yyInRingConstruction) ? pmInit(id,ok) : (poly)NULL;*/
     1345      poly p = pmInit(id,ok);
    13411346      if (ok)
    13421347      {
     
    13521357          #endif
    13531358        }
    1354         else
    1355         if (pIsConstant(p))
     1359        else if (pIsConstant(p))
    13561360        {
    13571361          v->data = pGetCoeff(p);
     
    13751379      poly p = ((currRing!=NULL)     /* ring required */
    13761380               && (currRingHdl!=NULL)
    1377                && (!yyInRingConstruction) /* not in decl */
     1381               /*&& (!yyInRingConstruction) - not in decl */
    13781382               && (IDLEV(currRingHdl)!=myynest)) /* already in case 4/6 */
    13791383                     ? pmInit(id,ok) : (poly)NULL;
     
    14461450    v->name = id;
    14471451  }
     1452  currRingHdl=save_ring;
    14481453  return;
    14491454id_found: // we have an id (in h) found, to set the data in from h
     
    14531458  v->name = IDID(h);
    14541459  v->attribute=IDATTR(h);
     1460  currRingHdl=save_ring;
    14551461}
    14561462
Note: See TracChangeset for help on using the changeset viewer.