diff options
author | Přemysl Janouch <p@janouch.name> | 2018-09-29 21:42:23 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-09-30 17:34:26 +0200 |
commit | 3e9ed4eac6a953b2616bcf129b515a857271acdc (patch) | |
tree | b7e674aa21fe3044eec6071e0d990c3933ba5f0d /nexgb/xgbgen/field.go | |
parent | 0056720d05d72d7b3a1b3cbdae5b5c5d80e167d3 (diff) | |
download | haven-3e9ed4eac6a953b2616bcf129b515a857271acdc.tar.gz haven-3e9ed4eac6a953b2616bcf129b515a857271acdc.tar.xz haven-3e9ed4eac6a953b2616bcf129b515a857271acdc.zip |
xgbgen: process <doc> elements
Most of XCB documentation now ends up in Go sources,
although the end result is of mixed quality.
Diffstat (limited to 'nexgb/xgbgen/field.go')
-rw-r--r-- | nexgb/xgbgen/field.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nexgb/xgbgen/field.go b/nexgb/xgbgen/field.go index d6957b7..243cfb0 100644 --- a/nexgb/xgbgen/field.go +++ b/nexgb/xgbgen/field.go @@ -105,6 +105,7 @@ type SingleField struct { srcName string xmlName string Type Type + Comment string } func (f *SingleField) Initialize(p *Protocol) { @@ -255,10 +256,12 @@ func (f *ExprField) Initialize(p *Protocol) { // integers. The mask specifies which kinds of values are in the list. // (i.e., See ConfigureWindow, CreateWindow, ChangeWindowAttributes, etc.) type ValueField struct { - Parent interface{} - MaskType Type - MaskName string - ListName string + Parent interface{} + MaskType Type + MaskName string + ListName string + MaskComment string + ListComment string } func (f *ValueField) SrcName() string { @@ -324,6 +327,7 @@ type SwitchField struct { MaskName string Expr Expression Bitcases []*Bitcase + Comment string } func (f *SwitchField) SrcName() string { |