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

Unified Diff: mojom/generators/c/cgen/header.go

Issue 2074923002: Mojom C Generator: Small fixes to get generated C bindings to compile. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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
Index: mojom/generators/c/cgen/header.go
diff --git a/mojom/generators/c/cgen/header.go b/mojom/generators/c/cgen/header.go
index 17d179809d0fed3b421054c3b2cbf15c785abed3..4814c5cdba7bc93960cfbe8196f273b3159e24af 100644
--- a/mojom/generators/c/cgen/header.go
+++ b/mojom/generators/c/cgen/header.go
@@ -189,8 +189,8 @@ func resolveValue(fileGraph *mojom_files.MojomFileGraph, value mojom_types.Value
func NewConstantTemplate(fileGraph *mojom_files.MojomFileGraph, mojomConstant mojom_types.DeclaredConstant) ConstantTemplate {
var type_text string
switch mojomConstant.Type.(type) {
- // We can't type constants as a 'union MojomStringPtr' since it involves
- // some setup and prevents immediate consumption. const char* should
+ // We can't type string constants as a 'union MojomStringPtr' since it
+ // involves some setup and prevents immediate consumption. const char* should
// suffice.
case *mojom_types.TypeStringType:
type_text = "char*"
« no previous file with comments | « mojo/public/tools/bindings/mojom_tool/bin/mac64/generators/c.sha1 ('k') | mojom/generators/c/cgen/type_table.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698