Changeset b4b74c in git for Singular/extra.cc


Ignore:
Timestamp:
Oct 23, 2021, 8:38:31 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
474eb59e589a28737a03f498f9d8504424271455
Parents:
e2c597cebf3e1f2e5391b7e5756aa240b3fb0ab8
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2021-10-23 20:38:31+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2021-10-23 20:41:01+02:00
Message:
test p_Content: system("content",p)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    re2c597 rb4b74c  
    224224}
    225225
    226 //void emStart();
    227226/*2
    228227*  the "system" command
     
    291290      }
    292291      else
     292/*==================== content ==================================*/
     293    if(strcmp(sys_cmd,"content")==0)
     294    {
     295      if ((h!=NULL) && ((h->Typ()==POLY_CMD)||(h->Typ()==VECTOR_CMD)))
     296      {
     297        int t=h->Typ();
     298        poly p=(poly)h->CopyD();
     299        if (p!=NULL)
     300        {
     301           if (!nCoeff_is_Ring(currRing->cf)) p_Cleardenom(p,currRing);
     302          p_Content(p,currRing);
     303        }
     304        res->data=(void *)p;
     305        res->rtyp=t;
     306        return FALSE;
     307      }
     308      return TRUE;
     309    }
     310    else
    293311/*==================== cpu ==================================*/
    294312    if(strcmp(sys_cmd,"cpu")==0)
Note: See TracChangeset for help on using the changeset viewer.