diff options
author | Ton Roosendaal <ton@blender.org> | 2008-01-01 21:29:19 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-01-01 21:29:19 +0300 |
commit | 372ee054c0deb4ca07e1a70c7b905d24043723be (patch) | |
tree | 115102f61c68e194331eac39e677d2c4b41c1837 /source/blender/blenlib/intern/util.c | |
parent | 58bf29e3898292ad9b46b7c0a591c856dde6eacb (diff) |
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.
Diffstat (limited to 'source/blender/blenlib/intern/util.c')
-rw-r--r-- | source/blender/blenlib/intern/util.c | 17 |
1 files changed, 17 insertions, 0 deletions
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) */ /*=====================================================================================*/ |