} t_pstack;
static t_pstack *pstack=NULL;
-static bool bUnbuffered=FALSE;
+static gmx_bool bUnbuffered=FALSE;
#ifdef GMX_THREADS
/* this linked list is an intrinsically globally shared object, so we have
}
-bool is_pipe(FILE *fp)
+gmx_bool is_pipe(FILE *fp)
{
t_pstack *ps;
#ifdef GMX_THREADS
return fp;
}
-bool gmx_fexist(const char *fname)
+gmx_bool gmx_fexist(const char *fname)
{
FILE *test;
}
-bool gmx_fexist_master(const char *fname, t_commrec *cr)
+gmx_bool gmx_fexist_master(const char *fname, t_commrec *cr)
{
- bool bExist;
+ gmx_bool bExist;
if (SIMMASTER(cr))
{
return bExist;
}
-bool gmx_eof(FILE *fp)
+gmx_bool gmx_eof(FILE *fp)
{
char data[4];
- bool beof;
+ gmx_bool beof;
if (is_pipe(fp))
return feof(fp);
return buf;
}
-bool make_backup(const char * name)
+gmx_bool make_backup(const char * name)
{
char * env;
int count_max;
#else
FILE *ff=NULL;
char buf[256],*bf,*bufsize=0,*ptr;
- bool bRead;
+ gmx_bool bRead;
int bs;
if (mode[0]=='w') {
-bool search_subdirs(const char *parent, char *libdir)
+gmx_bool search_subdirs(const char *parent, char *libdir)
{
char *ptr;
- bool found;
+ gmx_bool found;
/* Search a few common subdirectory names for the gromacs library dir */
sprintf(libdir,"%s%cshare%ctop%cgurgle.dat",parent,
* with "\" or "X:\" on windows. If not, the program name
* is relative to the current directory.
*/
-static bool filename_is_absolute(char *name)
+static gmx_bool filename_is_absolute(char *name)
{
#if ((defined WIN32 || defined _WIN32 || defined WIN64 || defined _WIN64) && !defined __CYGWIN__ && !defined __CYGWIN32__)
return ((name[0] == DIR_SEPARATOR) || ((strlen(name)>3) && strncmp(name+1,":\\",2)) == 0);
#endif
}
-bool get_libdir(char *libdir)
+gmx_bool get_libdir(char *libdir)
{
#define GMX_BINNAME_MAX 512
char bin_name[GMX_BINNAME_MAX];
char full_path[GMX_PATH_MAX+GMX_BINNAME_MAX];
char system_path[GMX_PATH_MAX];
char *dir,*ptr,*s,*pdum;
- bool found=FALSE;
+ gmx_bool found=FALSE;
int i;
if (Program() != NULL)
}
-char *low_gmxlibfn(const char *file, bool bAddCWD, bool bFatal)
+char *low_gmxlibfn(const char *file, gmx_bool bAddCWD, gmx_bool bFatal)
{
char *ret;
char *lib,*dir;
char buf[1024];
char libpath[GMX_PATH_MAX];
- bool env_is_set=FALSE;
+ gmx_bool env_is_set=FALSE;
char *s,tmppath[GMX_PATH_MAX];
/* GMXLIB can be a path now */
-FILE *low_libopen(const char *file,bool bFatal)
+FILE *low_libopen(const char *file,gmx_bool bFatal)
{
FILE *ff;
char *fn;
#endif
}
-int gmx_file_copy(const char *oldname, const char *newname, bool copy_if_empty)
+int gmx_file_copy(const char *oldname, const char *newname, gmx_bool copy_if_empty)
{
/* the full copy buffer size: */
#define FILECOPY_BUFSIZE (1<<16)