From 69b36cdf071a83f57a10206fd69db6cc7da5d10f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 31 May 2024 12:03:22 -0400 Subject: lib: Discourage usage of deprecated data structures Put some verbiage in place to warn people that we are actively discouraging new development that uses an older data structure. Signed-off-by: Donald Sharp --- lib/linklist.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/linklist.h') diff --git a/lib/linklist.h b/lib/linklist.h index fd953d0769..f922891df9 100644 --- a/lib/linklist.h +++ b/lib/linklist.h @@ -10,6 +10,18 @@ extern "C" { #endif +/* + * NOTICE: + * + * If you are reading this file in an effort to add a new list structure + * this is the wrong place to be using it. Please see the typesafe + * data structures, or ask one of the other developers. + * + * If you are reading this file as a way to update an existing usage + * of this data structure, please consider just converting the data + * structure to one of the typesafe data structures instead. + */ + /* listnodes must always contain data to be valid. Adding an empty node * to a list is invalid */ -- cgit v1.2.3