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 a.shitov@samsung.com
This commit is contained in:
Andrey Shitov
2015-05-26 16:07:25 +03:00
parent cefeea06f6
commit 55b43071d1
4 changed files with 358 additions and 341 deletions
+29 -29
View File
@@ -36,46 +36,46 @@
*/
class rcs_chunked_list_t
{
public:
/**
* List node
*/
typedef struct
{
mem_cpointer_t prev_cp; /**< prev list's node */
mem_cpointer_t next_cp; /**< next list's node */
} node_t;
public:
/**
* List node
*/
typedef struct
{
mem_cpointer_t prev_cp; /**< prev list's node */
mem_cpointer_t next_cp; /**< next list's node */
} node_t;
void init (void);
void free (void);
void init (void);
void free (void);
node_t *get_first (void) const;
node_t *get_last (void) const;
node_t *get_first (void) const;
node_t *get_last (void) const;
node_t *get_prev (node_t *node_p) const;
node_t *get_next (node_t *node_p) const;
node_t *get_prev (node_t *node_p) const;
node_t *get_next (node_t *node_p) const;
node_t *append_new (void);
node_t *insert_new (node_t *after_p);
node_t *append_new (void);
node_t *insert_new (node_t *after_p);
void remove (node_t *node_p);
void remove (node_t *node_p);
node_t *get_node_from_pointer (void *ptr) const;
uint8_t* get_data_space (node_t *node_p) const;
node_t *get_node_from_pointer (void *ptr) const;
uint8_t* get_data_space (node_t *node_p) const;
static size_t get_data_space_size (void);
static size_t get_data_space_size (void);
private:
void set_prev (node_t *node_p, node_t *prev_node_p);
void set_next (node_t *node_p, node_t *next_node_p);
private:
void set_prev (node_t *node_p, node_t *prev_node_p);
void set_next (node_t *node_p, node_t *next_node_p);
static size_t get_node_size (void);
static size_t get_node_size (void);
void assert_list_is_correct (void) const;
void assert_node_is_correct (const node_t *node_p) const;
void assert_list_is_correct (void) const;
void assert_node_is_correct (const node_t *node_p) const;
node_t* head_p; /**< head node of list */
node_t* tail_p; /**< tail node of list */
node_t* head_p; /**< head node of list */
node_t* tail_p; /**< tail node of list */
};
/**