Skip to content

Commit 55b4307

Browse files
committed
Add indentation checks for code inside classes and fix appeared issues.
Fix asserts in test_recordset.cpp. JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
1 parent cefeea0 commit 55b4307

File tree

4 files changed

+347
-330
lines changed

4 files changed

+347
-330
lines changed

jerry-core/rcs/rcs-chunked-list.h

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -36,46 +36,46 @@
3636
*/
3737
class rcs_chunked_list_t
3838
{
39-
public:
40-
/**
41-
* List node
42-
*/
43-
typedef struct
44-
{
45-
mem_cpointer_t prev_cp; /**< prev list's node */
46-
mem_cpointer_t next_cp; /**< next list's node */
47-
} node_t;
39+
public:
40+
/**
41+
* List node
42+
*/
43+
typedef struct
44+
{
45+
mem_cpointer_t prev_cp; /**< prev list's node */
46+
mem_cpointer_t next_cp; /**< next list's node */
47+
} node_t;
4848

49-
void init (void);
50-
void free (void);
49+
void init (void);
50+
void free (void);
5151

52-
node_t *get_first (void) const;
53-
node_t *get_last (void) const;
52+
node_t *get_first (void) const;
53+
node_t *get_last (void) const;
5454

55-
node_t *get_prev (node_t *node_p) const;
56-
node_t *get_next (node_t *node_p) const;
55+
node_t *get_prev (node_t *node_p) const;
56+
node_t *get_next (node_t *node_p) const;
5757

58-
node_t *append_new (void);
59-
node_t *insert_new (node_t *after_p);
58+
node_t *append_new (void);
59+
node_t *insert_new (node_t *after_p);
6060

61-
void remove (node_t *node_p);
61+
void remove (node_t *node_p);
6262

63-
node_t *get_node_from_pointer (void *ptr) const;
64-
uint8_t* get_data_space (node_t *node_p) const;
63+
node_t *get_node_from_pointer (void *ptr) const;
64+
uint8_t* get_data_space (node_t *node_p) const;
6565

66-
static size_t get_data_space_size (void);
66+
static size_t get_data_space_size (void);
6767

68-
private:
69-
void set_prev (node_t *node_p, node_t *prev_node_p);
70-
void set_next (node_t *node_p, node_t *next_node_p);
68+
private:
69+
void set_prev (node_t *node_p, node_t *prev_node_p);
70+
void set_next (node_t *node_p, node_t *next_node_p);
7171

72-
static size_t get_node_size (void);
72+
static size_t get_node_size (void);
7373

74-
void assert_list_is_correct (void) const;
75-
void assert_node_is_correct (const node_t *node_p) const;
74+
void assert_list_is_correct (void) const;
75+
void assert_node_is_correct (const node_t *node_p) const;
7676

77-
node_t* head_p; /**< head node of list */
78-
node_t* tail_p; /**< tail node of list */
77+
node_t* head_p; /**< head node of list */
78+
node_t* tail_p; /**< tail node of list */
7979
};
8080

8181
/**

0 commit comments

Comments
 (0)