* To help us fund GROMACS development, we humbly ask that you cite
* the research papers on the package. Check out http://www.gromacs.org.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "gmxpre.h"
#include <sys/types.h>
#include <stdio.h>
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/utility/futil.h"
-#include "macros.h"
+#include "gromacs/legacyheaders/macros.h"
#include "gromacs/utility/fatalerror.h"
#include "gmxcpp.h"
{
nincl++;
srenew(incl, nincl);
- incl[nincl-1] = strdup(include);
+ incl[nincl-1] = gmx_strdup(include);
}
}
ndef++;
srenew(defs, ndef);
i = ndef - 1;
- defs[i].name = strdup(name);
+ defs[i].name = gmx_strdup(name);
}
else if (defs[i].def)
{
}
if (value && strlen(value) > 0)
{
- defs[i].def = strdup(value);
+ defs[i].def = gmx_strdup(value);
}
else
{
/* Find the file. First check whether it is in the current directory. */
if (gmx_fexist(filenm))
{
- cpp->fn = strdup(filenm);
+ cpp->fn = gmx_strdup(filenm);
}
else
{
{
cpp->path = cpp->fn;
*ptr = '\0';
- cpp->fn = strdup(ptr+1);
+ cpp->fn = gmx_strdup(ptr+1);
snew(cpp->cwd, STRLEN);
gmx_getcwd(cpp->cwd, STRLEN);
(handle) ? handle->line_nr : -1,
handle->line ? handle->line : "");
- return strdup(buf);
+ return gmx_strdup(buf);
}