Make med_functions const
This commit is contained in:
parent
68732756e8
commit
386c193cae
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -64,7 +64,7 @@ static int Test3()
|
|||
return 0;
|
||||
}
|
||||
|
||||
FUNCTION med_functions[] = {
|
||||
const FUNCTION med_functions[] = {
|
||||
|
||||
// Test functions
|
||||
{ "med-test-1", 0, Test1 },
|
||||
|
|
Loading…
Reference in a new issue