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 40
40
/**
41
41
* Jerry engine build date
42
42
*/
43
- const char * jerry_build_date = JERRY_BUILD_DATE ;
43
+ const char * const jerry_build_date = JERRY_BUILD_DATE ;
44
44
45
45
/**
46
46
* Jerry engine build commit hash
47
47
*/
48
- const char * jerry_commit_hash = JERRY_COMMIT_HASH ;
48
+ const char * const jerry_commit_hash = JERRY_COMMIT_HASH ;
49
49
50
50
/**
51
51
* Jerry engine build branch name
52
52
*/
53
- const char * jerry_branch_name = JERRY_BRANCH_NAME ;
53
+ const char * const jerry_branch_name = JERRY_BRANCH_NAME ;
54
54
55
55
/**
56
56
* Jerry run-time configuration flags
Original file line number Diff line number Diff line change @@ -64,17 +64,17 @@ typedef enum
64
64
/**
65
65
* Jerry engine build date
66
66
*/
67
- extern const char * jerry_build_date ;
67
+ extern const char * const jerry_build_date ;
68
68
69
69
/**
70
70
* Jerry engine build commit hash
71
71
*/
72
- extern const char * jerry_commit_hash ;
72
+ extern const char * const jerry_commit_hash ;
73
73
74
74
/**
75
75
* Jerry engine build branch name
76
76
*/
77
- extern const char * jerry_branch_name ;
77
+ extern const char * const jerry_branch_name ;
78
78
79
79
#ifdef JERRY_ENABLE_LOG
80
80
extern 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.
2
2
*
3
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
4
* you may not use this file except in compliance with the License.
@@ -55,10 +55,10 @@ lit_get_magic_string_ex_count (void)
55
55
const lit_utf8_byte_t *
56
56
lit_get_magic_string_utf8 (lit_magic_string_id_t id ) /**< magic string id */
57
57
{
58
- static const lit_utf8_byte_t * magic_strings [] =
58
+ static const lit_utf8_byte_t * const magic_strings [] =
59
59
{
60
60
#define LIT_MAGIC_STRING_DEF (id , utf8_string ) \
61
- (lit_utf8_byte_t * ) utf8_string ,
61
+ (const lit_utf8_byte_t * ) utf8_string ,
62
62
#include "lit-magic-strings.inc.h"
63
63
#undef LIT_MAGIC_STRING_DEF
64
64
};
Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ const uint8_t cbc_ext_flags[] =
54
54
/**
55
55
* Names of the opcodes.
56
56
*/
57
- const char * cbc_names [] =
57
+ const char * const cbc_names [] =
58
58
{
59
59
CBC_OPCODE_LIST
60
60
};
61
61
62
62
/**
63
63
* Names of the extended opcodes.
64
64
*/
65
- const char * cbc_ext_names [] =
65
+ const char * const cbc_ext_names [] =
66
66
{
67
67
CBC_EXT_OPCODE_LIST
68
68
};
Original file line number Diff line number Diff line change @@ -680,8 +680,8 @@ extern const uint8_t cbc_ext_flags[];
680
680
/**
681
681
* Opcode names for debugging.
682
682
*/
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 [];
685
685
686
686
#endif /* PARSER_DUMP_BYTE_CODE */
687
687
You can’t perform that action at this time.
0 commit comments