summaryrefslogtreecommitdiff
path: root/pbstruct.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-03-01 14:01:29 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-03-01 14:01:29 -0800
commit14624e34d82468773516a4ff3eb3a4d6bc030658 (patch)
tree925ab96609a8c2661445ff25f667bb89bf8e2969 /pbstruct.c
parent5a31f694a7cd276c29645bf560160d068f76ce50 (diff)
Added the first iteration of pbstruct.
Diffstat (limited to 'pbstruct.c')
-rw-r--r--pbstruct.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pbstruct.c b/pbstruct.c
new file mode 100644
index 0000000..97e0a9f
--- /dev/null
+++ b/pbstruct.c
@@ -0,0 +1,11 @@
+/*
+ * pbstream - a stream-oriented implementation of protocol buffers.
+ *
+ * Copyright (c) 2009 Joshua Haberman. See LICENSE for details.
+ */
+
+#include <stddef.h>
+#include "pbstruct.h"
+
+#define alignof(t) offsetof(struct { char c; t x; }, x)
+
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback