Commit c3170054 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

format for pipe.cc

parent a60ebf7c
......@@ -518,7 +518,8 @@ pipeCopyRecord(pstream_t *pstreamptr_out, pstream_t *pstreamptr_in)
* @param data destination for the record data
* @param pipe pipe that has the wanted data
*/
void pipeReadPipeRecord(pipe_t *pipe, double *data, char *pname, int vlistID, int *nmiss)
void
pipeReadPipeRecord(pipe_t *pipe, double *data, char *pname, int vlistID, int *nmiss)
{
int datasize;
......@@ -533,7 +534,8 @@ void pipeReadPipeRecord(pipe_t *pipe, double *data, char *pname, int vlistID, in
*nmiss = pipe->nmiss;
}
void pipeGetReadTarget(pstream_t *pstreamptr, pstream_t *pstreamptr_in)
void
pipeGetReadTarget(pstream_t *pstreamptr, pstream_t *pstreamptr_in)
{
pstreamptr_in = pstreamptr->pipe->pstreamptr_in;
......@@ -551,9 +553,9 @@ void pipeGetReadTarget(pstream_t *pstreamptr, pstream_t *pstreamptr_in)
/***
* Reads data from a file
*/
void pipeReadFileRecord()
void
pipeReadFileRecord()
{
}
void
pipeReadRecord(pstream_t *pstreamptr, double *data, int *nmiss)
......@@ -575,7 +577,7 @@ pipeReadRecord(pstream_t *pstreamptr, double *data, int *nmiss)
}
if (pipe->hasdata == 2)
//===============================
//===============================
{
pstream_t *pstreamptr_in;
pipeGetReadTarget(pstreamptr, pstreamptr_in);
......@@ -589,7 +591,7 @@ pipeReadRecord(pstream_t *pstreamptr, double *data, int *nmiss)
{
Error("No data pointer for %s", pname);
}
pipeReadPipeRecord(pstreamptr->pipe,data,pname, pstreamptr->vlistID, nmiss);
pipeReadPipeRecord(pstreamptr->pipe, data, pname, pstreamptr->vlistID, nmiss);
}
else
Error("Internal problem! istream undefined");
......@@ -601,15 +603,15 @@ pipeReadRecord(pstream_t *pstreamptr, double *data, int *nmiss)
streamReadRecord(pstreamptr_in->fileID, data, nmiss);
}
}
//===============================
//===============================
else if (pipe->hasdata == 1)
//===============================
//===============================
{
pipeReadPipeRecord(pipe,data,pname, pstreamptr->vlistID, nmiss);
pipeReadPipeRecord(pipe, data, pname, pstreamptr->vlistID, nmiss);
}
//===============================
//===============================
else
//===============================
//===============================
{
Error("data type %d not implemented", pipe->hasdata);
}
......
Markdown is supported
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