mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 00:45:36 +00:00
MAX_PATH_LENGTH is now a global macro
This commit is contained in:
parent
4659cdb607
commit
05ec53c1bb
@ -34,6 +34,9 @@
|
||||
#define __dumb
|
||||
#endif
|
||||
|
||||
// max length for paths
|
||||
#define MAX_PATH_LENGTH 512
|
||||
|
||||
BEGIN_NAMESPACE
|
||||
|
||||
// Environment
|
||||
|
@ -91,13 +91,11 @@ Plot & Plot::operator<<(const PlotCommand &command)
|
||||
}
|
||||
|
||||
// find gnuplot ////////////////////////////////////////////////////////////////
|
||||
#define PATH_MAX_SIZE 4096
|
||||
|
||||
void Plot::getProgramPath(void)
|
||||
{
|
||||
int i, j, lg;
|
||||
char *path;
|
||||
static char buf[PATH_MAX_SIZE];
|
||||
static char buf[MAX_PATH_LENGTH];
|
||||
|
||||
/* Trivial case: try in CWD */
|
||||
sprintf(buf,"./%s", gnuplotBin_.c_str()) ;
|
||||
|
Loading…
Reference in New Issue
Block a user