summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2019-01-25 12:20:49 -0800
committerJosh Haberman <jhaberman@gmail.com>2019-01-25 12:20:49 -0800
commit8980f6db5c4d28de9dd8773ae27c823767122970 (patch)
treea687ad0bc77d5bdc346435ff4a241508bd0baa78
parentc358bb42fd9d4121bd642bcd41a317e5ed7625be (diff)
text_printer.h now successfully compiles.
-rw-r--r--CMakeLists.txt1
-rw-r--r--tests/test_cpp.cc1
-rw-r--r--upb/pb/textprinter.h7
3 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58d6571..dfdeba5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -93,6 +93,7 @@ add_library(upb_pb
upb/pb/textprinter.c
upb/pb/varint.c
upb/pb/varint.int.h
+ upb/table.int.h
upb/pb/decoder.h
upb/pb/encoder.h
upb/pb/textprinter.h)
diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc
index 5e9a8dd..86d7bc5 100644
--- a/tests/test_cpp.cc
+++ b/tests/test_cpp.cc
@@ -15,6 +15,7 @@
#include "upb/def.h"
#include "upb/handlers.h"
#include "upb/pb/decoder.h"
+#include "upb/pb/textprinter.h"
#include "upb/upb.h"
#include "upb_test.h"
diff --git a/upb/pb/textprinter.h b/upb/pb/textprinter.h
index 80abc00..0af2b1a 100644
--- a/upb/pb/textprinter.h
+++ b/upb/pb/textprinter.h
@@ -42,9 +42,10 @@ class upb::pb::TextPrinterPtr {
/* The given handlers must have come from NewHandlers(). It must outlive the
* TextPrinter. */
- static TextPrinterPtr *Create(Arena *arena, const upb::Handlers *handlers,
- BytesSink output) {
- return TextPrinterPtr(upb_textprinter_create(arena, handlers, output));
+ static TextPrinterPtr Create(Arena *arena, upb::HandlersPtr *handlers,
+ BytesSink output) {
+ return TextPrinterPtr(
+ upb_textprinter_create(arena->ptr(), handlers->ptr(), output.sink()));
}
void SetSingleLineMode(bool single_line) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback