aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgb_help.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-10 17:01:42 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-10 17:01:42 -0400
commit0c50dc6241fa21712e041cfa2bfb9db4ccaef10a (patch)
tree90a3200414c8ad6df8e7983a8e73fedfbe2b324e /nexgb/xgb_help.go
parente239bb3c68a4981a3916534203c2fbd6b96f593c (diff)
downloadhaven-0c50dc6241fa21712e041cfa2bfb9db4ccaef10a.tar.gz
haven-0c50dc6241fa21712e041cfa2bfb9db4ccaef10a.tar.xz
haven-0c50dc6241fa21712e041cfa2bfb9db4ccaef10a.zip
a huge commit. splitting extensions into their own sub-packages.
Diffstat (limited to 'nexgb/xgb_help.go')
-rw-r--r--nexgb/xgb_help.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/nexgb/xgb_help.go b/nexgb/xgb_help.go
index 6c3b40a..36fe98b 100644
--- a/nexgb/xgb_help.go
+++ b/nexgb/xgb_help.go
@@ -5,30 +5,30 @@ import (
"strings"
)
-// stringsJoin is an alias to strings.Join. It allows us to avoid having to
+// StringsJoin is an alias to strings.Join. It allows us to avoid having to
// import 'strings' in each of the generated Go files.
-func stringsJoin(ss []string, sep string) string {
+func StringsJoin(ss []string, sep string) string {
return strings.Join(ss, sep)
}
-// sprintf is so we don't need to import 'fmt' in the generated Go files.
-func sprintf(format string, v ...interface{}) string {
+// Sprintf is so we don't need to import 'fmt' in the generated Go files.
+func Sprintf(format string, v ...interface{}) string {
return fmt.Sprintf(format, v...)
}
-// errorf is just a wrapper for fmt.Errorf. Exists for the same reason
+// Errorf is just a wrapper for fmt.Errorf. Exists for the same reason
// that 'stringsJoin' and 'sprintf' exists.
-func errorf(format string, v ...interface{}) error {
+func Errorf(format string, v ...interface{}) error {
return fmt.Errorf(format, v...)
}
// Pad a length to align on 4 bytes.
-func pad(n int) int {
+func Pad(n int) int {
return (n + 3) & ^3
}
// popCount counts the number of bits set in a value list mask.
-func popCount(mask0 int) int {
+func PopCount(mask0 int) int {
mask := uint32(mask0)
n := 0
for i := uint32(0); i < 32; i++ {