diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-05 18:21:48 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-05 18:21:48 -0400 |
| commit | 568f1c44fb9489a7f7762e96544f0173b23ec61b (patch) | |
| tree | f2c8fe01e7b4aeaad77bef220ed997c824f1b144 /xgbgen/representation.go | |
| parent | b8d96bcad34ec397b207dc263f61f7776396db26 (diff) | |
fixing bugs related mostly to extension handling
Diffstat (limited to 'xgbgen/representation.go')
| -rw-r--r-- | xgbgen/representation.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xgbgen/representation.go b/xgbgen/representation.go index be7accd..62a3eb2 100644 --- a/xgbgen/representation.go +++ b/xgbgen/representation.go @@ -3,6 +3,7 @@ package main import ( "fmt" "log" + "strings" "unicode" ) @@ -41,7 +42,11 @@ type Request struct { } func (r *Request) Initialize(p *Protocol) { - r.srcName = SrcName(r.xmlName) + r.srcName = SrcName(p, r.xmlName) + if p.Name != "xproto" { + r.srcName = strings.Title(strings.ToLower(p.Name)) + r.srcName + } + if r.Reply != nil { r.Reply.Initialize(p) } |
