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

Unified Diff: mojom/generators/c/templates/type_table.tmpl.go

Issue 2200843002: C bindings: Implement _DeepCopy() & some unittests. (Closed) Base URL: git@github.com:domokit/mojo.git@cgen_validate
Patch Set: fix tab indent, update sha1 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 | « mojom/generators/c/templates/struct.tmpl.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojom/generators/c/templates/type_table.tmpl.go
diff --git a/mojom/generators/c/templates/type_table.tmpl.go b/mojom/generators/c/templates/type_table.tmpl.go
index 7808bc010e18eeb153b4a3bcc634b503caaa704d..27508bad4e80b9767bec4020c22879cbbcf389f9 100644
--- a/mojom/generators/c/templates/type_table.tmpl.go
+++ b/mojom/generators/c/templates/type_table.tmpl.go
@@ -90,6 +90,7 @@ struct MojomTypeDescriptorUnionEntry {{$union.Name}}_Entries[] = {
{{end -}}
};
struct MojomTypeDescriptorUnion {{$union.Name}} = {
+ .num_fields = {{$union.NumFields}}ul,
.num_entries = {{len $union.Entries}}ul,
.entries = {{$union.Name}}_Entries,
};
« no previous file with comments | « mojom/generators/c/templates/struct.tmpl.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698