Add some more consts to get data moved from .data to .rodata

We already had some `const`s but it was still not enough.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2016-02-19 17:04:42 +01:00
parent d857fe095f
commit 866ef5bcf3
5 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ const uint8_t cbc_ext_flags[] =
/**
* Names of the opcodes.
*/
const char *cbc_names[] =
const char * const cbc_names[] =
{
CBC_OPCODE_LIST
};
@@ -62,7 +62,7 @@ const char *cbc_names[] =
/**
* Names of the extended opcodes.
*/
const char *cbc_ext_names[] =
const char * const cbc_ext_names[] =
{
CBC_EXT_OPCODE_LIST
};
+2 -2
View File
@@ -680,8 +680,8 @@ extern const uint8_t cbc_ext_flags[];
/**
* Opcode names for debugging.
*/
extern const char *cbc_names[];
extern const char *cbc_ext_names[];
extern const char * const cbc_names[];
extern const char * const cbc_ext_names[];
#endif /* PARSER_DUMP_BYTE_CODE */