summaryrefslogtreecommitdiff
path: root/pbstream.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-02-25 15:33:04 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-02-25 15:34:54 -0800
commitafe132eb10575c31e856b7339942d9259f55d315 (patch)
treedda68993e1980ad10cceb57c467372da0fe3af5b /pbstream.h
parent446d7c27ee55f86515e37f8350f7018223676d01 (diff)
Remove DYNARRAY for the stack (wasn't buying much).
Diffstat (limited to 'pbstream.h')
-rw-r--r--pbstream.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/pbstream.h b/pbstream.h
index b2f8ff8..9cc9578 100644
--- a/pbstream.h
+++ b/pbstream.h
@@ -6,8 +6,6 @@
#include <stdint.h>
#include <stdbool.h>
-#include <stdlib.h>
-#include "dynarray.h"
/* A list of types as they can appear in a .proto file. */
typedef enum pbstream_type {
@@ -136,7 +134,7 @@ struct pbstream_parse_stack_frame {
struct pbstream_parse_state {
size_t offset;
void *user_data;
- DEFINE_DYNARRAY(stack, struct pbstream_parse_stack_frame);
+ struct pbstream_parse_stack_frame *base, *top, *limit;
};
/* Call this once before parsing to initialize the data structures.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback