Ensure that const and pure function attributes are used properly (#1739)
Some functions were incorrectly marked as const but were pure only (or not even pure). Some functions were marked as pure but qualified as const. Some functions were not attributed at all but qualified either as pure or const. Some functions had attributes at definition but not at declaration. This commit fixes these inconsistencies. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -103,7 +103,7 @@ typedef struct
|
||||
re_opcode_t re_get_opcode (uint8_t **bc_p);
|
||||
ecma_char_t re_get_char (uint8_t **bc_p);
|
||||
uint32_t re_get_value (uint8_t **bc_p);
|
||||
uint32_t re_get_bytecode_length (re_bytecode_ctx_t *bc_ctx_p);
|
||||
uint32_t re_get_bytecode_length (re_bytecode_ctx_t *bc_ctx_p) __attr_pure___;
|
||||
|
||||
void re_append_opcode (re_bytecode_ctx_t *bc_ctx_p, re_opcode_t opcode);
|
||||
void re_append_u32 (re_bytecode_ctx_t *bc_ctx_p, uint32_t value);
|
||||
|
||||
Reference in New Issue
Block a user