Changeset db34980 in git
- Timestamp:
- Feb 20, 2012, 7:52:45 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 9b8b090bca59f6bb48b468a6a1b63a90e53e6299
- Parents:
- e3198f2a9226b630c86adfee27dac28803f035df
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iplib.cc
re3198f rdb34980 149 149 s=e; // set s to the starting point of the arg 150 150 // and search for the end 151 while(*s==' ') s++; e=s; // skip leading paces 151 152 while ((*e!=',') 152 153 &&((par!=0) || (*e!=')')) -
Singular/subexpr.cc
re3198f rdb34980 126 126 case RING_CMD: 127 127 case QRING_CMD: 128 { 128 { 129 129 PrintNSpaces(spaces); 130 130 const ring r = (const ring)d; 131 131 rWrite(r, currRing == r); 132 132 break; 133 } 133 } 134 134 case MATRIX_CMD: 135 135 iiWriteMatrix((matrix)d,n,2, currRing, spaces); … … 632 632 { 633 633 const ring A = currRing->cf->extRing; 634 634 635 635 assume( A != NULL ); 636 636 assume( A->minideal != NULL ); 637 637 638 638 x=(void *)p_Copy(A->minideal->m[0], A); 639 639 } … … 832 832 { 833 833 char* id = iiStringMatrix((matrix) ((ring) d)->qideal, dim, 834 834 currRing); 835 835 ns = (char*) omAlloc(strlen(s) + strlen(id) + 20); 836 836 sprintf(ns, "\"%s\";%sideal(%s)", s,(dim == 2 ? "\n" : " "), id); … … 964 964 lists l; 965 965 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 } 966 971 else l=(lists)data; 967 972 if ((0<e->start)&&(e->start<=l->nr+1)) … … 1047 1052 /* Q(a), Fp(a), but not GF(q) */ 1048 1053 const ring A = currRing->cf->extRing; 1049 1054 1050 1055 assume( A != NULL ); 1051 1056 assume( A->minideal != NULL ); 1052 1057 1053 1058 return (void *)A->minideal->m[0]; 1054 1059 } 1055 1060 else 1056 1061 return (void *)currRing->cf->nNULL; 1057 1062 1058 1063 case VNOETHER: return (void *) (currRing->ppNoether); 1059 1064 case IDHDL: … … 1256 1261 if (rtyp==LIST_CMD) 1257 1262 l=(lists)data; 1258 if ((rtyp==IDHDL)&& (IDTYP((idhdl)data)==LIST_CMD))1263 else if ((rtyp==IDHDL)&& (IDTYP((idhdl)data)==LIST_CMD)) 1259 1264 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 } 1260 1270 if (l!=NULL) 1261 1271 {
Note: See TracChangeset
for help on using the changeset viewer.