Changeset 34fbd93 in git
- Timestamp:
- Jul 9, 1999, 4:58:30 PM (24 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 6959c49751ce060112fd62dace5b8f7590c72602
- Parents:
- 609ba11e29d4d3c44b5785da0728121bbc8e0065
- Location:
- Singular
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/grammar.y
r609ba11 r34fbd93 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: grammar.y,v 1.6 1 1999-05-29 12:00:01Singular Exp $ */4 /* $Id: grammar.y,v 1.62 1999-07-09 14:58:24 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: SINGULAR shell grammatik … … 58 58 char my_yylinebuf[80]; 59 59 char * currid; 60 BOOLEAN noringvars=FALSE;60 BOOLEAN yyInRingConstruction=FALSE; 61 61 BOOLEAN expected_parms; 62 62 int cmdtok; … … 364 364 siq=0; 365 365 #endif 366 noringvars= FALSE;366 yyInRingConstruction = FALSE; 367 367 currentVoice->ifsw=0; 368 368 if (inerror) … … 941 941 UNKNOWN_IDENT 942 942 { 943 #if 0944 if (!($$=rOrderName($1)))945 YYERROR;946 #else947 943 // let rInit take care of any errors 948 944 $$=rOrderName($1); 949 #endif950 945 } 951 946 ; … … 1309 1304 1310 1305 ringcmd1: 1311 RING_CMD { noringvars= TRUE; }1306 RING_CMD { yyInRingConstruction = TRUE; } 1312 1307 ; 1313 1308 … … 1343 1338 $6.CleanUp(); 1344 1339 $8.CleanUp(); 1345 noringvars= FALSE;1340 yyInRingConstruction = FALSE; 1346 1341 if (b==NULL) 1347 1342 { … … 1371 1366 if(do_pop) namespaceroot->pop(); 1372 1367 #endif /* HAVE_NAMESPACES */ 1373 noringvars= FALSE;1374 } 1375 | DRING_CMD { noringvars= TRUE; }1368 yyInRingConstruction = FALSE; 1369 } 1370 | DRING_CMD { yyInRingConstruction = TRUE; } 1376 1371 elemexpr cmdeq 1377 1372 rlist ',' /* description of coeffs */ … … 1412 1407 rDSet(); 1413 1408 #endif 1414 noringvars= FALSE;1409 yyInRingConstruction = FALSE; 1415 1410 } 1416 1411 ; -
Singular/iparith.cc
r609ba11 r34fbd93 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.15 7 1999-07-09 14:06:45 obachmanExp $ */4 /* $Id: iparith.cc,v 1.158 1999-07-09 14:58:25 Singular Exp $ */ 5 5 6 6 /* … … 4311 4311 leftv v=u->next; 4312 4312 u->next=NULL; 4313 BOOLEAN b=iiExprArith2(res,u,iiOp,v );4313 BOOLEAN b=iiExprArith2(res,u,iiOp,v, (iiOp > 255)); 4314 4314 u->next=v; 4315 4315 return b; … … 4522 4522 static BOOLEAN jjKLAMMER_PL(leftv res, leftv u) 4523 4523 { 4524 if (yyInRingConstruction) 4525 { 4526 memcpy(res,u,sizeof(sleftv)); 4527 memset(u,0,sizeof(sleftv)); 4528 return FALSE; 4529 } 4524 4530 leftv v=u->next; 4525 4531 BOOLEAN b; -
Singular/ipshell.h
r609ba11 r34fbd93 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: ipshell.h,v 1.1 7 1999-04-15 17:28:05Singular Exp $ */6 /* $Id: ipshell.h,v 1.18 1999-07-09 14:58:28 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT … … 32 32 extern cmdnames cmds[]; 33 33 extern char *lastreserved; 34 extern BOOLEAN yyInRingConstruction; /* 1: during ring construction */ 34 35 35 36 int IsCmd(char *n, int & tok); -
Singular/scanner.l
r609ba11 r34fbd93 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 /* $Id: scanner.l,v 1.1 7 1999-07-06 15:32:44Singular Exp $ */5 /* $Id: scanner.l,v 1.18 1999-07-09 14:58:29 Singular Exp $ */ 6 6 #include <stdio.h> 7 7 #include <string.h> … … 23 23 //extern unsigned char * yytext; 24 24 extern int yyleng; 25 extern BOOLEAN noringvars;26 25 extern int inerror; 27 26 -
Singular/subexpr.cc
r609ba11 r34fbd93 5 5 * ABSTRACT: handling of leftv 6 6 */ 7 /* $Id: subexpr.cc,v 1.5 1 1999-06-15 11:36:41Singular Exp $ */7 /* $Id: subexpr.cc,v 1.52 1999-07-09 14:58:30 Singular Exp $ */ 8 8 9 9 #include <stdlib.h> … … 1211 1211 * utility for grammar and iparith 1212 1212 */ 1213 extern BOOLEAN noringvars;1214 1213 void syMake(leftv v,char * id, idhdl packhdl) 1215 1214 { … … 1333 1332 { 1334 1333 BOOLEAN ok=FALSE; 1335 poly p = (! noringvars) ? pmInit(id,ok) : (poly)NULL;1334 poly p = (!yyInRingConstruction) ? pmInit(id,ok) : (poly)NULL; 1336 1335 if (ok) 1337 1336 { … … 1363 1362 { 1364 1363 BOOLEAN ok=FALSE; 1365 poly p = ((currRingHdl!=NULL)&&(!noringvars)&&(IDLEV(currRingHdl)!=myynest)) 1366 /* ring required */ /* not in decl */ /* already in case 4/6 */ 1364 poly p = ((currRingHdl!=NULL) /* ring required */ 1365 &&(!yyInRingConstruction) /* not in decl */ 1366 &&(IDLEV(currRingHdl)!=myynest)) /* already in case 4/6 */ 1367 1367 ? pmInit(id,ok) : (poly)NULL; 1368 1368 if (ok)
Note: See TracChangeset
for help on using the changeset viewer.