Changeset e25346 in git
- Timestamp:
- Sep 18, 2014, 3:02:40 PM (9 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 6444d6389c28adc3ffe071f6db085827f420f358
- Parents:
- 5b53cb58091cb3a67624dc9a430ac91504effa28
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r5b53cb re25346 7931 7931 * then alphabetically */ 7932 7932 7933 BOOLEAN iiExprArith1 (leftv res, leftv a, int op)7933 BOOLEAN iiExprArith1Tab(leftv res, leftv a, int op, struct sValCmd1* dArith1, int i) 7934 7934 { 7935 7935 memset(res,0,sizeof(sleftv)); … … 7938 7938 if (!errorreported) 7939 7939 { 7940 #ifdef SIQ 7941 if (siq>0) 7942 { 7943 //Print("siq:%d\n",siq); 7944 command d=(command)omAlloc0Bin(sip_command_bin); 7945 memcpy(&d->arg1,a,sizeof(sleftv)); 7946 //a->Init(); 7947 d->op=op; 7948 d->argc=1; 7949 res->data=(char *)d; 7950 res->rtyp=COMMAND; 7951 return FALSE; 7952 } 7953 #endif 7940 BOOLEAN failed=FALSE; 7954 7941 int at=a->Typ(); 7955 // handling bb-objects ----------------------------------------------------7956 if (at>MAX_TOK)7957 {7958 blackbox *bb=getBlackboxStuff(at);7959 if (bb!=NULL)7960 {7961 if(!bb->blackbox_Op1(op,res,a)) return FALSE;7962 if (errorreported) return TRUE;7963 // else: no op defined7964 }7965 else return TRUE;7966 }7967 7968 BOOLEAN failed=FALSE;7969 7942 iiOp=op; 7970 int i=iiTabIndex(dArithTab1,JJTAB1LEN,op);7971 7943 int ti = i; 7972 7944 while (dArith1[i].cmd==op) … … 8068 8040 } 8069 8041 res->rtyp = UNKNOWN; 8042 } 8043 a->CleanUp(); 8044 return TRUE; 8045 } 8046 BOOLEAN iiExprArith1(leftv res, leftv a, int op) 8047 { 8048 memset(res,0,sizeof(sleftv)); 8049 BOOLEAN call_failed=FALSE; 8050 8051 if (!errorreported) 8052 { 8053 #ifdef SIQ 8054 if (siq>0) 8055 { 8056 //Print("siq:%d\n",siq); 8057 command d=(command)omAlloc0Bin(sip_command_bin); 8058 memcpy(&d->arg1,a,sizeof(sleftv)); 8059 //a->Init(); 8060 d->op=op; 8061 d->argc=1; 8062 res->data=(char *)d; 8063 res->rtyp=COMMAND; 8064 return FALSE; 8065 } 8066 #endif 8067 int at=a->Typ(); 8068 // handling bb-objects ---------------------------------------------------- 8069 if (at>MAX_TOK) 8070 { 8071 blackbox *bb=getBlackboxStuff(at); 8072 if (bb!=NULL) 8073 { 8074 if(!bb->blackbox_Op1(op,res,a)) return FALSE; 8075 if (errorreported) return TRUE; 8076 // else: no op defined 8077 } 8078 else return TRUE; 8079 } 8080 8081 BOOLEAN failed=FALSE; 8082 iiOp=op; 8083 int i=iiTabIndex(dArithTab1,JJTAB1LEN,op); 8084 return iiExprArith1Tab(res,a,op, dArith1, i); 8070 8085 } 8071 8086 a->CleanUp(); -
Singular/ipshell.h
r5b53cb re25346 250 250 251 251 BOOLEAN iiTestAssume(leftv a, leftv b); 252 #endif 253 252 253 /* table inteface for iiAddCproc */ 254 BOOLEAN iiExprArith1Tab(leftv res, leftv a, int op, struct sValCmd1* dArith1, int i); 255 #endif 256
Note: See TracChangeset
for help on using the changeset viewer.