Changeset 137883e in git
- Timestamp:
- Feb 25, 2014, 2:51:01 PM (10 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 76df619ea2e1d07990ab83e0f5acd9cc2ccece97
- Parents:
- e8f898970062b0449f9db166877f0e1811d15b63
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipassign.cc
re8f898 r137883e 865 865 if (lt==DEF_CMD) 866 866 { 867 if (TEST_V_ALLWARN 868 && (rt!=RING_CMD) 869 && (rt!=QRING_CMD) 870 && (l->name!=NULL) 871 && (l->e==NULL) 872 && (iiCurrArgs==NULL) /* not in proc header */ 873 ) 874 { 875 Warn("use `%s` instead of `def`",Tok2Cmdname(rt)); 876 } 867 877 if (l->rtyp==IDHDL) 868 878 { -
Singular/ipshell.cc
re8f898 r137883e 1155 1155 } 1156 1156 leftv h=iiCurrArgs; 1157 leftv rest=h->next; /*iiCurrArgs is not NULLi here*/ 1158 BOOLEAN is_default_list=FALSE; 1157 1159 if (strcmp(p->name,"#")==0) 1158 1160 { 1161 is_default_list=TRUE; 1162 rest=NULL; 1163 } 1164 else 1165 { 1166 h->next=NULL; 1167 } 1168 BOOLEAN res=iiAssign(p,h); 1169 if (is_default_list) 1170 { 1159 1171 iiCurrArgs=NULL; 1160 1172 } 1161 1173 else 1162 1174 { 1163 iiCurrArgs=h->next; 1164 h->next=NULL; 1165 } 1166 BOOLEAN res=iiAssign(p,h); 1175 iiCurrArgs=rest; 1176 } 1167 1177 h->CleanUp(); 1168 1178 omFreeBin((ADDRESS)h, sleftv_bin); … … 2198 2208 lists v=(lists)L->m[1].Data(); 2199 2209 R->N = v->nr+1; 2200 if (R->N<=0) 2210 if (R->N<=0) 2201 2211 { 2202 2212 WerrorS("no ring variables"); … … 5057 5067 else // (0/p, a, b, ..., z) 5058 5068 { 5059 5060 5061 5062 5063 5069 if ((ch!=0) && (ch!=IsPrime(ch))) 5070 { 5071 WerrorS("too many parameters"); 5072 goto rInitError; 5073 } 5064 5074 5065 5075 char ** names = (char**)omAlloc0(pars * sizeof(char_ptr)); … … 5074 5084 5075 5085 extParam.r = rDefault( ch, pars, names); // Q/Zp [ p_1, ... p_pars ] 5076 5077 5078 5079 5080 5086 for(int i=pars-1; i>=0;i--) 5087 { 5088 omFree(names[i]); 5089 } 5090 omFree(names); 5081 5091 5082 5092 cf = nInitChar(n_transExt, &extParam); … … 5158 5168 number p=(number)pn->next->CopyD(); 5159 5169 nlGMP(p,(number)modBase,coeffs_BIGINT); 5160 5170 nlDelete(&p,coeffs_BIGINT); 5161 5171 } 5162 5172 }
Note: See TracChangeset
for help on using the changeset viewer.