aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/protoc/src/google/protobuf/compiler/objectivec/objectivec_message.cc
diff options
context:
space:
mode:
authorpg <pg@yandex-team.com>2023-02-06 20:48:31 +0300
committerpg <pg@yandex-team.com>2023-02-06 20:48:31 +0300
commit6cabb77676668397e5ac0afacc8c68b54c41c86b (patch)
tree8fa149d5288f046e8ecb7944fa299c69f17f86fe /contrib/libs/protoc/src/google/protobuf/compiler/objectivec/objectivec_message.cc
parent717dbc4b00249886f789109e9af0432ece4d9586 (diff)
downloadydb-6cabb77676668397e5ac0afacc8c68b54c41c86b.tar.gz
less shim
К сожалению, люди успели наплодить переменных и методов c именами i64(), ui64(), поэтому для генеренного кода проще всего оказалось завести несколько type alias arc_ui64 -> ui64, и так далее.
Diffstat (limited to 'contrib/libs/protoc/src/google/protobuf/compiler/objectivec/objectivec_message.cc')
-rw-r--r--contrib/libs/protoc/src/google/protobuf/compiler/objectivec/objectivec_message.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libs/protoc/src/google/protobuf/compiler/objectivec/objectivec_message.cc b/contrib/libs/protoc/src/google/protobuf/compiler/objectivec/objectivec_message.cc
index 0f0087e5a3..39f8fd50fb 100644
--- a/contrib/libs/protoc/src/google/protobuf/compiler/objectivec/objectivec_message.cc
+++ b/contrib/libs/protoc/src/google/protobuf/compiler/objectivec/objectivec_message.cc
@@ -450,7 +450,7 @@ void MessageGenerator::GenerateSource(io::Printer* printer) {
printer->Print(
"\n"
"typedef struct $classname$__storage_ {\n"
- " uint32_t _has_storage_[$sizeof_has_storage$];\n",
+ " arc_ui32 _has_storage_[$sizeof_has_storage$];\n",
"classname", class_name_,
"sizeof_has_storage", StrCat(sizeof_has_storage));
printer->Indent();
@@ -510,7 +510,7 @@ void MessageGenerator::GenerateSource(io::Printer* printer) {
vars["fields"] = has_fields ? "fields" : "NULL";
if (has_fields) {
vars["fields_count"] =
- "(uint32_t)(sizeof(fields) / sizeof(" + field_description_type + "))";
+ "(arc_ui32)(sizeof(fields) / sizeof(" + field_description_type + "))";
} else {
vars["fields_count"] = "0";
}
@@ -547,7 +547,7 @@ void MessageGenerator::GenerateSource(io::Printer* printer) {
printer->Print(
" };\n"
" [localDescriptor setupOneofs:oneofs\n"
- " count:(uint32_t)(sizeof(oneofs) / sizeof(char*))\n"
+ " count:(arc_ui32)(sizeof(oneofs) / sizeof(char*))\n"
" firstHasIndex:$first_has_index$];\n",
"first_has_index", oneof_generators_[0]->HasIndexAsString());
}
@@ -579,7 +579,7 @@ void MessageGenerator::GenerateSource(io::Printer* printer) {
printer->Print(
" };\n"
" [localDescriptor setupExtensionRanges:ranges\n"
- " count:(uint32_t)(sizeof(ranges) / sizeof(GPBExtensionRange))];\n");
+ " count:(arc_ui32)(sizeof(ranges) / sizeof(GPBExtensionRange))];\n");
}
if (descriptor_->containing_type() != NULL) {
TProtoStringType containing_class = ClassName(descriptor_->containing_type());