Changeset e8b1f3 in git


Ignore:
Timestamp:
Oct 2, 2017, 4:44:23 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
6b604b12e5560493fc5aac287116a3caf35ec816
Parents:
85d1a44041f41d257fd21fa1115c1bc7cd8fcd5b
Message:
fix: construction of package name and libname in package
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r85d1a44 re8b1f3  
    50475047          pl = enterid( plib,0, PACKAGE_CMD, &(basePack->idroot), TRUE );
    50485048          IDPACKAGE(pl)->language = LANG_SINGULAR;
    5049           IDPACKAGE(pl)->libname=plib;
     5049          IDPACKAGE(pl)->libname=omStrDup(s);
    50505050        }
    50515051        else if (IDTYP(pl)!=PACKAGE_CMD)
     
    50555055          return TRUE;
    50565056        }
    5057         else
    5058           omFree(plib);
     5057        omFree(plib);
    50595058        package savepack=currPack;
    50605059        currPack=IDPACKAGE(pl);
  • Singular/iplib.cc

    r85d1a44 re8b1f3  
    13361336  char *p = strrchr(tmpname, DIR_SEP);
    13371337  char *r;
    1338   if(p==NULL) p = tmpname;
    1339   else p++;
    1340   r = (char *)strchr(p, '.');
    1341   if( r!= NULL) *r = '\0';
     1338  if(p==NULL) p = tmpname; else p++;
     1339  // p is now the start of the file name (without path)
     1340  r=p;
     1341  while(isalnum(*r)) r++;
     1342  // r point the the end of the main part of the filename
     1343  *r = '\0';
    13421344  r = omStrDup(p);
    13431345  *r = mytoupper(*r);
Note: See TracChangeset for help on using the changeset viewer.