Commit a7feeeae authored by Thomas Van Parys's avatar Thomas Van Parys
Browse files

declare inline functions as static

parent e3b998df
......@@ -57,9 +57,9 @@ PRIVATE void backtrack(const char *sequence);
PRIVATE int fill_arrays(const char *sequence);
/*@unused@*/
inline PRIVATE int oldLoopEnergy(int i, int j, int p, int q, int type, int type_2);
inline int LoopEnergy(int n1, int n2, int type, int type_2,
static inline int LoopEnergy(int n1, int n2, int type, int type_2,
int si1, int sj1, int sp1, int sq1);
inline int HairpinE(int size, int type, int si1, int sj1, const char *string);
static inline int HairpinE(int size, int type, int si1, int sj1, const char *string);
#define MAXSECTORS 500 /* dimension for a backtrack array */
#define LOCALITY 0. /* locality parameter for base-pairs */
......@@ -773,7 +773,7 @@ PRIVATE void backtrack(const char *string) {
/*---------------------------------------------------------------------------*/
inline int HairpinE(int size, int type, int si1, int sj1, const char *string) {
static inline int HairpinE(int size, int type, int si1, int sj1, const char *string) {
int energy;
energy = (size <= 30) ? P->hairpin[size] :
P->hairpin[30]+(int)(P->lxc*log((size)/30.));
......@@ -843,7 +843,7 @@ inline PRIVATE int oldLoopEnergy(int i, int j, int p, int q, int type, int type_
/*--------------------------------------------------------------------------*/
inline int LoopEnergy(int n1, int n2, int type, int type_2,
static inline int LoopEnergy(int n1, int n2, int type, int type_2,
int si1, int sj1, int sp1, int sq1) {
/* compute energy of degree 2 loop (stack bulge or interior) */
int nl, ns, energy;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment