Mesa (master): glsl/list: Note that exec_lists may not be realloc'd.

Matt Turner mattst88 at kemper.freedesktop.org
Tue Feb 3 20:23:20 UTC 2015


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

Author: Matt Turner <mattst88 at gmail.com>
Date:   Mon Feb  2 17:23:25 2015 -0800

glsl/list: Note that exec_lists may not be realloc'd.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

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

diff --git a/src/glsl/list.h b/src/glsl/list.h
index 85368a4..ddb98f7 100644
--- a/src/glsl/list.h
+++ b/src/glsl/list.h
@@ -51,6 +51,10 @@
  * Therefore, if \c head->next is \c NULL or \c tail_prev->prev is \c NULL,
  * the list is empty.
  *
+ * Do note that this means that the list nodes will contain pointers into the
+ * list structure itself and as a result you may not \c realloc() an  \c
+ * exec_list or any structure in which an \c exec_list is embedded.
+ *
  * To anyone familiar with "exec lists" on the Amiga, this structure should
  * be immediately recognizable.  See the following link for the original Amiga
  * operating system documentation on the subject.




More information about the mesa-commit mailing list