#define MAXNAMES 30
#define NAME_LEN 30
-bool bCase=FALSE;
+gmx_bool bCase=FALSE;
static int or_groups(atom_id nr1,atom_id *at1,atom_id nr2,atom_id *at2,
atom_id *nr,atom_id *at)
{
atom_id i1,i2,max=0;
- bool bNotIncr;
+ gmx_bool bNotIncr;
*nr=0;
return *nr;
}
-static bool is_name_char(char c)
+static gmx_bool is_name_char(char c)
{
/* This string should contain all characters that can not be
* the first letter of a name due to the make_ndx syntax.
return *n_names;
}
-static bool parse_int_char(char **string,int *nr,char *c)
+static gmx_bool parse_int_char(char **string,int *nr,char *c)
{
char *orig;
- bool bRet;
+ gmx_bool bRet;
orig = *string;
return bRet;
}
-static bool parse_int(char **string,int *nr)
+static gmx_bool parse_int(char **string,int *nr)
{
char *orig,c;
- bool bRet;
+ gmx_bool bRet;
orig = *string;
bRet = parse_int_char(string,nr,&c);
return bRet;
}
-static bool isquote(char c)
+static gmx_bool isquote(char c)
{
return (c == '\"');
}
-static bool parse_string(char **string,int *nr, int ngrps, char **grpname)
+static gmx_bool parse_string(char **string,int *nr, int ngrps, char **grpname)
{
char *s, *sp;
char c;
}
-static bool atoms_from_residuenumbers(t_atoms *atoms,int group,t_blocka *block,
+static gmx_bool atoms_from_residuenumbers(t_atoms *atoms,int group,t_blocka *block,
atom_id *nr,atom_id *index,char *gname)
{
int i,j,j0,j1,resnr,nres;
return *nr;
}
-static bool comp_name(char *name,char *search)
+static gmx_bool comp_name(char *name,char *search)
{
while (name[0] != '\0' && search[0] != '\0') {
switch (search[0]) {
}
static int select_atomnames(t_atoms *atoms,int n_names,char **names,
- atom_id *nr,atom_id *index,bool bType)
+ atom_id *nr,atom_id *index,gmx_bool bType)
{
char *name;
int j;
}
static void split_group(t_atoms *atoms,int sel_nr,t_blocka *block,char ***gn,
- bool bAtom)
+ gmx_bool bAtom)
{
char buf[STRLEN],*name;
int i,resind;
return nchain;
}
-static bool check_have_atoms(t_atoms *atoms, char *string)
+static gmx_bool check_have_atoms(t_atoms *atoms, char *string)
{
if ( atoms==NULL ) {
printf("Can not process '%s' without atoms info\n", string);
return TRUE;
}
-static bool parse_entry(char **string,int natoms,t_atoms *atoms,
+static gmx_bool parse_entry(char **string,int natoms,t_atoms *atoms,
t_blocka *block,char ***gn,
atom_id *nr,atom_id *index,char *gname)
{
static char **names, *ostring;
- static bool bFirst=TRUE;
+ static gmx_bool bFirst=TRUE;
int j,n_names,sel_nr1;
atom_id i,nr1,*index1;
char c;
- bool bRet,bCompl;
+ gmx_bool bRet,bCompl;
if (bFirst) {
bFirst=FALSE;
static void list_residues(t_atoms *atoms)
{
int i,j,start,end,prev_resind,resind;
- bool bDiff;
+ gmx_bool bDiff;
/* Print all the residues, assuming continuous resnr count */
start = atoms->atom[0].resind;
printf("\n");
}
-static void edit_index(int natoms, t_atoms *atoms,rvec *x,t_blocka *block, char ***gn, bool bVerbose)
+static void edit_index(int natoms, t_atoms *atoms,rvec *x,t_blocka *block, char ***gn, gmx_bool bVerbose)
{
static char **atnames, *ostring;
- static bool bFirst=TRUE;
+ static gmx_bool bFirst=TRUE;
char inp_string[STRLEN],*string;
char gname[STRLEN],gname1[STRLEN],gname2[STRLEN];
int i,i0,i1,sel_nr,sel_nr2,newgroup;
atom_id nr,nr1,nr2,*index,*index1,*index2;
- bool bAnd,bOr,bPrintOnce;
+ gmx_bool bAnd,bOr,bPrintOnce;
if (bFirst) {
bFirst=FALSE;
};
static int natoms=0;
- static bool bVerbose=FALSE;
+ static gmx_bool bVerbose=FALSE;
t_pargs pa[] = {
{ "-natoms", FALSE, etINT, {&natoms},
"set number of atoms (default: read from coordinate or index file)" },
const char *stxfile;
char **ndxinfiles;
const char *ndxoutfile;
- bool bNatoms;
+ gmx_bool bNatoms;
int i,j;
t_atoms *atoms;
rvec *x,*v;