C++ comments are not allowed.
This commit was SVN r11338.
Этот коммит содержится в:
родитель
63fe3bb2d9
Коммит
663175df1a
@ -582,7 +582,6 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
free(exec_argv[0]);
|
free(exec_argv[0]);
|
||||||
exec_argv[0] = tmp;
|
exec_argv[0] = tmp;
|
||||||
//free(tmp);
|
|
||||||
ret = opal_few(exec_argv, &status);
|
ret = opal_few(exec_argv, &status);
|
||||||
exit_status = WIFEXITED(status) ? WEXITSTATUS(status) :
|
exit_status = WIFEXITED(status) ? WEXITSTATUS(status) :
|
||||||
(WIFSIGNALED(status) ? WTERMSIG(status) :
|
(WIFSIGNALED(status) ? WTERMSIG(status) :
|
||||||
|
@ -20,6 +20,9 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#if HAVE_DIRNAME
|
||||||
|
#include <libgen.h>
|
||||||
|
#endif /* HAVE_DIRNAME */
|
||||||
|
|
||||||
#include "opal/util/basename.h"
|
#include "opal/util/basename.h"
|
||||||
#include "opal/util/os_path.h"
|
#include "opal/util/os_path.h"
|
||||||
@ -42,7 +45,7 @@ static inline char* opal_find_last_path_separator( const char* filename, size_t
|
|||||||
if( (*p != '\\') && (*p != '/') )
|
if( (*p != '\\') && (*p != '/') )
|
||||||
break;
|
break;
|
||||||
#else
|
#else
|
||||||
if( *p != OPAL_PATH_SEP )
|
if( *p != OPAL_PATH_SEP[0] )
|
||||||
break;
|
break;
|
||||||
#endif /* defined(__WINDOWS__) */
|
#endif /* defined(__WINDOWS__) */
|
||||||
}
|
}
|
||||||
@ -52,7 +55,7 @@ static inline char* opal_find_last_path_separator( const char* filename, size_t
|
|||||||
if( (*p == '\\') || (*p == '/') )
|
if( (*p == '\\') || (*p == '/') )
|
||||||
return p;
|
return p;
|
||||||
#else
|
#else
|
||||||
if( *p == OPAL_PATH_SEP )
|
if( *p == OPAL_PATH_SEP[0] )
|
||||||
return p;
|
return p;
|
||||||
#endif /* defined(__WINDOWS__) */
|
#endif /* defined(__WINDOWS__) */
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user