Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add indentation checks for code inside classes and fix appeared issues. #149

Merged
merged 1 commit into from
Jun 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions jerry-core/rcs/rcs-chunked-list.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
};

/**
Expand Down
Loading