Changeset db34980 in git


Ignore:
Timestamp:
Feb 20, 2012, 7:52:45 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
9b8b090bca59f6bb48b468a6a1b63a90e53e6299
Parents:
e3198f2a9226b630c86adfee27dac28803f035df
Message:
fix: alias in proc headers (tr. 404) (from master)
fix: alias and lists (tr. 404) (from master)
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/iplib.cc

    re3198f rdb34980  
    149149    s=e; // set s to the starting point of the arg
    150150         // and search for the end
     151    while(*s==' ') s++; e=s; // skip leading paces
    151152    while ((*e!=',')
    152153    &&((par!=0) || (*e!=')'))
  • Singular/subexpr.cc

    re3198f rdb34980  
    126126        case RING_CMD:
    127127        case QRING_CMD:
    128         {             
     128        {
    129129          PrintNSpaces(spaces);
    130           const ring r = (const ring)d;
     130          const ring r = (const ring)d;
    131131          rWrite(r, currRing == r);
    132132          break;
    133         }       
     133        }
    134134        case MATRIX_CMD:
    135135          iiWriteMatrix((matrix)d,n,2, currRing, spaces);
     
    632632    {
    633633      const ring A = currRing->cf->extRing;
    634      
     634
    635635      assume( A != NULL );
    636636      assume( A->minideal != NULL );
    637    
     637
    638638      x=(void *)p_Copy(A->minideal->m[0], A);
    639639    }
     
    832832            {
    833833              char* id = iiStringMatrix((matrix) ((ring) d)->qideal, dim,
    834                               currRing);
     834                              currRing);
    835835              ns = (char*) omAlloc(strlen(s) + strlen(id) + 20);
    836836              sprintf(ns, "\"%s\";%sideal(%s)", s,(dim == 2 ? "\n" : " "), id);
     
    964964        lists l;
    965965        if (rtyp==IDHDL) l=IDLIST((idhdl)data);
     966        else if (rtyp==ALIAS_CMD)
     967        {
     968          idhdl h=(idhdl)data;
     969          l=(lists)(((idhdl)h->data.ustring)->data.ustring);
     970        }
    966971        else             l=(lists)data;
    967972        if ((0<e->start)&&(e->start<=l->nr+1))
     
    10471052          /* Q(a), Fp(a), but not GF(q) */
    10481053          const ring A = currRing->cf->extRing;
    1049          
     1054
    10501055          assume( A != NULL );
    10511056          assume( A->minideal != NULL );
    1052          
     1057
    10531058          return (void *)A->minideal->m[0];
    10541059        }
    10551060        else
    10561061          return (void *)currRing->cf->nNULL;
    1057        
     1062
    10581063      case VNOETHER:   return (void *) (currRing->ppNoether);
    10591064      case IDHDL:
     
    12561261    if (rtyp==LIST_CMD)
    12571262      l=(lists)data;
    1258     if ((rtyp==IDHDL)&& (IDTYP((idhdl)data)==LIST_CMD))
     1263    else if ((rtyp==IDHDL)&& (IDTYP((idhdl)data)==LIST_CMD))
    12591264      l=IDLIST((idhdl)data);
     1265    else if (rtyp==ALIAS_CMD)
     1266    {
     1267      idhdl h=(idhdl)data;
     1268      l= (lists)(((idhdl)h->data.ustring)->data.ustring);
     1269    }
    12601270    if (l!=NULL)
    12611271    {
Note: See TracChangeset for help on using the changeset viewer.