From 6d545e723a7e972998a0e77adcf2219a31a9b800 Mon Sep 17 00:00:00 2001 From: "Andrew Gallant (Ocelot)" Date: Sun, 6 May 2012 17:48:40 -0400 Subject: add more extension cruft. make extension checking more uniform. --- nexgb/xgbgen/translation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nexgb/xgbgen/translation.go') diff --git a/nexgb/xgbgen/translation.go b/nexgb/xgbgen/translation.go index 90cd0f3..592c152 100644 --- a/nexgb/xgbgen/translation.go +++ b/nexgb/xgbgen/translation.go @@ -410,7 +410,7 @@ func TypeSrcName(p *Protocol, typ Type) string { // Since there is no namespace, we need to look for a namespace // in the current context. niceType := splitAndTitle(t) - if p.Name != "xproto" { + if p.isExt() { for _, typ2 := range p.Types { if t == typ2.XmlName() { return strings.Title(p.Name) + niceType -- cgit v1.2.3