Style fix: align pointer dereference operator to right

JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
László Langó
2016-01-28 10:34:04 +01:00
parent efc994b112
commit b1acf1a562
37 changed files with 154 additions and 121 deletions
+7 -7
View File
@@ -89,7 +89,7 @@ test_api_init_api_value_float64 (jerry_api_value_t *out_value_p, /**< out: API v
*/
static void
test_api_init_api_value_string (jerry_api_value_t *out_value_p, /**< out: API value */
const char* v) /**< string value to initialize with */
const char *v) /**< string value to initialize with */
{
out_value_p->type = JERRY_API_DATA_TYPE_STRING;
out_value_p->v_string = jerry_api_create_string ((jerry_api_char_t *) v);
@@ -100,7 +100,7 @@ test_api_init_api_value_string (jerry_api_value_t *out_value_p, /**< out: API va
*/
static void
test_api_init_api_value_object (jerry_api_value_t *out_value_p, /**< out: API value */
jerry_api_object_t* v) /**< object value to initialize with */
jerry_api_object_t *v) /**< object value to initialize with */
{
jerry_api_acquire_object (v);
@@ -146,7 +146,7 @@ handler_throw_test (const jerry_api_object_t *function_obj_p,
{
printf ("ok %p %p %p %d %p\n", function_obj_p, this_p, args_p, args_cnt, ret_val_p);
jerry_api_object_t* error_p = jerry_api_create_error (JERRY_API_ERROR_TYPE,
jerry_api_object_t *error_p = jerry_api_create_error (JERRY_API_ERROR_TYPE,
(jerry_api_char_t *) "error");
test_api_init_api_value_object (ret_val_p, error_p);
@@ -321,13 +321,13 @@ main (void)
ssize_t sz;
jerry_api_value_t val_t, val_foo, val_bar, val_A, val_A_prototype, val_a, val_a_foo, val_value_field, val_p, val_np;
jerry_api_value_t val_external, val_external_construct, val_call_external;
jerry_api_object_t* global_obj_p, *obj_p;
jerry_api_object_t* external_func_p, *external_construct_p;
jerry_api_object_t* throw_test_handler_p;
jerry_api_object_t *global_obj_p, *obj_p;
jerry_api_object_t *external_func_p, *external_construct_p;
jerry_api_object_t *throw_test_handler_p;
jerry_api_value_t res, args[2];
char buffer[32];
is_ok = jerry_parse ((jerry_api_char_t *)test_source, strlen (test_source));
is_ok = jerry_parse ((jerry_api_char_t *) test_source, strlen (test_source));
JERRY_ASSERT (is_ok);
is_ok = (jerry_run () == JERRY_COMPLETION_CODE_OK);
+6 -3
View File
@@ -65,7 +65,9 @@ do \
/**
* Provide log message to filestream implementation for the engine.
*/
int jerry_port_logmsg (FILE* stream, const char* format, ...)
int jerry_port_logmsg (FILE *stream, /**< stream pointer */
const char *format, /**< format string */
...) /**< parameters */
{
va_list args;
int count;
@@ -78,7 +80,8 @@ int jerry_port_logmsg (FILE* stream, const char* format, ...)
/**
* Provide error message to console implementation for the engine.
*/
int jerry_port_errormsg (const char* format, ...)
int jerry_port_errormsg (const char *format, /**< format string */
...) /**< parameters */
{
va_list args;
int count;
@@ -91,7 +94,7 @@ int jerry_port_errormsg (const char* format, ...)
/**
* Provide output character to console implementation for the engine.
*/
int jerry_port_putchar (int c)
int jerry_port_putchar (int c) /**< character to put */
{
return putchar (c);
}