dmw/caffeine — pull request #1 by danielspicar (2012-08-30 14:24:32+00:00)
Title: Bugfix: deque_pop did not remove last element

deque_pop did not behave correctly when only one element was left in the deque. The last element was returned but not detached from the list, thus the list remained of size 1 and calls to further deque_pop did not change anything.

I chose to implement deque_pop analogously to cdeque_pop to keep them consistent.