Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDL_APPEND CDL_CONCAT CDL_POP_LAST DL_POP_LAST #45

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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