Changeset 58e9e0 in git for Singular/iparith.cc
- Timestamp:
- Jul 26, 1999, 7:03:54 PM (25 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'dce4ad324f6e216ae93a99713959b505fb6213d3')
- Children:
- dd70e71ba5dc277b4fe6a0632569149de3fadbef
- Parents:
- 9050cae84ee67262b9d08045bac6f3b36c2cc66b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r9050ca r58e9e0 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.16 3 1999-07-23 13:45:15Singular Exp $ */4 /* $Id: iparith.cc,v 1.164 1999-07-26 17:03:54 Singular Exp $ */ 5 5 6 6 /* … … 284 284 { "std", 0, STD_CMD , CMD_123}, 285 285 { "string", 0, STRING_CMD , ROOT_DECL_LIST}, 286 { "subst", 0, SUBST_CMD , CMD_ 3},286 { "subst", 0, SUBST_CMD , CMD_M}, 287 287 { "system", 0, SYSTEM_CMD, CMD_M}, 288 288 { "syz", 0, SYZYGY_CMD , CMD_1}, … … 4719 4719 } 4720 4720 #endif 4721 static BOOLEAN jjSUBST_M(leftv res, leftv u) 4722 { 4723 leftv v = u->next; 4724 leftv w = v->next; 4725 leftv rest = w->next; 4726 4727 u->next = NULL; 4728 v->next = NULL; 4729 w->next = NULL; 4730 BOOLEAN b = iiExprArith3(res, iiOp, u, v, w); 4731 if ((rest!=NULL) && (!b)) 4732 { 4733 sleftv tmp_res; 4734 leftv tmp_next=res->next; 4735 res->next=rest; 4736 memset(&tmp_res,0,sizeof(tmp_res)); 4737 b = iiExprArithM(&tmp_res,iiOp,res); 4738 memcpy(res,&tmp_res,sizeof(tmp_res)); 4739 res->next=tmp_next; 4740 } 4741 u->next = v; 4742 v->next = w; 4743 w->next = rest; 4744 return b; 4745 } 4721 4746 4722 4747 #ifdef HAVE_NAMESPACES … … 4828 4853 ,{jjRESERVED0, RESERVEDNAME_CMD, NONE, 0 } 4829 4854 ,{jjSTRING_PL, STRING_CMD, STRING_CMD, -1 } 4855 ,{jjCALL3ARG, SUBST_CMD, NONE/*set by p*/, 3 } 4856 ,{jjSUBST_M, SUBST_CMD, NONE/*set by p*/, -2 } 4830 4857 ,{jjSYSTEM, SYSTEM_CMD, NONE/*or set by p*/,-2 } 4831 4858 ,{jjTEST, TEST_CMD, NONE, -2 }
Note: See TracChangeset
for help on using the changeset viewer.