Skip to content

Conversation

@mdionisio
Copy link
Contributor

add missing implementation of CDL_APPEND and CDL_CONCAT plus 2 new method for pop from the end on the list.

@troydhanson
Copy link
Owner

Michele,

I’m confused. For a circular list- what is the difference between appending to it, and prepending to it?

Troy

On Nov 30, 2014, at 7:25 AM, Michele Dionisio [email protected] wrote:

add missing implementation of CDL_APPEND and CDL_CONCAT plus 2 new method for pop from the end on the list.

You can merge this Pull Request by running

git pull https://github.com/mdionisio/uthash master
Or view, comment on, or merge it at:

#45 #45
Commit Summary

[ADD] add CDL_APPEND_END
[ADD] add CDL_APPEND CDL_CONCAT
[ADD] CDL_POP_LAST DL_POP_LAST
File Changes

M src/utlist.h https://github.com/troydhanson/uthash/pull/45/files#diff-0 (76)
M tests/Makefile https://github.com/troydhanson/uthash/pull/45/files#diff-1 (2)
M tests/README https://github.com/troydhanson/uthash/pull/45/files#diff-2 (3)
A tests/test85.c https://github.com/troydhanson/uthash/pull/45/files#diff-3 (43)
A tests/test86.c https://github.com/troydhanson/uthash/pull/45/files#diff-4 (57)
A tests/test87.c https://github.com/troydhanson/uthash/pull/45/files#diff-5 (57)
Patch Links:

https://github.com/troydhanson/uthash/pull/45.patch https://github.com/troydhanson/uthash/pull/45.patch
https://github.com/troydhanson/uthash/pull/45.diff https://github.com/troydhanson/uthash/pull/45.diff

Reply to this email directly or view it on GitHub #45.

@mdionisio
Copy link
Contributor Author

if circular list have the same interface than doubled linked list it easier to change list type.

with append and prepend method it is easy to use the list as FIFO and LIFO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants