From 14624e34d82468773516a4ff3eb3a4d6bc030658 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sun, 1 Mar 2009 14:01:29 -0800 Subject: Added the first iteration of pbstruct. --- pbstruct.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pbstruct.c (limited to 'pbstruct.c') 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 +#include "pbstruct.h" + +#define alignof(t) offsetof(struct { char c; t x; }, x) + -- cgit v1.2.3