Changeset f2dff02 in git
- Timestamp:
- Mar 26, 2001, 9:30:24 PM (22 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 355f86ae1e09b962323c4d49da60c5aa3a7eb6c5
- Parents:
- 1bd25e34e1c021af2213fdd6edb61b9aa82fa6ca
- Location:
- Singular
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r1bd25e rf2dff02 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.26 0 2001-03-05 18:25:47 mschulzeExp $ */4 /* $Id: iparith.cc,v 1.261 2001-03-26 19:30:20 Singular Exp $ */ 5 5 6 6 /* … … 1448 1448 memcpy(u->next,v,sizeof(sleftv)); 1449 1449 BOOLEAN r=iiExprArithM(res,u,iiOp); 1450 v->rtyp=0; v->data=NULL;// iiExprArithM did the CleanUp1450 // iiExprArithM did the CleanUp 1451 1451 return r; 1452 1452 } … … 4008 4008 memcpy(u->next->next,w,sizeof(sleftv)); 4009 4009 BOOLEAN r=iiExprArithM(res,u,iiOp); 4010 v->rtyp=0; v->data=NULL;// iiExprArithM did the CleanUp4010 // iiExprArithM did the CleanUp 4011 4011 w->rtyp=0; w->data=NULL; 4012 4012 return r; -
Singular/ipid.cc
r1bd25e rf2dff02 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipid.cc,v 1.4 6 2000-12-06 11:03:15Singular Exp $ */4 /* $Id: ipid.cc,v 1.47 2001-03-26 19:30:21 Singular Exp $ */ 5 5 6 6 /* … … 517 517 { 518 518 sLastPrinted.CleanUp(); 519 memset(&sLastPrinted,0,sizeof(sleftv));520 519 } 521 520 } … … 901 900 hdh = temp; 902 901 } 903 if(checkPackage(pack)) { 902 if(checkPackage(pack)) 903 { 904 904 paCleanUp(pack); 905 905 omFreeBin((ADDRESS)pack, sip_package_bin); 906 } else return FALSE; 907 } else paCleanUp(pack); 906 } 907 else return FALSE; 908 } 909 else paCleanUp(pack); 908 910 return TRUE; 909 911 } -
Singular/iplib.cc
r1bd25e rf2dff02 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iplib.cc,v 1.8 1 2001-03-26 18:11:53Singular Exp $ */4 /* $Id: iplib.cc,v 1.82 2001-03-26 19:30:22 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: LIB and help … … 57 57 char * iiGetLibName(procinfov pi) 58 58 { 59 char *res=NULL; 60 61 res = pi->libname; 62 return res; 63 } 59 return pi->libname; 60 } 61 64 62 /*2 65 63 * given a line 'proc[ ]+{name}[ \t]*' … … 102 100 BOOLEAN args_found; 103 101 char *s; 104 char *argstr=(char *)omAlloc(12 4);105 int argstrlen=12 4;102 char *argstr=(char *)omAlloc(127); // see ../omalloc/omTables.inc 103 int argstrlen=127; 106 104 *argstr='\0'; 107 105 do … … 379 377 if(pi->is_static) 380 378 { 381 if(ns==NULL) 382 { 383 Werror("'%s::%s()' 1 is a local procedure and cannot be accessed by an user.", 384 plib, pi->procname); 385 omFree(plib); 386 return NULL; 387 } 388 if(strcmp(plib, namespaceroot->name)!= 0) 389 { 390 Werror("'%s::%s()' 2 is a local procedure and cannot be accessed by an user.", 379 if((ns==NULL) 380 || (strcmp(plib, namespaceroot->name)!= 0)) 381 { 382 Werror("'%s::%s()' is a local procedure and cannot be accessed by an user.", 391 383 plib, pi->procname); 392 384 omFree(plib); -
Singular/ipshell.cc
r1bd25e rf2dff02 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipshell.cc,v 1.6 4 2001-03-22 19:11:04Singular Exp $ */4 /* $Id: ipshell.cc,v 1.65 2001-03-26 19:30:23 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 386 386 while (h!=NULL) 387 387 { 388 if ((all && (IDTYP(h)!=PROC_CMD)) || (typ == IDTYP(h)) 388 if ((all && (IDTYP(h)!=PROC_CMD) &&(IDTYP(h)!=PACKAGE_CMD)) 389 || (typ == IDTYP(h)) 389 390 || ((IDTYP(h)==QRING_CMD) && (typ==RING_CMD))) 390 391 { … … 1043 1044 else 1044 1045 { 1045 if(iiInternalExport(v, toLev)) { 1046 if(iiInternalExport(v, toLev)) 1047 { 1046 1048 r->CleanUp(); 1047 1049 return TRUE; … … 1087 1089 } 1088 1090 } 1089 if(iiInternalExport(v, toLev, root)) { 1091 if(iiInternalExport(v, toLev, root)) 1092 { 1090 1093 rv->CleanUp(); 1091 1094 return TRUE; -
Singular/ring.cc
r1bd25e rf2dff02 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.16 1 2001-02-21 10:08:14Singular Exp $ */4 /* $Id: ring.cc,v 1.162 2001-03-26 19:30:23 Singular Exp $ */ 5 5 6 6 /* … … 128 128 { 129 129 sLastPrinted.CleanUp(); 130 memset(&sLastPrinted,0,sizeof(sleftv));131 130 } 132 131 … … 147 146 { 148 147 sLastPrinted.CleanUp(); 149 memset(&sLastPrinted,0,sizeof(sleftv));150 148 } 151 149 … … 876 874 { 877 875 sLastPrinted.CleanUp(); 878 memset(&sLastPrinted,0,sizeof(sleftv));879 876 } 880 877 if ((myynest>0) && (iiRETURNEXPR[myynest].RingDependend())) -
Singular/subexpr.cc
r1bd25e rf2dff02 5 5 * ABSTRACT: handling of leftv 6 6 */ 7 /* $Id: subexpr.cc,v 1.7 4 2001-03-23 18:27:41Singular Exp $ */7 /* $Id: subexpr.cc,v 1.75 2001-03-26 19:30:24 Singular Exp $ */ 8 8 9 9 #include <stdlib.h> … … 286 286 omFree((ADDRESS)name); 287 287 } 288 name=NULL;289 flag=0;288 //name=NULL; 289 //flag=0; 290 290 #ifdef HAVE_NAMESPACES 291 packhdl = NULL;292 req_packhdl = NULL;291 //packhdl = NULL; 292 //req_packhdl = NULL; 293 293 #endif /* HAVE_NAMESPACES */ 294 294 if (data!=NULL) … … 361 361 case VTIMER: 362 362 #ifdef HAVE_RTIMER 363 363 case VRTIMER: 364 364 #endif 365 365 case VOICE: … … 378 378 #endif 379 379 } /* end switch: (rtyp) */ 380 data=NULL;380 //data=NULL; 381 381 } 382 382 if (attribute!=NULL) … … 408 408 case LIB_CMD: 409 409 case 0: 410 attribute=NULL;410 //attribute=NULL; 411 411 break; 412 412 default: … … 429 429 e=h; 430 430 } 431 rtyp=NONE;431 //rtyp=NONE; 432 432 if (next!=NULL) 433 433 { … … 443 443 } while (next!=NULL); 444 444 } 445 Init(); 445 446 } 446 447 … … 529 530 void sleftv::Copy(leftv source) 530 531 { 531 memset(this,0,sizeof(*this));532 Init(); 532 533 rtyp=source->Typ(); 533 534 void *d=source->Data(); … … 1109 1110 // the evalutated form will be build in tmp 1110 1111 sleftv tmp; 1111 memset(&tmp,0,sizeof(tmp));1112 tmp.Init(); 1112 1113 tmp.rtyp=STRING_CMD; 1113 1114 r=(char *)omAllocBin(size_two_bin); … … 1308 1309 } 1309 1310 #endif 1310 memset(v,0,sizeof(sleftv));1311 v->Init(); 1311 1312 #ifdef HAVE_NAMESPACES 1312 1313 v->packhdl = NULL; … … 1585 1586 memset(&d->arg1,0,sizeof(sleftv)); 1586 1587 this->CleanUp(); 1587 memset(this,0,sizeof(sleftv));1588 1588 rtyp=NONE; 1589 1589 }
Note: See TracChangeset
for help on using the changeset viewer.