diff options
| author | Andrew Gallant <[email protected]> | 2013-12-28 10:13:20 -0500 |
|---|---|---|
| committer | Andrew Gallant <[email protected]> | 2013-12-28 10:13:48 -0500 |
| commit | 9c952b021ced9543d1602e60ba4189e4a2f71414 (patch) | |
| tree | 21aba7ac0503efc0c616862fd98867fe7560cfd1 /xgbgen/go_request_reply.go | |
| parent | c3541209a0fb8271645c882f7e4a4d7254823992 (diff) | |
Use consistent extension names. Close #6.
Diffstat (limited to 'xgbgen/go_request_reply.go')
| -rw-r--r-- | xgbgen/go_request_reply.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xgbgen/go_request_reply.go b/xgbgen/go_request_reply.go index ee5c974..a2c6d9c 100644 --- a/xgbgen/go_request_reply.go +++ b/xgbgen/go_request_reply.go @@ -79,8 +79,7 @@ func (r *Request) CheckExt(c *Context) { if !c.protocol.isExt() { return } - c.Putln("if _, ok := c.Extensions[\"%s\"]; !ok {", - strings.ToUpper(c.protocol.ExtXName)) + c.Putln("if _, ok := c.Extensions[\"%s\"]; !ok {", c.protocol.ExtXName) c.Putln("panic(\"Cannot issue request '%s' using the uninitialized "+ "extension '%s'. %s.Init(connObj) must be called first.\")", r.SrcName(), c.protocol.ExtXName, c.protocol.PkgName()) @@ -155,8 +154,7 @@ func (r *Request) WriteRequest(c *Context) { c.Putln("buf := make([]byte, size)") c.Putln("") if c.protocol.isExt() { - c.Putln("buf[b] = c.Extensions[\"%s\"]", - strings.ToUpper(c.protocol.ExtXName)) + c.Putln("buf[b] = c.Extensions[\"%s\"]", c.protocol.ExtXName) c.Putln("b += 1") c.Putln("") } |
