Skip to content

Commit

Permalink
upb: delete mini_table/types.h
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 593893551
  • Loading branch information
ericsalo authored and copybara-github committed Dec 27, 2023
1 parent c4a7b03 commit d7f6031
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 31 deletions.
1 change: 1 addition & 0 deletions upb/mini_descriptor/decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "upb/base/status.h"
#include "upb/mem/arena.h"
#include "upb/mini_table/extension.h"
#include "upb/mini_table/sub.h"

// Export the newer headers, for legacy users. New users should include the
Expand Down
5 changes: 4 additions & 1 deletion upb/mini_descriptor/link.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

#include "upb/base/status.h"
#include "upb/mem/arena.h"
#include "upb/mini_table/types.h"
#include "upb/mini_table/enum.h"
#include "upb/mini_table/field.h"
#include "upb/mini_table/message.h"
#include "upb/mini_table/sub.h"

// Must be last.
#include "upb/port/def.inc"
Expand Down
2 changes: 0 additions & 2 deletions upb/mini_table/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ cc_library(
"file.h",
"message.h",
"sub.h",
"types.h",
],
copts = UPB_DEFAULT_COPTS,
visibility = ["//visibility:public"],
Expand Down Expand Up @@ -55,7 +54,6 @@ cc_library(
visibility = ["//visibility:public"],
deps = [
"//upb:base",
"//upb:hash",
"//upb:mem",
"//upb:port",
],
Expand Down
3 changes: 2 additions & 1 deletion upb/mini_table/enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
#ifndef UPB_MINI_TABLE_ENUM_H_
#define UPB_MINI_TABLE_ENUM_H_

typedef struct upb_MiniTableEnum upb_MiniTableEnum;

#include <stdint.h>

#include "upb/mini_table/internal/enum.h"
#include "upb/mini_table/types.h" // IWYU pragma: export

// Must be last
#include "upb/port/def.inc"
Expand Down
4 changes: 3 additions & 1 deletion upb/mini_table/extension.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
#ifndef UPB_MINI_TABLE_EXTENSION_H_
#define UPB_MINI_TABLE_EXTENSION_H_

typedef struct upb_MiniTableExtension upb_MiniTableExtension;

#include <stdint.h>

#include "upb/mini_table/internal/extension.h"
#include "upb/mini_table/types.h" // IWYU pragma: export
#include "upb/mini_table/message.h"

// Must be last.
#include "upb/port/def.inc"
Expand Down
3 changes: 2 additions & 1 deletion upb/mini_table/field.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
#ifndef UPB_MINI_TABLE_FIELD_H_
#define UPB_MINI_TABLE_FIELD_H_

typedef struct upb_MiniTableField upb_MiniTableField;

#include <stdint.h>

#include "upb/base/descriptor_constants.h"
#include "upb/mini_table/internal/field.h"
#include "upb/mini_table/types.h" // IWYU pragma: export

// Must be last.
#include "upb/port/def.inc"
Expand Down
5 changes: 4 additions & 1 deletion upb/mini_table/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
#ifndef UPB_MINI_TABLE_FILE_H_
#define UPB_MINI_TABLE_FILE_H_

typedef struct upb_MiniTableFile upb_MiniTableFile;

#include "upb/mini_table/extension.h"
#include "upb/mini_table/internal/file.h"
#include "upb/mini_table/types.h" // IWYU pragma: export
#include "upb/mini_table/message.h"

// Must be last.
#include "upb/port/def.inc"
Expand Down
5 changes: 4 additions & 1 deletion upb/mini_table/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
#ifndef UPB_MINI_TABLE_MESSAGE_H_
#define UPB_MINI_TABLE_MESSAGE_H_

typedef struct upb_MiniTable upb_MiniTable;

#include "upb/mini_table/enum.h"
#include "upb/mini_table/field.h"
#include "upb/mini_table/internal/message.h"
#include "upb/mini_table/types.h" // IWYU pragma: export

// Must be last.
#include "upb/port/def.inc"
Expand Down
5 changes: 4 additions & 1 deletion upb/mini_table/sub.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
#ifndef UPB_MINI_TABLE_SUB_H_
#define UPB_MINI_TABLE_SUB_H_

typedef union upb_MiniTableSub upb_MiniTableSub;

#include "upb/mini_table/enum.h"
#include "upb/mini_table/internal/sub.h"
#include "upb/mini_table/types.h" // IWYU pragma: export
#include "upb/mini_table/message.h"

// Must be last.
#include "upb/port/def.inc"
Expand Down
21 changes: 0 additions & 21 deletions upb/mini_table/types.h

This file was deleted.

3 changes: 2 additions & 1 deletion upb/test/fuzz_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
#include <string>
#include <vector>

#include "upb/mem/arena.h"
#include "upb/mini_table/extension_registry.h"
// #include "upb/mini_table/types.h"
#include "upb/mini_table/message.h"

namespace upb {
namespace fuzz {
Expand Down

0 comments on commit d7f6031

Please sign in to comment.