Changeset b45eec in git for Singular/iplib.cc


Ignore:
Timestamp:
Apr 19, 2020, 9:57:14 PM (4 years ago)
Author:
Karim Abou Zeid <karim23697@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ffcf715a570941627bf020648e93955f1596f2ef
Parents:
d49a473d44aa25c5ecc3126360ab3179ddb8af7e636fa5455e699fa8c0a820dd60e00a059f96f8ef
Message:
Merge branch 'stable' into lp_Z
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iplib.cc

    rd49a47 rb45eec  
    294294BOOLEAN iiAllStart(procinfov pi, const char *p, feBufferTypes t, int l)
    295295{
     296  int save_trace=traceit;
     297  int restore_traceit=0;
     298  if (traceit_stop
     299  && (traceit & TRACE_SHOW_LINE))
     300  {
     301    traceit &=(~TRACE_SHOW_LINE);
     302    traceit_stop=0;
     303    restore_traceit=1;
     304  }
    296305  // see below:
    297306  BITSET save1=si_opt_1;
     
    300309               pi, l );
    301310  BOOLEAN err=yyparse();
     311
    302312  if (sLastPrinted.rtyp!=0)
    303313  {
    304314    sLastPrinted.CleanUp();
    305315  }
     316
     317  if (restore_traceit) traceit=save_trace;
     318
    306319  // the access to optionStruct and verboseStruct do not work
    307320  // on x86_64-Linux for pic-code
     
    391404    iiCurrArgs=NULL;
    392405  }
    393   iiCurrProc=pn;
    394406  /* start interpreter ======================================*/
    395407  myynest++;
     
    401413  else
    402414  {
     415    iiCurrProc=pn;
    403416    err=iiAllStart(pi,pi->data.s.body,BT_proc,pi->data.s.body_lineno-(v!=NULL));
     417    iiCurrProc=NULL;
    404418
    405419    if (iiLocalRing[myynest-1] != currRing)
     
    891905    if(IDTYP(pl)!=PACKAGE_CMD)
    892906    {
     907      omFree(plib);
    893908      WarnS("not of type package.");
    894909      fclose(fp);
    895910      return TRUE;
    896911    }
    897     if (!force) return FALSE;
     912    if (!force)
     913    {
     914      omFree(plib);
     915      return FALSE;
     916    }
    898917  }
    899918  LoadResult = iiLoadLIB(fp, libnamebuf, newlib, pl, autoexport, tellerror);
     
    902921  if(!LoadResult) IDPACKAGE(pl)->loaded = TRUE;
    903922  omFree((ADDRESS)plib);
    904 
    905  return LoadResult;
     923  return LoadResult;
    906924}
    907925/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
     
    13061324    IDPACKAGE(pl)->libname=omStrDup(newlib);
    13071325  }
     1326  omFree(plib);
    13081327  IDPACKAGE(pl)->language = LANG_C;
    13091328
Note: See TracChangeset for help on using the changeset viewer.