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:
parent
e8cc40b3ec
commit
eb2cc84a6d
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue