Add new coding style rules and fix appeared issues.

JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
Andrey Shitov
2015-05-12 19:17:07 +03:00
parent ca12c16607
commit 9763a93df3
89 changed files with 1152 additions and 626 deletions
+6 -6
View File
@@ -86,8 +86,8 @@ mem_pools_init (void)
void
mem_pools_finalize (void)
{
JERRY_ASSERT(mem_pools == NULL);
JERRY_ASSERT(mem_free_chunks_number == 0);
JERRY_ASSERT (mem_pools == NULL);
JERRY_ASSERT (mem_free_chunks_number == 0);
} /* mem_pools_finalize */
/**
@@ -234,7 +234,7 @@ mem_pools_free (uint8_t *chunk_p) /**< pointer to the chunk */
void
mem_pools_get_stats (mem_pools_stats_t *out_pools_stats_p) /**< out: pools' stats */
{
JERRY_ASSERT(out_pools_stats_p != NULL);
JERRY_ASSERT (out_pools_stats_p != NULL);
*out_pools_stats_p = mem_pools_stats;
} /* mem_pools_get_stats */
@@ -283,7 +283,7 @@ mem_pools_stat_alloc_pool (void)
static void
mem_pools_stat_free_pool (void)
{
JERRY_ASSERT(mem_pools_stats.pools_count > 0);
JERRY_ASSERT (mem_pools_stats.pools_count > 0);
mem_pools_stats.pools_count--;
mem_pools_stats.free_chunks = mem_free_chunks_number;
@@ -295,7 +295,7 @@ mem_pools_stat_free_pool (void)
static void
mem_pools_stat_alloc_chunk (void)
{
JERRY_ASSERT(mem_pools_stats.free_chunks > 0);
JERRY_ASSERT (mem_pools_stats.free_chunks > 0);
mem_pools_stats.allocated_chunks++;
mem_pools_stats.free_chunks--;
@@ -316,7 +316,7 @@ mem_pools_stat_alloc_chunk (void)
static void
mem_pools_stat_free_chunk (void)
{
JERRY_ASSERT(mem_pools_stats.allocated_chunks > 0);
JERRY_ASSERT (mem_pools_stats.allocated_chunks > 0);
mem_pools_stats.allocated_chunks--;
mem_pools_stats.free_chunks++;