Changeset b27003e in git for Singular/attrib.cc


Ignore:
Timestamp:
Dec 9, 2008, 6:32:52 PM (15 years ago)
Author:
Viktor Levandovskyy <levandov@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
d141f0ace180cabeccf7e5bfb22a69f529547357
Parents:
a470ebe18bdea9bcb99b87e3b9d94210efd4d584
Message:
*levandov: introducing the attribute isLPring for letterplace rings


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

Legend:

Unmodified
Added
Removed
  • Singular/attrib.cc

    ra470eb rb27003e  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: attrib.cc,v 1.30 2008-09-19 14:06:00 Singular Exp $ */
     4/* $Id: attrib.cc,v 1.31 2008-12-09 17:32:52 levandov Exp $ */
    55
    66/*
     
    316316    res->data=(void *)(((ring)v->Data())->OrdSgn==1);
    317317  }
     318#ifdef HAVE_SHIFTBBA
     319  else if ((strcmp(name,"isLPring")==0)
     320  &&(((t=v->Typ())==RING_CMD)||(t==QRING_CMD)))
     321  {
     322    res->rtyp=INT_CMD;
     323    res->data=(void *)(((ring)v->Data())->isLPring);
     324  }
     325#endif
    318326  else
    319327  {
     
    349357    if (c->Typ()!=INT_CMD)
    350358    {
    351       WerrorS("attrib isSB must be int");
     359      WerrorS("attribute isSB must be int");
    352360      return TRUE;
    353361    }
     
    367375    if (c->Typ()!=INT_CMD)
    368376    {
    369       WerrorS("attrib `rank` must be int");
     377      WerrorS("attribute `rank` must be int");
    370378      return TRUE;
    371379    }
     
    376384  &&(((t=v->Typ())==RING_CMD)||(t==QRING_CMD)))
    377385  {
    378     WerrorS("can not set attribut `global`");
     386    WerrorS("can not set attribute `global`");
    379387    return TRUE;
    380388  }
     389#ifdef HAVE_SHIFTBBA
     390  else if ((strcmp(name,"isLPring")==0)
     391  &&(((t=v->Typ())==RING_CMD)||(t==QRING_CMD)))
     392  {
     393    if (c->Typ()==INT_CMD)
     394      ((ring)v->Data())->isLPring=(int)(long)c->Data();
     395    else
     396    {
     397      WerrorS("attribute `isLPring` must be int");
     398      return TRUE;
     399    }
     400  }
     401#endif
    381402  else
    382403  {
Note: See TracChangeset for help on using the changeset viewer.