Mesa (master): glsl: Add an exec_node_init() function, usable from C.

Matt Turner mattst88 at kemper.freedesktop.org
Tue Jun 10 20:08:07 UTC 2014


Module: Mesa
Branch: master
Commit: 195141803872b3b1b6cb073cb4a95de784412506
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=195141803872b3b1b6cb073cb4a95de784412506

Author: Matt Turner <mattst88 at gmail.com>
Date:   Tue Jun 10 02:06:23 2014 -0700

glsl: Add an exec_node_init() function, usable from C.

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/glsl/list.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/glsl/list.h b/src/glsl/list.h
index 803aab5..576bc14 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)
 {




More information about the mesa-commit mailing list