From 386c193cae3aed5bc770d403479d83b7548161df Mon Sep 17 00:00:00 2001 From: Kp Date: Thu, 28 Nov 2013 00:22:27 +0000 Subject: [PATCH] Make med_functions const --- common/editor/func.cpp | 4 ++-- common/include/func.h | 2 +- similar/editor/kfuncs.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/editor/func.cpp b/common/editor/func.cpp index aa9146d97..99895e5ad 100644 --- a/common/editor/func.cpp +++ b/common/editor/func.cpp @@ -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) { diff --git a/common/include/func.h b/common/include/func.h index 112a813ce..ec1d40b24 100644 --- a/common/include/func.h +++ b/common/include/func.h @@ -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(); diff --git a/similar/editor/kfuncs.cpp b/similar/editor/kfuncs.cpp index 8d229caa8..299a20523 100644 --- a/similar/editor/kfuncs.cpp +++ b/similar/editor/kfuncs.cpp @@ -64,7 +64,7 @@ static int Test3() return 0; } -FUNCTION med_functions[] = { +const FUNCTION med_functions[] = { // Test functions { "med-test-1", 0, Test1 },