Skip to content
Snippets Groups Projects
Commit 26c2c8be authored by Oliver Sander's avatar Oliver Sander
Browse files

more consts to calm gcc 4.2

[[Imported from SVN: r8323]]
parent 04c9a7f5
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ typedef void * (*AMG_MallocFuncPtr)(size_t n);
/* string i/o */
int AMG_InstallPrintHandler (AMG_PrintFuncPtr print);
int AMG_Print (char *s);
int AMG_Print (const char *s);
int AMG_RedirectToFile (char *name);
int AMG_RedirectToScreen (void);
......
......@@ -80,7 +80,7 @@ struct amg_vector AMG_VECTOR; /* a whole vector */
#define AMG_VECTOR_X(p) ((p)->x)
#define AMG_VECTOR_ENTRY(p,i,ii) ((p)->x[(i)*(p)->b+(ii)])
AMG_VECTOR *AMG_NewVector (int n, int b, char *name);
AMG_VECTOR *AMG_NewVector (int n, int b, const char *name);
/****************************************************************************/
/******** pattern of a general m x n sparse block matrix *****************/
......@@ -120,7 +120,7 @@ struct amg_matrix AMG_MATRIX; /* a matrix
#define AMG_MATRIX_A(p) ((p)->a)
/* Construction */
AMG_MATRIX *AMG_NewMatrix (int n, int b, int nonzeros, int system_as_scalar, char *name);
AMG_MATRIX *AMG_NewMatrix (int n, int b, int nonzeros, int system_as_scalar, const char *name);
AMG_MATRIX *AMG_CopyMatrix (AMG_MATRIX *A, char *name);
int AMG_SetRowLength (AMG_MATRIX *A, int i, int l);
int AMG_FindEntry (AMG_MATRIX *A, int i, int j);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment