From 372ee054c0deb4ca07e1a70c7b905d24043723be Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 1 Jan 2008 18:29:19 +0000 Subject: Some notes for those who try to follow this :) - first work on getting area/screen handling back - added structure for where to put stuff, is still under review, wait a bit for docs? Campbell is working on removing every bad level include from sources, so we can safely rebuild the src/ directory. --- source/blender/blenlib/intern/util.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'source/blender/blenlib/intern/util.c') diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c index 7c94cc80847..1888da6fbd6 100644 --- a/source/blender/blenlib/intern/util.c +++ b/source/blender/blenlib/intern/util.c @@ -498,6 +498,23 @@ int BLI_findindex(ListBase *listbase, void *vlink) return -1; } +void BLI_duplicatelist(ListBase *list1, ListBase *list2) /* copy from 2 to 1 */ +{ + struct Link *link1, *link2; + + list1->first= list1->last= 0; + + link2= list2->first; + while(link2) { + + link1= MEM_dupallocN(link2); + BLI_addtail(list1, link1); + + link2= link2->next; + } +} + + /*=====================================================================================*/ /* Methods for access array (realloc) */ /*=====================================================================================*/ -- cgit v1.2.3