}
static void
-p_status(const char **restype, int nres, const char **typenames, int ntypes)
+p_status(const char *const *restype, int nres,
+ const char *const *typenames, int ntypes)
{
int i, j;
int * counter;
restp_t *restp = NULL;
char **attp = NULL;
char *rname, *aname;
- atom_id *other_ndx, *aid, *aaid;
+ atom_id *aid, *aaid;
int i, j, k, l, resind, naid, naaid, natp, nrestp = 0;
for (i = 0; (i < atoms->nres); i++)
{
printf("Analysing residues not classified as Protein/DNA/RNA/Water and splitting into groups...\n");
}
- snew(other_ndx, atoms->nr);
for (k = 0; (k < atoms->nr); k++)
{
resind = atoms->atom[k].resind;
restp[nrestp].bNeg = FALSE;
restp[nrestp].gname = gmx_strdup(rname);
nrestp++;
-
}
}
}
}
}
sfree(aid);
+ sfree(restp[i].rname);
+ sfree(restp[i].gname);
}
- sfree(other_ndx);
+ sfree(restp);
}
}
int nra;
int i, k;
int ntypes;
- const char ** p_typename;
+ char ** p_typename;
int iwater, iion;
int nwater, nion;
int found;
sfree(aid);
analyse_other(restype, atoms, gb, gn, bASK, bVerb);
}
+ sfree(p_typename[k]);
}
sfree(p_typename);