Style fix: fix comments at the end of function definitions.
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
@@ -154,7 +154,7 @@ handler_throw_test (const jerry_api_object_t *function_obj_p,
|
||||
jerry_api_release_object (error_p);
|
||||
|
||||
return false;
|
||||
}
|
||||
} /* handler_throw_test */
|
||||
|
||||
static void
|
||||
handler_construct_freecb (uintptr_t native_p)
|
||||
@@ -285,7 +285,7 @@ static bool foreach (const jerry_api_string_t *name,
|
||||
|
||||
JERRY_ASSERT (!strncmp ((const char*)user_data, "user_data", 9));
|
||||
return true;
|
||||
}
|
||||
} /* foreach */
|
||||
|
||||
static bool foreach_exception (const jerry_api_string_t *name, const jerry_api_value_t *, void *)
|
||||
{
|
||||
@@ -298,7 +298,7 @@ static bool foreach_exception (const jerry_api_string_t *name, const jerry_api_v
|
||||
JERRY_ASSERT (false);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
} /* foreach_exception */
|
||||
|
||||
static bool foreach_subset (const jerry_api_string_t *, const jerry_api_value_t *, void *user_data)
|
||||
{
|
||||
@@ -309,7 +309,8 @@ static bool foreach_subset (const jerry_api_string_t *, const jerry_api_value_t
|
||||
}
|
||||
(*count_p)++;
|
||||
return true;
|
||||
}
|
||||
} /* foreach_subset */
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
@@ -740,4 +741,4 @@ main (void)
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
} /* main */
|
||||
|
||||
@@ -75,7 +75,7 @@ int jerry_port_logmsg (FILE *stream, /**< stream pointer */
|
||||
count = vfprintf (stream, format, args);
|
||||
va_end (args);
|
||||
return count;
|
||||
}
|
||||
} /* jerry_port_logmsg */
|
||||
|
||||
/**
|
||||
* Provide error message to console implementation for the engine.
|
||||
@@ -89,7 +89,7 @@ int jerry_port_errormsg (const char *format, /**< format string */
|
||||
count = vfprintf (stderr, format, args);
|
||||
va_end (args);
|
||||
return count;
|
||||
}
|
||||
} /* jerry_port_errormsg */
|
||||
|
||||
/**
|
||||
* Provide output character to console implementation for the engine.
|
||||
@@ -97,6 +97,6 @@ int jerry_port_errormsg (const char *format, /**< format string */
|
||||
int jerry_port_putchar (int c) /**< character to put */
|
||||
{
|
||||
return putchar (c);
|
||||
}
|
||||
} /* jerry_port_putchar */
|
||||
|
||||
#endif /* TEST_COMMON_H */
|
||||
|
||||
@@ -37,7 +37,7 @@ generate_string (lit_utf8_byte_t *str, lit_utf8_size_t len)
|
||||
{
|
||||
str[i] = bytes[(unsigned long) rand () % length];
|
||||
}
|
||||
}
|
||||
} /* generate_string */
|
||||
|
||||
static ecma_number_t
|
||||
generate_number ()
|
||||
@@ -53,7 +53,7 @@ generate_number ()
|
||||
num *= 10;
|
||||
}
|
||||
return num;
|
||||
}
|
||||
} /* generate_number */
|
||||
|
||||
int
|
||||
main (int __attr_unused___ argc,
|
||||
@@ -140,4 +140,4 @@ main (int __attr_unused___ argc,
|
||||
lit_finalize ();
|
||||
mem_finalize (true);
|
||||
return 0;
|
||||
}
|
||||
} /* main */
|
||||
|
||||
@@ -65,7 +65,7 @@ test_setjmp_longjmp (volatile int depth)
|
||||
|
||||
longjmp (buffers[t], t + 1);
|
||||
}
|
||||
}
|
||||
} /* test_setjmp_longjmp */
|
||||
|
||||
int
|
||||
main (int __attr_unused___ argc,
|
||||
|
||||
@@ -71,7 +71,7 @@ generate_cesu8_char (utf8_char_size char_size,
|
||||
}
|
||||
|
||||
return lit_code_unit_to_utf8 ((ecma_char_t) code_point, buf);
|
||||
}
|
||||
} /* generate_cesu8_char */
|
||||
|
||||
static ecma_length_t
|
||||
generate_cesu8_string (lit_utf8_byte_t *buf_p,
|
||||
@@ -98,7 +98,7 @@ generate_cesu8_string (lit_utf8_byte_t *buf_p,
|
||||
JERRY_ASSERT (size == buf_size);
|
||||
|
||||
return length;
|
||||
}
|
||||
} /* generate_cesu8_string */
|
||||
|
||||
int
|
||||
main (int __attr_unused___ argc,
|
||||
@@ -232,4 +232,4 @@ main (int __attr_unused___ argc,
|
||||
mem_finalize (true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
} /* main */
|
||||
|
||||
Reference in New Issue
Block a user