Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1167)

Unified Diff: mojo/public/c/bindings/lib/type_descriptor.c

Issue 2218493002: C bindings string descriptor: Use field initializers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/bindings/lib/type_descriptor.c
diff --git a/mojo/public/c/bindings/lib/type_descriptor.c b/mojo/public/c/bindings/lib/type_descriptor.c
index 34d577aa3dc4c308c7a19eae2bc73325fe7574b4..336b522e09a4c62befe9c5247a9174b916c1d1ed 100644
--- a/mojo/public/c/bindings/lib/type_descriptor.c
+++ b/mojo/public/c/bindings/lib/type_descriptor.c
@@ -15,11 +15,11 @@
#include "mojo/public/c/bindings/union.h"
const struct MojomTypeDescriptorArray g_mojom_string_type_description = {
- MOJOM_TYPE_DESCRIPTOR_TYPE_POD, // elem_type
- NULL, // elem_descriptor
- 0, // num_elements
- 8, // elem_num_bits
- false, // nullable
+ .elem_type = MOJOM_TYPE_DESCRIPTOR_TYPE_POD,
+ .elem_descriptor = NULL,
+ .num_elements = 0,
+ .elem_num_bits = 8,
+ .nullable = false,
};
// The encoding of a MojoHandle is an index into an array of Handles. A
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698