Changeset b28bafe in git for libpolys/resources


Ignore:
Timestamp:
Jul 26, 2011, 3:56:40 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
441a2ebc3368fca13446fd60801db4c09580a110
Parents:
92058150caf53dc60a028c63bafb64f39bfa73a8
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-07-26 15:56:40+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:53:34+01:00
Message:
FIX: feInitResources should now take an [_const_ char*] argv0
Location:
libpolys/resources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/resources/feResource.cc

    r920581 rb28bafe  
    130130 *****************************************************************/
    131131char* feArgv0=NULL;
     132
    132133#define MAXRESOURCELEN 5*MAXPATHLEN
    133134
     
    179180}
    180181
    181 void feInitResources(char* argv0)
     182void feInitResources(const char* argv0)
    182183{
    183184#if defined(ix86_Win) && defined(__GNUC__)
     
    188189  {
    189190    feArgv0 = (char*)omAlloc0(MAXPATHLEN+strlen("/Singular"));
    190     getcwd(feArgv0,MAXPATHLEN);
     191    getcwd(feArgv0, MAXPATHLEN);
    191192    strcpy(feArgv0+strlen(feArgv0),"/Singular");
    192193  }
  • libpolys/resources/feResource.h

    r920581 rb28bafe  
    3838// This needs to be called before the first call to feResource
    3939// Initializes Resources, SearchPath, and extends PATH
    40 void feInitResources(char* argv0 = NULL);
     40void feInitResources(const char* argv0 = NULL);
    4141// Re-inits resources, should be called after changing env. variables
    4242void feReInitResources();
Note: See TracChangeset for help on using the changeset viewer.