1. 22 Jan, 2011 1 commit
  2. 20 Jan, 2011 1 commit
  3. 12 Jan, 2011 1 commit
  4. 11 Jan, 2011 1 commit
  5. 09 Dec, 2010 1 commit
  6. 05 Nov, 2010 1 commit
  7. 31 Oct, 2010 1 commit
    • Rob Pike's avatar
      gob: several fixes. · 7f7cb166
      Rob Pike authored
      1) Be sure to use the eval-time encoder/decoder rather than
      the compile-time decoder.  In a few cases the receiver for
      the compiling encoder was being pickled incorrectly into a
      closure.
      (This is the fix for issue 1238).
      
      2) Get the innermost name right when given a pointer to an
      unnamed type.
      
      3) Use a count to delineate interface values, making it
      possible to ignore values without having a concrete type
      to encode into.  This is a protocol change but only for the
      new feature, so it shouldn't affect anyone.  The old test
      worked because, amazingly, it depended on bug #1.
      
      Fixes #1238.
      
      R=rsc, albert.strasheim
      CC=golang-dev
      https://golang.org/cl/2806041
      7f7cb166
  8. 22 Oct, 2010 3 commits
    • Rob Pike's avatar
      gob: error cleanup 2 · c28fa513
      Rob Pike authored
      Simplify error handling during the compilation phase.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/2652042
      c28fa513
    • Rob Pike's avatar
      gobs: error cleanup part 1. · f593b37f
      Rob Pike authored
      Remove err from the encoderState and decoderState types, so we're
      not always copying to and from various copies of the error, and then
      use panic/recover to eliminate lots of error checking.
      
      another pass might take a crack at the same thing for the compilation phase.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/2660042
      f593b37f
    • Rob Pike's avatar
      gob: allow exchange of interface values · 5d906469
      Rob Pike authored
      The implemetation describes each value as a string identifying the
      concrete type of the value, followed by the usual encoding of that
      value.  All types to be exchanged as contents of interface values
      must be registered ahead of time with the new Register function.
      Although this would not seem strictly necessary, the linker garbage
      collects unused types so without some mechanism to guarantee
      the type exists in the binary, there could be unpleasant surprises.
      Moreover, the receiver needs a reflect.Type of the value to be
      written in order to be able to save the data. A Register function
      seems necessary.
      
      The implementation may require defining types in the middle of
      of sending a value.  The old code never did this. Therefore there
      has been some refactoring to make the encoder and decoder
      work recursively.
      
      This change changes the internal type IDs. Existing gob archives
      will break with this change.  Apologies for that. If this is a deal
      breaker it should be possible to create a conversion tool.
      
      Error handling is too complicated in this code. A subsequent
      change should clean it up.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/2618042
      5d906469
  9. 20 Oct, 2010 1 commit
  10. 21 Jul, 2010 1 commit
  11. 29 Jun, 2010 2 commits
  12. 28 Jun, 2010 1 commit
  13. 24 Jun, 2010 1 commit
  14. 21 Jun, 2010 1 commit
  15. 20 Jun, 2010 1 commit
  16. 01 Jun, 2010 1 commit
  17. 07 May, 2010 1 commit
  18. 05 May, 2010 1 commit
  19. 24 Mar, 2010 1 commit
  20. 02 Mar, 2010 1 commit
  21. 28 Dec, 2009 1 commit
  22. 15 Dec, 2009 1 commit
    • Robert Griesemer's avatar
      1) Change default gofmt default settings for · a3d1045f
      Robert Griesemer authored
         parsing and printing to new syntax.
      
         Use -oldparser to parse the old syntax,
         use -oldprinter to print the old syntax.
      
      2) Change default gofmt formatting settings
         to use tabs for indentation only and to use
         spaces for alignment. This will make the code
         alignment insensitive to an editor's tabwidth.
      
         Use -spaces=false to use tabs for alignment.
      
      3) Manually changed src/exp/parser/parser_test.go
         so that it doesn't try to parse the parser's
         source files using the old syntax (they have
         new syntax now).
      
      4) gofmt -w src misc test/bench
      
      3rd set of files.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/180048
      a3d1045f
  23. 02 Dec, 2009 1 commit
  24. 10 Nov, 2009 1 commit
  25. 09 Nov, 2009 1 commit
  26. 08 Oct, 2009 1 commit
  27. 07 Oct, 2009 1 commit
  28. 17 Sep, 2009 1 commit
  29. 15 Sep, 2009 1 commit
    • Russ Cox's avatar
      more "declared and not used". · ca6a0fee
      Russ Cox authored
      the last round omitted := range and only
      checked 1 out of N vars in a multi-var :=
      
      R=r
      OCL=34624
      CL=34638
      ca6a0fee
  30. 12 Aug, 2009 2 commits
  31. 30 Jul, 2009 1 commit
  32. 29 Jul, 2009 1 commit
  33. 28 Jul, 2009 1 commit
    • Rob Pike's avatar
      - clean up code creating keys for type maps · 483e4fc4
      Rob Pike authored
      - derive int, uint, float, uintptr decoders based on their size
      - add overflow checks in decode
      
      R=rsc
      DELTA=407  (281 added, 44 deleted, 82 changed)
      OCL=32286
      CL=32290
      483e4fc4
  34. 17 Jul, 2009 1 commit
  35. 15 Jul, 2009 1 commit
  36. 09 Jul, 2009 1 commit