From 5fbed4300410df54a6dbc0f46d18385ef3baab03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Tue, 10 Aug 2010 07:47:06 +0000 Subject: [PATCH] Static-ify functions which have no prototype in 'hybsys.h'. --- hybsys.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/hybsys.c b/hybsys.c index 770b8a88..4c175f75 100644 --- a/hybsys.c +++ b/hybsys.c @@ -364,9 +364,11 @@ hybsys_build_sa_and_b(int nc, int nf, int *nconn, int *conn, MAT_SIZE_T *ia, } } + /* ---------------------------------------------------------------------- */ -void hybsys_build_matrix_structure(int nc, int nf, int *nconn, int *conn, - MAT_SIZE_T **ia, MAT_SIZE_T **ja) +static void +hybsys_build_matrix_structure(int nc, int nf, int *nconn, int *conn, + MAT_SIZE_T **ia, MAT_SIZE_T **ja) /* ---------------------------------------------------------------------- */ { int *work = malloc(nf * sizeof *work); @@ -376,10 +378,13 @@ void hybsys_build_matrix_structure(int nc, int nf, int *nconn, int *conn, free(work); } + + /* ---------------------------------------------------------------------- */ -void hybsys_assemble_global_system(int nc, int nf, int *nconn, int *conn, - double *S, double *R, - double **sa, double **b, MAT_SIZE_T *ia) +static void +hybsys_assemble_global_system(int nc, int nf, int *nconn, int *conn, + double *S, double *R, + double **sa, double **b, MAT_SIZE_T *ia) /* ---------------------------------------------------------------------- */ { int *work = malloc(nf * sizeof *work); @@ -389,9 +394,11 @@ void hybsys_assemble_global_system(int nc, int nf, int *nconn, int *conn, free(work); } + /* ---------------------------------------------------------------------- */ void -hybsys_assemble(int nc, int nf, int *nconn, int *conn, double *S, double *R, struct Sparse*A, double **b) +hybsys_assemble(int nc, int nf, int *nconn, int *conn, double *S, double *R, + struct Sparse*A, double **b) /* ---------------------------------------------------------------------- */ { A->m = A->n = nf;