Unifiy the comments of preprocessor conditionals
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -20,9 +20,9 @@
|
||||
#include "arch/x86-32.h"
|
||||
#elif defined (__TARGET_HOST_ARMv7)
|
||||
#include "arch/arm-v7.h"
|
||||
#else
|
||||
#else /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
|
||||
#error "Unsupported architecture"
|
||||
#endif /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
|
||||
#endif /* __TARGET_HOST_x64 */
|
||||
|
||||
#if defined (__linux__)
|
||||
.macro func _name
|
||||
@@ -40,9 +40,9 @@
|
||||
.endm
|
||||
.macro endfunc _name
|
||||
.endm
|
||||
#else
|
||||
#else /* !__linux && !(__APPLE__ && __MACH__) */
|
||||
#error "Unsupported OS"
|
||||
#endif /* !__linux && !(__APPLE__ && __MACH__) */
|
||||
#endif /* __linux__ */
|
||||
|
||||
func _start
|
||||
_START
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
#elif defined (__APPLE__) && defined (__MACH__)
|
||||
#define SYS_exit_group SYS_exit
|
||||
#define SYSCALL_NO(NAME) SYS_ ## NAME
|
||||
#else
|
||||
#else /* !__linux && !(__APPLE__ && __MACH__) */
|
||||
#error "Unsupported OS"
|
||||
#endif /* !__linux && !(__APPLE__ && __MACH__) */
|
||||
#endif /* __linux__ */
|
||||
|
||||
#include "jerry-libc-defs.h"
|
||||
|
||||
@@ -355,7 +355,7 @@ jrt_set_mem_limits (size_t data_size, /**< limit for data + bss + brk heap */
|
||||
|
||||
long int ret;
|
||||
|
||||
#ifdef __TARGET_HOST_x64
|
||||
#if defined (__TARGET_HOST_x64)
|
||||
ret = syscall_2 (SYSCALL_NO (setrlimit), RLIMIT_DATA, (intptr_t) &data_limit);
|
||||
assert (ret == 0);
|
||||
|
||||
@@ -371,6 +371,6 @@ jrt_set_mem_limits (size_t data_size, /**< limit for data + bss + brk heap */
|
||||
# error "__TARGET_HOST_x86 case is not implemented"
|
||||
#else /* !__TARGET_HOST_x64 && !__TARGET_HOST_ARMv7 && !__TARGET_HOST_x86 */
|
||||
# error "!__TARGET_HOST_x64 && !__TARGET_HOST_ARMv7 && !__TARGET_HOST_x86"
|
||||
#endif /* !__TARGET_HOST_x64 && !__TARGET_HOST_ARMv7 && !__TARGET_HOST_x86 */
|
||||
#endif /* __TARGET_HOST_x64 */
|
||||
} /* jrt_set_mem_limits */
|
||||
#endif // FIXME
|
||||
#endif /* 0 */
|
||||
|
||||
Reference in New Issue
Block a user