Changeset a71a00 in git for Singular/iplib.cc


Ignore:
Timestamp:
Jul 25, 2011, 8:03:21 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
959af92dd3c85cbbd9bccbb36164c999d4f65f53
Parents:
15bb91833fa965fdd1eab30eb3d6abcb55565969
Message:
iiAllStart for iiPStart and iiEStart

git-svn-id: file:///usr/local/Singular/svn/trunk@14348 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iplib.cc

    r15bb918 ra71a00  
    294294}
    295295
     296BOOLEAN 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}
    296307/*2
    297308* start a proc
     
    323334//      int m=om_Info.UsedBytes;
    324335//      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;
    329339  /* generate argument list ======================================*/
    330340  if (v!=NULL)
     
    348358  else
    349359  {
    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
    358362    //Print("kill locals for %s (level %d)\n",IDID(pn),myynest);
    359363    killlocals(myynest);
     
    615619  int old_echo=si_echo;
    616620
    617   newBuffer( example, BT_example, pi,
    618              (pi != NULL ? pi->data.s.example_lineno: 0));
    619 
    620621  iiCheckNest();
    621622  procstack->push(example);
     
    630631  myynest++;
    631632  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
    638636  killlocals(myynest);
    639637  myynest--;
     
    10791077  const char* bin_dir = feGetResource('b');
    10801078  if (!bin_dir)  { return NULL; }
    1081  
    1082   char path_name[MAXPATHLEN]; 
     1079
     1080  char path_name[MAXPATHLEN];
    10831081  sprintf(path_name, "%s%s%s.%s", bin_dir, DIR_SEPP, newlib, MODULE_SUFFIX_STRING);
    10841082
Note: See TracChangeset for help on using the changeset viewer.