Changeset 73f3ca7 in git
- Timestamp:
- Sep 19, 2014, 5:36:59 PM (9 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 0e8dab27bf2f0f78deb06b2627bb3f13ab41e7c5768faf941b632918f43fb7b4b3300abff92ddd97
- Parents:
- 1c5671bf0ac80d11a9c67730f239e645e50482de
- Location:
- Singular
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/gentable.cc
r1c5671 r73f3ca7 284 284 * try to convert 'inputType' in 'outputType' 285 285 * return 0 on failure, an index (<>0) on success 286 * GENTABLE variant! 286 287 */ 287 288 int iiTestConvert (int inputType, int outputType) -
Singular/iparith.cc
r1c5671 r73f3ca7 7931 7931 * then alphabetically */ 7932 7932 7933 BOOLEAN iiExprArith1Tab(leftv res, leftv a, int op, struct sValCmd1* dArith1, int i )7933 BOOLEAN iiExprArith1Tab(leftv res, leftv a, int op, struct sValCmd1* dArith1, int i, int at, struct sConvertTypes *dConvertTypes) 7934 7934 { 7935 7935 memset(res,0,sizeof(sleftv)); … … 7939 7939 { 7940 7940 BOOLEAN failed=FALSE; 7941 int at=a->Typ();7942 7941 iiOp=op; 7943 7942 int ti = i; … … 7977 7976 int ai; 7978 7977 //Print("test %s\n",Tok2Cmdname(dArith1[i].arg)); 7979 if ((ai=iiTestConvert(at,dArith1[i].arg ))!=0)7978 if ((ai=iiTestConvert(at,dArith1[i].arg,dConvertTypes))!=0) 7980 7979 { 7981 7980 if (currRing!=NULL) … … 7986 7985 Print("call %s(%s)\n",iiTwoOps(op),Tok2Cmdname(dArith1[i].arg)); 7987 7986 res->rtyp=dArith1[i].res; 7988 failed= ((iiConvert(at,dArith1[i].arg,ai,a,an ))7987 failed= ((iiConvert(at,dArith1[i].arg,ai,a,an,dConvertTypes)) 7989 7988 || (call_failed=dArith1[i].p(res,an))); 7990 7989 // everything done, clean up temp. variables … … 8082 8081 iiOp=op; 8083 8082 int i=iiTabIndex(dArithTab1,JJTAB1LEN,op); 8084 return iiExprArith1Tab(res,a,op, dArith1, i );8083 return iiExprArith1Tab(res,a,op, dArith1, i,at,dConvertTypes); 8085 8084 } 8086 8085 a->CleanUp(); -
Singular/ipconv.cc
r1c5671 r73f3ca7 298 298 * return FALSE on success 299 299 */ 300 BOOLEAN iiConvert (int inputType, int outputType, int index, leftv input, leftv output )300 BOOLEAN iiConvert (int inputType, int outputType, int index, leftv input, leftv output,struct sConvertTypes *dConvertTypes) 301 301 { 302 302 memset(output,0,sizeof(sleftv)); … … 421 421 * return 0 on failure, an index (<>0) on success 422 422 */ 423 int iiTestConvert (int inputType, int outputType )423 int iiTestConvert (int inputType, int outputType,struct sConvertTypes *dConvertTypes) 424 424 { 425 425 if ((inputType==outputType) -
Singular/ipconv.h
r1c5671 r73f3ca7 8 8 */ 9 9 #include <kernel/structs.h> 10 #include <Singular/table.h> 10 11 11 int iiTestConvert (int inputType, int outputType );12 int iiTestConvert (int inputType, int outputType, struct sConvertTypes *dCT=dConvertTypes); 12 13 BOOLEAN iiConvert (int inputType, int outputType, int index, 13 leftv input, leftv output );14 leftv input, leftv output, struct sConvertTypes *dCT=dConvertTypes); 14 15 #endif 15 16 -
Singular/ipshell.h
r1c5671 r73f3ca7 252 252 253 253 /* table inteface for iiAddCproc */ 254 BOOLEAN iiExprArith1Tab(leftv res, leftv a, int op, struct sValCmd1* dArith1, int i); 255 #endif 256 254 BOOLEAN iiExprArith1Tab(leftv res, leftv a, int op, 255 struct sValCmd1* dArith1, int i, int at, 256 struct sConvertTypes *dConvertTypes); 257 #endif 258 -
Singular/table.h
r1c5671 r73f3ca7 1193 1193 { 0, 0, NULL_VAL , NULL_VAL } 1194 1194 }; 1195 #else 1196 extern struct sConvertTypes dConvertTypes[]; 1195 1197 #endif 1196 1198 #ifdef IPASSIGN
Note: See TracChangeset
for help on using the changeset viewer.