log: make input parameters const
This commit is contained in:
committed by
Robert Schmidt
parent
f11361343c
commit
7d90d9b23e
@@ -145,7 +145,13 @@ static const char *const log_level_highlight_end[] =
|
|||||||
{LOG_RESET, LOG_RESET, LOG_RESET, LOG_RESET, LOG_RESET, LOG_RESET}; /*!< \brief Optional end-format strings for highlighting */
|
{LOG_RESET, LOG_RESET, LOG_RESET, LOG_RESET, LOG_RESET, LOG_RESET}; /*!< \brief Optional end-format strings for highlighting */
|
||||||
static void log_output_memory(log_component_t *c, const char *file, const char *func, int line, int comp, int level, const char* format,va_list args);
|
static void log_output_memory(log_component_t *c, const char *file, const char *func, int line, int comp, int level, const char* format,va_list args);
|
||||||
|
|
||||||
int write_file_matlab(const char *fname, const char *vname, void *data, int length, int dec, unsigned int format, int multiVec)
|
int write_file_matlab(const char *fname,
|
||||||
|
const char *vname,
|
||||||
|
const void *data,
|
||||||
|
int length,
|
||||||
|
int dec,
|
||||||
|
unsigned int format,
|
||||||
|
int multiVec)
|
||||||
{
|
{
|
||||||
FILE *fp=NULL;
|
FILE *fp=NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|||||||
@@ -316,8 +316,14 @@ void close_log_mem(void);
|
|||||||
#define MATLAB_CSHORT_BRACKET1 13
|
#define MATLAB_CSHORT_BRACKET1 13
|
||||||
#define MATLAB_CSHORT_BRACKET2 14
|
#define MATLAB_CSHORT_BRACKET2 14
|
||||||
#define MATLAB_CSHORT_BRACKET3 15
|
#define MATLAB_CSHORT_BRACKET3 15
|
||||||
|
|
||||||
int32_t write_file_matlab(const char *fname, const char *vname, void *data, int length, int dec, unsigned int format, int multiVec);
|
int32_t write_file_matlab(const char *fname,
|
||||||
|
const char *vname,
|
||||||
|
const void *data,
|
||||||
|
int length,
|
||||||
|
int dec,
|
||||||
|
unsigned int format,
|
||||||
|
int multiVec);
|
||||||
#define write_output(a, b, c, d, e, f) write_file_matlab(a, b, c, d, e, f, 0)
|
#define write_output(a, b, c, d, e, f) write_file_matlab(a, b, c, d, e, f, 0)
|
||||||
|
|
||||||
/*----------------macro definitions for reading log configuration from the config module */
|
/*----------------macro definitions for reading log configuration from the config module */
|
||||||
|
|||||||
Reference in New Issue
Block a user