Converted gmxpreprocess to compile as C++
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / h_db.h
index 7520f7f7434815c73601a4c810b36af210376953..c8e2df6f044bdfe21e3e2a31225b150c80dd072c 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2011, by the GROMACS development team, led by
+ * Copyright (c) 2011,2014,2015, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
  * the research papers on the package. Check out http://www.gromacs.org.
  */
 
-#ifndef _h_db_h
-#define _h_db_h
+#ifndef GMX_GMXPREPROCESS_H_DB_H
+#define GMX_GMXPREPROCESS_H_DB_H
 
-#include "sysstuff.h"
-#include "hackblock.h"
+#include <stdio.h>
 
-/* number of control atoms for each 'add' type */
-extern const int ncontrol[];
+#include "gromacs/gmxpreprocess/hackblock.h"
 
 /* functions for the h-database */
 
-extern void read_ab(char *line, const char *fn, t_hack *ab);
+void read_ab(char *line, const char *fn, t_hack *ab);
 /* Read one add block */
 
-extern int read_h_db(const char *ffdir, t_hackblock **ah);
+int read_h_db(const char *ffdir, t_hackblock **ah);
 /* Read the database from hdb file(s) in ffdir or current dir */
 
-extern void print_ab(FILE *out, t_hack *ab, char *nname);
+void print_ab(FILE *out, t_hack *ab, char *nname);
 /* print one add block */
 
-extern void print_h_db(FILE *out, int nh, t_hackblock ah[]);
+void print_h_db(FILE *out, int nh, t_hackblock ah[]);
 /* Print the database to file */
 
-extern int compaddh(const void *a, const void *b);
+int compaddh(const void *a, const void *b);
 
-extern t_hackblock *search_h_db(int nh, t_hackblock ah[], char *key);
+t_hackblock *search_h_db(int nh, t_hackblock ah[], char *key);
 /* Search for an entry in the database */
 
-
-
-#endif  /* _h_db_h */
+#endif