* To help us fund GROMACS development, we humbly ask that you cite
* the research papers on the package. Check out http://www.gromacs.org.
*/
-#include "gromacs/topology/atomprop.h"
+#include "gmxpre.h"
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "atomprop.h"
#include <ctype.h>
#include <string.h>
#include "gromacs/fileio/strdb.h"
#include "gromacs/legacyheaders/copyrite.h"
#include "gromacs/math/utilities.h"
-#include "gromacs/topology/index.h"
+#include "gromacs/topology/residuetypes.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/futil.h"
} aprop_t;
typedef struct gmx_atomprop {
- gmx_bool bWarned, bWarnVDW;
- aprop_t prop[epropNR];
- gmx_residuetype_t restype;
+ gmx_bool bWarned, bWarnVDW;
+ aprop_t prop[epropNR];
+ gmx_residuetype_t *restype;
} gmx_atomprop;
return i;
}
-static int get_prop_index(aprop_t *ap, gmx_residuetype_t restype,
+static int get_prop_index(aprop_t *ap, gmx_residuetype_t *restype,
char *resnm, char *atomnm,
gmx_bool *bExact)
{
return j;
}
-static void add_prop(aprop_t *ap, gmx_residuetype_t restype,
+static void add_prop(aprop_t *ap, gmx_residuetype_t *restype,
char *resnm, char *atomnm,
real p, int line)
{
ap->bAvail[i] = FALSE;
}
}
- ap->atomnm[ap->nprop] = strdup(atomnm);
- ap->resnm[ap->nprop] = strdup(resnm);
+ ap->atomnm[ap->nprop] = gmx_strdup(atomnm);
+ ap->resnm[ap->nprop] = gmx_strdup(resnm);
j = ap->nprop;
ap->nprop++;
}
ap = &ap2->prop[eprop];
if (!ap->bSet)
{
- ap->db = strdup(fns[eprop]);
+ ap->db = gmx_strdup(fns[eprop]);
ap->def = def[eprop];
read_prop(aps, eprop, fac[eprop]);