* 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 "config.h"
+#include "gmxpre.h"
+
+#include "resall.h"
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
-#include "macros.h"
-#include "resall.h"
-#include "pgutil.h"
-#include "fflibutil.h"
-
#include "gromacs/fileio/strdb.h"
+#include "gromacs/gmxpreprocess/fflibutil.h"
+#include "gromacs/gmxpreprocess/pgutil.h"
+#include "gromacs/legacyheaders/macros.h"
#include "gromacs/topology/symtab.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/fatalerror.h"
{
if (sscanf(line+n, "%s%n", str, &ni) == 1)
{
- rtp->rb[bt].b[rtp->rb[bt].nb].a[j] = strdup(str);
+ rtp->rb[bt].b[rtp->rb[bt].nb].a[j] = gmx_strdup(str);
}
else
{
n++;
}
rtrim(line+n);
- rtp->rb[bt].b[rtp->rb[bt].nb].s = strdup(line+n);
+ rtp->rb[bt].b[rtp->rb[bt].nb].s = gmx_strdup(line+n);
rtp->rb[bt].nb++;
}
/* give back unused memory */
{
gmx_fatal(FARGS, "in .rtp file at line:\n%s\n", line);
}
- rrtp[nrtp].resname = strdup(header);
- rrtp[nrtp].filebase = strdup(filebase);
+ rrtp[nrtp].resname = gmx_strdup(header);
+ rrtp[nrtp].filebase = gmx_strdup(filebase);
get_a_line(in, line, STRLEN);
bError = FALSE;