File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 4040/**
4141 * Jerry engine build date
4242 */
43- const char * jerry_build_date = JERRY_BUILD_DATE ;
43+ const char * const jerry_build_date = JERRY_BUILD_DATE ;
4444
4545/**
4646 * Jerry engine build commit hash
4747 */
48- const char * jerry_commit_hash = JERRY_COMMIT_HASH ;
48+ const char * const jerry_commit_hash = JERRY_COMMIT_HASH ;
4949
5050/**
5151 * Jerry engine build branch name
5252 */
53- const char * jerry_branch_name = JERRY_BRANCH_NAME ;
53+ const char * const jerry_branch_name = JERRY_BRANCH_NAME ;
5454
5555/**
5656 * Jerry run-time configuration flags
Original file line number Diff line number Diff line change @@ -64,17 +64,17 @@ typedef enum
6464/**
6565 * Jerry engine build date
6666 */
67- extern const char * jerry_build_date ;
67+ extern const char * const jerry_build_date ;
6868
6969/**
7070 * Jerry engine build commit hash
7171 */
72- extern const char * jerry_commit_hash ;
72+ extern const char * const jerry_commit_hash ;
7373
7474/**
7575 * Jerry engine build branch name
7676 */
77- extern const char * jerry_branch_name ;
77+ extern const char * const jerry_branch_name ;
7878
7979#ifdef JERRY_ENABLE_LOG
8080extern int jerry_debug_level ;
Original file line number Diff line number Diff line change 1- /* Copyright 2015 Samsung Electronics Co., Ltd.
1+ /* Copyright 2015-2016 Samsung Electronics Co., Ltd.
22 *
33 * Licensed under the Apache License, Version 2.0 (the "License");
44 * you may not use this file except in compliance with the License.
@@ -55,10 +55,10 @@ lit_get_magic_string_ex_count (void)
5555const lit_utf8_byte_t *
5656lit_get_magic_string_utf8 (lit_magic_string_id_t id ) /**< magic string id */
5757{
58- static const lit_utf8_byte_t * magic_strings [] =
58+ static const lit_utf8_byte_t * const magic_strings [] =
5959 {
6060#define LIT_MAGIC_STRING_DEF (id , utf8_string ) \
61- (lit_utf8_byte_t * ) utf8_string ,
61+ (const lit_utf8_byte_t * ) utf8_string ,
6262#include "lit-magic-strings.inc.h"
6363#undef LIT_MAGIC_STRING_DEF
6464 };
Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ const uint8_t cbc_ext_flags[] =
5454/**
5555 * Names of the opcodes.
5656 */
57- const char * cbc_names [] =
57+ const char * const cbc_names [] =
5858{
5959 CBC_OPCODE_LIST
6060};
6161
6262/**
6363 * Names of the extended opcodes.
6464 */
65- const char * cbc_ext_names [] =
65+ const char * const cbc_ext_names [] =
6666{
6767 CBC_EXT_OPCODE_LIST
6868};
Original file line number Diff line number Diff line change @@ -680,8 +680,8 @@ extern const uint8_t cbc_ext_flags[];
680680/**
681681 * Opcode names for debugging.
682682 */
683- extern const char * cbc_names [];
684- extern const char * cbc_ext_names [];
683+ extern const char * const cbc_names [];
684+ extern const char * const cbc_ext_names [];
685685
686686#endif /* PARSER_DUMP_BYTE_CODE */
687687
You can’t perform that action at this time.
0 commit comments