summaryrefslogtreecommitdiff
path: root/upbc
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2019-01-03 10:57:00 -0800
committerJosh Haberman <jhaberman@gmail.com>2019-01-03 10:57:00 -0800
commitaac4d034205d76bb2d7e401fce865919cbf14818 (patch)
tree1b178cdc15a0c747f9b2cd017637e5576102b44d /upbc
parent0ce9b818153088704a2206635c08574f60df45f1 (diff)
Standardize on package_name_Message_mutable_foo() for mutable accessors.
Diffstat (limited to 'upbc')
-rw-r--r--upbc/generator.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/upbc/generator.cc b/upbc/generator.cc
index c076c9c..12edc33 100644
--- a/upbc/generator.cc
+++ b/upbc/generator.cc
@@ -400,13 +400,13 @@ void GenerateMessageInHeader(const protobuf::Descriptor* message, Output& output
for (auto field : FieldNumberOrder(message)) {
if (field->is_repeated()) {
output(
- "UPB_INLINE $0* $1_$2_mutable($1 *msg, size_t *len) {\n"
+ "UPB_INLINE $0* $1_mutable_$2($1 *msg, size_t *len) {\n"
" return ($0*)_upb_array_mutable_accessor(msg, $3, len);\n"
"}\n",
CType(field), msgname, field->name(),
GetSizeInit(layout.GetFieldOffset(field)));
output(
- "UPB_INLINE $0* $1_$2_resize($1 *msg, size_t len, "
+ "UPB_INLINE $0* $1_resize_$2($1 *msg, size_t len, "
"upb_arena *arena) {\n"
" return ($0*)_upb_array_resize_accessor(msg, $3, len, $4, $5, "
"arena);\n"
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback