Merge branch release-2018 into release-2019
[alexxy/gromacs.git] / src / gromacs / gmxana / hxprops.h
index 25f2e492691c847e69e17de42c117a09abdbdf26..8ceb5d06e4bade9fa118dc37c5507f1d90460c44 100644 (file)
 struct t_atom;
 struct t_resinfo;
 
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
 #define PHI_AHX (-55.0)
 #define PSI_AHX (-45.0)
 /* Canonical values of the helix phi/psi angles */
@@ -110,15 +105,15 @@ enum {
     efhAHX,  efhNR
 };
 
-extern real ahx_len(int gnx, int index[], rvec x[]);
+extern real ahx_len(int gnx, const int index[], rvec x[]);
 /* Assume we have a list of Calpha atoms only! */
 
 extern real ellipticity(int nres, t_bb bb[]);
 
-extern real radius(FILE *fp, int nca, int ca_index[], rvec x[]);
+extern real radius(FILE *fp, int nca, const int ca_index[], rvec x[]);
 /* Assume we have calphas */
 
-extern real twist(int nca, int caindex[], rvec x[]);
+extern real twist(int nca, const int caindex[], rvec x[]);
 /* Calculate the twist of the helix */
 
 extern real pprms(FILE *fp, int nbb, t_bb bb[]);
@@ -126,12 +121,12 @@ extern real pprms(FILE *fp, int nbb, t_bb bb[]);
  * and the distance per residue
  */
 
-extern real ca_phi(int gnx, int index[], rvec x[]);
+extern real ca_phi(int gnx, const int index[], rvec x[]);
 /* Assume we have a list of Calpha atoms only! */
 
 extern real dip(int nbb, const int bbind[], const rvec x[], const t_atom atom[]);
 
-extern real rise(int gnx, int index[], rvec x[]);
+extern real rise(int gnx, const int index[], rvec x[]);
 /* Assume we have a list of Calpha atoms only! */
 
 extern void av_hblen(FILE *fp3, FILE *fp3a,
@@ -166,8 +161,4 @@ extern void calc_hxprops(int nres, t_bb bb[], const rvec x[]);
 
 extern void pr_bb(FILE *fp, int nres, t_bb bb[]);
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif