summaryrefslogtreecommitdiff
path: root/pbstruct.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-03-02 00:28:44 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-03-02 00:28:44 -0800
commitc8d67b2686796b70c946fcd98d72d4c2828b51e8 (patch)
tree33d2f928ac483587e916988646d07f2b7b8d055b /pbstruct.c
parent73ab650ad1968b13abbf1869c4739cfdf2752671 (diff)
More refactoring of structures.
pbstream_internal.h is now where even lower-level parsing functions go.
Diffstat (limited to 'pbstruct.c')
-rw-r--r--pbstruct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pbstruct.c b/pbstruct.c
index 97e0a9f..2c52930 100644
--- a/pbstruct.c
+++ b/pbstruct.c
@@ -8,4 +8,5 @@
#include "pbstruct.h"
#define alignof(t) offsetof(struct { char c; t x; }, x)
+#define ALIGN_UP(p, t) (alignof(t) + ((p - 1) & ~(alignof(t) - 1)))
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback