1. 24 Mar, 2015 3 commits
    • Nigel Tao's avatar
      image/internal/imageutil: generate subsample-ratio-specific code. · 7180cfa8
      Nigel Tao authored
      This is in preparation for inlining the color.YCbCrToRGB calls in a
      follow-up change.
      
      Change-Id: I30750ace11a8ef6016b3c1e0b4bfdbcc8151f9a5
      Reviewed-on: https://go-review.googlesource.com/7951Reviewed-by: 's avatarRob Pike <r@golang.org>
      7180cfa8
    • Matthew Dempsky's avatar
      debug/dwarf, encoding/asn1, go/ast: fix old comments · f1878c0d
      Matthew Dempsky authored
      The debug/dwarf and encoding/asn1 examples were added in 2009, a few
      months before Go added implicit semicolons, and never updated.
      
      The go/ast node types have always been named just "Expr", "Stmt", and
      "Decl", so the comments about "ExprNode", "StmtNode", and "DeclNode"
      were likely just mistaken because the interface tag methods are
      "exprNode", "stmtNode", and "declNode", respectively.
      
      Change-Id: I9d138cc3a16c1a51453da1406914d7b320bf6270
      Reviewed-on: https://go-review.googlesource.com/7980Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      f1878c0d
    • Matthew Dempsky's avatar
      cmd/internal/ld: edit into more idiomatic Go code · 717cb749
      Matthew Dempsky authored
      Instead of reimplementing chained hash tables, just use maps.
      
      Use bool instead of uint8 for variables only set to 0 or 1.
      
      Fix parsing of `import foo "foo" // indirect` lines.  Previously, this
      was treated as an import of package path `"foo" // indirect`, which
      could result in the cycle-detection code failing to detect a cycle
      because it would be treated as a separate package from `"foo"`.
      
      Also, since there are theoretically multiple quoted forms for a
      package path, use strconv.Unquote to normalize them.  Side benefit:
      Unquote will complain if any trailing comments sneak back in.
      
      Aside: For most Go archives, Go package data is only present in the
      __.PKGDEF member, but unless -u is used, ldpkg is only called on the
      _go_.6 member.  Consequently, importcycles is a no-op when -u isn't
      used as it has no package data to inspect.
      
      Change-Id: I7076cf91a66726a8d9c5676adfea13c5532001fa
      Reviewed-on: https://go-review.googlesource.com/7002Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Matthew Dempsky <mdempsky@google.com>
      Reviewed-by: 's avatarRob Pike <r@golang.org>
      717cb749
  2. 23 Mar, 2015 13 commits
  3. 21 Mar, 2015 3 commits
  4. 20 Mar, 2015 21 commits