summaryrefslogtreecommitdiff
path: root/upb/encode.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-03-27 12:52:33 -0700
committerGitHub <noreply@github.com>2019-03-27 12:52:33 -0700
commit928ef7f2c02f18d9945dd750884dffbdebef1b98 (patch)
treed3b71619bfa0b8a91854045c01ce8b5cd15ae403 /upb/encode.c
parent00f96cb9475228ecacd9be1660f4f8d9d7b24038 (diff)
Removed reflection and other extraneous things from the core library. (#158)
* Removed reflection and other extraneous things from the core library. * Added missing files and ran buildifier. * New CMakeLists.txt. * Made table its own cc_library() for internal usage.
Diffstat (limited to 'upb/encode.c')
-rw-r--r--upb/encode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/upb/encode.c b/upb/encode.c
index 18b35d9..2bcf550 100644
--- a/upb/encode.c
+++ b/upb/encode.c
@@ -1,9 +1,11 @@
/* We encode backwards, to avoid pre-computing lengths (one-pass encode). */
+#include "upb/encode.h"
+
#include <string.h>
+
+#include "upb/msg.h"
#include "upb/upb.h"
-#include "upb/encode.h"
-#include "upb/structs.int.h"
#define UPB_PB_VARINT_MAX_LEN 10
#define CHK(x) do { if (!(x)) { return false; } } while(0)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback