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:
@@ -31,13 +31,13 @@
|
||||
#define __attr_return_value_should_be_checked___ __attribute__((warn_unused_result))
|
||||
#define __attr_hot___ __attribute__((hot))
|
||||
#ifndef __attr_always_inline___
|
||||
# define __attr_always_inline___ __attribute__((always_inline))
|
||||
#define __attr_always_inline___ __attribute__((always_inline))
|
||||
#endif /* !__attr_always_inline___ */
|
||||
#ifndef __attr_const___
|
||||
# define __attr_const___ __attribute__((const))
|
||||
#define __attr_const___ __attribute__((const))
|
||||
#endif /* !__attr_const___ */
|
||||
#ifndef __attr_pure___
|
||||
# define __attr_pure___ __attribute__((pure))
|
||||
#define __attr_pure___ __attribute__((pure))
|
||||
#endif /* !__attr_pure___ */
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user