Changeset d5efda0 in git


Ignore:
Timestamp:
May 12, 2020, 1:25:08 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
d164a64639760b1b76e1c4211cff9efd79516cb3
Parents:
9455f494a454ede53ef2b4d5bcd15d96ed7b0b2a
Message:
opt: iiLibCmd
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/iplib.cc

    r9455f49 rd5efda0  
    663663  if (h==NULL)
    664664  {
    665     BOOLEAN bo=iiLibCmd(omStrDup(lib),TRUE,TRUE,FALSE);
     665    BOOLEAN bo=iiLibCmd(lib,TRUE,TRUE,FALSE);
    666666    if (bo) return NULL;
    667667  }
     
    682682  if (h==NULL)
    683683  {
    684     BOOLEAN bo=iiLibCmd(omStrDup(lib),TRUE,TRUE,FALSE);
     684    BOOLEAN bo=iiLibCmd(lib,TRUE,TRUE,FALSE);
    685685    if (bo) return 0;
    686686  }
     
    831831    if((LT = type_of_LIB(libname, libnamebuf)) > LT_NOTFOUND)
    832832    {
    833       char *s=omStrDup(libname);
    834833      #ifdef HAVE_DYNAMIC_LOADING
    835834      char libnamebuf[1024];
     
    837836
    838837      if (LT==LT_SINGULAR)
    839         LoadResult = iiLibCmd(s, FALSE, FALSE,TRUE);
     838        LoadResult = iiLibCmd(libname, FALSE, FALSE,TRUE);
    840839      #ifdef HAVE_DYNAMIC_LOADING
    841840      else if ((LT==LT_ELF) || (LT==LT_HPUX))
    842         LoadResult = load_modules(s,libnamebuf,FALSE);
     841        LoadResult = load_modules(libname,libnamebuf,FALSE);
    843842      #endif
    844843      else if (LT==LT_BUILTIN)
    845844      {
    846         LoadResult=load_builtin(s,FALSE, iiGetBuiltinModInit(s));
     845        LoadResult=load_builtin(libname,FALSE, iiGetBuiltinModInit(libname));
    847846      }
    848847      if(!LoadResult )
     
    914913  }
    915914  LoadResult = iiLoadLIB(fp, libnamebuf, newlib, pl, autoexport, tellerror);
    916   omFree((ADDRESS)newlib);
    917915
    918916  if(!LoadResult) IDPACKAGE(pl)->loaded = TRUE;
     
    12811279}
    12821280
    1283 BOOLEAN load_modules(const char *newlib, char *fullname, BOOLEAN autoexport) {
     1281BOOLEAN load_modules(const char *newlib, char *fullname, BOOLEAN autoexport)
     1282{
    12841283  GLOBAL_VAR static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
    12851284  pthread_mutex_lock(&mutex);
  • Singular/misc_ip.cc

    r9455f49 rd5efda0  
    14601460    SI_SAVE_OPT(save1,save2);
    14611461    si_opt_2 &= ~Sy_bit(V_LOAD_LIB);
    1462     iiLibCmd(omStrDup("standard.lib"), TRUE,TRUE,TRUE);
     1462    iiLibCmd("standard.lib", TRUE,TRUE,TRUE);
    14631463    SI_RESTORE_OPT(save1,save2);
    14641464  }
Note: See TracChangeset for help on using the changeset viewer.