fnm->nfiles++;
}
-static void set_grpfnm(t_filenm *fnm, const char *name, bool bCanNotOverride)
+static void set_grpfnm(t_filenm *fnm, const char *name, gmx_bool bCanNotOverride)
{
char buf[256], buf2[256];
int i, type;
- bool bValidExt;
+ gmx_bool bValidExt;
int nopts;
const int *ftps;
add_filenm(fnm, buf);
}
-static void set_filenm(t_filenm *fnm, const char *name, bool bCanNotOverride,
- bool bReadNode)
+static void set_filenm(t_filenm *fnm, const char *name, gmx_bool bCanNotOverride,
+ gmx_bool bReadNode)
{
/* Set the default filename, extension and option for those fields that
* are not already set. An extension is added if not present, if fn = NULL
}
}
-static void set_filenms(int nf, t_filenm fnm[], bool bReadNode)
+static void set_filenms(int nf, t_filenm fnm[], gmx_bool bReadNode)
{
int i;
}
void parse_file_args(int *argc, char *argv[], int nf, t_filenm fnm[],
- bool bKeep, bool bReadNode)
+ gmx_bool bKeep, gmx_bool bReadNode)
{
int i, j;
- bool *bRemove;
+ gmx_bool *bRemove;
check_opts(nf, fnm);
return 0;
}
-bool ftp2bSet(int ftp, int nfile, const t_filenm fnm[])
+gmx_bool ftp2bSet(int ftp, int nfile, const t_filenm fnm[])
{
int i;
for (i = 0; (i < nfile); i++)
if (ftp == fnm[i].ftp)
- return (bool) IS_SET(fnm[i]);
+ return (gmx_bool) IS_SET(fnm[i]);
fprintf(stderr, "ftp2bSet: No filetype %s\n", deffile[ftp].ext);
return FALSE;
}
-bool opt2bSet(const char *opt, int nfile, const t_filenm fnm[])
+gmx_bool opt2bSet(const char *opt, int nfile, const t_filenm fnm[])
{
int i;
for (i = 0; (i < nfile); i++)
if (strcmp(opt, fnm[i].opt) == 0)
- return (bool) IS_SET(fnm[i]);
+ return (gmx_bool) IS_SET(fnm[i]);
fprintf(stderr, "No option %s\n", opt);
}
#endif
-bool is_optional(const t_filenm *fnm)
+gmx_bool is_optional(const t_filenm *fnm)
{
return ((fnm->flag & ffOPT) == ffOPT);
}
-bool is_output(const t_filenm *fnm)
+gmx_bool is_output(const t_filenm *fnm)
{
return ((fnm->flag & ffWRITE) == ffWRITE);
}
-bool is_set(const t_filenm *fnm)
+gmx_bool is_set(const t_filenm *fnm)
{
return ((fnm->flag & ffSET) == ffSET);
}