Sort all includes in src/gromacs
[alexxy/gromacs.git] / src / gromacs / topology / symtab.cpp
index 763d6f4f4241567bac51d37779eb86b429c475e4..678088f47842a79d9eacfc45b67dfead0d784115 100644 (file)
@@ -34,9 +34,9 @@
  * 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 "symtab.h"
+#include "gmxpre.h"
 
-#include "config.h"
+#include "symtab.h"
 
 #include <stdio.h>
 #include <string.h>
@@ -44,7 +44,6 @@
 #include <algorithm>
 
 #include "gromacs/legacyheaders/txtdump.h"
-
 #include "gromacs/utility/basedefinitions.h"
 #include "gromacs/utility/fatalerror.h"
 #include "gromacs/utility/smalloc.h"
@@ -166,7 +165,7 @@ static char **enter_buf(t_symtab *symtab, char *name)
             if (symbuf->buf[i] == NULL)
             {
                 symtab->nr++;
-                symbuf->buf[i] = strdup(name);
+                symbuf->buf[i] = gmx_strdup(name);
                 return &(symbuf->buf[i]);
             }
             else if (strcmp(symbuf->buf[i], name) == 0)
@@ -190,7 +189,7 @@ static char **enter_buf(t_symtab *symtab, char *name)
     symbuf       = symbuf->next;
 
     symtab->nr++;
-    symbuf->buf[0] = strdup(name);
+    symbuf->buf[0] = gmx_strdup(name);
     return &(symbuf->buf[0]);
 }