Replace vera++ with clang-format (#4518)
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
This commit is contained in:
@@ -13,8 +13,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "jerryscript.h"
|
||||
|
||||
#include "config.h"
|
||||
#include "test-common.h"
|
||||
|
||||
static bool test_context_data1_new_called = false;
|
||||
@@ -54,13 +55,10 @@ test_context_data1_finalize (void *user_data_p)
|
||||
test_context_data1_finalize_called = true;
|
||||
} /* test_context_data1_finalize */
|
||||
|
||||
static const jerry_context_data_manager_t manager1 =
|
||||
{
|
||||
.init_cb = test_context_data1_new,
|
||||
.deinit_cb = test_context_data1_free,
|
||||
.finalize_cb = test_context_data1_finalize,
|
||||
.bytes_needed = sizeof (const char *)
|
||||
};
|
||||
static const jerry_context_data_manager_t manager1 = { .init_cb = test_context_data1_new,
|
||||
.deinit_cb = test_context_data1_free,
|
||||
.finalize_cb = test_context_data1_finalize,
|
||||
.bytes_needed = sizeof (const char *) };
|
||||
|
||||
/* Context item 2 */
|
||||
const char *string2 = "item2";
|
||||
@@ -79,12 +77,9 @@ test_context_data2_free (void *user_data_p)
|
||||
TEST_ASSERT ((*(const char **) user_data_p) == string2);
|
||||
} /* test_context_data2_free */
|
||||
|
||||
static const jerry_context_data_manager_t manager2 =
|
||||
{
|
||||
.init_cb = test_context_data2_new,
|
||||
.deinit_cb = test_context_data2_free,
|
||||
.bytes_needed = sizeof (const char *)
|
||||
};
|
||||
static const jerry_context_data_manager_t manager2 = { .init_cb = test_context_data2_new,
|
||||
.deinit_cb = test_context_data2_free,
|
||||
.bytes_needed = sizeof (const char *) };
|
||||
|
||||
/* Context item 3 */
|
||||
|
||||
@@ -95,8 +90,7 @@ test_context_data3_new (void *user_data_p)
|
||||
test_context_data3_new_called = true;
|
||||
} /* test_context_data3_new */
|
||||
|
||||
static const jerry_context_data_manager_t manager3 =
|
||||
{
|
||||
static const jerry_context_data_manager_t manager3 = {
|
||||
.init_cb = test_context_data3_new,
|
||||
/* NULL is allowed: */
|
||||
.deinit_cb = NULL,
|
||||
@@ -129,13 +123,10 @@ test_context_data4_finalize (void *user_data_p)
|
||||
TEST_ASSERT (user_data_p == NULL);
|
||||
} /* test_context_data4_finalize */
|
||||
|
||||
static const jerry_context_data_manager_t manager4 =
|
||||
{
|
||||
.init_cb = test_context_data4_new,
|
||||
.deinit_cb = test_context_data4_free,
|
||||
.finalize_cb = test_context_data4_finalize,
|
||||
.bytes_needed = 0
|
||||
};
|
||||
static const jerry_context_data_manager_t manager4 = { .init_cb = test_context_data4_new,
|
||||
.deinit_cb = test_context_data4_free,
|
||||
.finalize_cb = test_context_data4_finalize,
|
||||
.bytes_needed = 0 };
|
||||
|
||||
int
|
||||
main (void)
|
||||
|
||||
Reference in New Issue
Block a user