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:
Akos Kiss
2016-04-18 17:09:15 +02:00
parent df1e428c71
commit 3a8d3b3bcc
56 changed files with 165 additions and 165 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
/* Copyright 2014-2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -112,7 +112,7 @@
#else /* !__TARGET_HOST_ARMv7_HARD_FLOAT */
# define _STORE_VFP_S16_S31_IF_HARD_FLOAT
# define _LOAD_VFP_S16_S31_IF_HARD_FLOAT
#endif /* !__TARGET_HOST_ARMv7_HARD_FLOAT */
#endif /* __TARGET_HOST_ARMv7_HARD_FLOAT */
/*
* setjmp
+3 -3
View File
@@ -23,7 +23,7 @@
#ifdef __cplusplus
extern "C"
{
#endif /* !__cplusplus */
#endif /* __cplusplus */
#ifndef NDEBUG
#define assert(x) \
@@ -35,11 +35,11 @@ extern "C"
abort (); \
} \
} while (0)
#else
#else /* NDEBUG */
#define assert(x) ((void) 0)
#endif /* !NDEBUG */
#ifdef __cplusplus
}
#endif /* !__cplusplus */
#endif /* __cplusplus */
#endif /* !JERRY_LIBC_ASSERT_H */
+2 -2
View File
@@ -22,7 +22,7 @@
#ifdef __cplusplus
extern "C"
{
#endif /* !__cplusplus */
#endif /* __cplusplus */
/**
* Storage for context, used for nonlocal goto
@@ -61,5 +61,5 @@ void longjmp (jmp_buf env, int val);
#ifdef __cplusplus
}
#endif /* !__cplusplus */
#endif /* __cplusplus */
#endif /* !JERRY_LIBC_SETJMP_H */
+2 -2
View File
@@ -23,7 +23,7 @@
#ifdef __cplusplus
extern "C"
{
#endif /* !__cplusplus */
#endif /* __cplusplus */
/**
* File descriptor type
@@ -62,5 +62,5 @@ int putchar (int c);
#ifdef __cplusplus
}
#endif /* !__cplusplus */
#endif /* __cplusplus */
#endif /* !JERRY_LIBC_STDIO_H */
+2 -2
View File
@@ -20,7 +20,7 @@
#ifdef __cplusplus
extern "C"
{
#endif /* !__cplusplus */
#endif /* __cplusplus */
/**
* Maximum integer that could be returned by random number generator
@@ -37,5 +37,5 @@ void srand (unsigned int);
#ifdef __cplusplus
}
#endif /* !__cplusplus */
#endif /* __cplusplus */
#endif /* !JERRY_LIBC_STDLIB_H */
+2 -2
View File
@@ -22,7 +22,7 @@
#ifdef __cplusplus
extern "C"
{
#endif /* !__cplusplus */
#endif /* __cplusplus */
void *memcpy (void *dest, const void *src, size_t n);
void *memset (void *s, int c, size_t n);
@@ -35,5 +35,5 @@ size_t strlen (const char *s);
#ifdef __cplusplus
}
#endif /* !__cplusplus */
#endif /* __cplusplus */
#endif /* !JERRY_LIBC_STRING_H */
+2 -2
View File
@@ -20,7 +20,7 @@
#ifdef __cplusplus
extern "C"
{
#endif /* !__cplusplus */
#endif /* __cplusplus */
/**
* Time value structure
@@ -44,5 +44,5 @@ int gettimeofday (void *tp, void *tzp);
#ifdef __cplusplus
}
#endif /* !__cplusplus */
#endif /* __cplusplus */
#endif /* !JERRY_LIBC_TIME_H */
+4 -4
View File
@@ -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
+5 -5
View File
@@ -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 */