Changeset a71a00 in git
- Timestamp:
- Jul 25, 2011, 8:03:21 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 959af92dd3c85cbbd9bccbb36164c999d4f65f53
- Parents:
- 15bb91833fa965fdd1eab30eb3d6abcb55565969
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iplib.cc
r15bb918 ra71a00 294 294 } 295 295 296 BOOLEAN iiAllStart(procinfov pi, char *p,feBufferTypes t, int l) 297 { 298 newBuffer( omStrDup(p /*pi->data.s.body*/), t /*BT_proc*/, 299 pi, l ); 300 BOOLEAN err=yyparse(); 301 if (sLastPrinted.rtyp!=0) 302 { 303 sLastPrinted.CleanUp(); 304 } 305 return err; 306 } 296 307 /*2 297 308 * start a proc … … 323 334 // int m=om_Info.UsedBytes; 324 335 // Print("proc %s, mem=%d\n",IDID(pn),m); 325 newBuffer( omStrDup(pi->data.s.body), BT_proc, 326 pi, pi->data.s.body_lineno-(v!=NULL) ); 327 } 328 } 336 } 337 } 338 else return TRUE; 329 339 /* generate argument list ======================================*/ 330 340 if (v!=NULL) … … 348 358 else 349 359 { 350 err=yyparse(); 351 #ifndef NDEBUG 352 checkall(); 353 #endif 354 if (sLastPrinted.rtyp!=0) 355 { 356 sLastPrinted.CleanUp(); 357 } 360 err=iiAllStart(pi,pi->data.s.body,BT_proc,pi->data.s.body_lineno-(v!=NULL)); 361 358 362 //Print("kill locals for %s (level %d)\n",IDID(pn),myynest); 359 363 killlocals(myynest); … … 615 619 int old_echo=si_echo; 616 620 617 newBuffer( example, BT_example, pi,618 (pi != NULL ? pi->data.s.example_lineno: 0));619 620 621 iiCheckNest(); 621 622 procstack->push(example); … … 630 631 myynest++; 631 632 iiRETURNEXPR[myynest].Init(); 632 err=yyparse(); 633 if (sLastPrinted.rtyp!=0) 634 { 635 sLastPrinted.CleanUp(); 636 //memset(&sLastPrinted,0,sizeof(sleftv)); //done by CleanUp 637 } 633 634 err=iiAllStart(pi,example,BT_example,(pi != NULL ? pi->data.s.example_lineno: 0)); 635 638 636 killlocals(myynest); 639 637 myynest--; … … 1079 1077 const char* bin_dir = feGetResource('b'); 1080 1078 if (!bin_dir) { return NULL; } 1081 1082 char path_name[MAXPATHLEN]; 1079 1080 char path_name[MAXPATHLEN]; 1083 1081 sprintf(path_name, "%s%s%s.%s", bin_dir, DIR_SEPP, newlib, MODULE_SUFFIX_STRING); 1084 1082 -
Singular/misc_ip.cc
r15bb918 ra71a00 426 426 { 427 427 iiEStart(s,IDPROC(h)); 428 omFree((ADDRESS)s); 428 429 return; 429 430 } … … 458 459 { 459 460 Werror("Error while reading file %s", sing_file); 460 omFree(s);461 461 } 462 462 else … … 468 468 si_echo = old_echo; 469 469 } 470 omFree(s); 470 471 } 471 472 else
Note: See TracChangeset
for help on using the changeset viewer.