upb: make :wire internal headers private

PiperOrigin-RevId: 594337191
pull/15233/head
Eric Salo 11 months ago committed by Copybara-Service
parent 1597bf4971
commit 1fc0e72416
  1. 3
      upb/message/promote.c
  2. 4
      upb/wire/BUILD
  3. 2
      upb/wire/decode.c
  4. 2
      upb/wire/internal/decode_fast.c
  5. 6
      upb/wire/internal/decoder.h

@ -27,7 +27,6 @@
#include "upb/mini_table/sub.h"
#include "upb/wire/decode.h"
#include "upb/wire/eps_copy_input_stream.h"
#include "upb/wire/internal/constants.h"
#include "upb/wire/reader.h"
// Must be last.
@ -118,7 +117,7 @@ static upb_FindUnknownRet upb_FindUnknownRet_ParseError(void) {
upb_FindUnknownRet upb_Message_FindUnknown(const upb_Message* msg,
uint32_t field_number,
int depth_limit) {
depth_limit = depth_limit ? depth_limit : kUpb_WireFormat_DefaultDepthLimit;
depth_limit = depth_limit ? depth_limit : 100;
size_t size;
upb_FindUnknownRet ret;

@ -12,13 +12,13 @@ cc_library(
srcs = [
"decode.c",
"encode.c",
"internal/constants.h",
"internal/decode_fast.c",
"internal/decoder.h",
],
hdrs = [
"decode.h",
"encode.h",
"internal/constants.h",
"internal/decode.h",
"internal/decode_fast.h",
],
copts = UPB_DEFAULT_COPTS,

@ -39,7 +39,7 @@
#include "upb/wire/encode.h"
#include "upb/wire/eps_copy_input_stream.h"
#include "upb/wire/internal/constants.h"
#include "upb/wire/internal/decode.h"
#include "upb/wire/internal/decoder.h"
#include "upb/wire/internal/endian.h"
#include "upb/wire/reader.h"

@ -21,7 +21,7 @@
#include "upb/message/internal/array.h"
#include "upb/message/internal/types.h"
#include "upb/mini_table/sub.h"
#include "upb/wire/internal/decode.h"
#include "upb/wire/internal/decoder.h"
// Must be last.
#include "upb/port/def.inc"

@ -10,8 +10,8 @@
* decode.c and decode_fast.c.
*/
#ifndef UPB_WIRE_INTERNAL_DECODE_H_
#define UPB_WIRE_INTERNAL_DECODE_H_
#ifndef UPB_WIRE_INTERNAL_DECODER_H_
#define UPB_WIRE_INTERNAL_DECODER_H_
#include "upb/mem/internal/arena.h"
#include "upb/message/internal/message.h"
@ -124,4 +124,4 @@ UPB_INLINE uint32_t _upb_FastDecoder_LoadTag(const char* ptr) {
#include "upb/port/undef.inc"
#endif /* UPB_WIRE_INTERNAL_DECODE_H_ */
#endif /* UPB_WIRE_INTERNAL_DECODER_H_ */
Loading…
Cancel
Save