Changeset 018dec in git for Singular


Ignore:
Timestamp:
Nov 11, 2010, 2:25:52 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c5facdfddea2addfd91babd8b9019161dea4b695')
Children:
c599b4905cf0c73990f1231de9a049c48e93ae4c
Parents:
24fd7045c041f0c1ce23de9358433e0667a8228d
Message:
sleftv::SetData removed

git-svn-id: file:///usr/local/Singular/svn/trunk@13635 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/subexpr.cc

    r24fd70 r018dec  
    454454      case VNOETHER:
    455455      case VMINPOLY:
    456       case LIB_CMD:
    457456      case 0:
    458457      case INT_CMD:
     
    665664    void *x=data;
    666665    if (rtyp==VNOETHER) x=(void *)pCopy(ppNoether);
    667     else if (rtyp==LIB_CMD)
    668       x=(void *)omStrDup((char *)Data());
    669666    else if ((rtyp==VMINPOLY)&& (currRing->minpoly!=NULL)&&(!rField_is_GF()))
    670667      x=(void *)nCopy(currRing->minpoly);
     
    966963      case VSHORTOUT:
    967964        return INT_CMD;
    968       case LIB_CMD:
    969         return STRING_CMD;
    970965      case VMINPOLY:
    971966        return NUMBER_CMD;
     
    10551050  }
    10561051  return Typ();
    1057 }
    1058 
    1059 void sleftv::SetData(void* what)
    1060 {
    1061   if (rtyp == IDHDL)
    1062   {
    1063     IDDATA((idhdl)data) = (char *)what;
    1064   }
    1065   else
    1066   {
    1067     data = what;
    1068   }
    10691052}
    10701053
     
    10991082                         return (void *)nNULL;
    11001083      case VNOETHER:   return (void *) ppNoether;
    1101       case LIB_CMD:    {
    1102                          return (void *)sNoName;
    1103                        }
    11041084      case IDHDL:
    11051085        return IDDATA((idhdl)data);
  • Singular/subexpr.h

    r24fd70 r018dec  
    7676    int  LTyp(); /* returns LIST_CMD for l[i], otherwise returns Typ() */
    7777    void * Data();
    78     void SetData(void* value);
    7978    leftv LData(); /* returns &(l[i]) for l[i], otherwise returns this */
    8079    leftv LHdl();
Note: See TracChangeset for help on using the changeset viewer.