From 3e9ed4eac6a953b2616bcf129b515a857271acdc Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 29 Sep 2018 21:42:23 +0200 Subject: xgbgen: process elements Most of XCB documentation now ends up in Go sources, although the end result is of mixed quality. --- nexgb/xgbgen/go_single_field.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nexgb/xgbgen/go_single_field.go') diff --git a/nexgb/xgbgen/go_single_field.go b/nexgb/xgbgen/go_single_field.go index 6c7218e..ecb9c6e 100644 --- a/nexgb/xgbgen/go_single_field.go +++ b/nexgb/xgbgen/go_single_field.go @@ -6,6 +6,9 @@ import ( ) func (f *SingleField) Define(c *Context) { + if f.Comment != "" { + c.PutComment(f.Comment) + } c.Putln("%s %s", f.SrcName(), f.Type.SrcName()) } -- cgit v1.2.3-70-g09d2