Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
biocomp
randfold
Commits
a7feeeae
Commit
a7feeeae
authored
Jan 22, 2016
by
Thomas Van Parys
Browse files
declare inline functions as static
parent
e3b998df
Changes
1
Hide whitespace changes
Inline
Side-by-side
fold.c
View file @
a7feeeae
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment