Merge pull request #384 from haberman/internal

Renamed .int.h to _internal.h, for greater clarity.
pull/13171/head
Joshua Haberman 4 years ago committed by GitHub
commit 75d6dab37a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      BUILD
  2. 14
      cmake/CMakeLists.txt
  3. 2
      cmake/google/protobuf/descriptor.upb.c
  4. 2
      cmake/google/protobuf/descriptor.upb.h
  5. 2
      tests/test_table.cc
  6. 4
      upb/decode.c
  7. 2
      upb/decode_fast.c
  8. 4
      upb/decode_internal.h
  9. 2
      upb/def.h
  10. 2
      upb/encode.c
  11. 4
      upb/msg.c
  12. 2
      upb/msg_internal.h
  13. 2
      upb/reflection.c
  14. 2
      upb/table.c
  15. 0
      upb/table_internal.h
  16. 2
      upb/upb.c
  17. 0
      upb/upb_internal.h
  18. 4
      upbc/protoc-gen-upb.cc

16
BUILD

@ -81,14 +81,14 @@ cc_library(
name = "upb",
srcs = [
"upb/decode.c",
"upb/decode.int.h",
"upb/decode_internal.h",
"upb/encode.c",
"upb/msg.c",
"upb/msg.int.h",
"upb/msg_internal.h",
"upb/table.c",
"upb/table.int.h",
"upb/table_internal.h",
"upb/upb.c",
"upb/upb.int.h",
"upb/upb_internal.h",
],
hdrs = [
"upb/decode.h",
@ -109,12 +109,12 @@ cc_library(
cc_library(
name = "fastdecode",
srcs = [
"upb/decode.int.h",
"upb/decode_internal.h",
"upb/decode_fast.c",
"upb/decode_fast.h",
"upb/msg.h",
"upb/msg.int.h",
"upb/upb.int.h",
"upb/msg_internal.h",
"upb/upb_internal.h",
],
copts = UPB_DEFAULT_COPTS,
deps = [
@ -221,7 +221,7 @@ cc_library(
cc_library(
name = "table",
hdrs = [
"upb/table.int.h",
"upb/table_internal.h",
"upb/upb.h",
],
visibility = ["//tests:__pkg__"],

@ -64,14 +64,14 @@ enable_testing()
add_library(port INTERFACE)
add_library(upb
../upb/decode.c
../upb/decode.int.h
../upb/decode_internal.h
../upb/encode.c
../upb/msg.c
../upb/msg.int.h
../upb/msg_internal.h
../upb/table.c
../upb/table.int.h
../upb/table_internal.h
../upb/upb.c
../upb/upb.int.h
../upb/upb_internal.h
../upb/decode.h
../upb/encode.h
../upb/msg.h
@ -82,12 +82,12 @@ target_link_libraries(upb
port
/third_party/wyhash)
add_library(fastdecode
../upb/decode.int.h
../upb/decode_internal.h
../upb/decode_fast.c
../upb/decode_fast.h
../upb/msg.h
../upb/msg.int.h
../upb/upb.int.h)
../upb/msg_internal.h
../upb/upb_internal.h)
target_link_libraries(fastdecode
port
table)

@ -7,7 +7,7 @@
* regenerated. */
#include <stddef.h>
#include "upb/msg.int.h"
#include "upb/msg_internal.h"
#include "google/protobuf/descriptor.upb.h"
#include "upb/port_def.inc"

@ -9,7 +9,7 @@
#ifndef GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_
#define GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_
#include "upb/msg.int.h"
#include "upb/msg_internal.h"
#include "upb/decode.h"
#include "upb/decode_fast.h"
#include "upb/encode.h"

@ -39,7 +39,7 @@
#include "tests/upb_test.h"
#include "upb/upb.hpp"
#include "upb/table.int.h"
#include "upb/table_internal.h"
#include "upb/port_def.inc"

@ -30,9 +30,9 @@
#include <setjmp.h>
#include <string.h>
#include "upb/decode.int.h"
#include "upb/decode_internal.h"
#include "upb/upb.h"
#include "upb/upb.int.h"
#include "upb/upb_internal.h"
/* Must be last. */
#include "upb/port_def.inc"

@ -37,7 +37,7 @@
#include "upb/decode_fast.h"
#include "upb/decode.int.h"
#include "upb/decode_internal.h"
/* Must be last. */
#include "upb/port_def.inc"

@ -35,8 +35,8 @@
#include <setjmp.h>
#include "upb/msg.int.h"
#include "upb/upb.int.h"
#include "upb/msg_internal.h"
#include "upb/upb_internal.h"
/* Must be last. */
#include "upb/port_def.inc"

@ -42,7 +42,7 @@
#define UPB_DEF_H_
#include "upb/upb.h"
#include "upb/table.int.h"
#include "upb/table_internal.h"
#include "google/protobuf/descriptor.upb.h"
/* Must be last. */

@ -32,7 +32,7 @@
#include <setjmp.h>
#include <string.h>
#include "upb/msg.int.h"
#include "upb/msg_internal.h"
#include "upb/upb.h"
/* Must be last. */

@ -27,9 +27,9 @@
#include "upb/msg.h"
#include "upb/msg.int.h"
#include "upb/msg_internal.h"
#include "upb/port_def.inc"
#include "upb/table.int.h"
#include "upb/table_internal.h"
/** upb_msg *******************************************************************/

@ -13,7 +13,7 @@
#include <string.h>
#include "upb/msg.h"
#include "upb/table.int.h"
#include "upb/table_internal.h"
#include "upb/upb.h"
/* Must be last. */

@ -28,7 +28,7 @@
#include "upb/reflection.h"
#include <string.h>
#include "upb/table.int.h"
#include "upb/table_internal.h"
#include "upb/msg.h"
#include "upb/port_def.inc"

@ -34,7 +34,7 @@
#include <string.h>
#include "third_party/wyhash/wyhash.h"
#include "upb/table.int.h"
#include "upb/table_internal.h"
/* Must be last. */
#include "upb/port_def.inc"

@ -25,7 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "upb/upb.int.h"
#include "upb/upb_internal.h"
#include <errno.h>
#include <stdarg.h>

@ -511,7 +511,7 @@ void WriteHeader(const protobuf::FileDescriptor* file, Output& output) {
output(
"#ifndef $0_UPB_H_\n"
"#define $0_UPB_H_\n\n"
"#include \"upb/msg.int.h\"\n"
"#include \"upb/msg_internal.h\"\n"
"#include \"upb/decode.h\"\n"
"#include \"upb/decode_fast.h\"\n"
"#include \"upb/encode.h\"\n\n",
@ -849,7 +849,7 @@ void WriteSource(const protobuf::FileDescriptor* file, Output& output,
output(
"#include <stddef.h>\n"
"#include \"upb/msg.int.h\"\n"
"#include \"upb/msg_internal.h\"\n"
"#include \"$0\"\n",
HeaderFilename(file->name()));

Loading…
Cancel
Save