fix formatting issues in src/*. Ignore #define.. in jerry_funcname_space_parentheses.tcl
This commit is contained in:
+3
-2
@@ -249,10 +249,11 @@ SOURCES_JERRY_C = \
|
|||||||
$(wildcard ./src/liballocator/*.c) \
|
$(wildcard ./src/liballocator/*.c) \
|
||||||
$(wildcard ./src/libcoreint/*.c) \
|
$(wildcard ./src/libcoreint/*.c) \
|
||||||
$(wildcard ./src/liboptimizer/*.c) ) \
|
$(wildcard ./src/liboptimizer/*.c) ) \
|
||||||
$(wildcard src/libruntime/target/$(TARGET_SYSTEM)/*.c)
|
$(wildcard ./src/libruntime/target/$(TARGET_SYSTEM)/*.c)
|
||||||
|
|
||||||
SOURCES_JERRY_H = \
|
SOURCES_JERRY_H = \
|
||||||
$(sort \
|
$(sort \
|
||||||
|
$(wildcard ./src/*.h) \
|
||||||
$(wildcard ./src/libruntime/*.h) \
|
$(wildcard ./src/libruntime/*.h) \
|
||||||
$(wildcard ./src/libperipherals/*.h) \
|
$(wildcard ./src/libperipherals/*.h) \
|
||||||
$(wildcard ./src/libjsparser/*.h) \
|
$(wildcard ./src/libjsparser/*.h) \
|
||||||
@@ -261,7 +262,7 @@ SOURCES_JERRY_H = \
|
|||||||
$(wildcard ./src/liballocator/*.h) \
|
$(wildcard ./src/liballocator/*.h) \
|
||||||
$(wildcard ./src/libcoreint/*.h) \
|
$(wildcard ./src/libcoreint/*.h) \
|
||||||
$(wildcard ./src/liboptimizer/*.h) ) \
|
$(wildcard ./src/liboptimizer/*.h) ) \
|
||||||
$(wildcard src/libruntime/target/$(TARGET_SYSTEM)/*.h)
|
$(wildcard ./src/libruntime/target/$(TARGET_SYSTEM)/*.h)
|
||||||
|
|
||||||
SOURCES_JERRY_ASM = \
|
SOURCES_JERRY_ASM = \
|
||||||
$(wildcard src/libruntime/target/$(TARGET_SYSTEM)/*.S)
|
$(wildcard src/libruntime/target/$(TARGET_SYSTEM)/*.S)
|
||||||
|
|||||||
+20
-5
@@ -68,7 +68,9 @@ typedef enum
|
|||||||
*/
|
*/
|
||||||
#define JERRY_STATIC_ASSERT_GLUE_(a, b) a ## b
|
#define JERRY_STATIC_ASSERT_GLUE_(a, b) a ## b
|
||||||
#define JERRY_STATIC_ASSERT_GLUE(a, b) JERRY_STATIC_ASSERT_GLUE_ (a, b)
|
#define JERRY_STATIC_ASSERT_GLUE(a, b) JERRY_STATIC_ASSERT_GLUE_ (a, b)
|
||||||
#define JERRY_STATIC_ASSERT( x ) typedef char JERRY_STATIC_ASSERT_GLUE( static_assertion_failed_, __LINE__) [ ( x ) ? 1 : -1 ] __unused
|
#define JERRY_STATIC_ASSERT(x) \
|
||||||
|
typedef char JERRY_STATIC_ASSERT_GLUE (static_assertion_failed_, __LINE__) \
|
||||||
|
[ (x) ? 1 : -1 ] __unused
|
||||||
|
|
||||||
#define CALL_PRAGMA(x) _Pragma (#x)
|
#define CALL_PRAGMA(x) _Pragma (#x)
|
||||||
|
|
||||||
@@ -103,15 +105,28 @@ extern void __noreturn jerry_assert_fail( const char *assertion, const char *fil
|
|||||||
* Mark for unreachable points and unimplemented cases
|
* Mark for unreachable points and unimplemented cases
|
||||||
*/
|
*/
|
||||||
extern void jerry_ref_unused_variables (int unused_variables_follow, ...);
|
extern void jerry_ref_unused_variables (int unused_variables_follow, ...);
|
||||||
#define JERRY_UNREACHABLE() do { JERRY_ASSERT( false); jerry_exit( ERR_GENERAL); } while (0)
|
#define JERRY_UNREACHABLE() \
|
||||||
|
do \
|
||||||
|
{ \
|
||||||
|
JERRY_ASSERT (false); \
|
||||||
|
jerry_exit (ERR_GENERAL); \
|
||||||
|
} while (0)
|
||||||
#define JERRY_UNIMPLEMENTED() JERRY_UNREACHABLE ()
|
#define JERRY_UNIMPLEMENTED() JERRY_UNREACHABLE ()
|
||||||
#define JERRY_UNIMPLEMENTED_REF_UNUSED_VARS(...) do { JERRY_UNIMPLEMENTED(); if ( false ) { jerry_ref_unused_variables( 0, __VA_ARGS__); } } while (0)
|
#define JERRY_UNIMPLEMENTED_REF_UNUSED_VARS(...) \
|
||||||
|
do \
|
||||||
|
{ \
|
||||||
|
JERRY_UNIMPLEMENTED (); \
|
||||||
|
if (false) \
|
||||||
|
{ \
|
||||||
|
jerry_ref_unused_variables (0, __VA_ARGS__); \
|
||||||
|
} \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Conditions' likeliness, unlikeliness.
|
* Conditions' likeliness, unlikeliness.
|
||||||
*/
|
*/
|
||||||
#define likely( x ) ( __builtin_expect( !!( x ), 1 ) )
|
#define likely(x) __builtin_expect (!!(x), 1)
|
||||||
#define unlikely( x ) ( __builtin_expect( !!( x ), 0 ) )
|
#define unlikely(x) __builtin_expect (!!(x) , 0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exit
|
* Exit
|
||||||
|
|||||||
Reference in New Issue
Block a user