diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-10-12 17:05:06 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-10-12 17:18:14 -0400 |
commit | b555388dac71696c6a1028805094e16b5e5b2b82 (patch) | |
tree | 1afcb5ff02b20a834347113ac123a5901459922e /changes | |
parent | e3c746384a2c50e9a2b853456040cdc732d72b57 (diff) | |
download | tor-b555388dac71696c6a1028805094e16b5e5b2b82.tar.gz tor-b555388dac71696c6a1028805094e16b5e5b2b82.zip |
Add a copy of OpenBSD's sys/queue.h as tor_queue.h
There are as many divergent implementations of sys/queue.h as there
are operating systems shipping it, it would seem. They have some code
in common, but have drifted apart, and have added other stuff named
differently. So I'm taking a relatively sane one, and hoping for the
best.
I'm taking OpenBSD's in particular because of the lack of external
dependencies, the presence of a CIRCLEQ (we could use one of those in
places), and the liberal licensing terms.
I'm naming the file tor_queue.h, since historically we've run into
trouble having headers with the same names as system headers (log.h,
for example.)
Diffstat (limited to 'changes')
-rw-r--r-- | changes/bsd_queue | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/changes/bsd_queue b/changes/bsd_queue new file mode 100644 index 0000000000..024ca6fa5f --- /dev/null +++ b/changes/bsd_queue @@ -0,0 +1,7 @@ + o Code simplification and refactoring: + - Start using OpenBSD's implementation of queue.h, so that we don't + need to hand-roll our own pointer and list structures whenever we + need them. (We can't rely on a sys/queue.h, since some operating + systems don't have them, and the ones that do have them don't all + present the same extensions.) + |