Fix the missing inline specifier if compiling with -fPIC (#1590)

JerryScript-DCO-1.0-Signed-off-by: Gabor Loki loki@inf.u-szeged.hu
This commit is contained in:
Gabor Loki
2017-02-17 12:41:01 +01:00
committed by Zoltan Herczeg
parent 4727202c8e
commit 6739463c1e
4 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -123,7 +123,7 @@ re_bytecode_list_insert (re_bytecode_ctx_t *bc_ctx_p, /**< RegExp bytecode conte
*
* @return ecma character
*/
ecma_char_t __attr_always_inline___
inline ecma_char_t __attr_always_inline___
re_get_char (uint8_t **bc_p) /**< pointer to bytecode start */
{
ecma_char_t chr = *((ecma_char_t *) *bc_p);
@@ -136,7 +136,7 @@ re_get_char (uint8_t **bc_p) /**< pointer to bytecode start */
*
* @return current RegExp opcode
*/
re_opcode_t __attr_always_inline___
inline re_opcode_t __attr_always_inline___
re_get_opcode (uint8_t **bc_p) /**< pointer to bytecode start */
{
uint8_t bytecode = **bc_p;
@@ -149,7 +149,7 @@ re_get_opcode (uint8_t **bc_p) /**< pointer to bytecode start */
*
* @return opcode parameter
*/
uint32_t __attr_always_inline___
inline uint32_t __attr_always_inline___
re_get_value (uint8_t **bc_p) /**< pointer to bytecode start */
{
uint32_t value = *((uint32_t *) *bc_p);
@@ -162,7 +162,7 @@ re_get_value (uint8_t **bc_p) /**< pointer to bytecode start */
*
* @return bytecode length (unsigned integer)
*/
uint32_t __attr_pure___ __attr_always_inline___
inline uint32_t __attr_pure___ __attr_always_inline___
re_get_bytecode_length (re_bytecode_ctx_t *bc_ctx_p) /**< RegExp bytecode context */
{
return ((uint32_t) (bc_ctx_p->current_p - bc_ctx_p->block_start_p));