[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #5683] Add deque implemented as circular queue to libpspp
From: |
John Darrington |
Subject: |
[patch #5683] Add deque implemented as circular queue to libpspp |
Date: |
Mon, 15 Jan 2007 23:48:04 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060926 Debian/1.7.8-1sarge7.3.1 |
Update of patch #5683 (project pspp):
Status: Ready For Test/Review => Works For Me
Assigned to: jmd => blp
_______________________________________________________
Follow-up Comment #1:
I prefer
assert (condition1);
assert (condition2);
rather than assert (condition1 && condition2) simply because if the
assertion(s) ever fail, the former makes it instantly clear which condition
has been violated. The latter requires extra investigation using the
debugger or something.
In NAME##_init, where you have written
deque->capacity *= 2
I would have put
deque->capacity <<= 1
I guess any half decent compiler would create the same code, but I think it
makes the intent clearer.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?5683>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/