diff options
author | Matt Turner <[email protected]> | 2014-06-10 02:06:23 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-06-10 13:05:51 -0700 |
commit | 195141803872b3b1b6cb073cb4a95de784412506 (patch) | |
tree | d8b8c3d56b24c1def490b455e35c243ed42547a3 | |
parent | b123c6e96dd1a9ae8385262c0d3f1c0a5de27d6e (diff) |
glsl: Add an exec_node_init() function, usable from C.
Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r-- | src/glsl/list.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glsl/list.h b/src/glsl/list.h index 803aab56be2..576bc14e44e 100644 --- a/src/glsl/list.h +++ b/src/glsl/list.h @@ -129,6 +129,13 @@ struct exec_node { #endif }; +static inline void +exec_node_init(struct exec_node *n) +{ + n->next = NULL; + n->prev = NULL; +} + static inline const struct exec_node * exec_node_get_next_const(const struct exec_node *n) { |