glsl: Make exec_node members just wrap the C API.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Matt Turner
2014-06-10 00:28:53 -07:00
parent d691f0de72
commit b10ad648a1

View File

@@ -214,73 +214,57 @@ exec_node_is_head_sentinel(const struct exec_node *n)
#ifdef __cplusplus #ifdef __cplusplus
inline const exec_node *exec_node::get_next() const inline const exec_node *exec_node::get_next() const
{ {
return next; return exec_node_get_next_const(this);
} }
inline exec_node *exec_node::get_next() inline exec_node *exec_node::get_next()
{ {
return next; return exec_node_get_next(this);
} }
inline const exec_node *exec_node::get_prev() const inline const exec_node *exec_node::get_prev() const
{ {
return prev; return exec_node_get_prev_const(this);
} }
inline exec_node *exec_node::get_prev() inline exec_node *exec_node::get_prev()
{ {
return prev; return exec_node_get_prev(this);
} }
inline void exec_node::remove() inline void exec_node::remove()
{ {
next->prev = prev; exec_node_remove(this);
prev->next = next;
next = NULL;
prev = NULL;
} }
inline void exec_node::self_link() inline void exec_node::self_link()
{ {
next = this; exec_node_self_link(this);
prev = this;
} }
inline void exec_node::insert_after(exec_node *after) inline void exec_node::insert_after(exec_node *after)
{ {
after->next = this->next; exec_node_insert_after(this, after);
after->prev = this;
this->next->prev = after;
this->next = after;
} }
inline void exec_node::insert_before(exec_node *before) inline void exec_node::insert_before(exec_node *before)
{ {
before->next = this; exec_node_insert_node_before(this, before);
before->prev = this->prev;
this->prev->next = before;
this->prev = before;
} }
inline void exec_node::replace_with(exec_node *replacement) inline void exec_node::replace_with(exec_node *replacement)
{ {
replacement->prev = this->prev; exec_node_replace_with(this, replacement);
replacement->next = this->next;
this->prev->next = replacement;
this->next->prev = replacement;
} }
inline bool exec_node::is_tail_sentinel() const inline bool exec_node::is_tail_sentinel() const
{ {
return this->next == NULL; return exec_node_is_tail_sentinel(this);
} }
inline bool exec_node::is_head_sentinel() const inline bool exec_node::is_head_sentinel() const
{ {
return this->prev == NULL; return exec_node_is_head_sentinel(this);
} }
#endif #endif