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:
Akos Kiss
2017-04-18 10:15:34 +02:00
committed by yichoi
parent dc1dc093d9
commit 0f4edbe580
6 changed files with 58 additions and 56 deletions
+3 -3
View File
@@ -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___ */
/*