change ops to const data.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@545 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong 2010-03-26 09:34:26 +00:00
parent e8cc40b3ec
commit eb2cc84a6d
2 changed files with 2 additions and 2 deletions

View File

@ -553,7 +553,7 @@ void OP_call()
return ;
}
op_func op_table[] =
const op_func op_table[] =
{
/* 00 */ OP_no_op,
/* 01 */ OP_add_byte,

View File

@ -115,6 +115,6 @@
#define FINSH_OP_HALT 0xFF
typedef void (*op_func)();
extern op_func op_table[];
extern const op_func op_table[];
#endif