Skip to content

Commit

Permalink
Fixed warnings: prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin PELLEMOINE committed May 22, 2024
1 parent f4711cb commit faa4abe
Showing 1 changed file with 16 additions and 47 deletions.
63 changes: 16 additions & 47 deletions src/cpp/meschach/mesch12a/src/matrixio.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ static char line[MAXLINE];
**************************************************************************/
/* skipjunk -- skips white spaces and strings of the form #....\n
Here .... is a comment string */
int skipjunk(fp)
FILE *fp;
int skipjunk(FILE *fp)
{
int c;

Expand All @@ -69,9 +68,7 @@ FILE *fp;
return 0;
}

MAT *m_finput(fp,a)
FILE *fp;
MAT *a;
MAT *m_finput(FILE *fp, MAT *a)
{
MAT *im_finput(),*bm_finput();

Expand All @@ -82,9 +79,7 @@ MAT *a;
}

/* im_finput -- interactive input of matrix */
MAT *im_finput(fp,mat)
FILE *fp;
MAT *mat;
MAT *im_finput(FILE *fp, MAT *mat)
{
char c;
u_int i, j, m, n, dynamic;
Expand Down Expand Up @@ -144,9 +139,7 @@ MAT *mat;
}

/* bm_finput -- batch-file input of matrix */
MAT *bm_finput(fp,mat)
FILE *fp;
MAT *mat;
MAT *bm_finput(FILE *fp, MAT *mat)
{
u_int i,j,m,n,dummy;
int io_code;
Expand Down Expand Up @@ -179,9 +172,7 @@ MAT *mat;
return (mat);
}

PERM *px_finput(fp,px)
FILE *fp;
PERM *px;
PERM *px_finput(FILE *fp, PERM *px)
{
PERM *ipx_finput(),*bpx_finput();

Expand All @@ -193,9 +184,7 @@ PERM *px;


/* ipx_finput -- interactive input of permutation */
PERM *ipx_finput(fp,px)
FILE *fp;
PERM *px;
PERM *ipx_finput(FILE *fp, PERM *px)
{
u_int i,j,size,dynamic; /* dynamic set if memory allocated here */
u_int entry,ok;
Expand Down Expand Up @@ -247,9 +236,7 @@ PERM *px;
}

/* bpx_finput -- batch-file input of permutation */
PERM *bpx_finput(fp,px)
FILE *fp;
PERM *px;
PERM *bpx_finput(FILE *fp, PERM *px)
{
u_int i,j,size,entry,ok;
int io_code;
Expand Down Expand Up @@ -289,9 +276,7 @@ PERM *px;
}


VEC *v_finput(fp,x)
FILE *fp;
VEC *x;
VEC *v_finput(FILE *fp, VEC *x)
{
VEC *ifin_vec(),*bfin_vec();

Expand All @@ -302,9 +287,7 @@ VEC *x;
}

/* ifin_vec -- interactive input of vector */
VEC *ifin_vec(fp,vec)
FILE *fp;
VEC *vec;
VEC *ifin_vec(FILE *fp, VEC *vec)
{
u_int i,dim,dynamic; /* dynamic set if memory allocated here */

Expand Down Expand Up @@ -347,9 +330,7 @@ VEC *vec;
}

/* bfin_vec -- batch-file input of vector */
VEC *bfin_vec(fp,vec)
FILE *fp;
VEC *vec;
VEC *bfin_vec(FILE *fp, VEC *vec)
{
u_int i,dim;
int io_code;
Expand Down Expand Up @@ -393,9 +374,7 @@ char *f_string;
return old_f_string;
}

void m_foutput(fp,a)
FILE *fp;
MAT *a;
void m_foutput(FILE *fp, MAT *a)
{
u_int i, j, tmp;

Expand All @@ -416,9 +395,7 @@ MAT *a;
}
}

void px_foutput(fp,px)
FILE *fp;
PERM *px;
void px_foutput(FILE *fp, PERM *px)
{
u_int i;

Expand All @@ -435,9 +412,7 @@ PERM *px;
fprintf(fp,"\n");
}

void v_foutput(fp,x)
FILE *fp;
VEC *x;
void v_foutput(FILE *fp, VEC *x)
{
u_int i, tmp;

Expand All @@ -455,9 +430,7 @@ VEC *x;
}


void m_dump(fp,a)
FILE *fp;
MAT *a;
void m_dump(FILE *fp, MAT *a)
{
u_int i, j, tmp;

Expand All @@ -482,9 +455,7 @@ MAT *a;
}
}

void px_dump(fp,px)
FILE *fp;
PERM *px;
void px_dump(FILE *fp, PERM *px)
{
u_int i;

Expand All @@ -500,9 +471,7 @@ PERM *px;
}


void v_dump(fp,x)
FILE *fp;
VEC *x;
void v_dump(FILE *fp, VEC *x)
{
u_int i, tmp;

Expand Down

0 comments on commit faa4abe

Please sign in to comment.