From d0dee34a7f636af5b9ba5490024e24697224af56 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 5 Apr 2011 23:10:06 -0700 Subject: Update README and fix small decoder issue. --- README | 7 ++++++- src/upb_decoder.c | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README b/README index 0aa4817..8b88451 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ upb - a minimalist implementation of protocol buffers. For API documentation, see the header files. -To build: +To build (the core library is ANSI C and has no dependencies): $ make Other useful targets: @@ -11,6 +11,11 @@ $ make test $ make benchmark $ make lua (requires lua libraries to be installed) +The tests and benchmarks have the following dependencies +(Ubuntu package names in parentheses): +- Google's protobuf compiler + libraries (protobuf-compiler, libprotobuf-dev) +- Lua binary and libraries (lua5.1, liblua5.1-dev) + Issue tracking is on Google Code: http://code.google.com/p/upb/issues/list diff --git a/src/upb_decoder.c b/src/upb_decoder.c index 3107f77..9ae3659 100644 --- a/src/upb_decoder.c +++ b/src/upb_decoder.c @@ -68,6 +68,7 @@ static bool upb_pullbuf(upb_decoder *d) { d->ptr = upb_string_getrobuf(d->bufstr); d->end = d->buf + upb_string_len(d->bufstr); d->jit_end = d->end - 20; + upb_string_recycle(&d->tmp); upb_string_substr(d->tmp, d->bufstr, 0, 0); upb_dstate_setmsgend(d); return true; -- cgit v1.2.3