Make med_functions const

This commit is contained in:
Kp 2013-11-28 00:22:27 +00:00
parent 68732756e8
commit 386c193cae
3 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#define MAX_PARAMS 10
static FUNCTION * func_table = NULL;
static const FUNCTION * func_table = NULL;
static int func_size = 0;
static int initialized = 0;
static int func_params[MAX_PARAMS];
@ -36,7 +36,7 @@ int func_howmany()
return func_size;
}
void func_init( FUNCTION * funtable, int size )
void func_init( const FUNCTION * funtable, int size )
{
if (!initialized)
{

View file

@ -26,7 +26,7 @@ typedef struct {
int (*cfunction)(void);
} FUNCTION;
void func_init( FUNCTION * funtable, int size );
void func_init( const FUNCTION * funtable, int size );
void func_close();
int (*func_get( char * name, int * numparams ))(void);
int func_howmany();

View file

@ -64,7 +64,7 @@ static int Test3()
return 0;
}
FUNCTION med_functions[] = {
const FUNCTION med_functions[] = {
// Test functions
{ "med-test-1", 0, Test1 },