Commit e4f044d1 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Make functions only used in single file static.

parent afd00b80
...@@ -73,7 +73,8 @@ int nPrefStreams = 4; ...@@ -73,7 +73,8 @@ int nPrefStreams = 4;
/***************************************************************/ /***************************************************************/
static aFiledataPA *initAFiledataPA ( const char *filename, size_t bs ) static aFiledataPA *
initAFiledataPA(const char *filename, size_t bs)
{ {
aFiledataPA *afd; aFiledataPA *afd;
size_t len; size_t len;
...@@ -110,8 +111,8 @@ static aFiledataPA *initAFiledataPA ( const char *filename, size_t bs ) ...@@ -110,8 +111,8 @@ static aFiledataPA *initAFiledataPA ( const char *filename, size_t bs )
/***************************************************************/ /***************************************************************/
static bFiledataPA *initBFiledataPA ( char *filename, static bFiledataPA *
size_t bs, int nc ) initBFiledataPA(char *filename, size_t bs, int nc)
{ {
bFiledataPA *bfd; bFiledataPA *bfd;
int i; int i;
...@@ -156,7 +157,8 @@ static bFiledataPA *initBFiledataPA ( char *filename, ...@@ -156,7 +157,8 @@ static bFiledataPA *initBFiledataPA ( char *filename,
/***************************************************************/ /***************************************************************/
int destroyAFiledataPA ( void *v ) static int
destroyAFiledataPA(void *v)
{ {
aFiledataPA *afd = (aFiledataPA * ) v; aFiledataPA *afd = (aFiledataPA * ) v;
MPI_Status status; MPI_Status status;
...@@ -178,7 +180,8 @@ int destroyAFiledataPA ( void *v ) ...@@ -178,7 +180,8 @@ int destroyAFiledataPA ( void *v )
/***************************************************************/ /***************************************************************/
int destroyBFiledataPA ( void *v ) static int
destroyBFiledataPA ( void *v )
{ {
bFiledataPA *bfd = (bFiledataPA * ) v; bFiledataPA *bfd = (bFiledataPA * ) v;
const struct aiocb *ccBP[1]; const struct aiocb *ccBP[1];
...@@ -236,7 +239,8 @@ int destroyBFiledataPA ( void *v ) ...@@ -236,7 +239,8 @@ int destroyBFiledataPA ( void *v )
/***************************************************************/ /***************************************************************/
bool compareNamesAPA ( void *v1, void *v2 ) static bool
compareNamesAPA(void *v1, void *v2)
{ {
aFiledataPA *afd1, *afd2; aFiledataPA *afd1, *afd2;
size_t len; size_t len;
...@@ -254,7 +258,8 @@ bool compareNamesAPA ( void *v1, void *v2 ) ...@@ -254,7 +258,8 @@ bool compareNamesAPA ( void *v1, void *v2 )
/***************************************************************/ /***************************************************************/
bool compareNamesBPA ( void *v1, void *v2 ) static bool
compareNamesBPA(void *v1, void *v2)
{ {
bFiledataPA *bfd1, *bfd2; bFiledataPA *bfd1, *bfd2;
size_t len; size_t len;
...@@ -338,7 +343,8 @@ writePA(bFiledataPA *bfd, long amount) ...@@ -338,7 +343,8 @@ writePA(bFiledataPA *bfd, long amount)
/***************************************************************/ /***************************************************************/
// TODO: unify in IOModi, encapsulate in pio_queue.c // TODO: unify in IOModi, encapsulate in pio_queue.c
void queueCheckPA ( queue_t *q, char *name ) static void
queueCheckPA(queue_t *q, char *name)
{ {
listElem_t *curr; listElem_t *curr;
bFiledataPA *bfd; bFiledataPA *bfd;
...@@ -580,7 +586,8 @@ sendPA(aFiledataPA *afd, int id) ...@@ -580,7 +586,8 @@ sendPA(aFiledataPA *afd, int id)
/***************************************************************/ /***************************************************************/
void defTimestepPA ( aFiledataPA * afd, int tsID ) static void
defTimestepPA(aFiledataPA * afd, int tsID)
{ {
if ( afd == NULL || tsID != afd->tsID + 1 ) if ( afd == NULL || tsID != afd->tsID + 1 )
xabort ( " defTimestepPA () didn't succeed." ); xabort ( " defTimestepPA () didn't succeed." );
......
...@@ -55,7 +55,8 @@ static queue_t * bibAFiledataP; ...@@ -55,7 +55,8 @@ static queue_t * bibAFiledataP;
/***************************************************************/ /***************************************************************/
static aFiledataP *initAFiledataP ( const char *filename, size_t bs ) static aFiledataP *
initAFiledataP(const char *filename, size_t bs)
{ {
aFiledataP *afp; aFiledataP *afp;
size_t len; size_t len;
...@@ -92,8 +93,8 @@ static aFiledataP *initAFiledataP ( const char *filename, size_t bs ) ...@@ -92,8 +93,8 @@ static aFiledataP *initAFiledataP ( const char *filename, size_t bs )
/***************************************************************/ /***************************************************************/
static bFiledataP * initBFiledataP ( char *filename, static bFiledataP *
size_t bs, int nc ) initBFiledataP(char *filename, size_t bs, int nc)
{ {
bFiledataP * bfp; bFiledataP * bfp;
int i; int i;
...@@ -124,7 +125,8 @@ static bFiledataP * initBFiledataP ( char *filename, ...@@ -124,7 +125,8 @@ static bFiledataP * initBFiledataP ( char *filename,
/***************************************************************/ /***************************************************************/
int destroyAFiledataP ( void *v ) static int
destroyAFiledataP(void *v)
{ {
aFiledataP *afp = ( aFiledataP * ) v; aFiledataP *afp = ( aFiledataP * ) v;
MPI_Status status; MPI_Status status;
...@@ -146,7 +148,8 @@ int destroyAFiledataP ( void *v ) ...@@ -146,7 +148,8 @@ int destroyAFiledataP ( void *v )
/***************************************************************/ /***************************************************************/
int destroyBFiledataP ( void *v ) static int
destroyBFiledataP(void *v)
{ {
int iret = 0; int iret = 0;
bFiledataP *bfp = ( bFiledataP * ) v; bFiledataP *bfp = ( bFiledataP * ) v;
...@@ -173,7 +176,8 @@ int destroyBFiledataP ( void *v ) ...@@ -173,7 +176,8 @@ int destroyBFiledataP ( void *v )
/***************************************************************/ /***************************************************************/
bool compareNamesAP ( void *v1, void *v2 ) static bool
compareNamesAP(void *v1, void *v2)
{ {
aFiledataP *afd1, *afd2; aFiledataP *afd1, *afd2;
size_t len; size_t len;
...@@ -191,7 +195,8 @@ bool compareNamesAP ( void *v1, void *v2 ) ...@@ -191,7 +195,8 @@ bool compareNamesAP ( void *v1, void *v2 )
/***************************************************************/ /***************************************************************/
bool compareNamesBP ( void *v1, void *v2 ) static bool
compareNamesBP(void *v1, void *v2)
{ {
bFiledataP *bfd1, *bfd2; bFiledataP *bfd1, *bfd2;
size_t len; size_t len;
...@@ -227,7 +232,8 @@ writeP(bFiledataP *bfd, long amount) ...@@ -227,7 +232,8 @@ writeP(bFiledataP *bfd, long amount)
/***************************************************************/ /***************************************************************/
// TODO: unify in IOModi, encapsulate in pio_queue.c // TODO: unify in IOModi, encapsulate in pio_queue.c
void queueCheckP ( queue_t *q, char *name ) static void
queueCheckP(queue_t *q, char *name)
{ {
listElem_t *curr; listElem_t *curr;
bFiledataP *bfd; bFiledataP *bfd;
...@@ -479,7 +485,8 @@ sendP(aFiledataP *afd, int id) ...@@ -479,7 +485,8 @@ sendP(aFiledataP *afd, int id)
/***************************************************************/ /***************************************************************/
void defTimestepP ( aFiledataP *afd, int tsID) static void
defTimestepP(aFiledataP *afd, int tsID)
{ {
if ( afd == NULL || tsID != afd->tsID + 1 ) if ( afd == NULL || tsID != afd->tsID + 1 )
xabort ( " defTimestepP () didn't succeed." ); xabort ( " defTimestepP () didn't succeed." );
......
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