text_printer.h now successfully compiles.

pull/13171/head
Josh Haberman 6 years ago
parent c358bb42fd
commit 8980f6db5c
  1. 1
      CMakeLists.txt
  2. 1
      tests/test_cpp.cc
  3. 5
      upb/pb/textprinter.h

@ -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)

@ -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"

@ -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,
static TextPrinterPtr Create(Arena *arena, upb::HandlersPtr *handlers,
BytesSink output) {
return TextPrinterPtr(upb_textprinter_create(arena, handlers, output));
return TextPrinterPtr(
upb_textprinter_create(arena->ptr(), handlers->ptr(), output.sink()));
}
void SetSingleLineMode(bool single_line) {

Loading…
Cancel
Save